ospf cost and route selection (openospfd)
Eygene Ryabinkin
rea-fbsd at codelabs.ru
Wed Feb 6 07:40:09 PST 2008
Josef, good day.
Currently I can not answer your question, sorry. I just have the
remark.
Wed, Feb 06, 2008 at 03:41:04PM +0100, Josef Pojsl wrote:
> ospfctl show rib:
> Router 1:
> Destination Nexthop Path Type Type Cost Uptime
> 0.0.0.2 10.31.2.2 Intra-Area Router 20 00:03:51
> 10.30.1.2/32 10.31.2.2 Intra-Area Network 40 00:03:41
> 10.31.1.2/32 10.31.2.2 Intra-Area Network 70 00:03:51
'Cost' column looks perfectly correct: in order to reach the other
router, the path with cost 20 is selected (presumably, WAN X); path
to 10.30.1.2/32 costs 20+20: 20 from WAN X interface and 20 from
the gre30 on the other end; and path to 10.31 costs 70=20+50,
WAN X + gre31 on the other end.
The only weird thing is the nexthop value. Your 'netstat -rn' shows
routes via gre31 too? If yes, maybe the verbose mode of the openospfd
(-v) will show something interesting?
--
Eygene
More information about the freebsd-net
mailing list