6 show ip route – CANOGA PERKINS CanogaOS Command Reference User Manual

Page 217

Advertising
background image

CanogaOS Command Line Reference

Revision 1.02

Proprietary & Confidential Canoga Pertkins Metro Ethernet Switches

Page 217 of 855

12.6 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.


Command Syntax

show ip route [vrf name] [ip-address | prefix/prefix-length | protocl]

vrf name

VRF instance name.

ip-address

(Optional) Address about which routing information should be displayed.

prefix

IP route prefix.

prefix-length

Prefix length for the route.

protocol

(Optional) The name of a routing protocol, or the keyword connected,
static, or summary. If you specify a routing protocol, use one of the
following keywords: bgp, ospf, and rip.


Command Mode

User EXEC
Privileged EXEC


Usage

You can display all active dynamic static routes with both the show ip route and show ip route static
commands after these active routes are added in the main routing table.


Examples

The following is sample output from the show ip route command when entered without an address:
Switch# show ip route
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
[*] - [AD/Metric]
* - candidate default

O 1.1.1.0/24 [110/2] via 10.10.1.1, eth-0-23, 00:34:17
O 2.2.2.0/24 [110/3] via 10.10.1.1, eth-0-23, 00:17:26
C 3.3.3.0/24 is directly connected, eth-0-1
C 10.10.1.0/24 is directly connected, eth-0-23
O 10.10.2.0/24 [110/2] via 10.10.1.1, eth-0-23, 00:17:26
O 10.10.3.0/24 [110/3] via 10.10.1.1, eth-0-23, 00:17:26
C 10.10.4.0/24 is directly connected, eth-0-20
K 192.168.0.0/24 is kernel directly connected, management interface


Related Commands

Advertising