cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3563
Views
6
Helpful
49
Replies

OSPF - metric is even smaller when the device is more far away

jacky.cheuk
Level 1
Level 1

Hi everyone, 

The topology like below,

The switches and routers in the diagram all have OSPF connection.

R1,R2,R3,SW1 are in area0.

R4,R5,SW2 are in area4 

I got two WAN, WAN-A & WAN-B. When reaching destination 172.24.2.0/24, primary is using WAN-A. But when we used prefix-list to stop propagating 172.24.2.0/24 on R1,  reaching destination 172.24.2.0/24 will go through WAN-B.

   IMG_4153.JPEG

when using WAN-B, on R3, the metric/cost reaching 172.24.2.0/24 is 1001. 

#sh ip ro 172.24.2.0
Routing entry for 172.24.2.0/24
Known via "ospf 100", distance 110, metric 1001, type intra area
Last update from 192.168.39.182 on Tunnel1620, 1d03h ago
Routing Descriptor Blocks:
* 192.168.39.182, from 10.42.249.23, 1d03h ago, via Tunnel1620
Route metric is 1001, traffic share count is 1

However, on SW1, the metric/cost reaching 172.24.2.0/24 is 358. 

sh ip ro 172.24.2.0
Routing entry for 172.24.2.0/24
Known via "ospf 64", distance 110, metric 358, type inter area
Last update from 10.42.252.145 on TenGigabitEthernet1/2/1, 03:49:31 ago
Routing Descriptor Blocks:
* 10.42.252.145, from 192.168.13.4, 03:49:31 ago, via TenGigabitEthernet1/2/1
Route metric is 358, traffic share count is 1

How come the metric is even smaller when the device is more far away from 172.24.2.0/24? Isn't it the metric/cost of OSPF accumulate? 

================================================

Also, i got another question, when using "show ip ospf database summary 172.24.2.0" on R3, the Advertising Router is R2. Isn't it R3 a ABR already? it has one interface in area0 and one interface in area4. How come the Advertising Router is R2?

LS age: 1303
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(Network)
Link State ID: 172.24.2.0 (summary Network Number)
Advertising Router: 192.168.12.4    ----->R2
LS Seq Number: 80000086
Checksum: 0xEB8E
Length: 28
Network Mask: /24
MTID: 0 Metric: 252

=========================================

Please help, i tried to find the answer but has no clue so far. 

1 Accepted Solution

Accepted Solutions

Hello @jacky.cheuk ,

Thank you for the outputs. We are getting somewhere!

sw01 is not directly connected to area 4 where the 172.24.2.0/24 network lives, so it computes the best path to it through an ABR in area 0 that provides the least total cost to that network - which consists of the cost to reach the ABR inside area 0, plus the distance of that ABR to reach 172.24.2.0/24 which is advertised in the LSA3 from the ABR. Looking at sw01, it prefers the path throught the ABR 192.168.13.4, and the next hop toward that ABR goes through r3:

sw01# show ip route 172.24.2.0 255.255.255.0
Routing entry for 172.24.2.0/24
Known via "ospf 64", distance 110, metric 358, type inter area
Last update from 10.42.252.145 on TenGigabitEthernet1/2/1, 00:01:57 ago
Routing Descriptor Blocks:
* 10.42.252.145, from 192.168.13.4, 00:01:57 ago, via TenGigabitEthernet1/2/1
Route metric is 358, traffic share count is 1

sw01# show ip ospf border-routers
i 192.168.13.4 [106] via 10.42.252.145, TenGigabitEthernet1/2/1, ABR/ASBR, Area 0, SPF 7357

sw01# show ip ospf database summary 172.24.2.0
Routing Bit Set on this LSA in topology Base with MTID 0
LS age: 118
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(Network)
Link State ID: 172.24.2.0 (summary Network Number)
Advertising Router: 192.168.13.4
LS Seq Number: 80000001
Checksum: 0xEF0F
Length: 28
Network Mask: /24
MTID: 0 Metric: 252

Note that the distance from sw01 to the ABR 192.168.13.4 is 106, and the ABR's distance to the destination network is 252, and 106+252=358 - exactly the sw01's total cost.

So in order to reach 172.24.2.0/24, sw01 picks r3 as the next hop, so let's see what's happening on r3:

rt03# show ip route 172.24.2.0 255.255.255.0
Routing entry for 172.24.2.0/24
Known via "ospf 100", distance 110, metric 1001, type intra area
Last update from 192.168.39.182 on Tunnel1620, 4w5d ago
Routing Descriptor Blocks:
* 192.168.39.182, from 10.42.249.23, 4w5d ago, via Tunnel1620
Route metric is 1001, traffic share count is 1

rt03# show ip ospf border-routers
...
i 192.168.13.4 [105] via 192.168.2.2, Tunnel1601, ABR/ASBR, Area 0, SPF 5232
...

rt03# show ip ospf database summary 172.24.2.0

OSPF Router with ID (10.42.249.80) (Process ID 100)

Summary Net Link States (Area 0)

LS age: 235
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(Network)
Link State ID: 172.24.2.0 (summary Network Number)
Advertising Router: 10.42.249.80
LS Seq Number: 800005A4
Checksum: 0x1250
Length: 28
Network Mask: /24
MTID: 0 Metric: 1001

LS age: 578
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(Network)
Link State ID: 172.24.2.0 (summary Network Number)
Advertising Router: 192.168.13.4
LS Seq Number: 80000001
Checksum: 0xEF0F
Length: 28
Network Mask: /24
MTID: 0 Metric: 252
...

r3 is well aware of the existence of ABR 192.168.13.4 and its LSA3. But the gotcha is that r3 is also an ABR with area 4 whicih is the home area for 172.24.2.0/24, and as you know, in OSPF, intra-area paths are always preferred to inter-area paths, no matter the cost. Therefore, even if it was a cheaper path for r3 to use the path through 192.168.13.4, it must not - the OSPF rules do not allow that. It has to ignore the cheaper inter-area path and stick with the intra-area path which happens to be more costly.

You may ask how is it possible, then, that sw01 does not derive its cost from the real cost of r3.

The answer lies in the nature of link-state routing. sw01, not being a member of area 4, does not see its topology. sw01 can only see the topology of those areas it is a member of. About networks in other areas, all it knows is what ABRs advertise them into area 0, how far the ABRs are from those networks, and how far sw01 is from those ABRs.

So when sw01 runs the shortest-path-first algorithm on this knowledge, obviously, it sees that the ABR 192.168.13.4 provides the least combined cost to 172.24.2.0/24. The fact that r3 also advertises 172.24.2.0/24 in its own LSA3 does not matter much to sw01 - the combined cost is too high for sw01 to be interested. The best path is through the ABR 192.168.13.4, and so sw01 decides to use that path.

But the path always starts with the next hop, and the next from from sw01 toward the ABR 192.168.13.4 still happens to be r3. And now notice what happens: Because r3 is a member of area 4 where 172.24.2.0/24 is located, r3 does not route based on area 0's knowledge which is what sw01 did - it routes based on the area 4 knowledge, and that's where the paths start diverging, along with their cost.

At the bottom of this disparity is the fact that because of OSPF rules (prefer intra-area paths to inter-area paths), sw01 and r3 used different link-state databases to compute the best path. sw01 used the topology from area 0, r3 used the topology from area 4.

This phenomenon in OSPF may occur at any time where an inter-area path through an ABR traverses through another transit ABR, because that transit ABR will be forced by OSPF rules to

- prefer intra-area paths if the destination network lives in another area the transit ABR is connected to
- only use area 0 for inter-area traffic if the destination network lives in yet another area that the transit ABR is not connected to

I know this is quite mind-boggling and will require some time to digest. If this explanation does not quite cut it, we can pull additional outputs from your routers to demonstrate how exactly this happened.

Best regards,
Peter

 

 

View solution in original post

49 Replies 49

Share config you use in both R2 and R3

==========R2 config=============

interface Tunnel3
description 192.168.14.26 --- R2 to R1 --- T3 --- 910034595
bandwidth 40000
ip address 192.168.14.26 255.255.255.252
ip ospf network point-to-point
ip ospf dead-interval 15
ip ospf hello-interval 5
ip ospf cost 60
load-interval 30
tunnel source GigabitEthernet0/0/0.99
tunnel destination 192.168.34.31
service-policy output CORE_QOS_50M
!
interface Tunnel56
description 192.168.33.25 --- R2 to R4 --- T56--- 910047873
bandwidth 20000
ip address 192.168.33.25 255.255.255.252
ip ospf network point-to-point
ip ospf dead-interval 15
ip ospf hello-interval 5
ip ospf cost 250
load-interval 30
keepalive 120 2
tunnel source GigabitEthernet0/0/0.100
tunnel destination 192.168.10.56
tunnel path-mtu-discovery
service-policy output BO_QOS_20M
!

!
interface Vlan1
no ip address
shutdown
!
router ospf 1
queue-depth update 1024
area 0 filter-list prefix area0_out out
area 1 range 192.168.15.0 255.255.255.0
area 1 range 192.168.16.0 255.255.255.0
area 1 range 192.168.17.0 255.255.255.0
area 1 range 192.168.18.0 255.255.255.0
area 1 range 192.168.19.0 255.255.255.0
area 1 filter-list prefix area1_out out
area 2 range 192.168.20.0 255.255.255.0
area 2 range 192.168.21.0 255.255.255.0
area 2 range 192.168.22.0 255.255.255.0
area 2 range 192.168.23.0 255.255.255.0
area 2 filter-list prefix area2_out out
area 3 range 192.168.24.0 255.255.255.0
area 3 range 192.168.25.0 255.255.255.0
area 3 range 192.168.26.0 255.255.255.0
area 3 range 192.168.27.0 255.255.255.0
area 3 range 192.168.28.0 255.255.255.0
area 3 filter-list prefix area3_out out
area 4 range 192.168.29.0 255.255.255.0
area 4 range 192.168.30.0 255.255.255.0
area 4 range 192.168.31.0 255.255.255.0
area 4 range 192.168.32.0 255.255.255.0
area 4 range 192.168.33.0 255.255.255.0
area 4 filter-list prefix area4_out out
passive-interface GigabitEthernet0/0/0.99
passive-interface GigabitEthernet0/0/0.100
network 10.42.37.96 0.0.0.31 area 0
network 192.168.12.4 0.0.0.0 area 0
network 192.168.14.0 0.0.0.255 area 0
network 192.168.15.0 0.0.0.255 area 1
network 192.168.16.0 0.0.0.255 area 1
network 192.168.17.0 0.0.0.255 area 1
network 192.168.18.0 0.0.0.255 area 1
network 192.168.19.0 0.0.0.255 area 1
network 192.168.20.0 0.0.0.255 area 2
network 192.168.21.0 0.0.0.255 area 2
network 192.168.22.0 0.0.0.255 area 2
network 192.168.23.0 0.0.0.255 area 2
network 192.168.24.0 0.0.0.255 area 3
network 192.168.25.0 0.0.0.255 area 3
network 192.168.26.0 0.0.0.255 area 3
network 192.168.27.0 0.0.0.255 area 3
network 192.168.28.0 0.0.0.255 area 3
network 192.168.29.0 0.0.0.255 area 4
network 192.168.30.0 0.0.0.255 area 4
network 192.168.31.0 0.0.0.255 area 4
network 192.168.32.0 0.0.0.255 area 4
network 192.168.33.0 0.0.0.255 area 4
network 192.168.35.8 0.0.0.3 area 0
network 192.168.39.0 0.0.0.255 area 4
!
!

