Strange behaviour of route command

Giorgos Keramidas keramida at ceid.upatras.gr
Fri Sep 7 12:15:56 PDT 2007


On 2007-09-07 16:57, "Bruce M. Simpson" <bms at freebsd.org> wrote:
> Tom Judge wrote:
>> Hi,
>> While making some changes to the routing table on one of our routers
>> today I noticed that "route add" was showing some strange
>> behaviour. When adding a route for 128/8 to the table rather than
>> adding 128.0.0.0/8 it would add 0.0.0.0/8, however adding 10/9 works
>> correctly.
>>
>> Is this a bug in route or the routing table?
>
> Run 'route -nv monitor' in another shell while you do this and post the
> output to this list so someone can get more of a handle on it.

I can reproduce what Tom describes, and route -nv monitor shows:

got message of size 132 on Fri Sep  7 21:55:29 2007
RTM_ADD: Add Route: len 132, pid: 25766, seq 1, errno 0, flags:<UP,GATEWAY,DONE,STATIC>
locks:  inits:
sockaddrs: <DST,GATEWAY,NETMASK>
 0.128.0.0 10.8.1.100 (0) 0 ff

This is with a userland and kernel from around 15:00:00 UTC, built at:
FreeBSD kobe 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Thu Sep  6 21:06:38 EEST 2007



More information about the freebsd-net mailing list