Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
one the sys admins at work said that depending on which interface comes up first gets assigned the first ip, but that just doesn't sound right to me. I suspect something is not configured properly. What could be the problem? Where should I look to fix this?
Given that your ethernet device names aren't changing, I'm having trouble understanding how it could be a udev problem. IOW, if your networking script (however that works on Centos) says that eth0 should be 192.168.0.25, then that's what it should be, regardless of what order eth0 comes up in. That's not to say that device 1 (which you want to be eth0) couldn't be the wrong device, and thus get the wrong IP as a result of udev. Or is there something you're not telling us to avoid some confusion?
It might be more helpful if we could see the results of /sbin/ifconfig on two occasions when they're different.
Last edited by Quakeboy02; 05-20-2009 at 03:53 PM.
comparing the IP address and MAC address for each interface when addressed correctly, and incorrectly, would make it obvious if the interface id's are swapping.
As quakeboy02 said it's hard to tell from here without the proper info though. so I'll consult my Magic Eight Ball in lou of factual data. I asked the Magic Eight Ball if the interfaces were swapping position at boot and it responded: "Definitely !" The Magic Eight Ball is rarely ever wrong... so unless we get more info, that is what we will have to go by.
Aw come on you have to admit that was humorous... Well, at least I thought it was..
Were you able to check the interface info to get a better idea of what is happening ? ....
Did you already resolve the issue ?
enquiring minds want to know
Quakeboy, you didn't get the H1N1 (swine flu) did you ? Hope you're feeling better soon..
I haven't used Centos (Red Hat derivative, yes?) but I think that if you look in the ifcfg-ethx files (where x is 0 1 or 2 for you) you have the option to add the line:
Code:
HWADDR=<MAC-address>, where <MAC-address> is the hardware
address of the Ethernet device in the form AA:BB:CC:DD:EE:FF. This
directive is useful for machines with multiple NICs to ensure that the
interfaces are assigned the correct device names regardless of the
configured load order for each NIC's module. This directive should not be
used in conjunction with MACADDR.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.