- Table of Contents
-
- 04-Network Connectivity Command Reference
- 00-Preface
- 01-MAC address table commands
- 02-Ethernet link aggregation commands
- 03-Port isolation commands
- 04-VLAN commands
- 05-Loop detection commands
- 06-Spanning tree commands
- 07-LLDP commands
- 08-Layer 2 forwarding commands
- 09-PPP commands
- 10-ARP commands
- 11-IP addressing commands
- 12-DHCP commands
- 13-DHCPv6 commands
- 14-DNS commands
- 15-NAT commands
- 16-IP performance optimization commands
- 17-IPv6 basics commands
- 18-Static routing commands
- 19-IPv6 static routing commands
- Related Documents
-
Title | Size | Download |
---|---|---|
19-IPv6 static routing commands | 83.29 KB |
IPv6 static routing commands
display ipv6 routing-table
Use display ipv6 routing-table to display IPv6 routing table information.
Syntax
display ipv6 routing-table [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
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.
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
Field |
Description |
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. |
# Display detailed information about all routes in the IPv6 routing table.
<Sysname> display ipv6 routing-table verbose
Destinations : 2 Routes : 2
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
SRLabel: NULL Interface: InLoopBack0
BkSRLabel: NULL BkInterface: N/A
SIDIndex: NULL InLabel: NULL
Tunnel ID: Invalid IPInterface: InLoopBack0
BkTunnel ID: Invalid BkIPInterface: N/A
FtnIndex: 0x0 ColorInterface: N/A
TrafficIndex: N/A BkColorInterface: N/A
Connector: N/A VpnPeerId:
N/A
Dscp: N/A Exp: N/A
SRTunnelID: Invalid StatFlags: 0x0
SID Type: N/A SID: N/A
BkSID: N/A NID: Invalid
FlushNID: Invalid BkNID: Invalid
BkFlushNID: Invalid PathID: 0x0
CommBlockLen: 0
OrigLinkID: 0x0 RealLinkID: 0x0
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
SRLabel: NULL Interface: Vlan-interface11
BkSRLabel: NULL BkInterface: N/A
SIDIndex: NULL InLabel: NULL
Tunnel ID: Invalid IPInterface: Vlan-interface11
BkTunnel ID: Invalid BkIPInterface: N/A
FtnIndex: 0x0 ColorInterface: N/A
TrafficIndex: N/A BkColorInterface: N/A
Connector: N/A VpnPeerId:
N/A
Dscp: N/A Exp: N/A
SRTunnelID: Invalid StatFlags: 0x0
SID Type: N/A SID: N/A
BkSID: N/A NID: Invalid
FlushNID: Invalid BkNID: Invalid
BkFlushNID: Invalid PathID: 0x0
CommBlockLen: 0
OrigLinkID: 0x0 RealLinkID: 0x0
Field |
Description |
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. This state is not supported in the current software version. · Nat—Routes generated by NAT. This state is not supported in the current software version. · TunE—Tunnel. This state is not supported in the current software version. |
OrigTblID |
Original routing table ID. |
OrigVrf |
This field is not supported in the current software version. Original VPN instance that the route belongs to. This field displays default-vrf if the route is on the public network. |
TableID |
ID of the routing table. |
OrigAs |
This field is not supported in the current software version. Original AS number. |
NibID |
ID of the next hop. |
LastAs |
This field is not supported in the current software version. Last AS number. |
AttrID |
This field is not supported in the current software version. Attribute ID. |
Neighbor |
Address of the neighbor determined by the routing protocol. |
Flags |
Flags of the route. |
OrigNextHop |
Next hop address of the route. |
Label |
This field is not supported in the current software version. Label of the route. |
RealNextHop |
Real next hop of the route. |
BkLabel |
This field is not supported in the current software version. Backup label. |
BkNexthop |
Backup next hop. |
SRLabel |
This field is not supported in the current software version. SR label. |
BkSRLabel |
This field is not supported in the current software version. Backup SR label. |
Interface |
Output interface for packets to be forwarded along the route. |
BkInterface |
Backup output interface. |
SIDIndex |
This field is not supported in the current software version. SID index value. |
InLabel |
This field is not supported in the current software version. Incoming label of the route. |
Tunnel ID |
This field is not supported in the current software version. Tunnel ID. |
IPInterface |
IP output interface. |
BkTunnel ID |
This field is not supported in the current software version. Backup tunnel ID. |
BkIPInterface |
Backup IP output interface. |
FtnIndex |
Index of the FTN entry. |
ColorInterface |
This field is not supported in the current software version. Output interface recursed by an SR-MPLS TE policy or SRv6 TE policy. |
BkColorInterface |
Backup output interface recursed by an SR-MPLS TE policy or SRv6 TE policy. |
TrafficIndex |
Traffic index in the range of 1 to 64. This field displays N/A when the value is invalid. |
Connector |
This field is not supported in the current software version. 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. |
VpnPeerId |
This field is not supported in the current software version. ID of the VPN peer to which the route belongs, in the range of 1 to 134217727. This field displays N/A when the value is invalid. |
Dscp |
DSCP value of the route, in the range of 0 to 63. This field displays N/A when the value is invalid. |
Exp |
This field is not supported in the current software version. MPLS EXP value of the route, which is supported only by BGP. This field displays N/A when the value is invalid. |
Summary count |
Number of routes. |
SRTunnelID |
This field is not supported in the current software version. SR tunnel ID. |
StatFlags |
This field is not supported in the current software version. Flags for SRv6 traffic statistics. |
SID Type |
SID type. If the route does not have an SID, this field displays N/A. |
SID |
This field is not supported in the current software version. Primary Segment Identifier (SID). If no primary SID is available, this field displays N/A. |
BkSID |
This field is not supported in the current software version. Backup SID. If no backup SID is available, this field displays N/A. |
NID |
Index of the Next Hop Label Forwarding Entry (NHLFE) flushed by the routing protocol. |
FlushNID |
Index of the NHLFE flushed to the FIB. |
BkNID |
Index of the backup NHLFE flushed by the routing protocol. |
BkFlushNID |
Index of the backup NHLFE flushed to the FIB. |
PathID |
This field is not supported in the current software version. Path ID. |
CommBlockLen |
Common prefix length in the locator. |
OrigLinkID |
This field is not supported in the current software version. Original link ID of the SDWAN TTE connection. |
RealLinkID |
This field is not supported in the current software version. Real link ID of the SDWAN TTE connection. |
ipv6 route-static
Use ipv6 route-static to configure an IPv6 static route.
Use undo ipv6 route-static to remove an IPv6 static route.
Syntax
ipv6 route-static ipv6-address prefix-length { interface-type interface-number | next-hop-address } [ preference preference ]
undo ipv6 route-static ipv6-address prefix-length [ interface-type interface-number | next-hop-address ] [ preference preference ]
Default
No IPv6 static route is configured.
Views
System view
Predefined user roles
network-admin
Parameters
ipv6-address prefix-length: Specifies the IPv6 address and prefix length.
interface-type interface-number: Specifies an output interface by its type and number. Only Null 0 is supported.
next-hop-address: Specifies the next hop IPv6 address.
preference preference: Specifies a preference for IPv6 static routes, in the range of 1 to 255. The default is 60.
Usage guidelines
An IPv6 static route that has the destination address configured as ::/0 (a prefix length of 0) is the default IPv6 route. If the destination address of an IPv6 packet does not match any entry in the routing table, this default route is used to forward the packet.
Examples
# Configure an IPv6 static route, with the destination address 1:1:2::/64 and next hop 1:1:3::1.
<Sysname> system-view
[Sysname] ipv6 route-static 1:1:2:: 64 1:1:3::1