[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strange route add problem to tun0



On Tue, Mar 01, 2005 at 08:45:07PM +0100, Marc Champion wrote:
> 
> While adding a route to a tun device I get errors, but it works fine
> if I omit the last part of the ip:
> 
> # /sbin/route add -net 10.8.0.0 10.8.0.2 -netmask 255.255.255.0 route:
> 10.8.0.0: not a network # /sbin/route add -net 10.8.0 10.8.0.2
> -netmask 255.255.255.0 add net 10.8.0: gateway 10.8.0.2

Does your -net 10.8.0.0 mean -net 10.8/16 or 10.8.0/24? 

Your syntax is ambiguous, and it seems route(8) chooses to interpret an
address with 3 dots and no length specifier as a host address regardless
of the optional -net modifier. Choose between the unambiguous 10.8.0,
10.8.0/24 or 10.8.0.0/24.

-- 
stephen@cl-is.com