< Home

display ipv6 routing-table vpn-instance

Function

The display ipv6 routing-table vpn-instance command displays the routing table of the VPN instance.

Format

display ipv6 routing-table vpn-instance vpn-instance-name [ verbose | brief ]

display ipv6 routing-table vpn-instance vpn-instance-name acl acl6-number [ verbose | brief ]

display ipv6 routing-table vpn-instance vpn-instance-name ipv6-address [ prefix-length ] [ longer-match ] [ verbose | brief ]

display ipv6 routing-table vpn-instance vpn-instance-name ipv6-address1 [ prefix-length1 ] ipv6-address2 prefix-length2 [ verbose | brief ]

display ipv6 routing-table vpn-instance vpn-instance-name ipv6-prefix ipv6-prefix-name [ verbose | brief ]

display ipv6 routing-table vpn-instance vpn-instance-name statistics

display ipv6 routing-table vpn-instance vpn-instance-name protocol { direct | static | bgp | isis | ospfv3 | ripng | unr } [ inactive | verbose | brief ]

Parameters

Parameter Description Value

vpn-instance-name

Specifies the name of a VPN instance.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

verbose

Displays detailed information about active and inactive routes in the routing table of the current VPN instance.

-

brief

Displays brief information about active routes in the routing table of the current VPN instance.

-

acl

Uses ACL6 to filter the command output. If the specified ACL6 does not exist, information about all active routes is displayed.

-

acl6-number

Specifies the number of a basic ACL6.

-

longer-match

Displays only the VPN routes that match the specified network and mask.

-

ipv6-address

Specifies the destination IPv6 address.

-

prefix-length

Specifies the length of the IPv6 address prefix.

-

ipv6-address1 / ipv6-address2

Specifies the IPv6 address. ipv6-address1 and ipv6-address2 together determine an address range. Only the VPN routes in the address range are displayed.

-

prefix-length1 / prefix-length2

Specifies the length of the IPv6 address prefix.

-

ipv6-prefix ipv6-prefix-name

Specifies the name of the IPv6 prefix list.

The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

statistics

Displays integrated route statistics in the routing table of the VPN instance.

-

direct

Displays direct IPv6 routes.

-

static

Displays IPv6 static routes.

-

bgp

Displays BGP4+ routes.

-

isis

Displays IS-IS IPv6 routes.

-

ospfv3

Displays OSPFv3 routes.

-

ripng

Displays RIPng routes.

-

unr

Displays user network routes.

-

inactive

Displays the summary of inactive routes only.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The command output includes the destination address, prefix length, protocol type, preference, cost, next hop, and outbound interface.

An iterated route is counted as one route no matter how many outbound interfaces and next hops the route finds.

This command without the parameter verbose displays the currently preferred routes only.

When using the display ipv6 routing-table vpn-instance vpn-instance-name ipv6-address prefix-length [ longer-match ] [ verbose ] command, you can select parameters in the command as required.

  • If ipv6-address prefix-length is specified, the VPN routes that accurately match the destination address are displayed.

  • If ipv6-address prefix-length longer-match is specified, the IPv6 routes with the destination address within the specified address range are displayed. If the prefix length is 0, all routes in the routing table of the VPN instance are displayed.

For example, there are four routes in the routing table of the VPN instance named vpna, 2000::20/128, 2000::/100, 2000::/64, and 1000::/64.

  • If the display ipv6 routing-table vpn-instance vpna 2000:: 64 command is used, only 2000::/64 is displayed.

  • If the display ipv6 routing-table vpn-instance vpna 2000:: command is used, only 2000::/100 is displayed.

  • If the display ipv6 routing-table vpn-instance vpna 2000:: 127 longer-match command is used, only 2000::/100 and 2000::/64 are displayed.

  • If the display ipv6 routing-table vpn-instance vpna 2000:: 0 longer-match command is used, four routes are displayed.

Precautions

If the specified ip-prefix ip-prefix-name does not exist, the command displays all of the currently preferred routes.

Example

# Display the summary of the routing table of the VPN instance named vpn1.

<sysname> display ipv6 routing-table vpn-instance vpn1
Routing Table : vpn1
         Destinations : 1        Routes : 1

 Destination  : 7777:5:344::                    PrefixLength : 48
 NextHop      : 3335::2                         Preference   : 255
 Cost         : 0                               Protocol     : IBGP
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : D

# Display the brief information of the routing table of the VPN instance named vpn1.

