Hi Erik,

In my purpose built kernel I have in /etc/udev/rules.d/26-network.rules

ACTION=="add", SUBSYSTEM=="net", BUS=="pci", ID=="0000:00:10.0",
NAME="eth0"
ACTION=="add", SUBSYSTEM=="net", BUS=="pci", ID=="0000:00:11.0",
NAME="eth1"

to solve this very problem.

However tracking down the fix gave lot's of other ways tha should fix
the problem but dudn't.

Oh the kernel is 2.6.12.

Good luck :-)


Mark

 

On Thu, 2007-05-17 at 14:20 +1000, Erik de Castro Lopo wrote:
> Hi all,
> 
> I have a motherboard with two identical (apart from the MAC addresses
> of course) ethernet interfaces. The two MAC addresses are consectutively
> numbered; XX:XX:XX:XX:XX:34 and XX:XX:XX:XX:XX:35.
> 
> On most reboots, the interface with the 34 MAC address becomes eth2
> and the other becomes eth3, but very occasionally they get swapped
> around which rather screws things up.
> 
> Is there any way to lock a MAC address to an interface name?
> 
> Cheers,
> Erik
> -- 
> -----------------------------------------------------------------
> Erik de Castro Lopo
> -----------------------------------------------------------------
> "Java, the best argument for Smalltalk since C++." -- Frank Winkler

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to