
Cisco commands to verify OSPF
The following commands are in addition to the Cisco commands used for RIP (see Example
sh ip ospf neighbor Lists the OSPF neighbors of the current switch.
sh ip ospf database Provides a dump of the OSPF topology database, which includes all switches in the same area as the one where the command is issued.
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 -
Gateway of last resort is 9.42.171.3 to network 0.0.0.0
9.0.0.0/24 is subnetted, 1 subnets
C9.42.171.0 is directly connected, GigabitEthernet0/24 10.0.0.0/24 is subnetted, 7 subnets
O10.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
O10.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
C10.46.0.0 is directly connected, Vlan46
O10.45.0.0 [110/2] via 10.46.0.244, 00:25:13, Vlan46
O10.35.0.0 [110/2] via 10.36.0.243, 00:25:13, Vlan36
C 10.36.0.0 is directly connected, Vlan36
C 10.99.0.0 is directly connected, GigabitEthernet0/24
S* 0.0.0.0/0 [1/0] via 9.42.171.3 |
|
|
| |||
Core2#sh | ip ospf neighbor |
|
|
| ||
Neighbor | ID | Pri | State | Dead Time | Address | Interface |
9.42.171.244 | 1 | FULL/DR | 00:00:31 | 10.46.0.244 | Vlan46 | |
10.10.0.243 | 1 | FULL/BDR | 00:00:39 | 10.36.0.243 | Vlan36 |
Core2#sh ip ospf database
OSPF Router with ID (10.56.0.246) (Process ID 9)
Router Link States (Area 0.0.0.9)
Link ID | ADV Router | Age | Seq# | Checksum Link count |
9.42.171.243 | 9.42.171.243 | 1750 | 0x80000012 | 0x00AC14 4 |
9.42.171.244 | 9.42.171.244 | 1567 | 0x80000017 | 0x006D2D 4 |
10.10.0.243 | 10.10.0.243 | 1537 | 0x80000003 | 0x00491C 4 |
10.56.0.246 | 10.56.0.246 | 1532 | 0x80000010 | 0x0023D5 2 |
Net Link States (Area 0.0.0.9) |
|
| ||
Link ID | ADV Router | Age | Seq# | Checksum |
10.10.0.244 | 9.42.171.244 | 1577 | 0x80000007 | 0x00405B |
10.20.0.244 | 9.42.171.244 | 1577 | 0x80000007 | 0x00C7C9 |
136Nortel Networks L2/3 Ethernet Switch Module for IBM Eserver BladeCenter