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.
Distribution: Red Hat 6.1,7.2,7.3 Mandrake 8.1,8.2
Posts: 48
Rep:
2nd NIC
I just added a secondary NIC card to a RH 7.2 box. I have set the IP settings but would like it to use another gateway other than the default. How can I assign this? route add eth1????????????
Distribution: Red Hat 6.1,7.2,7.3 Mandrake 8.1,8.2
Posts: 48
Original Poster
Rep:
Yes, I basically want each NIC to use a different gateway. I have added the IP, etc. properly. But, how can I verify that each card is using it's own gateway. ifconfig -a does not give any gateway information. I just keep thinking that when I do a netstat -rn I should see the default gateway for eth1, like I see the one for eth0. But where do these kernel ip tables get loaded from? It's hard to tell using traceroute since if I'm not mistaken sends out requests on both cards. I just want to verify somehow, any suggestions. thanks guys.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.