display ip routing-table vpn-instance

Function

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.

Format

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 ]

Parameters

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.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
route-base read

Usage Guidelines

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.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display the IPv4 routes in the specified advanced topology.
<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
# Display detailed information about the routes with the destination address 10.34.34.3 in the routing table of the IPv4 VPN instance named vpna.
<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
Table 1 Description of the display ip routing-table vpn-instance command output
Item Description
Route Flags

Route flag:

  • R: indicates an iterated route.
  • D: indicates a route that is downloaded to the FIB.
  • T: indicates a route whose next hop belongs to a VPN instance.
  • B: indicates a black-hole rout.
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:

  • Active: indicates active routes.
  • Invalid: indicates invalid routes.
  • Inactive: indicates inactive routes.
  • NoAdv: indicates the routes that cannot be advertised.
  • Adv: indicates the routes that can be advertised.
  • Del: indicates the routes to be deleted.
  • Relied: indicates the route that finds the next hop and outbound interface or the route that finds the tunnel during packet forwarding.
  • Stale: indicates the routes with the stale flag. The routes are used in GR.
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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >