[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 Wednesday 05 April 2006 18:41, Paul Johnson wrote:
> 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.

OK, looks like there's more equals signs involved than advertised... this is 
what really worked for me...

http://www.debianhelp.co.uk/udev.htm

-- 
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: pgpZFVUPBtmRK.pgp
Description: PGP signature


Reply to: