Como posso mudar os nomes das interfaces de rede mostradas em “ip addr show”

0

Abaixo está minha saída parcial de ip addr show

10: ge4: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
    link/ether 02:00:00:00:00:06 brd ff:ff:ff:ff:ff:ff
11: ge44: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN
    link/ether 02:00:00:00:00:32 brd ff:ff:ff:ff:ff:ff
12: ge45: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
    link/ether 02:00:00:00:00:33 brd ff:ff:ff:ff:ff:ff

A saída de /sys/class/net é como abaixo

/sys/class/net> ll
total 0
lrwxrwxrwx 1 root root    0 May 21 20:35 bond0 -> ../../devices/virtual/net/bond0
lrwxrwxrwx 1 root root    0 May 21 20:35 bond1 -> ../../devices/virtual/net/bond1
-rw-r--r-- 1 root root 4096 May 21 20:35 bonding_masters
lrwxrwxrwx 1 root root    0 May 21 20:34 eth0 -> ../../devices/fsl,dpaa.22/ethernet.23/net/eth0
lrwxrwxrwx 1 root root    0 May 21 20:34 eth1 -> ../../devices/fsl,dpaa.22/ethernet.24/net/eth1
lrwxrwxrwx 1 root root    0 May 21 20:34 eth2 -> ../../devices/fsl,dpaa.22/ethernet.25/net/eth2
lrwxrwxrwx 1 root root    0 May 21 20:44 ge4 -> ../../devices/virtual/net/ge4
lrwxrwxrwx 1 root root    0 May 21 21:15 ge44 -> ../../devices/virtual/net/ge44
lrwxrwxrwx 1 root root    0 May 21 21:15 ge45 -> ../../devices/virtual/net/ge45
lrwxrwxrwx 1 root root    0 May 21 20:34 gre0 -> ../../devices/virtual/net/gre0
lrwxrwxrwx 1 root root    0 May 21 20:34 lo -> ../../devices/virtual/net/lo
lrwxrwxrwx 1 root root    0 May 21 20:34 sit0 -> ../../devices/virtual/net/sit0
lrwxrwxrwx 1 root root    0 May 21 20:34 tunl0 -> ../../devices/virtual/net/tunl0

Eu tentei adicionar um novo arquivo de regras para o udev e reiniciei o udev, mas ainda assim as alterações não estão refletindo. Desejo alterar os nomes ge44 e ge45 para algo como "alpha0" e "alpha1".

Alguma dica de como posso conseguir isso?

EDITAR:

Eu alterei o arquivo de regras como abaixo

cat /etc/udev/rules.d/80-persistent-net.rules
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="02:00:00:00:00:32", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="alpha0"

SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="02:00:00:00:00:33", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="alpha1"
    
por vishram0709 21.05.2014 / 16:30

1 resposta

0

Eles se parecem com interfaces virtuais para mim. Você está executando alguma máquina virtual no sistema? As interfaces normalmente são definidas em /etc/network/interfaces (estilo Debian) ou /etc/sysconfig/network-scripts/ifcfg-<ifname> (estilo Red Hat) e, no caso de interfaces virtuais (como as que o Xen cria), elas podem ser encontradas nos arquivos de configuração das VMs.

    
por 21.05.2014 / 16:49