Estoy cambiando el nombre de las interfaces de red modificando los archivos /etc/sysconfig/network-scripts.
- eth0 -> nic0
- eth1 -> nic1
El contenido de los scripts de red se ve así, después de la modificación:
# 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
Un reinicio activa la nueva configuración. Pero, ¿cómo activo esta configuración sin reiniciar?
A systemctl restart networkno hace el truco.
Puedo cerrar una interfaz por su nombre anterior ( ifdown eth0) pero ifupaparece el siguiente mensaje sin importar si se proporcionó el nombre antiguo o nuevo:
ERROR: [/ etc / sysconfig / network-scripts / ifup-eth] El dispositivo nic0 no parece estar presente, retrasando la inicialización.
/etc/init.d/network status muestra esta salida:
Configured devices:
lo bond0 nic0 nic1
Currently active devices:
lo eth0 eth1 bond0
Ambos, ifconfigy ip amuestran los antiguos nombres de interfaz.