quarta-feira, 13 de janeiro de 2016

Ubuntu server 15.10 - alterar nomes das interfaces de rede

editar grub
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/

 
--- uma parte em ingles outra em portugues
https://help.ubuntu.com/lts/serverguide/network-configuration.html
 
https://wiki.ubuntu.com/vlan
 
--- root sudo 
 
https://help.ubuntu.com/community/RootSudo
 
----dhcpd 
https://help.ubuntu.com/community/isc-dhcp-server
http://www.jeffersoncosta.com.br/PPDHCP.pdf
 
 https://help.ubuntu.com/lts/serverguide/dhcp.html
 
------------------------------------

----- 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:
  1. net.ifnames=0
  2. biosdevname=0
To do so follow this steps:
  1. Edit /etc/default/grub
  2. At the end of GRUB_CMDLINE_LINUX line append "net.ifnames=0 biosdevname=0"
  3. Save the file
  4. Type "grub2-mkconfig -o /boot/grub2/grub.cfg"
  5. Type "reboot"
If you didn't supply these parameters during the installation, you will probably need to adjust and/or rename interface files at /etc/sysconfig/network-scripts/ifcfg-*.
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: