Cisco commands to verify OSPF
The following commands are in addition to the Cisco commands used for RIP (see
Example 7-39):
sh ip ospf neighbor
sh ip ospf database
Example 7-39 Cisco commands to verify OSPF
sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is 9.42.171.3 to network 0.0.0.0
9.0.0.0/24 is subnetted, 1 subnets
C
10.0.0.0/24 is subnetted, 7 subnets
O
O
C
O
O
C
C
S*
0.0.0.0/0 [1/0] via 9.42.171.3
Core2#sh ip ospf neighbor
Neighbor ID
9.42.171.244
10.10.0.243
Core2#sh ip ospf database
Router Link States (Area 0.0.0.9)
Link ID
9.42.171.243
9.42.171.244
10.10.0.243
10.56.0.246
Net Link States (Area 0.0.0.9)
Link ID
10.10.0.244
10.20.0.244
Nortel Networks L2/3 Ethernet Switch Module for IBM Eserver BladeCenter
136
Lists the OSPF neighbors of the current switch.
Provides a dump of the OSPF topology database, which includes
all switches in the same area as the one where the command is
issued.
9.42.171.0 is directly connected, GigabitEthernet0/24
10.10.0.0 [110/2] via 10.46.0.244, 00:25:13, Vlan46
[110/2] via 10.36.0.243, 00:25:13, Vlan36
10.20.0.0 [110/2] via 10.46.0.244, 00:25:13, Vlan46
[110/2] via 10.36.0.243, 00:25:13, Vlan36
10.46.0.0 is directly connected, Vlan46
10.45.0.0 [110/2] via 10.46.0.244, 00:25:13, Vlan46
10.35.0.0 [110/2] via 10.36.0.243, 00:25:13, Vlan36
10.36.0.0 is directly connected, Vlan36
10.99.0.0 is directly connected, GigabitEthernet0/24
Pri
State
1
FULL/DR
1
FULL/BDR
OSPF Router with ID (10.56.0.246) (Process ID 9)
ADV Router
9.42.171.243
9.42.171.244
10.10.0.243
10.56.0.246
ADV Router
9.42.171.244
9.42.171.244
Dead Time
Address
00:00:31
10.46.0.244
00:00:39
10.36.0.243
Age
Seq#
Checksum Link count
1750
0x80000012 0x00AC14 4
1567
0x80000017 0x006D2D 4
1537
0x80000003 0x00491C 4
1532
0x80000010 0x0023D5 2
Age
Seq#
Checksum
1577
0x80000007 0x00405B
1577
0x80000007 0x00C7C9
Interface
Vlan46
Vlan36