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.
I have two ethernet cards in my box, using a monolithic kernel. I'm trying to specify which physical card is the eth0 but the kernel keeps autoprobing them in the wrong order. My lilo.conf looks like this:
Does it matter which is eth0 or eth1? I'm not familiar with your nics. In slack it is simply a change of a couple of lines in a few scripts--I'm just happpy to have both cards come up. Everthing else is easy.
Well, I want the PCnet on my LAN side as the Winbond is only 10Mbps and the PCnet is 100/full duplex. I'd prefer to have the speed on the LAN side for activities like virus scans, backups, IDS checks from other machines over NFS. And, I'd prefer to have eth0 be the LAN side as that's how I've always done it and my firewall scripts etc are all written that way. Converting them (and my mind) to go the other way around would probably result in errors.
So no, it's not the end of the world if I have to live with what the kernel is picking for me. But it does make my life more complicated. Besides, I know this is possible so I want to configure the system the way I want it. If I didn't want control over my OS I'd probably just run Windows.
Forgot to mention, this is SuSE 8.2 (though I think this is a basic kernel/bootloader issue rather than distro).
If you're really that advent about changing device names, then do so. In RedHat 9 (idk if you have a similar tool in slackware), you can go to Hat->Settings->Network, and change the names of your physical device(s). From this configurator, you can also change IPs and restart the interfaces. Hope this helps.
Because then my eth0 (was LAN side) becomes the WAN i/f, and vice versa. My firewall rules (and probably other things I'm missing) have to be changed. I know this is a workaround and that there are others I could pursue as well. Still leaves me uneasy though, if I don't know why the kernel is picking the order that it is, how sure can I be that next kernel upgrade (or even boot) is going to pick the same order? I don't have assurances that this is deterministic.
Regardless, the point is: Why isn't passing the kernel param working like it's supposed to? Am I missing something, syntax error etc? It doesn't sit right with me that the kernel is ignoring my directives. That's not good behavior for a respectable OS.
Something else I somehow forgot to mention: I glimpse some messages very early in the boot process that look like they have my NIC drivers names in them, there is likely a clue there. But they fly by way too fast for me to read, even after booting repeatedly. I don't see them in dmesg output, either they happen before it starts recording (possible?) or I'm imaging it.
Another "doh!": This is 2.4.24 vanilla kernel, patched with grsecurity and built from source.
Originally posted by bstempi If you're really that advent about changing device names, then do so. In RedHat 9 (idk if you have a similar tool in slackware), you can go to Hat->Settings->Network, and change the names of your physical device(s). From this configurator, you can also change IPs and restart the interfaces. Hope this helps.
Something like that should work, all I want is to change the physical->name mapping. I can't find such a thing in SuSE though. Perhaps I just need to look harder. I tried monkeying with the Network Device settings in Yast2, seemed to have no effect. Hm, did I set the io address like "e400" or "400"...? I'll have to play with it some more, I may not have done it properly.
When you make this change, do you know where it is stored? I poked around /etc and /etc/sysconfig and couldn't find anything that looked right. Though I suppose this could vary by distro.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.