!
!
ip prefix-list area0_out seq 10 deny 192.168.0.0/16 le 32
ip prefix-list area0_out seq 20 permit 10.0.0.0/8 le 32
ip prefix-list area0_out seq 30 permit 0.0.0.0/0
ip prefix-list area0_out seq 40 permit 172.30.0.0/16 le 32
!
ip prefix-list area1_out seq 10 deny 192.168.0.0/16 le 32
ip prefix-list area1_out seq 20 permit 10.0.0.0/8 le 32
ip prefix-list area1_out seq 30 permit 0.0.0.0/0
ip prefix-list area1_out seq 40 permit 172.19.0.0/16 le 32
ip prefix-list area1_out seq 50 permit 172.27.0.0/16 le 32
ip prefix-list area1_out seq 60 permit 172.25.0.0/16 le 32
ip prefix-list area1_out seq 70 permit 172.30.0.0/16 le 32
ip prefix-list area1_out seq 80 permit 172.26.0.0/16 le 32
ip prefix-list area1_out seq 90 permit 172.24.0.0/16 le 32
!
ip prefix-list area2_out seq 10 deny 192.168.0.0/16 le 32
ip prefix-list area2_out seq 20 permit 10.0.0.0/8 le 32
ip prefix-list area2_out seq 30 permit 0.0.0.0/0
ip prefix-list area2_out seq 40 permit 172.19.0.0/16 le 32
ip prefix-list area2_out seq 50 permit 172.27.0.0/16 le 32
ip prefix-list area2_out seq 60 permit 172.25.0.0/16 le 32
ip prefix-list area2_out seq 70 permit 172.30.0.0/16 le 32
ip prefix-list area2_out seq 80 permit 172.26.0.0/16 le 32
ip prefix-list area2_out seq 90 permit 172.24.0.0/16 le 32
!
ip prefix-list area3_out seq 10 deny 192.168.0.0/16 le 32
ip prefix-list area3_out seq 20 permit 10.0.0.0/8 le 32
ip prefix-list area3_out seq 30 permit 0.0.0.0/0
ip prefix-list area3_out seq 40 permit 172.19.0.0/16 le 32
ip prefix-list area3_out seq 50 permit 172.27.0.0/16 le 32
ip prefix-list area3_out seq 60 permit 172.25.0.0/16 le 32
ip prefix-list area3_out seq 70 permit 172.30.0.0/16 le 32
ip prefix-list area3_out seq 80 permit 172.26.0.0/16 le 32
ip prefix-list area3_out seq 90 permit 172.24.0.0/16 le 32
!
ip prefix-list area4_out seq 10 deny 192.168.0.0/16 le 32
ip prefix-list area4_out seq 20 permit 10.0.0.0/8 le 32
ip prefix-list area4_out seq 30 permit 0.0.0.0/0
ip prefix-list area4_out seq 40 permit 172.19.0.0/16 le 32
ip prefix-list area4_out seq 50 permit 172.27.0.0/16 le 32
ip prefix-list area4_out seq 60 permit 172.25.0.0/16 le 32
ip prefix-list area4_out seq 70 permit 172.30.0.0/16 le 32
ip prefix-list area4_out seq 80 permit 172.26.0.0/16 le 32
ip prefix-list area4_out seq 90 permit 172.24.0.0/16 le 32

=========================================

=========R3 config========================

interface Tunnel1620
description Tunnel to R3-to-R5
bandwidth 10000
ip address 192.168.39.181 255.255.255.252
no ip redirects
ip mtu 1514
ip ospf cost 500
qos pre-classify
tunnel source GigabitEthernet0/0/0.1620
tunnel destination 192.168.3.107
tunnel protection ipsec profile HKP-ipsec-profile
!
!
router ospf 100
router-id 10.42.249.80
queue-depth update 1024
area 0 filter-list prefix area0_out out
area 1 filter-list prefix area1_out out
area 2 filter-list prefix area2_out out
area 3 filter-list prefix area3_out out
area 4 filter-list prefix area4_out out
passive-interface default
no passive-interface GigabitEthernet0/0/1
no passive-interface GigabitEthernet0/0/2
no passive-interface GigabitEthernet0/0/3
no passive-interface Tunnel1601
no passive-interface Tunnel1602
no passive-interface Tunnel1603
no passive-interface Tunnel1611
no passive-interface Tunnel1612
no passive-interface Tunnel1613
no passive-interface Tunnel1614
no passive-interface Tunnel1615
no passive-interface Tunnel1616
no passive-interface Tunnel1617
no passive-interface Tunnel1618
no passive-interface Tunnel1619
no passive-interface Tunnel1620
network 10.42.252.144 0.0.0.3 area 0
network 10.42.252.148 0.0.0.3 area 0
network 10.42.0.0 0.0.255.255 area 0
network 192.168.2.0 0.0.0.31 area 0
network 192.168.39.60 0.0.0.3 area 4
network 192.168.39.92 0.0.0.3 area 3
network 192.168.39.96 0.0.0.3 area 2
network 192.168.39.100 0.0.0.3 area 2
network 192.168.39.104 0.0.0.3 area 2
network 192.168.39.108 0.0.0.3 area 4
network 192.168.39.112 0.0.0.3 area 1
network 192.168.39.116 0.0.0.3 area 1
network 192.168.39.120 0.0.0.3 area 4
network 192.168.39.180 0.0.0.3 area 4

