nano /etc/default/grub
inserir:
GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 biosdevname=0"
rodar:
update-grub
editar interfaces e mudar ens32 para eth0:
nano /etc/network/interfaces
reboot
---
comando para restart das interfaces:
service networking restart
fonte:
https://www.flaviotorres.com.br/centosredhat-7-rename-network-interface-name/
https://omadson.wordpress.com/2013/04/26/ubuntu-server-2-configuracao-das-interfaces-de-rede/
----- otima explicação sobre este procedimento
The easiest way to restore the old way Kernel/modules/udev rename your ethernet interfaces is supplying these kernel parameters to Fedora 19:
- net.ifnames=0
- biosdevname=0
- Edit /etc/default/grub
- At the end of GRUB_CMDLINE_LINUX line append "net.ifnames=0 biosdevname=0"
- Save the file
- Type "grub2-mkconfig -o /boot/grub2/grub.cfg"
- Type "reboot"
Up to Fedora 18, just biosdevname=0 was enough.
As an example, in a certain machine, in a exhaustive research, I got:
-No parameters: NIC identified as "enp5s2".
-Parameter biosdevname=0: NIC identified as "enp5s2".
-Parameter net.ifnames=0: NIC identified as "em1".
-Parameter net.ifnames=0 AND biosdevname=0: NIC identified as "eth0".
@dr-watson: Up to Fedora 14, ethX was the default naming for ethernet interfaces. In Fedora 15, the Consistent Network Device Naming was implemented. From Fedora 15 up to 18, just biosdevname=0 was enough to keep ethX naming. You are welcome
fonte: http://unix.stackexchange.com/questions/81834/how-can-i-change-the-default-ens33-network-device-to-old-eth0-on-fedora-19
https://docs.oracle.com/cd/E52668_01/E54669/html/ol7-nic-names.html
0 comentários:
Postar um comentário