LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How can I add a second gateway to my linux router? (https://www.linuxquestions.org/questions/linux-networking-3/how-can-i-add-a-second-gateway-to-my-linux-router-384888/)

abefroman 11-20-2005 11:15 AM

How can I add a second gateway to my linux router?
 
How can I add a second gateway to my linux router?

Right now I have the gateway
10.10.0.1
and I want to make 192.168.0.1 a second gateway.

Can this be done with the route command?

acid_kewpie 11-20-2005 11:45 AM

Yes, that's the fellow for the job. the full manpage is here: http://www.die.net/doc/linux/man/man8/route.8.html as well as on your own system already. there are some good examples towards the bottom that'll help you out.

e.g.
Quote:

route add -net 192.56.76.0 netmask 255.255.255.0 dev eth0
adds a route to the network 192.56.76.x via "eth0". The Class C netmask modifier is not really necessary here because 192.* is a Class C IP address. The word "dev" can be omitted here.


All times are GMT -5. The time now is 12:46 PM.