Alcatel-Lucent 6850-48 参照ガイド

ページ / 3444
IP Commands
page 32-110
OmniSwitch CLI Reference Guide
September 2009
show ip router database
Displays a list of all routes (static and dynamic) that exist in the IP router database. This database serves as 
a central repository where routes are first processed for redistribution and where duplicate routes are 
compared to determine the best route to use. If a route does not appear in the IP router database list, then 
the switch does not know about it. In the case of dynamically learned routes, this could indicate that the 
route was never received by the switch.
show ip router database [protocol type | gateway ip_address | dest {ip_address/prefixLen | ip_address}]
Syntax Definitions
type
Routing protocol type (local, static, OSPF, RIP, or BGP).
ip_address
Destination IP address. 
ip_address/prefixLen
The destination IP address along with the prefix length of the routes 
processed for redistribution.
Defaults
By default, all routes are displayed.
Platforms Supported
OmniSwitch 6400, 6850, 6855, 9000, 9000E
Usage Guidelines
• Command options are not mutually exclusive. You can use them on the same command line to narrow 
and/or customize the output display of this command. For example, use the protocol and dest options 
to display only those routes that are of a specific protocol type and have the specified destination 
network. 
• The IP forwarding table is derived from IP router database processing performed by the switch and 
contains only unique routes that the switch currently uses. Use the show ip route command to view the 
forwarding table. 
• If an expected route does not appear in the IP forwarding table, use the show ip router database 
command to see if the switch knows about the route and/or if a duplicate route with a higher prece-
dence was selected instead. 
• The switch compares the protocol of duplicate routes to determine which one to use. Regardless of 
whether or not a route has a higher priority metric value, protocol determines precedence. Local routes 
are given the highest level of precedence followed by static, OSFP, RIP, then BGP routes. As a result, a 
route that is known to the switch may not appear in the IP forwarding table if a duplicate route with a 
higher protocol precedence exists.
• A list of inactive static routes is also included in the show ip router database output display. A route 
becomes inactive if the interface for its gateway goes down. Inactive routes are unable to get to their 
destination and further investigation is warranted to determine why their gateway is unavailable.
• Static routes that appear as inactive are not included in the main IP router database listing. If an inac-
tive route becomes active, however, it is removed from the inactive list and added to the active route 
list.