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 different routers in my network. So for a host m/c some packets should be send thru one gateway and some packets in the othergateway. how can i specify multiple gateways in my host configuration. Pls help me in this regard
This will define the first router (with the IP address 192.168.1.1) as your first choice as a gateway using eth0. The second router (with the IP address 10.0.0.1) will be the second choice using eth1 if the first is unavailable. The "metric" value is arbitrary, whatever entry has the lowest number will be tried first. This would work if you have multiple routers connected to the Internet.
If you want to use the same network with two different routers you can do that as well using the same method above.
If you want to have different routers handle different protocols or ports then I think you'd have to use the firewall tools.
Sorry my situation is slightly different , My proxy m/c is 192.168.1.1 this is the gw for accessing internet. To access my corporate network the gw is 192.168.1.5.
In this case how i will tell my client m/c to use the gw 192.168.1.1 for internet and for corporate network use thye gw 192.168.1.5 .Pls help
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255
Rep:
Sorry, I don't deal with proxy configuration, so my knowledge is very limited. I know you can set the proxy settings on a "per application" basis, but if you use the same application (such as a web browser) you cannot set for both proxy and no-proxy situations unless you use Mozilla that allows for multiple profiles. Sorry I can't help further!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.