ziger Posted May 5 Report Share Posted May 5 w /etc/default/grub dodałem net.ifnames=0 GRUB_CMDLINE_LINUX="quiet net.ifnames=0 intel_iommu=on" wpisałem to polecenie grub2-mkconfig -o /boot/grub2/grub.cfg i wszystko prawie działa dobrze dla 3 kart sieciowych pojawiaja sie stare nazwy eth0,eth1,eth2. eth0: BC:5F:F4:36:59:46 eth1: 00:15:17:78:1A:36 eth2:00:15:17:78:1A:37 Tylko że po każdym wyłączeniu i włączeniu systemu interfejsy zmieniają mac eth0: 00:15:17:78:1A:37 eth1:BC:5F:F4:36:59:46 eth2:00:15:17:78:1A:36 w fedorce 33 server ładni rozwiązało problem SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="BC:5F:F4:36:59:46", NAME="eth0" SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}==" 00:15:17:78:1A:36", NAME="eth1" SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}==":00:15:17:78:1A:37", NAME="eth2" ale w fedorce 42 ta metoda nie działa. Zrobiłem linki w /etc/systemd/network 20-eth0.link, 21-eth1.link, 22-eth2.link [MATCH] MACAddress=BC:5F:F4:36:59:46 [LINK] Name=eth0 Alias=eth0 [MATCH] MACAddress=00:15:17:78:1A:36 [LINK] Name=eth1 Alias=eth1 [MATCH] MACAddress=00:15:17:78:1A:37 [LINK] Name=eth2 Alias=eth2 i też to nie pomogło z Link to comment Share on other sites More sharing options...
@sunrise Posted May 5 Report Share Posted May 5 2 godziny temu, ziger napisał: w fedorce 33 server ładni rozwiązało problem SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="BC:5F:F4:36:59:46", NAME="eth0" SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}==" 00:15:17:78:1A:36", NAME="eth1" SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}==":00:15:17:78:1A:37", NAME="eth2" ale w fedorce 42 ta metoda nie działa. Może dlatego, że masz błędy w składni np. spacja oraz : przed mac adresem 2 godziny temu, ziger napisał: Zrobiłem linki w /etc/systemd/network To natomiast działa jeżeli używasz systemd-networkd (i wtedy raczej nie powinieneś używać NetworkManagera), co zwraca polecenie systemctl status systemd-networkd Link to comment Share on other sites More sharing options...
ziger Posted May 5 Author Report Share Posted May 5 Dzięki Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now