LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-28-2001, 01:24 AM   #1
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Multiple routes


I am wanting to setup a route to use for dialup


Normally I have this

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
11.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
12.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 12.0.0.1 0.0.0.0 UG 0 0 0 eth0


which is fine

Now I want to dialin to a server.

Now I have this

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
111.111.111.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
11.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
12.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 111.111.111.1 0.0.0.0 UG 0 0 0 ppp0

which I want to change to

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
111.111.111.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
11.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
12.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 12.0.0.1 0.0.0.0 UG 0 0 0 eth0
111.111.0.0 111.111.111.1 255.255.0.0 UG 0 0 0 ppp0



This should work, right?


How can I do it?




 
Old 11-30-2001, 06:35 AM   #2
raz
Member
 
Registered: Apr 2001
Location: London
Posts: 408

Rep: Reputation: 31
have you tried this:

route add -net 111.111.0.0 netmask 255.255.0.0 gw 111.111.111.1 ppp0

just a guess

Note: "instead of 111.111.111.1 use the name in the /etc/hosts file for the router like cisco001-gw"

/Raz
 
Old 12-03-2001, 12:51 PM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Original Poster
Rep: Reputation: 58
Ok Looks like that should work

thanks
 
  


Reply



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
Routes Obie Linux - Networking 16 04-28-2005 10:15 PM
Default Routes joel112 Linux - Networking 0 12-30-2004 11:13 AM
routes himyuza *BSD 6 08-03-2004 10:41 AM
I need some routes |Drakehash| Linux - Newbie 1 06-08-2003 12:22 AM
I need some routes |Drakehash| Linux - Networking 1 06-07-2003 02:36 PM

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

All times are GMT -5. The time now is 08:23 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