$author = "Kevin Fitzgerald" ;
>
> But how do I add the following Static routes?
>  
> 172.31.0.0/16 to 192.168.0.252 
> 10.100.0.0/16 to 192.168.0.252
> 192.168.0.0/16 to 192.168.0.252

if you don't have a route to 192.168.0.252 yet you need to set that first.

route add -net 192.168.0.0 netmask 255.255.255.0 dev eth0

(change the network, netmask or interface as appropriate)

then you can add the routes for the other networks.

route add -net 172.31.0.0 netmask 255.255.0.0 gw 192.168.0.252

(repeat as appropriate for the other networks)

you'll need to add these to your startup scripts to ensure that they are
restored after a reboot.

finally, you might have a problem routing 192.168.0.0/16 (that's if that is
a real subnet your trying to route and not some foobar example for the
mailing list query) given that you seem to already have at least some, if
not all of 192.168.0.0/24 already routed. i'm not sure how the linux kernel
treats multiple routes (routing protocols like BGP allow overlaps and use
the more specific match).

marty

-- 
newsdee   - "...and thanks for the sp correction. I improve my English 
             through Slashdot :-)" [1]

Carbonite - "Sweet Jesus! That's like improving your health through 
             heroin." [2]

[1] - http://books.slashdot.org/comments.pl?sid=66478&cid=6116042
[2] - http://books.slashdot.org/comments.pl?sid=66478&cid=6116149
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to