Difference between revisions of "Binding Network Devices"

From Amahi Wiki
Jump to: navigation, search
Line 10: Line 10:
 
   
 
   
 
# PCI device 0x1186:0x4300 (r8169)
 
# PCI device 0x1186:0x4300 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="5c:d9:98:af:21:43", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="et1"}
+
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="5c:d9:98:af:21:43", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="et1"
 +
}}
  
 
Please exercise care. Improperly modifying this file may render your system without network or even not boot properly.
 
Please exercise care. Improperly modifying this file may render your system without network or even not boot properly.

Revision as of 16:47, 18 May 2011

You can manually force the assignment from a network card to what device comes up as (eth0, eth1 ...), you can manually edit this file:

           /etc/udev/rules.d/70-persistent-net.rules

This maps MAC address to device name. Example:

bash code
{{{1}}}


Please exercise care. Improperly modifying this file may render your system without network or even not boot properly.