LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Network interface order

[ILUG] Network interface order

Dermot McGahon dermot at dspsrv.com
Sat May 15 14:07:24 IST 2004


On Fri, 14 May 2004 17:59:06 +0100, <P at draigBrady.com> wrote:

> Across boots it shouldn't change so you can always
> just hardcode the renaming in a script using
>      ip link set dev eth0 name lan
>      ip link set dev eth1 name dmz
>      ip link set dev eth2 name wan

This will work. What you're doing though, is "play-testing"
the boot order once and relying on it not to change, and
labelling the cables or interfaces based on what you find
out.

> You can do it based on MAC address using nameif
> to handle the case where adding cards changes
> the ordering, though I've never had to handle
> that situation.

A more solid way to do this, may be to assign ip address
using dhcp based on the mac address (fixed dynamic). This
gives you a slot to ip address fixed ordering and in a way
takes eth0/eth1 out of the picture. As long as you know
that bottom nic is ip address x, and top nic is ip address
y, then you can plan the switchover procedure.

At this point I think it shouldn't really matter which is
eth0, which is eth1.


Dermot.
--



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell