Hello, everybody! I'm trying to setup bird 1.3.4 ospfv2 as following: protocol ospf OSPFtest { area 192.168.1.1 { stub yes; interface "igb1" { }; interface "lo1" { cost 30; }; interface "lo3" { cost 30; }; }; }; All works good and I see lo1, lo3 addresses on neighbours but with path-costs equal to 0. What should I do to fix this problem? Thanks in advance! -- -- AP
On Wed, Jan 18, 2012 at 03:19:51PM +0400, Peter Andreev wrote:
Hello, everybody!
I'm trying to setup bird 1.3.4 ospfv2 as following:
protocol ospf OSPFtest { area 192.168.1.1 { stub yes; interface "igb1" { }; interface "lo1" { cost 30; }; interface "lo3" { cost 30; }; }; };
All works good and I see lo1, lo3 addresses on neighbours but with path-costs equal to 0. What should I do to fix this problem?
Could you send the output of 'show ospf state' command? -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
2012/1/18 Ondrej Zajicek <santiago@crfreenet.org>
On Wed, Jan 18, 2012 at 03:19:51PM +0400, Peter Andreev wrote:
Hello, everybody!
I'm trying to setup bird 1.3.4 ospfv2 as following:
protocol ospf OSPFtest { area 192.168.1.1 { stub yes; interface "igb1" { }; interface "lo1" { cost 30; }; interface "lo3" { cost 30; }; }; };
All works good and I see lo1, lo3 addresses on neighbours but with path-costs equal to 0. What should I do to fix this problem?
Could you send the output of 'show ospf state' command?
Of course bird> show ospf state area 192.168.1.1 router 192.168.1.33 distance 10 network 192.168.1.32/27 metric 10 stubnet 10.10.10.62/32 metric 10 stubnet 10.10.11.15/32 metric 15 router 192.168.1.34 distance 0 network 192.168.1.32/27 metric 10 stubnet 10.10.10.62/32 metric 0 stubnet 10.10.11.15/32 metric 0 router 192.168.1.254 distance 10 network 192.168.1.32/27 metric 1 network 192.168.1.32/27 dr 192.168.1.254 distance 10 router 192.168.1.254 router 192.168.1.33 router 192.168.1.34
-- Elen sila lumenn' omentielvo
Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAk8W1scACgkQw1GB2RHercPiPQCfX1qL2lt8TsV0gW39sb0Sls3y qqcAn04Y7zPo0MNBg2CsWTTIDqBhb3gn =/20b -----END PGP SIGNATURE-----
-- -- AP
On Wed, Jan 18, 2012 at 06:23:59PM +0400, Peter Andreev wrote:
> All works good and I see lo1, lo3 addresses on neighbours but with > path-costs equal to 0. What should I do to fix this problem?
Could you send the output of 'show ospf state' command?
network [5]192.168.1.32/27 metric 10 stubnet [6]10.10.10.62/32 metric 0 stubnet [7]10.10.11.15/32 metric 0
It is expected, /32 stubs from interface addresses are always announced with cost 0, because they are local IPs. The idea is that 'cost' is a cost of traversing a network (i.e. if you have an eth1 stub network of cost 10, it is a cost from the router to other hosts on that network). You can use 'stubnet' option to specify /32 stubs with arbitrary metric regardless of any interface. -- Elen sila lumenn' omentielvo Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
2012/1/18 Ondrej Zajicek <santiago@crfreenet.org>
On Wed, Jan 18, 2012 at 06:23:59PM +0400, Peter Andreev wrote:
> All works good and I see lo1, lo3 addresses on neighbours but
with
> path-costs equal to 0. What should I do to fix this problem?
Could you send the output of 'show ospf state' command?
network [5]192.168.1.32/27 metric 10 stubnet [6]10.10.10.62/32 metric 0 stubnet [7]10.10.11.15/32 metric 0
It is expected, /32 stubs from interface addresses are always announced with cost 0, because they are local IPs. The idea is that 'cost' is a cost of traversing a network (i.e. if you have an eth1 stub network of cost 10, it is a cost from the router to other hosts on that network).
You can use 'stubnet' option to specify /32 stubs with arbitrary metric regardless of any interface.
Thank you! that's exactly what I need.
-- Elen sila lumenn' omentielvo
Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAk8W7wwACgkQw1GB2RHercOD1wCfWTFoBQuAB43VF909Bg0SByqW BpIAn2RcCx+To/ezIdPK5rrCeBNw2HGr =9kAm -----END PGP SIGNATURE-----
-- -- AP
participants (2)
-
Ondrej Zajicek -
Peter Andreev