Bug in routing tables ?
Brian Candler
B.Candler at pobox.com
Fri Nov 25 14:37:24 GMT 2005
On Thu, Nov 24, 2005 at 02:28:37PM -0200, Ricardo A. Reis wrote:
> I insert this route in my workstation for network test,
>
> #route add -net 200.144.xx.xx 255.255.254.0 172.22.x.x
Linux user I bet ;-)
For FreeBSD you need:
#route add -net 200.144.xx.xx -netmask 255.255.254.0 172.22.x.x
> Internet:
> Destination Gateway Flags Refs Use Netif Expire
> default 200.144.xx.xxx UGS 1 13407 rl0
> 127.0.0.1 127.0.0.1 UH 0 46 lo0
> 136.16&0xac160181 255.255.254.0 UGS 0 34 rl0
As you can see, 255.255.254.0 was interpreted as the gateway, not the
netmask.
More information about the freebsd-net
mailing list