!
!
ip prefix-list area0_out seq 10 deny 192.168.0.0/16 le 32
ip prefix-list area0_out seq 15 deny 172.24.2.0/24 le 32
ip prefix-list area0_out seq 20 permit 10.0.0.0/8 le 32
ip prefix-list area0_out seq 30 permit 0.0.0.0/0
!
ip prefix-list area1_out seq 10 deny 192.168.0.0/16 le 32
ip prefix-list area1_out seq 15 deny 172.24.2.0/24 le 32
ip prefix-list area1_out seq 20 permit 10.0.0.0/8 le 32
ip prefix-list area1_out seq 30 permit 0.0.0.0/0
ip prefix-list area1_out seq 40 permit 172.19.0.0/16 le 32
ip prefix-list area1_out seq 50 permit 172.27.0.0/16 le 32
!
ip prefix-list area2_out seq 10 deny 192.168.0.0/16 le 32
ip prefix-list area2_out seq 15 deny 172.24.2.0/24 le 32
ip prefix-list area2_out seq 20 permit 10.0.0.0/8 le 32
ip prefix-list area2_out seq 30 permit 0.0.0.0/0
ip prefix-list area2_out seq 40 permit 172.19.0.0/16 le 32
ip prefix-list area2_out seq 50 permit 172.27.0.0/16 le 32
!
ip prefix-list area3_out seq 10 deny 192.168.0.0/16 le 32
ip prefix-list area3_out seq 15 deny 172.24.2.0/24 le 32
ip prefix-list area3_out seq 20 permit 10.0.0.0/8 le 32
ip prefix-list area3_out seq 30 permit 0.0.0.0/0
ip prefix-list area3_out seq 40 permit 172.19.0.0/16 le 32
ip prefix-list area3_out seq 50 permit 172.27.0.0/16 le 32
!
ip prefix-list area4_out seq 10 deny 192.168.0.0/16 le 32
ip prefix-list area4_out seq 15 deny 172.24.2.0/24 le 32
ip prefix-list area4_out seq 20 permit 10.0.0.0/8 le 32
ip prefix-list area4_out seq 30 permit 0.0.0.0/0
ip prefix-list area4_out seq 40 permit 172.19.0.0/16 le 32
ip prefix-list area4_out seq 50 permit 172.27.0.0/16 le 32

I check the config, there is one ospf process that OK 
there are multi areas in OSPF, and tunnel 
I dont total understand the config you share but let explain some point effect the OSPF cost calculation
1- the OSPF calculate the cost for tunnel (OVERLAY) not underlay cost 
2- OSPF for prefer the path intra-area than inter-area even if intra-area have high cost 

so I think you hit point two, the area is different the OSPF prefer intra area. 

But the route learnt on SW1 is inter area route. 

sh ip ro 172.24.2.0
Routing entry for 172.24.2.0/24
Known via "ospf 64", distance 110, metric 358, type inter area
Last update from 10.42.252.145 on TenGigabitEthernet1/2/1, 03:49:31 ago
Routing Descriptor Blocks:
* 10.42.252.145, from 192.168.13.4, 03:49:31 ago, via TenGigabitEthernet1/2/1
Route metric is 358, traffic share count is 1

Can I see

show ip ospf database summary 

I just found out the metric of the route 172.24.2.0 on SW01 matches the metric of Area 99(on SW01) from sh ip database summary. 

But the Area99 is set to be nssa, why using the metric from Area99? 

=======Sh ip ro 172.24.0.0 & sh ip database summary 172.24.2.0  on SW1 when R1 is propagating 172.24.2.0 (WAN-A)====

Routing entry for 172.24.0.0/24, 4 known subnets
O IA 172.24.2.0 [110/352] via 10.42.252.9, 6d00h, TenGigabitEthernet2/1/8               ==>(10.42.252.145 = R1) 
                         [110/352] via 10.42.252.5, 6d00h, TenGigabitEthernet1/1/8

#sh ip ospf database sum 172.24.2.0

OSPF Router with ID (10.42.249.41) (Process ID 64)

Summary Net Link States (Area 0)

Routing Bit Set on this LSA in topology Base with MTID 0
LS age: 74
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(Network)
Link State ID: 172.24.2.0 (summary Network Number)
Advertising Router: 192.168.12.3             ====> R1
LS Seq Number: 80000103
Checksum: 0xF508
Length: 28
Network Mask: /24
MTID: 0 Metric: 252

LS age: 1865
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(Network)
Link State ID: 172.24.2.0 (summary Network Number)
Advertising Router: 192.168.12.4       ======> R2
LS Seq Number: 800001D6
Checksum: 0x48E0
Length: 28
Network Mask: /24
MTID: 0 Metric: 252

 

