The display ip routing-table protocol command displays routing information about a specified routing protocol.
display ip routing-table [ vpn-instance vpn-instance-name ] protocol protocol [ inactive | verbose ]
Parameter | Description | Value |
---|---|---|
vpn-instance-name |
Specifies the name of an VPN instance of an enabled IPv4 address family. |
The value must be an existing VPN instance name. |
protocol |
Displays routing information of a specified routing protocol. |
The value may be bgp, direct, isis, ospf, rip, static, or unr. The specific value varies depending on the routing protocol supported by the device. |
inactive |
Displays brief information about inactive routes only. |
- |
verbose |
Displays detailed information about active routes and inactive routes. |
- |
If neither verbose nor inactive is specified, brief information about all the routes of each routing protocol is displayed.
# Display brief information about all direct routes.
<HUAWEI> display ip routing-table protocol direct Route Flags: R - relay, D - download to fib, T - to vpn-instance ------------------------------------------------------------------------------ Public routing table : Direct Destinations : 4 Routes : 4 Direct routing table status : <Active> Destinations : 4 Routes : 4 Destination/Mask Proto Pre Cost Flags NextHop Interface 10.137.216.0/23 Direct 0 0 D 10.137.217.210 Vlanif100 10.137.217.210/32 Direct 0 0 D 127.0.0.1 Vlanif100 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 Direct routing table status : <Inactive> Destinations : 0 Routes : 0
Item |
Description |
---|---|
Route Flags |
Flag of a route:
|
Public routing table |
Contents of a public routing table. |
Direct routing table status |
Status of direct routes:
|
Destinations |
Total number of destination addresses. |
Routes |
Total number of routes in the routing table. |
Destination/Mask |
Destination address or mask length. |
Proto |
Routing protocol of a route. |
Pre |
Routing protocol preference of a route. |
Cost |
Cost of a route. |
Flags |
Route flags in the heading of the routing table. |
Nexthop |
Next-hop address of a route. |
Interface |
Outbound interface of a route. |
# Display all the direct routes of the VPN instance named vpn1.
<HUAWEI> display ip routing-table vpn-instance vpn1 protocol direct Route Flags: R - relay, D - download to fib, T - to vpn-instance ------------------------------------------------------------------------------ vpn4 routing table : Direct Destinations : 2 Routes : 2 Direct routing table status : <Active> Destinations : 2 Routes : 2 Destination/Mask Proto Pre Cost Flags NextHop Interface 10.1.1.0/24 Direct 0 0 D 10.1.1.1 Vlanif30 10.1.1.1/32 Direct 0 0 D 127.0.0.1 Vlanif30 Direct routing table status : <Inactive> Destinations : 0 Routes : 0
Item |
Description |
---|---|
Active |
Active routes. |
Inactive |
Inactive routes. |