<sysname> display ipv6 routing-table vpn-instance vpn1 brief
Routing Table : vpn1
         Destinations : 1        Routes : 1
Format :
Destination/Mask                             Protocol
Nexthop                                      Interface
------------------------------------------------------------------------------
 1111:2222:3333:4444:5555:6666:7000:0/100    Direct
 1111:2222:3333:4444:5555:6666:7777:8888    GigabitEthernet0/0/1  
Table 1 Description of the display ipv6 routing-table vpn-instance command output

Item

Description

Routing Table : vpn1

Indicates a VPN routing table named vpn1

Destination

Address of the destination network or host

Routes

Total number of routes

PrefixLength

Length of the prefix

NextHop

IPv6 address of the adjacent next hop through which the packet reaches the destination

Preference

Preference of the route

Cost

Route cost

Protocol

Routing protocol name

RelayNextHop

Indicates the iterated next hop

TunnelID

Tunnel ID. The value 0x0 indicates that no tunnel is used or the tunnel is not set up

Interface

Outbound interface through which the next hop is reachable

Flags

Route flags

  • R: indicates an iterated route.

  • D: indicates that the route is downloaded to the Forwarding Information Base (FIB) table.

Destination/Mask

Address and mask of the destination network or host

# Display detailed information about the routes of the VPN instance.

<sysname> display ipv6 routing-table vpn-instance vrf1 200:0:1:2::1 verbose
Routing Table : vrf1
         Destinations : 1        Routes : 1
 
 Destination  : 200:0:1:2::1                    PrefixLength : 128
 NextHop      : ::FFFF:192.168.100.6            Preference   : 255
 Neighbour    : ::192.168.100.6                 ProcessID    : 0
 Label        : 13313                           Protocol     : IBGP
 State        : Active Adv Relied               Cost         : 0
 Entry ID     : 14                              EntryFlags   : 0x80024904
 Reference Cnt: 1                               Tag          : 0
 Priority     : low                             Age          : 8sec
 IndirectID   : 0x10
 RelayNextHop : ::                              TunnelID     : 0x100a
 Interface    : Serial1/0/1                     Flags        : RD
Table 2 Description of the display ipv6 routing-table vpn-instance verbose command output

Item

Description

Summary Count

Indicates the total number of route prefixes

Neighbour

IP address of the neighbor interface

ProcessID

Process ID of the routing protocol

Label

Label value carried by the route

State

Indicates the 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.

Entry ID

Keyword of the retrieval index of routes in the routing table

EntryFlags

Information about route flags

Reference Cnt

Number of times that the route is referenced

Tag

Tag for importing routes. The value is an integer ranging from 0 to 4294967295.

Priority

Priority of the route

Age

Time since the route is generated

IndirectID

Indicates the keyword of indirect next hop, which is generated by the system and cannot be configured by users. If the route is not iterated, the value is 0x0. If the route is iterated, the value is not 0x0.

BkNextHop

Backup next hop

BkLabel

Backup label

BkPETunnelID

Backup Tunnel ID

# Display the statistics of the routing table of the VPN instance named vpn1.

<sysname> display ipv6 routing-table vpn-instance vpn1 statistics
Summary prefixes: 6
Protocol   route       active      added       deleted     freed
DIRECT     4           4             4            0            0
STATIC     2           1             2            0            0
RIPng      0           0             0            0            0
OSPFv3     0           0             0            0            0
IS-IS      0           0             0            0            0
BGP        0           0             0            0            0
UNR        0           0             0            0            0
Total      6           5             6            0            0
Table 3 Description of the display ipv6 routing-table statistics command output

Item

Description

Summary prefixes

Total number of prefixes in the current routing table

route

Indicates the total number of active and inactive routes in the current routing table

active

Number of active routes

added

Number of active and inactive routes added in the routing table

deleted

Number of routes deleted from the routing table

freed

Number of released routes that are permanently deleted from the routing table

# Display all the direct routes of the VPN instance named vpn1.

<sysname> display ipv6 routing-table vpn-instance vpn1 protocol direct
vpn1 Routing Table : Direct
Summary Count : 3

Direct Routing Table's Status : < Active >
Summary Count : 3

 Destination  : 3335::                          PrefixLength : 64
 NextHop      : 3335::1                         Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : D

 Destination  : 3335::1                         PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : GigabitEthernet0/0/0            Flags        : D

 Destination  : FE80::                          PrefixLength : 10
 NextHop      : ::                              Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : NULL0                           Flags        : D
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >