background image
294
Chapter 5
IP Routing
The Show Protocols Command
The show protocols command is useful because it displays all the routed
protocols and the interfaces on which the protocol is enabled.
2501B#sh protocol
Global values:
Internet Protocol routing is enabled
Ethernet0 is up, line protocol is up
Internet address is 172.16.30.1/24
Serial0 is up, line protocol is up
Internet address is 172.16.20.2/24
Serial1 is up, line protocol is up
Internet address is 172.16.40.1/24
2501B#
The output above shows the IP address of the Ethernet 0, serial 0, and
serial 1 interfaces of the 2501B router. If IPX or AppleTalk were configured
on the router, those network addresses would have appeared as well.
The Show IP Protocol Command
The show ip protocol command shows you the routing protocols that are
configured on your router. Notice in the output below that both RIP and
IGRP are running on the router, but only IGRP appears in the routing table
because of its lower administrative distance (AD).
The show ip protocols command also displays the timers used in the
routing protocol. Notice in the next output that RIP is sending updates every
30 seconds, which is the default. Notice further down that RIP is routing for
network 172.16.0.0, and the two neighbors it found are 172.16.40.2 and
172.16.20.1.
2501B#sh ip protocols
Routing Protocol is "rip"
Sending updates every 30 seconds, next due in 6 seconds
Invalid after 180 seconds, hold down 180, flushed after
240
Outgoing update filter list for all interfaces is
Incoming update filter list for all interfaces is
Redistributing: rip
Copyright ©2002 SYBEX, Inc., Alameda, CA
www.sybex.com