Summary Net Link States (Area 99)

LS age: 1015
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(Network)
Link State ID: 172.24.2.0 (summary Network Number)
Advertising Router: 10.42.249.41         =====> SW01
LS Seq Number: 800001DE
Checksum: 0xC810
Length: 28
Network Mask: /24
MTID: 0 Metric: 352

=======================================================================

=======Sh ip ro 172.24.0.0 & sh ip database summary 172.24.2.0  on SW1 when R3 is propagating 172.24.2.0 (WAN-B)====

Routing entry for 172.24.0.0/24, 4 known subnets
O IA 172.24.2.0  [110/358] via 10.42.252.145, 00:00:04, TenGigabitEthernet1/2/1    ==>(10.42.252.145 = R3) 


#sh ip ospf database sum 172.24.2.0

OSPF Router with ID (10.42.249.41) (Process ID 64)

Summary Net Link States (Area 0)

LS age: 181
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(Network)
Link State ID: 172.24.2.0 (summary Network Number)
Advertising Router: 192.168.12.4     =====> R2
LS Seq Number: 800001D7
Checksum: 0x46E1
Length: 28
Network Mask: /24
MTID: 0 Metric: 252


Summary Net Link States (Area 99)

LS age: 27
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(Network)
Link State ID: 172.24.2.0 (summary Network Number)
Advertising Router: 10.42.249.41               ===> SW01
LS Seq Number: 800001DF
Checksum: 0x3CE
Length: 28
Network Mask: /24
MTID: 0 Metric: 358

====================================================================================

===========================OSPF config on SW01======================================

router ospf 64
area 99 nssa no-redistribution
redistribute static metric-type 1 subnets
passive-interface default
no passive-interface TenGigabitEthernet1/1/6
no passive-interface TenGigabitEthernet1/1/8
no passive-interface TenGigabitEthernet1/1/11
no passive-interface TenGigabitEthernet1/2/1
no passive-interface TenGigabitEthernet1/2/3
no passive-interface TenGigabitEthernet2/1/6
no passive-interface TenGigabitEthernet2/1/8
no passive-interface TenGigabitEthernet2/1/11
no passive-interface TenGigabitEthernet2/2/3
no passive-interface Port-channel60
no passive-interface Vlan1
no passive-interface Vlan4
no passive-interface Vlan8
no passive-interface Vlan9
no passive-interface Vlan12
no passive-interface Vlan15
no passive-interface Vlan20
no passive-interface Vlan22
no passive-interface Vlan23
no passive-interface Vlan299
network 10.42.252.4 0.0.0.3 area 0
network 10.42.252.20 0.0.0.3 area 0
network 10.42.252.128 0.0.0.3 area 99
network 10.42.0.0 0.0.255.255 area 0
network 172.18.91.0 0.0.0.255 area 0
network 192.168.247.0 0.0.0.255 area 0

========================================================

IMG_4153.JPEG

I start write note to your topology, 
R3-R5 tunnel is in area 4, 
172.24.x.x/24 redistribute to area 4 OSPF or config as network command in R5 ?

172.24.2.0/24 is configured as network command on SW2. 

#sh run | sec ospf
ip ospf dead-interval 15
ip ospf hello-interval 5
ip ospf dead-interval 15
ip ospf hello-interval 5
ip ospf cost 500
ip ospf dead-interval 15
ip ospf hello-interval 5
ip ospf dead-interval 15
ip ospf hello-interval 5
ip ospf cost 500
ip ospf priority 50
router ospf 64
redistribute static metric-type 1 subnets
passive-interface Vlan1
passive-interface Vlan12
passive-interface Vlan80
passive-interface Vlan128
network 10.42.0.0 0.0.255.255 area 4
network 172.24.2.0 0.0.0.255 area 4
network 172.25.52.0 0.0.1.255 area 4

==============on R5========================

#sh ip ro 172.24.0.0
Routing entry for 172.24.0.0/24, 4 known subnets
O 172.24.2.0 [110/501] via 10.42.252.213, 7w0d, Vlan203                -----> 10.42.252.213 ==>SW2 
                     [110/501] via 10.42.252.209, 7w0d, Vlan202                 -----> 10.42.252.209 ==> SW2

first sorry I make you wait, 
but there are many issue I deal with and I study advance ISE now so you know 
this is my last analysis of issue 
it explain the R3 prefer path and SW1 prefer path and where you need to add prefix list
hope this help you
thanks 
MHM
IMG_4153 (1).JPEG

