-   Linux - Hardware (
-   -   Slackware - reboot mix interfaces (

aramkarapetian 07-10-2009 05:34 AM

Slackware - reboot mix interfaces

I've box with 3 interfaces.
After reboot it's mixing up interfaces.
Before have eth0 as local, eth1 provider 1, eth2 provider 2.
After reboot get eth1 local, eth2 provider 2, eth3 provider 3.
How can I fix IP address/interface names to network cards?

Is this known issue?

Thanks in advance.

xeleema 07-10-2009 05:57 AM

UDEV Perhaps?

This is a "known" issue on some distributions of Linux. Basically, the root-cause is the fact that, during boot-up, hardware modules are loaded-up in parallel, rather than serial alphabetically. Basically, in a lot of distros (and Slackware suffered from this for a while), you never knew which NIC was going to be assigned eth0, eth1, etc.

Although, it's been a while since I've messed with a multihomed configuration on Slackware (and I'm not in front of my server), I do recall UDEV coming to the rescue on this issue.

Look for this file;


Which might have something like this for each interface (if not, consider adding them);

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0d:60:b1:b9:43", ATTR{type}=="1", NAME="eth0"

All you have to do is find and set the MAC address that you always want to be eth0, eth1, and eth2, and you're set!

Keep in mind, this all depends on which version of Slackware you're running. I'm almost sure I'm still on 10.1.

All times are GMT -5. The time now is 09:42 AM.