cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1362
Views
3
Helpful
38
Replies

Nexus OSPF

hs08
Spotlight
Spotlight

Hello,

I have cisco ISR and Nexus 7707 with ospf enabled. Nexus use 40Gbps for reference bandwidth and ISR use 100Mbps.

From R1 perspective cost to reach 10.103.248.1 is 41, and i have though that 40 is cost from R1 to R2 (40 div 1), and 1 is cost from R2 to the host. 

My question is, why the cost is not 80 (R1-R2 is 40 and R2-host=40)? Since from R1 to R2 and R2 to the host same using 40Gbps for the bandwidth reference?

hs08_0-1723015329433.png

 

1 Accepted Solution

Accepted Solutions

Even if you change platform' if you use wrong refrence BW then issue will appear again

I will try share more detail later today 

MHM

View solution in original post

38 Replies 38

Pavel Tarakanov
Cisco Employee
Cisco Employee

Because R2 calculate cost to the network on his own (40) and send it to R1.

R1 know nothing about reference bandwidth of R2 and speed of link from R2 to 10.103.248.1.

 

Next, from R1 perspective, cost to reach R2 is 1 (1 Gpbs/1 Gbps (reference bandwidth)). So total cost from R1 to 10.103.248.1 is 41 (40 + 1).

hello,

can you explain ore details about :

"Because R2 calculate cost to the network on his own (40) and send it to R1."

Is that mean 40 is cost from R2 to the host?





Can you share "show ip route 10.103.248.1" from R2?

Here the result, i change the destination from 10.103.248.1 to 10.103.248.55 because i have typo previously

hs08_0-1723021184821.png

 

If I understand correctly, on R2 configured SVI VLAN 301 with subnet 10.103.248.0/24 (or some other mask).

 

Because speed of SVI in NX-OS is 1Gbps, then cost for this network will be 40 (ref BW 40G/1G = 40).

This cost will be passed to R1 and R1 will add own cost of the link to R2 (1).

You can play around with metric of SVI with "ip ospf cost" command.

Hello,

Correct, subnet 10.103.248.0/24 is SVI VLAN 301 on R2.

Noted if cost SVI is 40, but when i have different reference BW on R1 dan R2 why the cost is 1 and not use 40GB as reference BW? Is there any ospf term if 2 routers connected with different reference BW?

>when i have different reference BW on R1 dan R2 why the cost is 1 and not use 40GB as reference BW?

Because R2 sends only cost to the network from own perspective (40 - cost of SVI).

Then R1 accept this cost and add own cost of the link toward R2, based on configured reference bandwidth.

 

Assume same situation in opposite direction - SVI on R1.

Then R1 will inform R2 that cost to the network from R1's perspective - 1 (1G ref / 1G SVI).

Then R2 add cost of the link (40G ref/1G link) - 40. And total cost will be 41.

 

 

 

> Is there any ospf term if 2 routers connected with different reference BW?

Can you rephrase your question?

Hello @hs08 ,

the cost of 40 is reported inside the Router LSA originated by the Nexus node.

The IOS node adds the cost of the link between itself and the Nexus to that cost using its own point of view = outgoing cost to reach the shared subnet between the two nodes.

This is why the total cost is 41.

In production networks it would be good practice to have the same reference bandwidth on all nodes.

If you use 40 Gbps as reference bandwidth also on the IOS node the total cost will become 80

Hope to help

Giuseppe

 

M02@rt37
VIP
VIP

Hello @hs08 

Do you check LSAs on R2 regarding the prefix10.103.248.x ?

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Which LSA?

@hs08 

On R2 do show ip ospf database.

Check which type of LSA references this prefix.

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

The prefix inside R2 (Link ID 10.103.103.1)

hs08_1-1723021370654.png

 

Hello @hs08 

use

show ip ospf router <Nexus-OSPF-RID> to see the detalis you should be able to see a cost of 40 for the subnet of interest

Hope to help

Giuseppe

 

This is what you mean?

hs08_0-1723022167366.png

 

Review Cisco Networking for a $25 gift card