Show Ip Route - Cisco 300 Series Cli Manual

Small business 300 series managed switches command line interface guide release 1.3
Hide thumbs Also See for 300 Series:
Table of Contents

Advertisement

47
IP Routing Protocol-Independent Commands
Example
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:
ip route 172.31.0.0 255.255.0.0 172.31.6.6 metric 2
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 :
ip route 172.31.0.0 /16 172.31.6.6 metric 2
Example 3 - The following example shows how to reject packets for network
194.1.1.0:
ip route 194.1.1.0 255.255.255.0 reject-route
Example 4 - The following example shows how to remove all static routes to
network 194.1.1.0/24:
no ip route 194.1.1.0 /24
Example 5 -The following example shows how to remove one static route to
network 194.1.1.0/24 via 1.1.1.1:
no ip route 194.1.1.0 /24 1.1.1.1
47.2

show ip route

Use the show ip route command in user EXEC or privileged EXEC mode to display
the current state of the routing table.
Syntax
IP_address
mask
show ip route [address
{
[longer-prefixes]} | [static | rejected |
connected | summary]
768
78-21075-01 Command Line Interface Reference Guide

Advertisement

Table of Contents
loading

Table of Contents