Naming networkinterfaces using udev

From Rsewiki
Revision as of 14:06, 17 April 2009 by Sh (talk | contribs) (New page: == Naming networkinterfaces using udev == Usually the SMR's are configured to use DHCP at networkinterface 'eth0' and have a static IP (10.0.1.2) at interface 'eth1'. In order to get the ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Naming networkinterfaces using udev

Usually the SMR's are configured to use DHCP at networkinterface 'eth0' and have a static IP (10.0.1.2) at interface 'eth1'. In order to get the wireless netcard to use DHCP we want to rename it to 'eth0'. This can be achieved by using the udev system. Changes are done in the file

/etc/udev/rules.d/75-network-devices.rules

Add the following two lines:

SUBSYSTEMS=="pci", DRIVERS=="via-rhine", NAME="eth1"
SUBSYSTEMS=="pci", DRIVERS=="yenta_cardbus", NAME="eth0"

This will work on the VIA motherboards. The "via-rhine" should be change to "r8168" on the Jetway Atom boards since these are using a Realtek network controller.