The display ipv6 routing-table simple command displays brief information about the IPv6 routing table.
The display ipv6 routing-table command displays information about an IPv6 routing table.
The display ipv6 routing-table protocol command displays the IPv6 routes of the specified protocol.
The display ipv6 routing-table vpn-instance command displays the routing table of an IPv6 address family-enabled VPN instance.
display ipv6 routing-table [ vpn-instance vpn-instance-name ] protocol unr type aaa-download [ inactive | verbose | brief ]
display ipv6 routing-table protocol { bgp | direct | isis | ospfv3 | ripng | static | unr } [ time-range min-age max-age ] [ inactive | verbose ]
display ipv6 routing-table [ vpn-instance vpn-instance-name ] [ time-range min-age max-age ]
display ipv6 routing-table [ vpn-instance vpn-instance-name ] ipv6-prefix ipv6-prefix-name [ verbose ]
display ipv6 routing-table all-vpn-instance [ verbose ]
display ipv6 routing-table brief
display ipv6 routing-table [ vpn-instance vpn-instance-name ] simple
Parameter | Description | Value |
---|---|---|
protocol |
Displays the routes of the specified protocol. |
- |
bgp |
displays BGP IPv6 routes. |
- |
direct |
displays direct IPv6 routes. |
- |
isis |
displays IS-IS IPv6 routes. |
- |
ospfv3 |
displays OSPFv3 routes. |
- |
ripng |
displays RIPng routes. |
- |
static |
displays static IPv6 routes. |
- |
unr |
Displays user network routes. |
- |
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. |
inactive |
Displays the summary of inactive routes only. |
- |
verbose |
Displays detailed information about active and inactive routes in the routing table. |
- |
vpn-instance-name |
Specifies the name of an IPv6 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. |
type |
Displays the information about user network routes of the aaa-download type. |
- |
aaa-download |
Displays the information about user network routes of the aaa-download type. |
- |
brief |
Displays brief information about active routes in the current routing table. |
- |
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. |
all-vpn-instance |
Displays information about the IPv6 routes of all VPN instances. |
- |
Usage Scenario
The command output includes the destination address, prefix length, protocol type, priority, cost, next hop, outbound interface, tunnel ID, label value carried by the route, time when the route was generated, and route status.
This command without verbose specified displays preferred routes only. a recursive route is counted as one route no matter how many outbound interfaces and next hops the route finds.Precautions
If the specified ipv6-prefix ipv6-prefix-name does not exist, the command displays all preferred routes.
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display ipv6 routing-table simple
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
-----------------------------------------------------------------------------------------------------------------------------------
Routing Table : _public_
Destinations : 9 Routes : 9
Destination/Mask Proto Pre Cost Flags NextHop Interface
2001:db8:1::1/128 Direct 0 0 D 2001:db8:1::1 InLoopBack0
2001:db8:2::/64 Direct 0 0 D 2001:db8:2::1 LoopBack1
2001:db8:2::1/128 Direct 0 0 D 2001:db8:1::1 LoopBack1
2001:db8:3::/64 Direct 0 0 D 2001:db8:3::1 MEth0/0/0
2001:db8:3::1/128 Direct 0 0 D 2001:db8:1::1 MEth0/0/0
2001:db8:4::1/64 Static 60 0 RD 2001:db8:4::2 LoopBack1
2001:db8::/10 Direct 0 0 DB :: NULL0
<HUAWEI> display ipv6 routing-table brief
Routing Table : _public_
Destinations : 2 Routes : 2
Format :
Destination/Mask Protocol
Nexthop Interface
------------------------------------------------------------------------------
2001:db8:1::1/128 Static
:: NULL0
2001:db8:1::2/128 Static
:: NULL0
<HUAWEI> display ipv6 routing-table ipv6-prefix abc2
Routes matched by prefix-list : abc2
Summary count: 1
Destination : 2001:db8:1::1 PrefixLength : 128
NextHop : 2001:db8:2::1 Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : InLoopBack0 Flags : D
<HUAWEI> display ipv6 routing-table protocol direct
Routing Table : Direct
Summary Count : 1
Direct Routing Table Status : < Active >
Summary Count : 1
Destination : 2001:db8:1::1 PrefixLength : 128
NextHop : 2001:db8:2::1 Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : InLoopBack0 Flags : D
Direct routing table status :<Inactive>
Summary Count : 0
<HUAWEI> display ipv6 routing-table vpn-instance vrf1 ipv6-prefix 33
Routing Table : vrf1
Destinations : 2 Routes : 2
Destination : 2001:db8:1::1 PrefixLength : 128
NextHop : 2001:db8:2::1 Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : LoopBack4 Flags : D
Destination : 2001:db8:1::2 PrefixLength : 10
NextHop : :: Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : NULL0 Flags : D
<HUAWEI> display ipv6 routing-table vpn-instance vpn1
Routing Table : vrf1
Destinations : 2 Routes : 2
Destination : 2001:db8:1::1 PrefixLength : 128
NextHop : 2001:db8:2::1 Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : LoopBack4 Flags : D
Destination : 2001:db8:1::2 PrefixLength : 10
NextHop : :: Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : NULL0
<HUAWEI> display ipv6 routing-table
Routing Table : _Public_
Destinations : 1 Routes : 1
Destination : 2001:db8:1::1 PrefixLength : 128
NextHop : 2001:db8:2::1 Preference : 0
Cost : 0 Protocol : Direct
RelayNextHop : :: TunnelID : 0x0
Interface : InLoopBack0 Flags : D
Item | Description |
---|---|
Route Flags | Route flag:
|
Routing Table | Routing table. |
Destinations | Number of the destination networks or hosts. |
Routes | Total number of routes. |
Destination/Mask | Address and mask length of the destination network or host. |
Proto | Routing protocol name. |
Pre | Routing protocol priority. |
Cost | Route cost. |
Flags | Route flags. |
NextHop | IPv6 address of the adjacent next hop through which the packet reaches the destination. |
Interface | Outbound interface through which the next hop is reachable. |
Direct Routing Table Status | Status of direct routes:
|
Format | Format. |
Protocol | Routing protocol. |
Summary Count | Number of summary routes. |
Destination | Address of the destination network or host. |
PrefixLength | Length of the prefix. |
Preference | Priority of the route. |
RelayNextHop | Recursive next hop. |
TunnelID | Tunnel ID. The value 0x0 indicates that no tunnel is used or no tunnel has been set up. |