free hit counter

Show Ip Route - Cisco 300 Series Cli Manual

Stackable managed switches
Hide thumbs Also See for 300 Series:
Table of Contents

Advertisement

23
469
Examples
Example 1—The following example shows how to route packets for network
172.31.0.0 to a router at 172.31.6.6 using mask:
switchxxxxxx(config)#
Example 2—The following example shows how to route packets for network
172.31.0.0 to a router at 172.31.6.6 using prefix length :
switchxxxxxx(config)#
Example 3—The following example shows how to reject packets for network
194.1.1.0:
switchxxxxxx(config)#
Example 4—The following example shows how to remove all static routes to
network 194.1.1.0/24:
switchxxxxxx(config)#
Example 5—The following example shows how to remove one static route to
network 194.1.1.0/24 via 1.1.1.1:
switchxxxxxx(config)#

23.3 show ip route

To display the current state of the routing table, use the show ip route command in
user EXEC or privileged EXEC mode.
Syntax
show ip route [address
connected]
IP Routing Protocol-Independent Commands
ip route 172.31.0.0 255.255.0.0 172.31.6.6 metric 2
ip route 172.31.0.0 /16 172.31.6.6 metric 2
ip route 194.1.1.0 255.255.255.0 reject-route
no ip route 194.1.1.0 /24
no ip route 194.1.1.0 /24 1.1.1.1
ip-address
mask
{
[longer-prefixes]} [static | rejected | icmp |
OL-32830-01 Command Line Interface Reference Guide

Advertisement

Table of Contents
loading