DC Journey: Day 2 — Apply Routing protocol, OSPF
Hey, Folks! Because OSPF was extensively explored during CCIE Enterprise, there weren't new things to get while checking Applying Data…
Wiki topics:
GEN · Genomics & Sequencing
DC Journey: Day 2 DCCOR — Apply Routing protocol, OSPF
Hey, Folks! Because OSPF was extensively explored during CCIE Enterprise, there weren't new things to get while checking Applying Data Center Routing Protocols, section in INE DCCOR.
So, if you're interested in OSPF check this out:
To exploring OSPFv2 and OSPFv3 in NX-OS platform, I did proposal lab which Brian McGahan has done.
Task:
- Use Totally NSSA and check Database
- Use redistribution into OSPFv2

# N7K1
feature ospf
feature ospfv3
interface Ethernet1/3
medium p2p
ip address 10.51.71.71/24
ipv6 address 2001:10:51:71::71/64
ip router ospf 1 area 0.0.0.0
ipv6 router ospfv3 1 area 0.0.0.0
no shutdown
interface Ethernet1/4
medium p2p
ip address 10.52.71.71/24
ip router ospf 1 area 0.0.0.1
no shutdown
interface loopback0
ip address 10.0.0.71/32
ipv6 address 2001::71/128
ip router ospf 1 area 0.0.0.0
ipv6 router ospfv3 1 area 0.0.0.0
router ospf 1
area 0.0.0.1 nssa no-summary
log-adjacency-changes
router ospfv3 1
log-adjacency-changes
# N5k1
feature ospf
feature ospfv3
interface Ethernet1/5
medium p2p
ip address 10.51.71.51/24
ipv6 address 2001:10:51:71::51/64
ip router ospf 1 area 0.0.0.0
ospfv3 network point-to-point
ipv6 router ospfv3 1 area 0.0.0.0
no shutdown
interface loopback0
ip address 10.0.0.51/32
ipv6 address 2001::51/128
ip router ospf 1 area 0.0.0.0
ipv6 router ospfv3 1 area 0.0.0.0
router ospf 1
log-adjacency-changes
router ospfv3 1
log-adjacency-changes
# N5K2
feature ospf
ip route 72.72.72.72/32 Null0 name TESTE-NULL
ip prefix-list N7k1-lo0 seq 5 permit 72.72.72.72/32
route-map RM-STATIC-2-OSPFv4 permit 10
match ip address prefix-list N7k1-lo0
interface Ethernet1/5
medium p2p
ip address 10.52.71.52/24
ip router ospf 1 area 0.0.0.1
no shutdown
interface loopback0
ip address 10.0.0.52/32
ip router ospf 1 area 0.0.0.1
router ospf 1
area 0.0.0.1 nssa
redistribute static route-map RM-STATIC-2-OSPFv4
# N7K1 Type-7 to Type-5 translation
Type-7 AS External Link States (Area 0.0.0.1)
Link ID ADV Router Age Seq# Checksum Tag
72.72.72.72 10.0.0.52 1480 0x8000000b 0xd935 0
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
72.72.72.72 10.0.0.71 1479 0x8000000a 0xdf25 0
# N5K1
N5K1# show ip route ospf-1
IP Route Table for VRF "default"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>
10.0.0.52/32, ubest/mbest: 1/0
*via 10.51.71.71, Eth1/5, [110/81], 05:04:26, ospf-1, inter
10.0.0.71/32, ubest/mbest: 1/0
*via 10.51.71.71, Eth1/5, [110/41], 06:55:57, ospf-1, intra
10.52.71.0/24, ubest/mbest: 1/0
*via 10.51.71.71, Eth1/5, [110/80], 06:52:19, ospf-1, inter
72.72.72.72/32, ubest/mbest: 1/0
*via 10.51.71.71, Eth1/5, [110/20], 04:54:49, ospf-1, type-2
N5K1# show ip ospf database external 72.72.72.72 detail
OSPF Router with ID (10.0.0.51) (Process ID 1 VRF default)
Type-5 AS External Link States
LS age: 1268
Options: 0x2 (No TOS-capability, No DC)
LS Type: Type-5 AS-External
Link State ID: 72.72.72.72 (Network address)
Advertising Router: 10.0.0.71
LS Seq Number: 0x8000000a
Checksum: 0xdf25
Length: 36
Network Mask: /32
Metric Type: 2 (Larger than any link state path)
TOS: 0
Metric: 20
Forward Address: 10.0.0.52
External Route Tag: 0
N5K2# show ip ospf database
OSPF Router with ID (10.0.0.52) (Process ID 1 VRF default)
Router Link States (Area 0.0.0.1)
Link ID ADV Router Age Seq# Checksum Link Count
10.0.0.52 10.0.0.52 1451 0x80000010 0x8ef2 3
10.0.0.71 10.0.0.71 201 0x80000014 0x3c69 2
Summary Network Link States (Area 0.0.0.1)
Link ID ADV Router Age Seq# Checksum
0.0.0.0 10.0.0.71 101 0x8000000c 0xfefa
Type-7 AS External Link States (Area 0.0.0.1)
Link ID ADV Router Age Seq# Checksum Tag
72.72.72.72 10.0.0.52 1441 0x8000000b 0xd935 0
# N5K2
N5K2# show ip ospf | begin Area
Area (0.0.0.1)
Area has existed for 05:13:14
Interfaces in this area: 2 Active interfaces: 2
Passive interfaces: 0 Loopback interfaces: 1
This area is a NSSA area
No authentication available
SPF calculation has run 6 times
Last SPF ran for 0.001734s
Area ranges are
Number of LSAs: 4, checksum sum 0x2a38a
N5K2#
N5K2# show ip route ospf
IP Route Table for VRF "default"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>
0.0.0.0/0, ubest/mbest: 1/0
*via 10.52.71.71, Eth1/5, [110/41], 05:05:25, ospf-1, inter
N5K2# ping 10.0.0.51 source-interface lo0
PING 10.0.0.51 (10.0.0.51): 56 data bytes
64 bytes from 10.0.0.51: icmp_seq=0 ttl=253 time=17.045 ms
64 bytes from 10.0.0.51: icmp_seq=1 ttl=253 time=21.342 ms
64 bytes from 10.0.0.51: icmp_seq=2 ttl=253 time=19.825 ms
64 bytes from 10.0.0.51: icmp_seq=3 ttl=253 time=15.547 ms
64 bytes from 10.0.0.51: icmp_seq=4 ttl=253 time=10.774 ms
--- 10.0.0.51 ping statistics ---
5 packets transmitted, 5 packets received, 0.00% packet loss
round-trip min/avg/max = 10.774/16.906/21.342 ms
For OSPFv3 a single p2p adjacency between N7k1 and N5k1
# N7K1
N7K1# show ospfv3 int
interface internal
N7K1# show ospfv3 interface brief
OSPFv3 Process ID 1 VRF default
Total number of interface: 2
Interface ID Area Cost State Neighbors Status
Eth1/3 2 0.0.0.0 40 P2P 1 up
Lo0 1 0.0.0.0 1 LOOPBACK 0 up
N7K1# show ospfv3 neighbors
OSPFv3 Process ID 1 VRF default
Total number of neighbors: 1
Neighbor ID Pri State Up Time Interface ID Interface
10.0.0.51 1 FULL/ - 00:41:52 9 Eth1/3
Neighbor address fe80::5201:a9ff:fe00:1b08
N7K1# show ipv6 route ospfv3-1
IPv6 Routing Table for VRF "default"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
2001::51/128, ubest/mbest: 1/0
*via fe80::5201:a9ff:fe00:1b08, Eth1/3, [110/40], 00:41:49, ospfv3-1, intra
N7K1# ping6 2001::51 so
source source-interface
N7K1# ping6 2001::51 source-interface loopback 0
PING6 2001::51 (2001::51): 56 data bytes
64 bytes from 2001::51: icmp_seq=0 time=16.818 ms
64 bytes from 2001::51: icmp_seq=1 time=9.467 ms
64 bytes from 2001::51: icmp_seq=2 time=13.049 ms
64 bytes from 2001::51: icmp_seq=3 time=10.747 ms
64 bytes from 2001::51: icmp_seq=4 time=8.93 ms
--- 2001::51 ping6 statistics ---
5 packets transmitted, 5 packets received, 0.00% packet loss
round-trip min/avg/max = 8.93/11.802/16.818 ms
# N5K1
N5K1# show ospfv3 database
OSPFv3 Router with ID (10.0.0.51) (Process ID 1 VRF default)
Router Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# Link Count
0.0.0.0 10.0.0.51 786 0x80000004 1
0.0.0.0 10.0.0.71 778 0x80000009 1
Intra-Area Prefix Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# Ref-lstype Ref-LSID
1.0.0.0 10.0.0.51 786 0x80000004 Router 0.0.0.0
1.0.0.0 10.0.0.71 338 0x8000000a Router 0.0.0.0
Link-Local Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# Interface
0.0.0.70 10.0.0.51 796 0x80000003 Lo0
0.0.0.9 10.0.0.51 786 0x80000004 Eth1/5
0.0.0.7 10.0.0.71 778 0x80000009 Eth1/5
N5K1# show ospfv3 database Intra-area-prefix detail
OSPFv3 Router with ID (10.0.0.51) (Process ID 1 VRF default)
Intra-Area Prefix Link States (Area 0.0.0.0)
LS age: 794
LS Type: Intra-Area-Prefix
Link State ID: 1.0.0.0
Advertising Router: 10.0.0.51
LS Seq Number: 0X80000004
Checksum: 0X9A87
Length: 64
Number of prefixs: 2
Referenced LSA type: Router
Referenced Link State ID: 0.0.0.0
Referenced Advertising Router: 10.0.0.51
Prefix: 2001::51/128
Prefix options: LA_BIT (0x2), Metric: 0
Prefix: 2001:10:51:71::/64
Prefix options: None (0), Metric: 40
LS age: 346
LS Type: Intra-Area-Prefix
Link State ID: 1.0.0.0
Advertising Router: 10.0.0.71
LS Seq Number: 0X8000000A
Checksum: 0X7360
Length: 64
Number of prefixs: 2
Referenced LSA type: Router
Referenced Link State ID: 0.0.0.0
Referenced Advertising Router: 10.0.0.71
Prefix: 2001::71/128
Prefix options: LA_BIT (0x2), Metric: 0
Prefix: 2001:10:51:71::/64
Prefix options: None (0), Metric: 40
N5K1# show ipv6 route ospfv3-1
IPv6 Routing Table for VRF "default"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
2001::71/128, ubest/mbest: 1/0
*via fe80::5201:a7ff:fe00:1b08, Eth1/5, [110/40], 00:43:31, ospfv3-1, intra
To take aways:
- Features must be enabled before starting use
- Must globally start OSPF process. Otherwise, only configuration in interface level wont be enough
- Nexus platform just support two network types: Broadcast and Point2Point
- OSPF default Reference Bandwidth is 40000 Mbps
- Network type can be changed using OSPF command or medium sets under interface level
$WHOAMI

메타데이터
- post_id
- 4f3ae696dbf4
- slug
- dc-journey-day-2-apply-routing-protocol-ospf-4f3ae696dbf4
- url
- https://medium.com/@rafaesil/dc-journey-day-2-apply-routing-protocol-ospf-4f3ae696dbf4
- canonical_url
- https://medium.com/@rafaesil/dc-journey-day-2-apply-routing-protocol-ospf-4f3ae696dbf4
- author_url
- https://medium.com/@rafaesil
- status
- ok
- fetched_at
- 2026-06-15 20:49:13