The display ip routing-table vpn-instance command displays information about the routing table of an IPv4 VPN instance.
The display ip routing-table topology command displays routing information about the routing table of a specified IPv4 topology instance.
display ip routing-table vpn-instance vpn-instance-name [ table-name { localmt | msr } ] { ip-address [ [ mask ] | [ mask-length ] ] | host-name host-name } [ longer-match ] [ verbose ]
display ip routing-table topology topology-name [ table-name localmt ] [ [ { ip-address [ [ mask ] | [ mask-length ] ] | host-name host-name } [ longer-match ] ] | [ time-range min-age max-age ] ] [ verbose ]
display ip routing-table topology topology-name [ table-name localmt ] protocol protocol-id [ time-range min-age max-age ] [ inactive | verbose ]
display ip routing-table topology topology-name [ table-name localmt ] ip-address { mask | mask-length } ip-address { mask | mask-length } [ verbose ]
Parameter | Description | Value |
---|---|---|
table-name |
Specifies a table of a producer. |
- |
localmt |
Displays routing information about the local multi-topology routing table. |
- |
ip-address |
Displays information about a route to a destination IP address specified in the routing table of an IPv4 VPN instance. |
The value is in dotted decimal notation. |
mask |
Specifies the mask in dotted decimal notation. |
The value is in dotted decimal notation. |
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 only the routes that match the specified network or mask. |
- |
verbose |
Displays detailed information about active and inactive routes. |
- |
vpn-instance vpn-instance-name |
Displays information about the routing table of an IPv4 address family-enabled VPN instance. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string. |
msr |
Displays information about the routing table of the multicast static routing table. |
- |
topology topology-name |
Displays routing information about the specified IPv4 topology instance. |
The value is a string of 1 to 31 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive) and can contain numbers, hyphens (-), or underlines (_). When double quotation marks are used around the string, spaces are allowed in the string. |
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. |
protocol protocol-id |
Displays routing information about the specified protocol. |
- |
inactive |
Displays the summary of inactive routes only. |
- |
host-name host-name |
Specifies the hostname. |
The value is a string of 1 to 255 case-sensitive characters, spaces not supported. |
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.
Precautions
After learning the ARP entry of a peer end, VLANIF interfaces, QinQ interfaces, or QinQ VLAN tag termination sub-interfaces generate a 32-bit ARP Vlink direct route, and the route is displayed in the command output. Regular physical interfaces do not generate a 32-bit ARP Vlink direct route in this case.
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display ip routing-table topology 23
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table : _public_
Destinations : 1 Routes : 1
Destination/Mask Proto Pre Cost Flags NextHop Interface
4.4.4.0/23 Static 22 0 D 0.0.0.0 NULL0
<HUAWEI> display ip routing-table vpn-instance vpna 10.34.34.3 verbose
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table : vpna
Summary Count : 1
Destination: 10.34.34.3/32
Protocol: Direct Process ID: 0
Preference: 0 Cost: 0
NextHop: 127.0.0.1 Neighbour: 0.0.0.0
State: Active NoAdv Age: 18d08h24m42s
Tag: 0 Priority: low
Label: NULL QoSInfo: 0x0
IndirectID: 0x0
RelayNextHop: 0.0.0.0 Interface: InLoopBack0
TunnelID: 0x0 Flags: D
RouteColor: 0
Item | Description |
---|---|
Route Flags | Route flag:
|
Routing Table | Routing Table. |
Destinations | Total number of destination addresses. |
Routes | Total number of routes in the routing table. |
Destination/Mask | Destination address or 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. |
NextHop | Next hop IP address. |
Interface | Outbound interface. |
Summary Count | Number of summary routes. |
Process ID | Process ID of the routing protocol. |
Destination | Address and mask length of the destination network or host. |
Protocol | Type of the routing protocol. |
Preference | Priority of the routing protocol. |
Neighbour | Neighbor. |
State | Route status:
|
Age | Time since the route was generated. |
Tag | Tag for importing routes. |
Priority | Priority. |
Label | VPN label. |
QoSInfo | QoS information. |
IndirectID | Keyword of the indirect next hop, which is generated by the system. If route recursion is not performed, the value is 0x0. |
RelayNextHop | Recursive next hop. |
TunnelID | Tunnel ID. The value 0x0 indicates that no tunnel is used or no tunnel has been set up. |
RouteColor | Route color value. |