1819850 Members
2478 Online
109607 Solutions
New Discussion юеВ

route command syntax?

 
SOLVED
Go to solution
VINCENT SPURGEON
Frequent Advisor

route command syntax?

Using 11.0 and when trying to use the netmask option I get an error...
# route add 192.xxx.xxx.xxx netmask 255.255.255.0 208.xxx.xxx.xxx 1
netmask: bad value

Is that the correct syntax? The man page doesn't help.

It's only a flesh wound...
2 REPLIES 2
Ovidiu D. Raita
Valued Contributor
Solution

Re: route command syntax?

What if you live the mask and type only:

route add 192.xxx.xxx.xxx 208.xxx.xxx.xxx 1 ?

This netmask should default to 255.255.255.0.

If the 192.xxx.xxx.xxx is a subnetwork address, let's say 192.138.148.64 then you would have to add the keyword net:

roeute add net 192.138.148.64 netmask 255.255.255.xxx 208.xxx.xxx.xxx 1.

Ovidiu
Simple solutions to complex problems
VINCENT SPURGEON
Frequent Advisor

Re: route command syntax?

DOH.

Thanks!
It's only a flesh wound...