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.
Hi, I was wondering how I swap the interface names given to my ethernet card. I have two ethernet devices (one inbuilt on motherboard, other PCI card). And I want my onboard ethernet to be assigned eth0, and the card eth1, but it happens the other way round. How do I swap them round or cause them to be assigned the correct name
I believe the kernel assigns the names as it finds them. Since one is onboard and you can't move it down a few slots below the other, you are stuck with this. Unless there is a way to alias 0 to 1 and 1 to 0, but I would imagine that would make more trouble for you.
I just prefere eth0 to be my LAN, and I found that if I load the driver as a module (for the pci card) and compile the driver for the onboard ethernet controller directly into the kernel, then they get assigned properly.
Also, do I need to have the networks on each ethernet interface using different submasks. IE I have a DSL router (proper all in one router, just set DMZ to IP of the server (the computer in question), and the server is plugged in on eth1 to the router (for internet access) and eth0 to the rest of the network, to make sure packets go in the right direction do I need to have eth1 on 255.255.0.0 and my LAN 255.255.255.0 or can they both be 255.255.255.0.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
They both can be 255.255.255.0 but I would make one 192.168.1.0/24 and the other 192.168.2.0/24. Then using ipmasquerading to allow traffic from eth1 to eth0. Is this what you want to accomplish?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.