Re: which NIC is which

Linux Advanced Routing and Traffic Control

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

 



Thus spake bert hubert:
> On Tue, Jul 09, 2002 at 02:14:05PM -0700, John Telford wrote:
> > I'm building routers.  It's difficult to tell in advance which NIC will
> > be assigned eth0 and which will assigned eth1 when using two NICs.  Ping
> > testing usually clears up this simple problem.
> > 
> > The identification problem gets worse when adding a third NIC, after
> > sorting out the first two NICs.  Frequently the eth0 or eth1 assignments
> > for the first two NICs change.
> 
> There are tricks to configure based on the MAC address of your interface
> instead of on its place in the probe. Perhaps googling on that will help.

A script to rename interfaces with "ip link ... set name ..." after
modprobe according to their hw addresses should suffice.

I never tried this because in my experience order of detection was always
consistant between reboots assuming there are no hardware chasnges.


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux