Bug in routing tables ?

Ruslan Ermilov ru at freebsd.org
Thu Nov 24 19:12:52 GMT 2005


On Thu, Nov 24, 2005 at 03:22:00PM -0200, Ricardo A. Reis wrote:
> Hi Milan,
> 
>          I use route with /netmask[bits] GW, this work fine for me for 
> severals years, I erred in never read route(8)  :-(  but this 
> "136.16&0xac160181" is very strange for me, and for you ?
> 
Non-contiguous netmasks are shown like this.

0xac160181 is 172.22.1.129
136 is 200 ANDed with 172
16 is 144 ANDed with 22

> >On Thursday 24 November 2005 17:28, Ricardo A. Reis wrote:
> > 
> >
> >>Hi all,
> >>
> >>       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
> >>
> >>   
> >>
> >
> >man route:
> >
> >          route [-n] command [-net | -host] destination gateway [netmask]
> >
> >so no, this ain't network bug, just screwed usage.
> >Regards,
> >Milan
> >
> > 
> >
> >>Routing tables
> >>
> >>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
> >>??????????????????????????
> >>
> >>
> >>The question is ........................ this is a network bug?
> >>
> >>
> >>
> >>OBS: using /23 this work perfectly!!
> >>
> >>
> >>
> >>Ricardo A. Reis
> >>UNIFESP
> >>Unix and Network Admin
> >>
> >>
> >>
> >>_______________________________________________
> >>freebsd-net at freebsd.org mailing list
> >>http://lists.freebsd.org/mailman/listinfo/freebsd-net
> >>To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
> >>   
> >>
> >
> > 
> >
> 
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"

-- 
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20051124/947aab5e/attachment.bin


More information about the freebsd-net mailing list