strange route problem

Niki Denev nike_d at cytexbg.com
Wed Jul 6 08:26:16 GMT 2005


On Wednesday 06 July 2005 06:46, M. Warner Losh wrote:
> In message: <86irzrwqnc.fsf at xps.des.no>
>
>             des at des.no (Dag-Erling Smørgrav) writes:
> : Niki Denev <nike_d at cytexbg.com> writes:
> : > 10.10.10           192.168.100.1      UGS         0     1016   ste1
> :
> : this route lacks a mask length.
>
> I've seen these as well when dhclient was involved for both fxp0 and
> iwi0 on my laptop, but couldn't recreate it.
>
> Warner
> _______________________________________________
> freebsd-current at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"
>

netname() in src/sbin/route/route.c does this i think.
i can add several different addresses with 
route add -net xx.xx.xx.xx/24 zz.zz.zz.zz
and some of them will show up with /24 other will not.(i´m not shure 
that this is right :):) )

But the real problem that i´m expeiencing is that if i install a static route
to the interface that uses dhcp after a while this route will stop working 
despite being shown properly in the routing table. (doing a ¨route change¨
 with the same parameters fixes it)
My initial guess was that this probably has something to do with the 
periodic UPs and DOWNs of the interface that are caused by (the new?)dhclient.

For now i ¨patched¨ the situation with ¨route-to¨-s in pf.conf,
but i´ve not given up to find out what´s happening :):)

--niki


More information about the freebsd-current mailing list