I have some weird thing:
I have the network card with mac address 98d0:XX:YY:ZZ and name "eth1" (I have disabled enp*s* naming to have name network cards as I want).
I have the entry in the /etc/udev/rules.d/70-persistent-ipoib.rules file:
Code: Select all
ACTION=="add", SUBSYSTEM=="net", DRIVERS=="?*", ATTR{type}=="1", ATTR{dev_id}=="0x0", ATTR{address}=="98:de:d0:XX:YY:ZZ", KERNEL=="eth*", NAME="ethwan"
At same time in the /etc/sysconfig/network-scripts/ifcfg-ethwan file I have next config which also customizes mac address:
Code: Select all
TYPE=Ethernet
BOOTPROTO=dhcp
NM_CONTROLLED=no
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
MACADDR="00:80:48:24:1b:16"
NAME=ethwan
UUID=1d7eb423-3431-4f6f-894c-5583ee08f388
DEVICE=ethwan
ONBOOT=yes
After some reboot, the ethwan dissappears and appears the eth1 which is getting "00:80:48:24:1b:16" mac address!!!
And, when I changing "98d0:XX:YY:ZZ" mac address in the /etc/udev/rules.d/70-persistent-ipoib.rules with "00:80:48:XX:YY:ZZ" - it WORKS!!!
And, after some another reboot, the true mac address is returning back into original, and to fix a trouble I have to set same mac in "persistent-ipoib".
Why this thing happens?