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>>:email: 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
tel: +420 604 550 132
--
Best regards,
Anton Kiryushkin