With great power comes great responsibility.

março 11, 2009

Renaming Network Interfaces

Método udev:


editar arquivo:
/etc/udev/rules.d/70-persistent-net.rules


Conteudo: (exemplo kubuntu)

# This file maintains persistent names for network interfaces.
# See udev(7) for syntax.
#
# Entries are automatically added by the 75-persistent-net-generator.rules
# file; however you are also free to add your own entries.

# PCI device 0x1106:0x3065 (via-rhine)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:11:d8:64:01:e7", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x1904:0x2031 (sc92031)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:e0:20:12:65:b2", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:02:2a:da:30:28", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"



Ferramentas de auxilio:
  • mii-tool
  • ethtool