beautypg.com

Show ip route database – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual

Page 722

background image

Routing Commands

Software Reference for x310 Series Switches

29.8

AlliedWare Plus

TM

Operating System - Version 5.4.4C

C613-50046-01 REV A

show ip route database

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

show ip route

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|static]

Mode

User Exec and Privileged Exec

Example

To display the static routes in the RIB, use the command:

Output

Figure 29-2: Example output from the show ip route database command

The routes added to the FIB are marked with a *. When multiple routes are available for
the same prefix, the best route is indicated with the > symbol. All unselected routes have
neither the * nor the > symbol.

Related Commands

show ip route

Parameter

Description

connected

Displays only the routes learned from connected interfaces.

static

Displays only the static routes you have configured.

awplus#

show ip route database static

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
> - selected route, * - FIB route, p - stale info

C *> 10.10.31.0/24 is directly connected, vlan2
S *> 10.10.34.0/24 [1/0] via 10.10.31.16, vlan2
C *> 10.30.0.0/24 is directly connected, vlan6
S *> 11.22.11.0/24 [1/0] via 10.10.31.16, vlan2
S *> 16.16.16.16/32 [1/0] via 10.10.31.16, vlan2
C *> 45.45.45.45/32 is directly connected, lo
C *> 127.0.0.0/8 is directly connected, lo