display ipv6 routing-table

Use display ipv6 routing-table to display IPv6 routing table information.

Syntax

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

display ipv6 routing-table [ all-routes ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

all-vpn-instance: Displays IPv6 routing table information for all VPN instances.

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, the command displays routing information for the public network.

all-routes: Displays IPv6 routing table information for the public network and all VPN instances.

verbose: Displays detailed routing table information, including information about both active and inactive routes. If you do not specify this keyword, the command displays only brief information about active routes.

Usage guidelines

If you do not specify any parameters, this command displays IPv6 routing table information for the public network.

Examples

# Display brief information about active routes in the IPv6 routing table.

<Sysname> display ipv6 routing-table

Destinations : 3 Routes : 3

Destination: ::1/128                                     Protocol  : Direct
NextHop    : ::1                                         Preference: 0
Interface  : InLoop0                                     Cost      : 0

Destination: FE80::/10                                   Protocol  : Direct
NextHop    : ::                                          Preference: 0
Interface  : InLoop0                                     Cost      : 0

Destination: FF00::/8                                    Protocol  : Direct
NextHop    : ::                                          Preference: 0
Interface  : NULL0                                       Cost      : 0

# Display brief IPv6 routing table information for the public network and all VPN instances.

<Sysname> display ipv6 routing-table all-routes

VPN instance: public instance
Destinations : 3 Routes : 3

Destination: ::1/128                                     Protocol  : Direct
NextHop    : ::1                                         Preference: 0
Interface  : InLoop0                                     Cost      : 0

Destination: FE80::/10                                   Protocol  : Direct
NextHop    : ::                                          Preference: 0
Interface  : InLoop0                                     Cost      : 0

Destination: FF00::/8                                    Protocol  : Direct
NextHop    : ::                                          Preference: 0
Interface  : NULL0                                       Cost      : 0

VPN instance: vpn1
Destinations : 4 Routes : 4

Destination: ::1/128                                     Protocol  : Direct
NextHop    : ::1                                         Preference: 0
Interface  : InLoop0                                     Cost      : 0

Destination: 1:2::3:4/128                                Protocol  : Static     
NextHop    : ::                                          Preference: 60         
Interface  : NULL0                                       Cost      : 0

Destination: FE80::/10                                   Protocol  : Direct
NextHop    : ::                                          Preference: 0
Interface  : InLoop0                                     Cost      : 0

Destination: FF00::/8                                    Protocol  : Direct
NextHop    : ::                                          Preference: 0
Interface  : NULL0                                       Cost      : 0

# Display brief IPv6 routing table information for all VPN instances.

<Sysname> display ipv6 routing-table all-vpn-instance

VPN instance: vpn1
Destinations : 4 Routes : 4

Destination: ::1/128                                     Protocol  : Direct
NextHop    : ::1                                         Preference: 0
Interface  : InLoop0                                     Cost      : 0

Destination: 1:2::3:4/128                                Protocol  : Static     
NextHop    : ::                                          Preference: 60         
Interface  : NULL0                                       Cost      : 0

Destination: FE80::/10                                   Protocol  : Direct
NextHop    : ::                                          Preference: 0
Interface  : InLoop0                                     Cost      : 0

Destination: FF00::/8                                    Protocol  : Direct
NextHop    : ::                                          Preference: 0
Interface  : NULL0                                       Cost      : 0

VPN instance: vpn2
Destinations : 4 Routes : 4

Destination: ::1/128                                     Protocol  : Direct
NextHop    : ::1                                         Preference: 0
Interface  : InLoop0                                     Cost      : 0

Destination: 9:9::1:1/128                                Protocol  : Static     
NextHop    : ::                                          Preference: 60         
Interface  : NULL0                                       Cost      : 0

Destination: FE80::/10                                   Protocol  : Direct
NextHop    : ::                                          Preference: 0
Interface  : InLoop0                                     Cost      : 0

Destination: FF00::/8                                    Protocol  : Direct
NextHop    : ::                                          Preference: 0
Interface  : NULL0                                       Cost      : 0

Table 6: Command output

Field

Description

VPN instance

Public network or VPN instance for which the IPv6 routing table is displayed. For the public network, this field displays public instance. For a VPN instance, this field displays the VPN instance name.

Destinations

Number of destination addresses.

Routes

Number of routes.

Destination

IPv6 address and prefix of the destination network or host.

NextHop

Next hop address of the route.

Preference

Preference of the route.

Interface

Output interface for packets to be forwarded along the route.

Protocol

Protocol that installed the route.

Cost

Cost of the route.

Summary count

Number of routes.

# Display detailed information about all routes in the routing table.

<Sysname> display ipv6 routing-table verbose

Destinations : 6 Routes : 6

Destination: ::1/128
   Protocol: Direct
 Process ID: 0
  SubProtID: 0x0                    Age: 19h23m02s
       Cost: 0               Preference: 0
      IpPre: N/A             QosLocalID: N/A
        Tag: 0                    State: Active NoAdv
  OrigTblID: 0x0                OrigVrf: default-vrf
    TableID: 0xa                 OrigAs: 0
      NibID: 0x20000000          LastAs: 0
     AttrID: 0xffffffff        Neighbor: ::
      Flags: 0x10004        OrigNextHop: ::1
      Label: NULL           RealNextHop: ::1
    BkLabel: NULL             BkNextHop: N/A
  Tunnel ID: Invalid          Interface: InLoopBack0
BkTunnel ID: Invalid        BkInterface: N/A
   FtnIndex: 0x0           TrafficIndex: N/A
  Connector: N/A
 
Destination: 12::/96
   Protocol: Direct
 Process ID: 0
  SubProtID: 0x0                    Age: 00h01m47s
       Cost: 0               Preference: 0
      IpPre: N/A             QosLocalID: N/A
        Tag: 0                    State: Active Adv
  OrigTblID: 0x0                OrigVrf: default-vrf
    TableID: 0xa                 OrigAs: 0
      NibID: 0x20000003          LastAs: 0
     AttrID: 0xffffffff        Neighbor: ::
      Flags: 0x10080        OrigNextHop: ::
      Label: NULL           RealNextHop: ::
    BkLabel: NULL             BkNextHop: N/A
  Tunnel ID: Invalid          Interface: Vlan-interface11
BkTunnel ID: Invalid        BkInterface: N/A
   FtnIndex: 0x0           TrafficIndex: N/A
  Connector: N/A

Destination: 12::1/128
   Protocol: Direct
 Process ID: 0
  SubProtID: 0x0                    Age: 00h01m45s
       Cost: 0               Preference: 0
      IpPre: N/A             QosLocalID: N/A
        Tag: 0                    State: Active NoAdv
  OrigTblID: 0x0                OrigVrf: default-vrf
    TableID: 0xa                 OrigAs: 0
      NibID: 0x20000000          LastAs: 0
     AttrID: 0xffffffff        Neighbor: ::
      Flags: 0x10004        OrigNextHop: ::1
      Label: NULL           RealNextHop: ::1
    BkLabel: NULL             BkNextHop: N/A
  Tunnel ID: Invalid          Interface: InLoopBack0
BkTunnel ID: Invalid        BkInterface: N/A
   FtnIndex: 0x0           TrafficIndex: N/A
  Connector: N/A

Destination: FF::11/128
   Protocol: BGP4+ instance default
 Process ID: 0
  SubProtID: 0x6                    Age: 00h00m33s
       Cost: 0               Preference: 255
      IpPre: N/A             QosLocalID: N/A
        Tag: 0                    State: Active Adv
  OrigTblID: 0x0                OrigVrf: default-vrf
    TableID: 0xa                 OrigAs: 200
      NibID: 0x26000000          LastAs: 200
     AttrID: 0x1               Neighbor: 12::2
      Flags: 0x10060        OrigNextHop: 12::2
      Label: NULL           RealNextHop: 12::2
    BkLabel: NULL             BkNextHop: N/A
  Tunnel ID: Invalid          Interface: Vlan-interface11
BkTunnel ID: Invalid        BkInterface: N/A
   FtnIndex: 0x0           TrafficIndex: N/A
  Connector: N/A

Destination: FE80::/10
   Protocol: Direct
 Process ID: 0
  SubProtID: 0x0                    Age: 19h23m02s
       Cost: 0               Preference: 0
      IpPre: N/A             QosLocalID: N/A
        Tag: 0                    State: Active NoAdv
  OrigTblID: 0x0                OrigVrf: default-vrf
    TableID: 0xa                 OrigAs: 0
      NibID: 0x20000002          LastAs: 0
     AttrID: 0xffffffff        Neighbor: ::
      Flags: 0x10084        OrigNextHop: ::
      Label: NULL           RealNextHop: ::
    BkLabel: NULL             BkNextHop: N/A
  Tunnel ID: Invalid          Interface: InLoopBack0
BkTunnel ID: Invalid        BkInterface: N/A
   FtnIndex: 0x0           TrafficIndex: N/A
  Connector: N/A

Destination: FF00::/8
   Protocol: Direct
 Process ID: 0
  SubProtID: 0x0                    Age: 19h23m02s
       Cost: 0               Preference: 0
      IpPre: N/A             QosLocalID: N/A
        Tag: 0                    State: Active NoAdv
  OrigTblID: 0x0                OrigVrf: default-vrf
    TableID: 0xa                 OrigAs: 0
      NibID: 0x20000001          LastAs: 0
     AttrID: 0xffffffff        Neighbor: ::
      Flags: 0x10014        OrigNextHop: ::
      Label: NULL           RealNextHop: ::
    BkLabel: NULL             BkNextHop: N/A
  Tunnel ID: Invalid          Interface: NULL0
BkTunnel ID: Invalid        BkInterface: N/A
   FtnIndex: 0x0           TrafficIndex: N/A
  Connector: N/A

# Display detailed IPv6 routing table information for all VPN instances.

<Sysname> display ipv6 routing-table all-vpn-instance verbose

VPN instance: vpn1
Destinations : 6 Routes : 6

Destination: ::1/128
   Protocol: Direct
 Process ID: 0
  SubProtID: 0x0                    Age: 19h23m02s
       Cost: 0               Preference: 0
      IpPre: N/A             QosLocalID: N/A
        Tag: 0                    State: Active NoAdv
  OrigTblID: 0x0                OrigVrf: default-vrf
    TableID: 0xa                 OrigAs: 0
      NibID: 0x20000000          LastAs: 0
     AttrID: 0xffffffff        Neighbor: ::
      Flags: 0x10004        OrigNextHop: ::1
      Label: NULL           RealNextHop: ::1
    BkLabel: NULL             BkNextHop: N/A
  Tunnel ID: Invalid          Interface: InLoopBack0
BkTunnel ID: Invalid        BkInterface: N/A
   FtnIndex: 0x0           TrafficIndex: N/A
  Connector: N/A

Destination: 12::/96
   Protocol: Direct
 Process ID: 0
  SubProtID: 0x0                    Age: 00h01m47s
       Cost: 0               Preference: 0
      IpPre: N/A             QosLocalID: N/A
        Tag: 0                    State: Active Adv
  OrigTblID: 0x0                OrigVrf: default-vrf
    TableID: 0xa                 OrigAs: 0
      NibID: 0x20000003          LastAs: 0
     AttrID: 0xffffffff        Neighbor: ::
      Flags: 0x10080        OrigNextHop: ::
      Label: NULL           RealNextHop: ::
    BkLabel: NULL             BkNextHop: N/A
  Tunnel ID: Invalid          Interface: Vlan-interface11
BkTunnel ID: Invalid        BkInterface: N/A
   FtnIndex: 0x0           TrafficIndex: N/A
  Connector: N/A

Destination: 12::1/128
   Protocol: Direct
 Process ID: 0
  SubProtID: 0x0                    Age: 00h01m45s
       Cost: 0               Preference: 0
      IpPre: N/A             QosLocalID: N/A
        Tag: 0                    State: Active NoAdv
  OrigTblID: 0x0                OrigVrf: default-vrf
    TableID: 0xa                 OrigAs: 0
      NibID: 0x20000000          LastAs: 0
     AttrID: 0xffffffff        Neighbor: ::
      Flags: 0x10004        OrigNextHop: ::1
      Label: NULL           RealNextHop: ::1
    BkLabel: NULL             BkNextHop: N/A
  Tunnel ID: Invalid          Interface: InLoopBack0
BkTunnel ID: Invalid        BkInterface: N/A
   FtnIndex: 0x0           TrafficIndex: N/A
  Connector: N/A

Destination: FF::11/128
   Protocol: BGP4+ instance default
 Process ID: 0
  SubProtID: 0x6                    Age: 00h00m33s
       Cost: 0               Preference: 255
      IpPre: N/A             QosLocalID: N/A
        Tag: 0                    State: Active Adv
  OrigTblID: 0x0                OrigVrf: default-vrf
    TableID: 0xa                 OrigAs: 200
      NibID: 0x26000000          LastAs: 200
     AttrID: 0x1               Neighbor: 12::2
      Flags: 0x10060        OrigNextHop: 12::2
      Label: NULL           RealNextHop: 12::2
    BkLabel: NULL             BkNextHop: N/A
  Tunnel ID: Invalid          Interface: Vlan-interface11
BkTunnel ID: Invalid        BkInterface: N/A
   FtnIndex: 0x0           TrafficIndex: N/A
  Connector: N/A
...

Table 7: Command output

Field

Description

VPN instance

Public network or VPN instance for which the IPv6 routing table is displayed. For the public network, this field displays public instance. For a VPN instance, this field displays the VPN instance name.

Destination

IPv6 address and prefix of the destination network or host.

Protocol

Protocol that installed the route.

SubProtID

ID of the subprotocol for routing.

Age

Time for which the route has been in the routing table.

Cost

Cost of the route.

Preference

Preference of the route.

IpPre

IP precedence.

QosLocalID

Local QoS ID.

Tag

Tag of the route.

State

Route status:

  • Active—Active unicast route.

  • Adv—Route that can be advertised.

  • Inactive—Inactive route.

  • NoAdv—Route that the router must not advertise.

  • Vrrp—Routes generated by VRRP.

  • Nat—Routes generated by NAT.

  • TunE—Tunnel.

OrigTblID

Original routing table ID.

OrigVrf

Original VPN instance that the route belongs to. This field displays default-vrf if the route is on an IPv6 network.

TableID

ID of the routing table.

OrigAs

Original AS number.

NibID

ID of the next hop.

LastAs

Last AS number.

AttrID

Attribute ID.

Neighbor

Address of the neighbor determined by the routing protocol.

Flags

Flags of the route.

OrigNextHop

Next hop address of the route.

RealNextHop

Real next hop of the route.

BkLabel

Backup label.

BkNexthop

Backup next hop.

Tunnel ID

Tunnel ID.

Interface

Output interface for packets to be forwarded along the route.

BkTunnel ID

Backup tunnel ID.

BkInterface

Backup output interface.

FtnIndex

Index of the FTN entry.

TrafficIndex

Traffic index in the range of 1 to 64. This field displays N/A when the value is invalid.

Connector

BGP connector attribute exchanged between BGP peers along with a VPN IPv4 route. The value of the attribute is the IP address of the remote PE device. The BGP connector attribute is used for MD VPN. This field displays N/A if BGP connector attribute is not supported.

Summary count

Number of routes.