> > But how do I add the following Static routes?
> > 
> > 172.31.0.0/16 to 192.168.0.252
> 
> route add -net 172.31.0.0 netmask 255.255.255.??? gw 192.168.0.252
> 
> I've never used the 172.31.0.0/16 form, so I don't know if it works.
> 

'172.31.0.0/16',

 is another way of writing

'172.31.0.0 netmask 255.255.0.0'

(Note: '172.31.0.0 netmask 255.255.255.0' is another way of
writing '172.31.0.0/24').

and these mean  we are describing several networks not several
hosts.

So,

static routing of 172.31.0.0/16 to 192.168.0.252 should be,

#route add -net 172.31.0.0/16 gw 192.168.0.252  or if you prefer

#route add -net 172.31.0.0 netmask 255.255.0.0 gw 192.168.0.252


Oscar Plameras
http://www.acay.com.au/~oscarp/disclaimer.html

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to