Networking Forums

Networking Forums > Computer Networking > Linux Networking > Special routing table

Reply
Thread Tools Display Modes

Special routing table

 
 
Eduardo Ogasawara
Guest
Posts: n/a

 
      12-22-2003, 12:53 PM
I am a newbie, and I am using Red Hat 8.

I have three networks.

200.216.95.209 * 255.255.255.255 UH 0 0
0 ppp0
200.201.177.200 * 255.255.255.248 U 0 0
0 eth2
192.168.13.0 * 255.255.255.0 U 0 0
0 eth1
127.0.0.0 * 255.0.0.0 U 0 0
0 lo
default 200.216.95.209 0.0.0.0 UG 0 0
0 ppp0

My local ip address are both 192.168.13.100 and 200.201.177.202.

As you can see, both ppp0 and eth2 are directed connected to the
internet, but if I set on /etc/sysconfig/network GATEWAYDEV=ppp0 when
I try to ping 200.201.177.202 from another computer, I get requested
timeout.
If, on the other hand, I set GATEWAY=200.201.177.201, instead of
GATEWAYDEV, I am not using ppp0.

Actually what I would like to do is to set this route:
192.168.13.0-128->ppp0
192.168.13.129-254->eth2

How can I make this?

Thanks
 
Reply With Quote
 
 
 
 
Matthew
Guest
Posts: n/a

 
      12-23-2003, 07:06 AM
you can't do this. you can only route to a network not an iprange and in
order to get 2 networks out of a class network you would have to do this
route add 192.168.13.64 netmask 255.255.255.192 dev ppp0
route add 192.168.13.128 netmask 255.255.255.192 dev eth2
which would give you 2 ip ranges 192.268.13.65-127 and 129-191
read up on subnetting and you'll see why.
and of cource that netmask would have to be set on ALL machines in those
networks or it wont work.
matt
>
> Actually what I would like to do is to set this route:
> 192.168.13.0-128->ppp0
> 192.168.13.129-254->eth2
>
> How can I make this?
>
> Thanks


 
Reply With Quote
 
Matthew
Guest
Posts: n/a

 
      12-23-2003, 07:12 AM
Matthew wrote:
> you can't do this. you can only route to a network not an iprange and in
> order to get 2 networks out of a class network you would have to do this
> route add 192.168.13.64 netmask 255.255.255.192 dev ppp0
> route add 192.168.13.128 netmask 255.255.255.192 dev eth2
> which would give you 2 ip ranges 192.268.13.65-127 and 129-191
> read up on subnetting and you'll see why.
> and of cource that netmask would have to be set on ALL machines in those
> networks or it wont work.
> matt
>
>>
>> Actually what I would like to do is to set this route:
>> 192.168.13.0-128->ppp0
>> 192.168.13.129-254->eth2
>>
>> How can I make this?
>>
>> Thanks

>
>

i meant route add -net .... sorry

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Routing Table Issue DHK Windows Networking 12 07-20-2009 04:35 PM
reset the routing table? Polaris Windows Networking 4 10-12-2006 02:01 PM
Routing table Matt Scoff Windows Networking 6 06-08-2006 02:19 AM
routing ports from special PCs to another gateway Stefan Lindecke Linux Networking 1 04-02-2005 06:31 PM
How to use second routing table? Martin Pauly Linux Networking 0 03-08-2005 04:54 PM



1 2 3 4 5 6 7 8 9 10 11