When using IP route to how do you show routing information for an IPv6 network?

Function

The display ipv6 routing-table command displays information about an IPv6 routing table.

Format

display ipv6 routing-table [ vpn-instance vpn-instance-name ] [ 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-length2 ] ipv6-address2 prefix-length2 [ verbose | brief ]

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

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

Parameters

ParameterDescriptionValue

vpn-instance vpn-instance-name

Specifies the name of a VPN instance of an enabled IPv6 address family.

The value must be an existing VPN instance name.

verbose

Displays detailed information about all the routes in the current routing table, including active and inactive routes.

-

brief

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

-

ipv6-address

Displays the routes with the specified IPv6 destination address.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

prefix-length

Specifies the prefix length of an IPv6 destination address.

The value is an integer that ranges from 0 to 128.

longer-match

Displays the routes with the specified destination address and mask.

-

ipv6-address1

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

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

ipv6-address2

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

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

prefix-length2

Specifies the mask length of the start IPv6 address.

The value is an integer that ranges from 0 to 128.

prefix-length2

Specifies the mask length of the end IPv6 address.

The value is an integer that ranges from 0 to 128.

acl acl6-number

Displays the routes that match the ACL6 with the specified ACL number. If the specified ACL6 does not exist, information about all active routes is displayed.

The value is an integer that ranges from 2000 to 2999.

acl acl6-name

Displays the routes that match the ACL6 with the specified ACL name. If the specified ACL6 does not exist, information about all active routes is displayed.

The value is a string of 1 to 64 case-sensitive characters without spaces. The value must start with a letter.

ipv6-prefix ipv6-prefix-name

Displays the routes that match the specified IPv6 prefix list. If the specified IPv6 prefix list does not exist, information about all active routes is displayed.

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.

Default Level

1: Monitoring level

Usage Guidelines

If the verbose keyword is not specified, the command output includes the destination address, prefix length, protocol type, preference, cost, next hop, outbound interface, tunnel ID, flag, and status of a route.

A recursive route is counted as one route regardless of how many outbound interfaces and next hops the route finds.

Example

# Display brief information about the current IPv6 routing table.

<HUAWEI> display ipv6 routing-table
Routing Table : Public
         Destinations : 4        Routes : 4

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

 Destination  : FC00:0:0:112::                  PrefixLength : 64
 NextHop      : FC00:0:0:112::2                 Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : Vlanif10                        Flags        : D

 Destination  : FC00:0:0:112::2                          PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : Vlanif10                        Flags        : D

 Destination  : FE80::                          PrefixLength : 10
 NextHop      : ::                              Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : NULL0                           Flags        : D

Table 6-101 Description of the display ipv6 routing-table command output

Item

Description

Routing Tables : Public

The routing table is a public routing table.

Destinations

Total number of destination networks or hosts.

Routes

Total number of routes.

Destination

IP address of the destination network or host of a route.

PrefixLength

Prefix length of a route.

NextHop

Next-hop IPv6 address of a route.

Preference

Preference of a route.

Cost

Cost of a route.

Protocol

Routing protocol of a route.

RelayNextHop

Recursive next-hop address.

TunnelID

Tunnel ID. The value 0x0 indicates that no tunnel is used or the tunnel fails to be established.

Interface

Outbound interface through which the next hop of a route can be reached.

Flags

Flag of a route:

  • R: The route is a recursive route.

  • D: The route is delivered to the FIB table.

# Display detailed information about the IPv6 routing table.

<HUAWEI> display ipv6 routing-table verbose
Routing Table : Public
         Destinations : 2        Routes : 2

 Destination  : ::1                             PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Neighbour    : ::                              ProcessID    : 0
 Label        : NULL                            Protocol     : Direct
 State        : Active NoAdv                    Cost         : 0
 Entry ID     : 1                               EntryFlags   : 0x80010050
 Reference Cnt: 1                               Tag          : 0
 Priority     : high                            Age          : 84410sec
 IndirectID   : 0x0
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : InLoopBack0                     Flags        : D

 Destination  : FC00:0:0:1::1                   PrefixLength : 128
 NextHop      : FC00:0:0:2::2                   Preference   : 60
 Neighbour    : ::                              ProcessID    : 0
 Label        : NULL                            Protocol     : Static
 State        : Active Adv Relied               Cost         : 0
 Entry ID     : 2                               EntryFlags   : 0x80020140
 Reference Cnt: 1                               Tag          : 0
 Priority     : high                            Age          : 79036sec
 IndirectID   : 0x80000001
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : NULL0                           Flags        : RD

