Hello. I trying to use bird for export ospf route for Cisco Nexus with next config: router id 10.34.23.1; filter export_OSPF { if net = 77.71.22.23/32 then { ospf_metric1 = 20; ospf_metric2 = 20; print "net accepted:", net; accept; } if net = 77.71.22.24/32 then { ospf_metric1 = 10; ospf_metric2 = 10; print "net accepted:", net; accept; } reject; } protocol ospf server1 { export filter export_OSPF; #debug all; rfc1583compat yes; tick 2; area 0.0.0.0 { stub no; interface "bond0" { dead 10; neighbors { 10.0.16.1; }; type pointopoint; authentication none; }; interface "lo*" { stub yes; cost 10; priority 200; }; interface "dummy0" { stub yes; cost 15; priority 100; }; }; } But in birdc I didn't see any metrics. I have two server with same config and same addresses on interfaces lo and dummy0 with different priorities. Could you help me with export filter? -- Best regards, Anton Kiryushkin
Hello, concretely "birdc show route export server1" show what ? Another good hint could be "birdc show ospf state", where you can see ospf informations about whole infrastructure which ospf knows. Vilem On 12/03/2015 01:50 AM, Anton Kiryushkin wrote:
Hello.
I trying to use bird for export ospf route for Cisco Nexus with next config:
router id 10.34.23.1;
filter export_OSPF { if net = 77.71.22.23/32 <http://77.71.22.23/32> then { ospf_metric1 = 20; ospf_metric2 = 20; print "net accepted:", net; accept; } if net = 77.71.22.24/32 <http://77.71.22.24/32> then { ospf_metric1 = 10; ospf_metric2 = 10; print "net accepted:", net; accept; } reject; }
protocol ospf server1 { export filter export_OSPF; #debug all; rfc1583compat yes; tick 2; area 0.0.0.0 { stub no; interface "bond0" { dead 10; neighbors { 10.0.16.1; }; type pointopoint; authentication none; }; interface "lo*" { stub yes; cost 10; priority 200; }; interface "dummy0" { stub yes; cost 15; priority 100; }; }; }
But in birdc I didn't see any metrics. I have two server with same config and same addresses on interfaces lo and dummy0 with different priorities. Could you help me with export filter?
-- Best regards, Anton Kiryushkin
-- S pozdravem Vilem Kebrt email: viker@viker.cz tel: +420 604 550 132
Hello. Yes, I tried it. birdc show route export server1 showed me nothing. But 'show ospf state' showed me both ips with metric 0. 2015-12-03 9:55 GMT+03:00 viker <viker@viker.cz>:
Hello, concretely "birdc show route export server1" show what ? Another good hint could be "birdc show ospf state", where you can see ospf informations about whole infrastructure which ospf knows. Vilem
On 12/03/2015 01:50 AM, Anton Kiryushkin wrote:
Hello.
I trying to use bird for export ospf route for Cisco Nexus with next config:
router id 10.34.23.1;
filter export_OSPF { if net = 77.71.22.23/32 <http://77.71.22.23/32> then { ospf_metric1 = 20; ospf_metric2 = 20; print "net accepted:", net; accept; } if net = 77.71.22.24/32 <http://77.71.22.24/32> then {
ospf_metric1 = 10; ospf_metric2 = 10; print "net accepted:", net; accept; } reject; }
protocol ospf server1 { export filter export_OSPF; #debug all; rfc1583compat yes; tick 2; area 0.0.0.0 { stub no; interface "bond0" { dead 10; neighbors { 10.0.16.1; }; type pointopoint; authentication none; }; interface "lo*" { stub yes; cost 10; priority 200; }; interface "dummy0" { stub yes; cost 15; priority 100; }; }; }
But in birdc I didn't see any metrics. I have two server with same config and same addresses on interfaces lo and dummy0 with different priorities. Could you help me with export filter?
-- Best regards, Anton Kiryushkin
--
S pozdravem Vilem Kebrt email: viker@viker.cz tel: +420 604 550 132
-- Best regards, Anton Kiryushkin
What show You birdc show ospf nei ? Does Your router even have adjacency connected ? Viker On 12/03/2015 04:28 PM, Anton Kiryushkin wrote:
Hello.
Yes, I tried it.
birdc show route export server1
showed me nothing. But 'show ospf state' showed me both ips with metric 0.
2015-12-03 9:55 GMT+03:00 viker <viker@viker.cz <mailto:viker@viker.cz>>:
Hello, concretely "birdc show route export server1" show what ? Another good hint could be "birdc show ospf state", where you can see ospf informations about whole infrastructure which ospf knows. Vilem
On 12/03/2015 01:50 AM, Anton Kiryushkin wrote:
Hello.
I trying to use bird for export ospf route for Cisco Nexus with next config:
router id 10.34.23.1;
filter export_OSPF { if net = 77.71.22.23/32 <http://77.71.22.23/32> <http://77.71.22.23/32> then { ospf_metric1 = 20; ospf_metric2 = 20; print "net accepted:", net; accept; } if net = 77.71.22.24/32 <http://77.71.22.24/32> <http://77.71.22.24/32> then {
ospf_metric1 = 10; ospf_metric2 = 10; print "net accepted:", net; accept; } reject; }
protocol ospf server1 { export filter export_OSPF; #debug all; rfc1583compat yes; tick 2; area 0.0.0.0 { stub no; interface "bond0" { dead 10; neighbors { 10.0.16.1; }; type pointopoint; authentication none; }; interface "lo*" { stub yes; cost 10; priority 200; }; interface "dummy0" { stub yes; cost 15; priority 100; }; }; }
But in birdc I didn't see any metrics. I have two server with same config and same addresses on interfaces lo and dummy0 with different priorities. Could you help me with export filter?
-- Best regards, Anton Kiryushkin
--
S pozdravem Vilem Kebrt email: viker@viker.cz <mailto:viker@viker.cz> tel: +420 604 550 132
-- Best regards, Anton Kiryushkin
-- S pozdravem Vilem Kebrt email: viker@viker.cz tel: +420 604 550 132
Hello. Yes, sure. On Cisco nexus I see both servers. On each of servers I see router and another server. But I don't see metric. Why? ( 2015-12-03 18:51 GMT+03:00 viker <viker@viker.cz>:
What show You birdc show ospf nei ? Does Your router even have adjacency connected ? Viker
On 12/03/2015 04:28 PM, Anton Kiryushkin wrote:
Hello.
Yes, I tried it.
birdc show route export server1
showed me nothing. But 'show ospf state' showed me both ips with metric 0.
2015-12-03 9:55 GMT+03:00 viker <viker@viker.cz <mailto:viker@viker.cz>>:
Hello, concretely "birdc show route export server1" show what ? Another good hint could be "birdc show ospf state", where you can see ospf informations about whole infrastructure which ospf knows. Vilem
On 12/03/2015 01:50 AM, Anton Kiryushkin wrote:
Hello.
I trying to use bird for export ospf route for Cisco Nexus with next config:
router id 10.34.23.1;
filter export_OSPF { if net = 77.71.22.23/32 <http://77.71.22.23/32> <http://77.71.22.23/32> then { ospf_metric1 = 20; ospf_metric2 = 20; print "net accepted:", net; accept; } if net = 77.71.22.24/32 <http://77.71.22.24/32> <http://77.71.22.24/32> then {
ospf_metric1 = 10; ospf_metric2 = 10; print "net accepted:", net; accept; } reject; }
protocol ospf server1 { export filter export_OSPF; #debug all; rfc1583compat yes; tick 2; area 0.0.0.0 { stub no; interface "bond0" { dead 10; neighbors { 10.0.16.1; }; type pointopoint; authentication none; }; interface "lo*" { stub yes; cost 10; priority 200; }; interface "dummy0" { stub yes; cost 15; priority 100; }; }; }
But in birdc I didn't see any metrics. I have two server with same config and same addresses on interfaces lo and dummy0 with different priorities. Could you help me with export filter?
-- Best regards, Anton Kiryushkin
--
S pozdravem Vilem Kebrt email: viker@viker.cz <mailto:viker@viker.cz> tel: +420 604 550 132
-- Best regards, Anton Kiryushkin
--
S pozdravem Vilem Kebrt email: viker@viker.cz tel: +420 604 550 132
-- Best regards, Anton Kiryushkin
On Thu, Dec 03, 2015 at 03:50:54AM +0300, Anton Kiryushkin wrote:
But in birdc I didn't see any metrics. I have two server with same config and same addresses on interfaces lo and dummy0 with different priorities. Could you help me with export filter?
Hi First, to export some route as an external route to OSPF, it must be created by some other protocol. Perhaps you have to add static or direct protocol to your config? If the prefix 77.71.22.23/32 is e.g. on dummy0, then it will not be exported through export filter, but propagated as internal route. The interface has to be enabled in order to propagate its prefixes. Second, does not make sense to set both ospf_metric1 and ospf_metric2 attributes, as external route may be either Type1 or Type2. Third, i would suggest to disable rfc1583compat option, it may mess with that. -- 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."
On Sat, Dec 05, 2015 at 04:40:06PM +0100, Ondrej Zajicek wrote:
On Thu, Dec 03, 2015 at 03:50:54AM +0300, Anton Kiryushkin wrote:
But in birdc I didn't see any metrics. I have two server with same config and same addresses on interfaces lo and dummy0 with different priorities. Could you help me with export filter?
Hi
First, to export some route as an external route to OSPF, it must be created by some other protocol. Perhaps you have to add static or direct protocol to your config? If the prefix 77.71.22.23/32 is e.g. on dummy0, then it will not be exported through export filter, but propagated as internal route. The interface has to be enabled in order to propagate its prefixes.
Anton Kiryushkin wrote: showed me nothing. But 'show ospf state' showed me both ips with metric 0.
Now i see that. These prefixes are on dummy0 and generated internally, therefore export filter does not apply. Because they are /32, metric specified for the dummy interface (100) also does not apply. You can use 'stubnet' option to explicitly add stub network with specified metric. Or you could use direct or static protocol and export filter to propagate it as an external route. In both cases, you don't configure dummy0 as an OSPF 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."
participants (3)
-
Anton Kiryushkin -
Ondrej Zajicek -
viker