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 both interfaces are on the same switch and the same subnet, most network traffic will go to the first interface, then bleed over to the second one. I once set up a server for multiple web sites on our intranet with 4 interfaces (4 separate stactic IP addresses), and the same thing happened. Each web page was served by a particular ip address, and everything worked correctly, except the load was being handled by only one interface. Even configuring our Cisco switches to route separately to each interface, the traffic ended up on one interface.
please dont mind, but i simply dont understand why you want to have two NIC cards for a same subnet?? it will be better if you use a single NIC card (eth 0) and setup a virtual interface on it.
like:-
this way you will be able to use two IP addresses on a single NIC card without having to worry about the network load ending up on a single interface. It is always preferred to have virtual interfacing on a single subnet v/s two NICs on a single subnet.
you can add up the new IP address with hostname in /etc/hosts file to make it pingable. Once the entry is taken up by your DNS server, this problem should be solved.
Thanl you all, the problem is solved. I just configured them for different subnetworks and it worked. I'm trying to set up a gateway for the first time, so I've got a lot of stupid questions
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.