On Thu, 17 May 2007 14:36:20 +1000
Jeff Waugh <[EMAIL PROTECTED]> wrote:

> <quote who="Erik de Castro Lopo">
> 
> > 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?
> 
> /etc/iftab to the rescue (if you're facing this problem on your usual
> Debian or Ubuntu). Nice and simple! :-)
> 
> - Jeff

You may or may not know this, but I just thought I would mention the
natural extension to this issue; you can allocate the same ip
address to the same ethernet interface on each reboot, without using
static ip addressing, if you have a router.

Just set an ip range in your router for the local lan and then attach a
fixed ip address to the relevant MAC address of each interface. When
setting up your networking, local and internet, you can then just use
dhcp (which is SO much easier than mucking around with static) but you
will always get the same ip address on each interface each time you
reboot.

Cheers,
Paul.


-- 
### Linux Registered User:416376 ###


-- 
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