Thanks so much for your help so far. 

But what I don't quite understand is why SW1 has the route with metric from area99 (also on SW1) ?

Area 99 should not participate into this route 172.24.2.0 propagation?    

===================using WAN-A==========================

Routing entry for 172.24.0.0/24, 4 known subnets
O IA 172.24.2.0 [110/352] via 10.42.252.9, 6d00h, TenGigabitEthernet2/1/8               ==>(10.42.252.145 = R1) 
                         [110/352] via 10.42.252.5, 6d00h, TenGigabitEthernet1/1/8

#sh ip ospf database sum 172.24.2.0

OSPF Router with ID (10.42.249.41) (Process ID 64)

Summary Net Link States (Area 0)

Routing Bit Set on this LSA in topology Base with MTID 0
LS age: 74
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(Network)
Link State ID: 172.24.2.0 (summary Network Number)
Advertising Router: 192.168.12.3             ====> R1
LS Seq Number: 80000103
Checksum: 0xF508
Length: 28
Network Mask: /24
MTID: 0 Metric: 252

LS age: 1865
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(Network)
Link State ID: 172.24.2.0 (summary Network Number)
Advertising Router: 192.168.12.4       ======> R2
LS Seq Number: 800001D6
Checksum: 0x48E0
Length: 28
Network Mask: /24
MTID: 0 Metric: 252

 

Summary Net Link States (Area 99)

LS age: 1015
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(Network)
Link State ID: 172.24.2.0 (summary Network Number)
Advertising Router: 10.42.249.41         =====> SW01
LS Seq Number: 800001DE
Checksum: 0xC810
Length: 28
Network Mask: /24
MTID: 0 Metric: 352

================when using WAN-B============================

Routing entry for 172.24.0.0/24, 4 known subnets
O IA 172.24.2.0  [110/358] via 10.42.252.145, 00:00:04, TenGigabitEthernet1/2/1    ==>(10.42.252.145 = R3) 


#sh ip ospf database sum 172.24.2.0

OSPF Router with ID (10.42.249.41) (Process ID 64)

Summary Net Link States (Area 0)

LS age: 181
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(Network)
Link State ID: 172.24.2.0 (summary Network Number)
Advertising Router: 192.168.12.4     =====> R2
LS Seq Number: 800001D7
Checksum: 0x46E1
Length: 28
Network Mask: /24
MTID: 0 Metric: 252


Summary Net Link States (Area 99)

LS age: 27
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(Network)
Link State ID: 172.24.2.0 (summary Network Number)
Advertising Router: 10.42.249.41               ===> SW01
LS Seq Number: 800001DF
Checksum: 0x3CE
Length: 28
Network Mask: /24
MTID: 0 Metric: 358

sorry can you point where is Area99 connect ?

Area 99 is one of the area connected to SW1

===========================OSPF config on SW1======================================

router ospf 64
area 99 nssa no-redistribution
redistribute static metric-type 1 subnets
passive-interface default
no passive-interface TenGigabitEthernet1/1/6
no passive-interface TenGigabitEthernet1/1/8
no passive-interface TenGigabitEthernet1/1/11
no passive-interface TenGigabitEthernet1/2/1
no passive-interface TenGigabitEthernet1/2/3
no passive-interface TenGigabitEthernet2/1/6
no passive-interface TenGigabitEthernet2/1/8
no passive-interface TenGigabitEthernet2/1/11
no passive-interface TenGigabitEthernet2/2/3
no passive-interface Port-channel60
no passive-interface Vlan1
no passive-interface Vlan4
no passive-interface Vlan8
no passive-interface Vlan9
no passive-interface Vlan12
no passive-interface Vlan15
no passive-interface Vlan20
no passive-interface Vlan22
no passive-interface Vlan23
no passive-interface Vlan299
network 10.42.252.4 0.0.0.3 area 0
network 10.42.252.20 0.0.0.3 area 0
network 10.42.252.128 0.0.0.3 area 99
network 10.42.0.0 0.0.255.255 area 0
network 172.18.91.0 0.0.0.255 area 0
network 192.168.247.0 0.0.0.255 area 0

========================================================

the only way make SW1 know prefix from area99 is that area99 is also connect to R1, am I right ?

Review Cisco Networking for a $25 gift card