The display ip routing-table protocol command displays routing information about the specified routing protocol.
Parameter | Description | Value |
---|---|---|
table-name |
Specifies a table of a producer. |
- |
localmt |
Displays routing information about the local multi-topology routing table. |
- |
protocol |
Displays routing information about the specified protocol. |
- |
bgp |
Displays BGP routes. |
- |
direct |
Displays direct routes. |
- |
isis |
Displays IS-IS routes. |
- |
rip |
Displays RIP routes. |
- |
static |
Displays static routes. |
- |
ospf |
Displays OSPF routes. |
- |
unr |
Displays UNRs. |
- |
time-range |
Displays routes that are generated within a specified period. |
- |
min-age |
Specifies the start generation time. |
The value is a string of characters, in the format of XXdXXhXXmXXs. |
max-age |
Specifies the end generation time. |
The value is a string of characters, in the format of XXdXXhXXmXXs. |
inactive |
Displays brief information about inactive routes. If this parameter is not specified, brief information about all the active and inactive routes is displayed. |
- |
verbose |
Displays detailed information about active and inactive routes matching the filtering rule. If this parameter is not specified, only the brief information about active routes matching the filtering rule is displayed. |
- |
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display ip routing-table protocol direct ------------------------------------------------------------------------------ _public_ Routing Table : Direct Destinations : 6 Routes : 6 Direct Routing Table Status : < Active> Destinations : 5 Routes : 5 Destination/Mask Proto Pre Cost Flags Nexthop Interface 10.1.1.1/32 DIRECT 0 0 D 127.0.0.1 GigabitEthernet0/1/0 127.0.0.0/8 DIRECT 0 0 D 127.0.0.1 InLoopBack0 127.0.0.1/32 DIRECT 0 0 D 127.0.0.1 InLoopBack0 127.255.255.255/32 DIRECT 0 0 D 127.0.0.1 InLoopBack0 255.255.255.255/32 DIRECT 0 0 D 127.0.0.1 InLoopBack0 Direct Routing Table Status : < Inactive> Destinations : 1 Routes : 1 Destination/Mask Proto Pre Cost Flags Nexthop Interface 192.168.0.1/32/32 DIRECT 0 0 D 127.0.0.1 GigabitEthernet0/1/1
Item | Description |
---|---|
_public_ Routing Table | Contents of the public routing table:
|
Direct Routing Table Status | Status of the direct routing table: inactive or active. |
Destinations | Total number of destination addresses. |
Routes | Total number of routes in the routing table. |
Destination/Mask | Destination Address/Mask Length. |
Proto | Type of the routing protocol. |
Pre | Priority of the routing protocol. |
Cost | Cost of the imported route. |
Flags | Route flags in the header of the routing table. |
Interface | Outbound interface. |
Nexthop | Next-hop IP address. |
Active | Active routes in the routing table. |
Inactive | Inactive routes in the routing table. |