Configuring Routing 333
Viewing IP Forwarding Using the CLI Commands
The following table contains the CLI commands for viewing IP Forwarding.
The following is an example of the CLI commands:
Console (config)# interface ip 10.10.10.2
Console (config-ip)# ip maximum-paths 2
Console (config-ip)# exit
Console (config)# exit
Console# exit
Console> show ip route
Codes: C - connected, S - static, R - RIP, O - OSPF, E - OSPF
external
R 10.0.0.0/8 is rejected
C 10.0.1.1/32 is directly connected, Loopback0
C 10.0.1.0/24 is directly connected, Ethernet g1
C 10.0.2.0/24 is directly connected, Ethernet g2
R 10.8.2.0/24 [230/50] via 10.0.2.2, 00:17:19, Ethernet g2
S 10.9.1.0/24 [5/2] via 10.0.1.2, 17:19:18, Ethernet g1
S 10.9.1.0/24 [5/3] via 10.0.2.2, Backup Not Active
O 10.8.1.0/24 [30/2000] via 10.0.1.2, 00:39:08, Ethernet g1
S 172.1.0.0/16 [5/3] via 10.0.1.1, 18:21:58, Ethernet g1
S 172.1.1.0/24 [5/3] via 10.0.2.1, 17:12:19, Ethernet g1
S 172.1.1.1/32 [5/3] via 10.0.3.1, 19:51:18, Ethernet g1
Maximum Parallel Paths: 2
Table 8-1. IP Forwarding CLI Commands
CLI Command Description
show ip route
[address]<
ip-
address
>
Displays the current state of the routing table.
ip maximum-paths
number-paths
Controls the maximum number of parallel routes
installed in a routing table.