Um bom dia a todos!

Obrigado a todos que me retornaram segue a solução para quem precisar:

"Renomeando o nome da interface de rede no CentOS 7:

Então sua interface de rede se chama algo como “ens….”?
Quer o bom e velho eth0 ?

[root@centos7-1 ~]# ifconfig
ens192: flags=4163 mtu 1500
inet 10.x.x.152 netmask 255.255.252.0 broadcast 10.134.39.255
inet6 fe80::250:56ff:fe93:5f8e prefixlen 64 scopeid 0x20 ether 00:50:56:93:5f:8e txqueuelen 1000 (Ethernet)
RX packets 2084 bytes 136963 (133.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 176 bytes 22010 (21.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Altere o arquivo /etc/default/grub, adicione no final da linha GRUB_CMDLINE_LINUX: net.ifnames=0 biosdevname=0

/etc/default/grub

GRUB_CMDLINE_LINUX="rd.lvm.lv=wm/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=wm/root crashkernel=auto vconsole.keymap=us rhgb quiet net.ifnames=0 biosdevname=0

Reconfigure o grub:
grub2-mkconfig -o /boot/grub2/grub.cfg

Renomeie o arquivo de configuração:
mv /etc/sysconfig/network-scripts/ifcfg-ens192 /etc/sysconfig/network-scripts/ifcfg-eth0

Altere o nome da interface de rede dentro do arquivo de configuração:

# cat /etc/sysconfig/network-scripts/ifcfg-eth0
HWADDR=00:11:56:93:5F:8E
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPADDR=10.xx.xx.152
NETMASK=255.255.252.0
GATEWAY=10.x.x.1
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=eth0
UUID=84f57a6a-9e0d-4444-a97c-e2b360345b78
ONBOOT=yes
NM_CONTROLLED=no

Desabilite o NetworkManager (veja o NM_CONTROLLED, já desativa na interface também)
service NetworkManager stop
chkconfig NetworkManager off  

reboot

"


Todo o crédito para Flávio Torres
link -> http://flaviotorres.com.br/wp/centosredhat-7-rename-network-interface-name/#comment-133

Valeu
Fábio







  ~   | Fábio de Sousa                                                                                                           
.ºvº. | Téc. Inf.
/(_)\ | Seja livre, use LINUX
.^.^. | Socialmente justo, economicamente viável e tecnologicamente sustentável







Em 24 de julho de 2014 23:02, Rodrigo K. Ferreira <rkferreira@gmail.com> escreveu:

Boa Fabio,

O esquema de nomes mudou: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Networking_Guide/ch-Consistent_Network_Device_Naming.html#sec-Understanding_the_Predictable_Network_Interface_Device_Names

Voce pode mudar para o antigo apenas:

Remova o pacote biosdevname
Adicione biosdevname=0 net.ifnames=0 no grub na chamada do kernel.

On Jul 24, 2014 10:50 PM, "Walison Morales" <walison@live.jp> wrote:
Boa Noite Fábio,

Encontrei o seguinte artigo explicando de forma bem detalhada.

Att, Morales


2014-07-24 15:34 GMT-04:00 Fábio de Sousa <fabiocs@gmail.com>:
Um Salve a todos!

Sobre o CentOS 7:

* Alguém sabe me dizer porque a eth0 agora é enp2s0?

* Como faço para renomear enp2s0 para eth0?


​Abraço,​

  ~   | Fábio de Sousa                                                                                                           
.ºvº. | Téc. Inf.
/(_)\ | Seja livre, use LINUX
.^.^. | Socialmente justo, economicamente viável e tecnologicamente sustentável






_______________________________________________
CentOS-pt-br mailing list
CentOS-pt-br@centos.org
http://lists.centos.org/mailman/listinfo/centos-pt-br



_______________________________________________
CentOS-pt-br mailing list
CentOS-pt-br@centos.org
http://lists.centos.org/mailman/listinfo/centos-pt-br


_______________________________________________
CentOS-pt-br mailing list
CentOS-pt-br@centos.org
http://lists.centos.org/mailman/listinfo/centos-pt-br