04-15-2009 11:20 AM
I thought the OSPF external type 1 should be preferred than type 2 but the router is choosing the type 2 even with higher metric:
>>> OSPF database right after I clear the neighbor:
admin@Tokyo> show ospf database external extensive
OSPF AS SCOPE link state database
Type ID Adv Rtr Seq Age Opt Cksum Len
Extern 0.0.0.0 10.14.10.1 0x80000001 9 0x22 0x709e 36
mask 0.0.0.0
Topology default (ID 0)
Type: 1, Metric: 1, Fwd addr: 0.0.0.0, Tag: 0.0.0.0
Aging timer 00:59:50
Installed 00:00:08 ago, expires in 00:59:51, sent 00:00:03 ago
Last changed 00:00:08 ago, Change count: 1
Extern 0.0.0.0 10.14.14.1 0x80000007 3 0x22 0xad73 36
mask 0.0.0.0
Topology default (ID 0)
Type: 2, Metric: 100, Fwd addr: 0.0.0.0, Tag: 0.0.0.0
Aging timer 00:59:56
Installed 00:00:02 ago, expires in 00:59:57, sent 00:00:02 ago
Last changed 00:00:02 ago, Change count: 11
admin@Tokyo>
>>> After few seconds:
admin@Tokyo> show ospf database external extensive
OSPF AS SCOPE link state database
Type ID Adv Rtr Seq Age Opt Cksum Len
Extern 0.0.0.0 10.14.14.1 0x80000007 15 0x22 0xad73 36
mask 0.0.0.0
Topology default (ID 0)
Type: 2, Metric: 100, Fwd addr: 0.0.0.0, Tag: 0.0.0.0
Aging timer 00:59:44
Installed 00:00:14 ago, expires in 00:59:45, sent 00:00:14 ago
Last changed 00:00:14 ago, Change count: 11
admin@Tokyo>
Solved! Go to Solution.
04-15-2009 12:36 PM
Hi,
I'm neither very familiar with OSPF nor with the JUNOS implementation, but I think that choosing a route and what's contained in the database is not more connected as to "it can only be choosen what's in the database". In your second output the T1 route isn't shown anymore, therefore I assume it has been removed. Can you please enable traceoptions for database and lsa's or packets to verify that there is or isn't an external reason for this?
Best Regards
Ulf
04-15-2009 01:40 PM
04-16-2009 06:30 AM
Thanks for the reply... You are right on the spot...
The Tokyo's neighbors are learning the 0/0 from BGP then redistributed into OSPF, the neighbor which has type 1 configured has activated 0/0 in OSPF table so is not using the BGP 0/0 and not sending to Tokyo...
Now, Tokyo has both type 1 and type 2 0/0 in OSPF database and using the type 1 after I added the OSPF import filter for its neighbors.
Thanks for the help!
07-01-2009 12:39 AM
07-01-2009 12:54 AM
i have created filter import OSPF :
term 1 {
from {
external {
type 1;
}
}
then reject;
}
and it's working now
Thank you so much for your advisor