LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-20-2005, 11:15 AM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
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?
 
Old 11-20-2005, 11:45 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Linux as a gateway with hardware router spudtheimpaler Linux - Networking 1 08-22-2005 01:39 PM
Linux box as a gateway/router dooda5555 Linux - Networking 2 04-29-2005 01:06 PM
Using Linux as an internet router / gateway bashworth Linux - Networking 2 09-10-2004 06:00 PM
gateway for a linux router?? jmono Linux - Networking 12 11-17-2003 09:33 PM
Linux as a gateway/router Why is it so difficult? quincy56 Linux - Networking 14 01-29-2002 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration