[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How do I make my NIC pick the same ETH port every time?



On Saturday 25 March 2006 12:43, Oliver Jato wrote:
> i think this could be done with udev rules, though i only used them to
> always have the same device aliases for my external fw disks.
>
> here you'll find out how to write udev rules:
> http://reactivated.net/writing_udev_rules.html
>
> and this is a snippet i found on a web site:
>
> # cat /etc/udev/network.rules
> KERNEL=”eth*”, SYSFS{address}=”xx:xx:xx:xx:xx:x1″, NAME=”lan1″
> KERNEL=”eth*”, SYSFS{address}=”xx:xx:xx:xx:xx:x2″, NAME=”lan2″
> KERNEL=”eth*”, SYSFS{address}=”xx:xx:xx:xx:xx:x3″, NAME=”wlan1″
> # cd /etc/udev/rules.d/ && ln -s ../network.rules z35_network.rules

Works like a charm.  Don't forget to drop a symlink in /etc/udev/rules.d or it 
won't run automagically.

-- 
Paul Johnson
Email and IM (XMPP & Google Talk): baloo@ursine.ca
Jabber: Because it's time to move forward  http://ursine.ca/Ursine:Jabber

Attachment: pgpfYC1kyKcuA.pgp
Description: PGP signature


Reply to: