C613-50170-01 Rev B
Command Reference for x510 Series
884
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
R
OUTING
C
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
command.
To modify the lines displayed, use the
|
(output modifier token); to save the output
to a file, use the
>
output redirection token.
Syntax
show ip route database [connected|ospf|rip|static]
Mode
User Exec and Privileged Exec
Example
To display the static routes in the RIB, use the command:
awplus#
show ip route database static
Output
Figure 24-2:
Example output from the
show ip route database
command
Parameter
Description
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.
Codes: 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
> - selected route, * - FIB route, p - stale info
O *> 9.9.9.9/32 [110/31] via 10.10.31.16, vlan2, 00:19:21
O 10.10.31.0/24 [110/1] is directly connected, vlan2, 00:28:20
C *> 10.10.31.0/24 is directly connected, vlan2
S *> 10.10.34.0/24 [1/0] via 10.10.31.16, vlan2
O 10.10.34.0/24 [110/31] via 10.10.31.16, vlan2, 00:21:19
O *> 10.10.37.0/24 [110/11] via 10.10.31.16, vlan2, 00:21:19
C *> 10.30.0.0/24 is directly connected, vlan6
S *> 11.22.11.0/24 [1/0] via 10.10.31.16, vlan2
O E2 *> 14.5.1.0/24 [110/20] via 10.10.31.16,vlan2, 00:19:21
O 16.16.16.16/32 [110/11] via 10.10.31.16, vlan2, 00:21:19
S *> 16.16.16.16/32 [1/0] via 10.10.31.16, vlan2
O *> 17.17.17.17/32 [110/31] via 10.10.31.16, vlan2, 00:21:19
C *> 45.45.45.45/32 is directly connected, lo
O *> 55.55.55.55/32 [110/21] via 10.10.31.16, vlan2, 00:21:19
C *> 127.0.0.0/8 is directly connected, lo