I'm renaming network interfaces by modifying the files in
- eth0 -> nic0
- eth1 -> nic1
The content of the network scripts looks like this, after modification:
# cat /etc/sysconfig/network-scripts/ifcfg-nic0 DEVICE=nic0 BOOTPROTO=static ONBOOT=yes HWADDR=xx:xx:xx:xx:xx:xx USERCTL=no IPV6INIT=no MASTER=bond0 SLAVE=yes
A reboot activates the new config. But how do I activate this configuration without rebooting?
systemctl restart network doesn't do the trick.
I can shut down one interface by its old name (
ifdown eth0) but
ifup results in below message no matter if the old or new name was provided:
ERROR : [/etc/sysconfig/network-scripts/ifup-eth] Device nic0 does not seem to be present, delaying initialization.
/etc/init.d/network status shows this output:
Configured devices: lo bond0 nic0 nic1 Currently active devices: lo eth0 eth1 bond0
ip a show the old interface names.