Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
This maps MAC address to device name. Example:
{{Code| # PCI device 0x10de:0x03ef (forcedeth) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1d:60:b5:43:66", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# 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"
# PCI device 0x1186This file maps the card with MAC 00:0x4300 (r8169)SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="1d:60:b5:43:66 to eth0 and the card with 5c:d9:98:af:21:43"to eth1. If you want to reverse the assignements, ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="et1"}}switch eth0 and eth1 at the end of the lines.
Please exercise care. Improperly modifying this file may render your system without network or even not boot properly.
Trusted, Bots, Bureaucrats, emailconfirmed, Administrators
3,789

edits