Here are some of the most commonly used IOS commands to display and verify the operational status of the router and related network functionality. These commands are divided into several categories.
- show ip protocols - Displays information about the routing protocols configured. If OSPF is configured, this includes the OSPF process ID, the router ID, networks the router is advertising, the neighbors the router is receiving updates from, and the default administrative distance, which is 110 for OSPF. (Figure 1)
- show ip route - Displays routing table information, including: routing codes, known networks, administrative distance and metrics, how routes were learned, next hop, static routes, and default routes. (Figure 2)
- show ip ospf neighbor - Displays information about OSPF neighbors that have been learned, including the Router ID of the neighbor, priority, the state (Full = adjacency has been formed), the IP address, and the local interface that learned of the neighbor. (Figure 3)
- show interfaces - Displays interfaces with line (protocol) status, bandwidth, delay, reliability, encapsulation, duplex, and I/O statistics. If specified without a specific interface designation, all interfaces will be displayed. If a specific interface is specified after the command, information about that interface only will be displayed. (Figure 4)
- show ip interfaces - Displays interface information, including: protocol status, the IP address, if a helper address is configured, and whether an ACL is enabled on the interface. If specified without a specific interface designation, all interfaces will be displayed. If a specific interface is specified after the command, information about that interface only will be displayed. (Figure 5)
- show ip interface brief - Displays all interfaces with IP addressing information and interface and line protocols status. (Figure 6)
- show protocols - Displays information about the routed protocol that is enabled, and the protocol status of interfaces. (Figure 7)
Other connectivity related commands include the show cdp neighbors command (Figure 8). This command displays information on directly connected devices including Device ID, the local interface the device is connected to, capability (R = router, S = switch), the platform, and Port ID of the remote device. The details option includes IP addressing information and the IOS version.
Use the Syntax Checker in Figure 9 to verify router configurations using these show commands.