SROS Command Line Interface Reference Guide

Enable Mode Command Set

 

 

show ip route [connected ospf rip static table bgp <ip address> <subnet>]

Use the show ip route command to display the contents of the IP route table.

Syntax Description

connected

Optional. Displays only the IP routes for directly connected networks.

ospf

Optional. Displays only the IP routes associated with OSPF.

rip

Optional. Displays only the IP routes that were dynamically learned through RIP.

static

Optional. Displays only the IP routes that were statically entered.

table

Optional. Displays a condensed version of the IP route table.

bgp

Optional. Displays only the IP routes associated with BGP.

<ip address><subnet>

Displays only the IP routes to destinations within the given address and subnet.

Default Values

No default value necessary for this command.

Command Modes

#

Enable Command Mode

Usage Examples

The following is a sample output from the show ip route command:

>enable

#show ip route rip

Codes: C - connected S - static R - RIP 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

Gateway of last resort is 10.200.254.254 to network 0.0.0.0

The following example shows how to display IP routes learned via BGP. The values in brackets after a BGP route entry represent the entry's administrative distance and metric:

#show ip route bgp

Codes: C - connected, S - static, R - RIP, O - OSPF, B - BGP

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

5991-2114

© Copyright 2005 Hewlett-Packard Development Company, L.P.

164

Page 164
Image 164
HP 7000 dl Router manual Connected, Ospf, Rip, Static, Bgp, Enable #show ip route rip, #show ip route bgp