
C613-50186-01 Rev B
Command Reference for AR2050V
1524
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
VRF-
LITE
C
OMMANDS
SHOW
IP
ROUTE
show ip route
Overview
Use this command to display routing entries in the FIB (Forwarding Information
Base). The FIB contains the best routes to a destination, and your device uses these
routes when forwarding traffic. You can display a subset of the entries in the FIB
based on protocol.
To modify the lines displayed, use the
|
(output modifier token); to save the output
to a file, use the
>
output redirection token.
VRF-lite
If VRF-lite is configured, you can display routing entries in the FIB associated with
either the global routing domain or a named VRF.
Syntax
show ip route [bgp|connected|ospf|rip|static|
<ip-addr>
|
<ip-addr/prefix-length>
]
Syntax (VRF-lite)
show ip route {vrf <
vrf-name
>|global}
[bgp|connected|ospf|rip|static]
Mode
User Exec and Privileged Exec
Example
To display the static routes in the FIB, use the command:
awplus#
show ip route static
To display the OSPF routes in the FIB, use the command:
awplus#
show ip route ospf
Parameter
Description
global
If VRF-lite is configured, apply the command to the
global routing and forwarding table.
vrf
Apply the command to the specified VRF instance.
<vrf-name>
The name of the VRF instance.
bgp
Displays only the routes learned from BGP.
connected
Displays only the routes learned from connected
interfaces.
ospf
Displays only the routes learned from OSPF.
rip
Displays only the routes learned from RIP.
static
Displays only the static routes you have configured.
<ip-addr>
Displays the routes for the specified address. Enter
an IPv4 address.
<ip-addr/prefix-length>
Displays the routes for the specified network. Enter
an IPv4 address and prefix length.