The display ip routing-table all-vpn-instance command displays information about IPv4 routing tables of all VPN instances.
Parameter | Description | Value |
---|---|---|
ip-address |
Specifies the destination IP address. |
The value is in dotted decimal notation. |
mask |
Specifies the mask length. |
The mask length is an integer ranging from 0 to 32. |
mask-length |
Specifies the mask length. A 32-bit mask is represented by consecutive 1s, and the mask in dotted decimal notation can be replaced by the mask length. |
The value is an integer that ranges from 0 to 32. |
longer-match |
Displays the routes matching the specified network or mask. |
- |
verbose |
Displays detailed information about all the routes in the routing table, including active and inactive routes. If this parameter is not specified, only brief information about active routes is displayed. |
- |
all-vpn-instance |
Displays information about routes of all VPN instances. |
- |
flowspec |
BGP Flow Specification routes. |
- |
Usage Scenario
When the verbose parameter is not specified, information about only one route is displayed in each line. The contents include the destination address, mask length, protocol, priority, route cost, route flag, next hop, and outbound interface. This command displays only the preferred routes.
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display ip routing-table all-vpn-instance
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table : _dcn_vpn_
Destinations : 5 Routes : 5
Destination/Mask Proto Pre Cost Flags NextHop Interface
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
10.128.0.0/16 Direct 0 0 D 10.128.240.168 LoopBack1023
10.128.240.168/32 Direct 0 0 D 127.0.0.1 LoopBack1023
10.128.255.255/32 Direct 0 0 D 127.0.0.1 LoopBack1023
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
------------------------------------------------------------------------------
Routing Table : vpna
Destinations : 2 Routes : 2
Destination/Mask Proto Pre Cost Flags NextHop Interface
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
------------------------------------------------------------------------------
Routing Table : vpnb
Destinations : 2 Routes : 2
Destination/Mask Proto Pre Cost Flags NextHop Interface
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
<HUAWEI> display flowspec routing-table
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Destinations : 1 Routes : 1
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.0.0.1/32 IBGP 255 1 RD 7.7.7.7 Tunnel1
IBGP 255 1 RD 7.7.7.7 Tunnel2
IBGP 255 1 RD 7.7.7.7 Tunnel3
IBGP 255 1 RD 7.7.7.7 Tunnel4
Item | Description |
---|---|
Route Flags | Route flag:
|
Routing Table | Routing Table. |
Destinations | Total number of destination networks or hosts. |
Routes | Total number of routes. |
Destination/Mask | Address and mask length of the destination network or host. |
Proto | Protocol through which routes are learned. |
Pre | Priority. |
Cost | Route cost. |
Flags | Route flag in the heading of the routing table. |
NextHop | Next hop. |
Interface | Outbound interface through which the next hop is reachable. |