Hi all,
I am having issues with OSPF on MT.
Simple topology I have R1 which has two GRE tunnels, one to R2 and one to R3.
R2 and R3 are also connected via an MPLS network which is our main network, there is another router between R2 and R3, let’s call it R4.
R1
/
R2 R3
¦ ¦
R4 ¦
¦____¦
R2 - R3 - R4 are in Area 0
R2 - R3 - R1 are in Area 61
R2 is redistributing from a different protocol. R3 is the only MT - the others are Cisco.
My issue is that when I bring the OSPF relationship between R1 and R3, R3 selects the path through R1 the tunnel over the internet. I was intially caught out by the ospf interface cost being 10 on the tunnel interface as all others, so it made sense; but I have corrected that and still R3 preferres the path through R1.
Here is the output when I bring the OSPF relationship up between R1 and R3 (the ospf relation between R3 and R4 is always up):
ip route print detail where dst-address=10.95.2.0/24
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit
0 ADo dst-address=10.95.2.0/24 gateway=192.168.103.26 gateway-status=192.168.103.26 reachable via Tunnel22 distance=110 scope=20 target-scope=10
ospf-metric=131090 ospf-type=external-type-1
here is the ouput when I bring it down:
[omniaccess@rtr-lon-02] /routing ospf lsa> /ip route print detail where dst-address=10.95.2.0/24
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit
0 ADo dst-address=10.95.2.0/24 gateway=172.18.0.2,172.18.0.1 gateway-status=172.18.0.2 reachable via MPLS,172.18.0.1 reachable via MPLS distance=110
scope=20 target-scope=10 ospf-metric=40 ospf-type=external-type-1
10.95.2.0 is a prefix redistributed at R2
Please not the metric 131090 when the ospf through the tunnel is up and 40 when it is down, in both cases the prefix comes in as external-type-1, so I expect the path selection to be done on the metric.
Can anyone tell me what I am doing wrong?
Thanks