R
C
OUTING
OMMANDS
SHOW IP ROUTE DATABASE
show ip route database
Overview
This command displays the routing entries in the RIB (Routing Information Base).
When multiple entries are available for the same prefix, RIB uses the routes'
administrative distances to choose the best route. All best routes are entered into
the FIB (Forwarding Information Base). To view the routes in the FIB, use the
ip route
To modify the lines displayed, use the | (output modifier token); to save the output
to a file, use the > output redirection token.
show ip route database [connected|static]
Syntax
Mode
User Exec and Privileged Exec
Example
To display the static routes in the RIB, use the command:
awplus#
Output
Figure 20-2: Example output from the show ip route database command
awplus#show ip route database
Codes: C - connected, S - static, R - RIP, B - BGP
O - OSPF, D - DHCP, 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
> - selected route, * - FIB route, p - stale info
S
*> 0.0.0.0/0 [1/0] via 10.34.1.1, vlan1
C
*> 10.34.0.0/16 is directly connected, vlan1
S
192.168.2.0/24 [1/0] is directly connected, vlan2 inactive
Gateway of last resort is not set
Related
maximum-paths
Commands
show ip route
613-50137-01 Rev A
command.
Parameter
Description
connected
Displays only the routes learned from connected interfaces.
static
Displays only the static routes you have configured.
show ip route database static
Command Reference for FS980M Series
AlliedWare Plus™ Operating System - Version 5.4.6-2.x
show
640