Table 6-102 Description of the display ipv6 routing-table verbose command output

Item

Description

Neighbour

IPv6 address of a neighbor interface.

ProcessID

Routing protocol process ID of a route.

Label

Label carried in a route.

State

Status of a route:

  • Active: active route

  • Invalid: invalid route

  • Inactive: inactive route

  • NoAdv: route that cannot be advertised

  • Adv: route that can be advertised

  • Del: route to be deleted

  • Relied: route that recurses to an outbound interface and a next hop or that recurses to a tunnel

  • Stale: route that is marked Stale and used in GR

Entry ID

ID of a routing entry in the routing table.

EntryFlags

Flag of a routing entry.

Reference Cnt

Number of times a route is referenced.

Tag

Routing management tag. The value is an integer that ranges from 0 to 4294967295.

Priority

Convergence priority of a route:

  • low

  • medium

  • high

  • critical

IndirectID

ID of indirect next hop.

Age

Time a route is generated.

# Display brief information about the active routes that match ACL6 2000.

<HUAWEI> display ipv6 routing-table acl 2000
Routes Matched by Access list  2000  :
Summary Count : 2

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

 Destination  : FC00:0:0:111::                  PrefixLength : 64
 NextHop      : FC00:0:0:111::2                 Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : Vlanif10                        Flags        : D

# Display brief information about the routes with the specified IPv6 destination address.

<HUAWEI> display ipv6 routing-table fc00:0:0:111::1 64
Routing Table :Public
Summary Count : 1

 Destination  : FC00:0:0:111::                  PrefixLength : 64
 NextHop      : FC00:0:0:111::2                 Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : Vlanif10                        Flags        : D

# Display the routes within the specified IPv6 address range.

<HUAWEI> display ipv6 routing-table fc00:0:0:111::1 64 fc00:0:0:111::2 128
Routing Table :
Summary Count : 2

 Destination  : FC00:0:0:111::                  PrefixLength : 64
 NextHop      : FC00:0:0:111::2                 Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : Vlanif10                        Flags        : D

 Destination  : FC00:0:0:111::2                 PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : Vlanif10                        Flags        : D      

# Display brief information about the active routes that match IPv6 prefix list abc2.

<HUAWEI> display ipv6 routing-table ipv6-prefix abc2
Routes Matched by Prefix-list abc2 :
Summary Count: 3

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

 Destination  : FC00:0:0:112::                  PrefixLength : 64
 NextHop      : FC00:0:0:112::1                 Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : Vlanif20                        Flags        : D

 Destination  : FC00:0:0:112::1                 PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : Vlanif20                        Flags        : D                

How to IP route IPv6?

To configure a basic IPv6 static route, perform these steps..
Enter global configuration mode. device# configure terminal..
Designate the route destination as an IPv6 address in hexadecimal with 16-bit values between colons, as specified in RFC 2373, and include the address prefix length preceded by a slash..

Does IPv6 have a routing table?

The IPv6 Routing Table displays the active routes in the system. It includes a combination of connected routes, static routes, and any routes established through the dynamic routing protocols (i.e. RIP and OSPF). This table applies to IPv6 routes; for IPv4 route data, see Viewing Routing Table.

How does routing work with IPv6?

Routing in IPv6 is almost identical to IPv4 routing under CIDR. The only difference is the addresses are 128-bit IPv6 addresses instead of 32-bit IPv4 addresses. With very straightforward extensions, all of IPv4's routing algorithms, such as OSPF, RIP, IDRP, IS-IS, can be used to route IPv6.

Which command will only display the IPv6 static routes in the IPv6 routing table?

Explanation: To display only the host routes within the IPv6 routing table, use the show ipv6 route local Cisco IOS command.