7 show ip route database – CANOGA PERKINS 9175 Command Reference User Manual

Page 187

Advertising
background image

CanogaOS Command Reference

12-5

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

ip route
show ip route database

12.7 show ip route database

To display the Routing Information Base (RIB), use the show ip route database command in user

EXEC or privileged EXEC mode.


Command Syntax

show ip route database [vrf name] [protocl]

Advertising