- Table of Contents
-
- 05-Network Connectivity
- 00-Preface
- 01-MAC address table commands
- 02-Ethernet link aggregation commands
- 03-VLAN commands
- 04-Loop detection commands
- 05-Spanning tree commands
- 06-LLDP commands
- 07-Layer 2 forwarding commands
- 08-L2TP commands
- 09-ARP commands
- 10-IP addressing commands
- 11-DHCP commands
- 12-DHCP snooping commands
- 13-DHCPv6 commands
- 14-DHCPv6 snooping commands
- 15-DNS commands
- 16-HTTP commands
- 17-IP forwarding basics commands
- 18-Fast forwarding commands
- 19-Adjacency table commands
- 20-IP performance optimization commands
- 21-IPv6 basics commands
- 22-IPv6 neighbor discovery commands
- 23-IPv6 fast forwarding commands
- 24-NAT commands
- 25-Basic IP routing commands
- 26-Static routing commands
- 27-RIP commands
- 28-OSPF commands
- 29-Policy-based routing commands
- 30-IPv6 policy-based routing commands
- 31-IPv6 static routing commands
- 32-RIPng commands
- 33-GRE commands
- 34-IGMP snooping commands
- 35-MLD snooping commands
- Related Documents
-
Title | Size | Download |
---|---|---|
25-Basic IP routing commands | 280.25 KB |
display ip routing-table ip-address
display ip routing-table prefix-list
display ip routing-table protocol
display ip routing-table statistics
display ip routing-table summary
display ipv6 rib graceful-restart
display ipv6 routing-table acl
display ipv6 routing-table ipv6-address
display ipv6 routing-table prefix-list
display ipv6 routing-table protocol
display ipv6 routing-table statistics
display ipv6 routing-table summary
ip load-sharing symmetric enable
ipv6 route fast-switchover enable
reset ip routing-table statistics protocol
reset ipv6 routing-table statistics protocol
Basic IP routing commands
The term "router" in this chapter refers to a routing-capable device.
display ip load-sharing mode
Use display ip load-sharing mode to display the load sharing mode in use.
Syntax
display ip load-sharing mode
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display the load sharing mode in use.
<Sysname> display ip load-sharing mode slot 1
Load-sharing mode: per-flow
Load-sharing options: dest-ip | src-ip | ip-pro | dest-port | src-port | ingress-port
Load-sharing algorithm: 0
IP tunnel load-sharing mode: outer
Load-sharing algorithm: 1
Load-sharing algorithm: 2
Table 1 Command output
Field |
Description |
Load-sharing mode |
The load sharing mode in use. Values include: · per-flow—Per-flow load sharing. · per-packet—Per-packet load sharing. |
Load-sharing options |
Options configured for load sharing: · dest-ip—Identifies flows by packet's destination IP address. · src-ip—Identifies flows by packet's source IP address. · ip-pro—Identifies flows by packet's IP protocol. · dest-port—Identifies flows by packet's destination port number. · src-port—Identifies flows by packet's source port number. · ingress-port—Identifies flows by packet's ingress port. |
Load-sharing algorithm |
Algorithm used by load sharing. |
Related commands
ip load-sharing mode
display ip load-sharing path
Use display ip load-sharing path to display the load sharing path selected for a flow.
Syntax
display ip load-sharing path ingress-port interface-type interface-number packet-format { ipv4oe dest-ip ip-address [ src-ip ip-address ] | ipv6oe dest-ipv6 ipv6-address [ flow-label flow-label | src-ipv6 ipv6-address ] * } [ dest-port port-id | ip-pro protocol-id | src-port port-id ] *
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
ingress-port interface-type interface-number: Specifies an ingress port by its type and number.
packet-format { ipv4oe dest-ip ip-address [src-ip ip-address ] | ipv6oe dest-ipv6 ipv6-address [ src-ipv6 ipv6-address ] }: Specifies the packet encapsulation format.
ipv4oe: Specifies the format of IPv4 over Ethernet.
dest-ip ip-address: Specifies the destination IPv4 address in dotted decimal notation. If you do not specify this argument, the calculation uses 0.0.0.0 for path selection.
src-ip ip-address: Specifies the source IPv4 address in dotted decimal notation. If you do not specify this argument, the calculation uses 0.0.0.0 for path selection.
ipv6oe: Specifies the format of IPv6 over Ethernet.
dest-ipv6 ipv6-address: Specifies the destination IPv6 address. If you do not specify this option, the calculation uses 0:0:0:0:0:0:0:0 for path selection.
flow-label flow-label: Specifies the flow label in IPv6 packets. The value range for the flow-label argument is 0 to 1048575. If you do not specify a flow label, the device uses flow label 0 when it calculates ECMP route selection information.
src-ipv6 ipv6-address: Specifies the source IPv6 address. If you do not specify this option, the calculation uses 0:0:0:0:0:0:0:0 for path selection.
dest-port port-id: Specifies a destination port number in the range of 1 to 65535. If you do not specify this option, the calculation uses 0 for path selection.
ip-pro protocol-id: Specifies an IP protocol by its number in the range of 1 to 65535. If you do not specify this option, the calculation uses 0 for path selection.
source-port port-id: Specifies a source port number in the range of 1 to 65535. If you do not specify this option, the calculation uses 0 for path selection.
Usage guidelines
The option settings in this command must match both the options displayed in the display ip load-sharing mode command and the field values in load shared packets. If the option settings do not meet the requirement, the path displayed by this command might be different from the real path for load sharing.
Examples
# Display the load sharing path selected for the flow with the following attributes: ingress port GigabitEthernet 1/0/3, destination IP address 10.110.0.2, source IP address 10.100.0.2, IP protocol number 153, destination port number 2000, source port number 2000.
<Sysname> display ip load-sharing path ingress-port gigabitethernet 1/0/3 packet-format ipv4oe dest-ip 10.110.0.2 src-ip 10.100.0.2 ip-pro 153 dest-port 2000 src-port 2000
Load-sharing algorithm: 0
Load-sharing options: dest-ip | src-ip | ip-pro | dest-port | src-port | ingress-port
Load-sharing parameters:
Missing configured are set to 0.
ingress-port: GigabitEthernet1/0/3
packet-format: IPv4oE
dest-ip: 10.110.0.2
src-ip: 10.100.0.2
ip-pro: 153
dest-port: 2000
src-port: 2000
Path selected: 20.0.0.2(interface GigabitEthernet1/0/3)
Table 2 Command output
Field |
Description |
Load-sharing algorithm |
Load sharing algorithm ID. |
Load-sharing options |
Load sharing options specified by the ip load-sharing mode command. |
Load-sharing parameters |
Load sharing parameters that you specify for the display ip load-sharing path command. |
Missing configured are set to 0. |
Values of the unconfigured parameters are set to 0. |
ingress-port |
Ingress port of the packet. |
packet-format |
Packet encapsulation format. |
dest-ip |
Destination IP address of the packet. |
src-ip |
Source IP address of the packet. |
ip-pro |
IP protocol number. |
dest-port |
Destination port number. |
src-port: |
Source port number. |
Path selected |
Selected path information, including the IPv4 or IPv6 address of the next hop and the egress port. |
Related commands
ip load-sharing mode
display ip routing-table
Use display ip routing-table to display routing table information.
Syntax
display ip routing-table [ verbose ]
display ip routing-table all-routes
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
all-routes: Displays routing table information for the public network.
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 routing table.
<Sysname> display ip routing-table
Destinations : 12 Routes : 12
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
1.1.1.0/24 Static 60 0 192.168.47.4 Vlan12
Static 60 0 192.168.47.4 Vlan13
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
192.168.1.0/24 Direct 0 0 192.168.1.40 Vlan11
192.168.1.0/32 Direct 0 0 192.168.1.40 Vlan11
192.168.1.40/32 Direct 0 0 127.0.0.1 InLoop0
192.168.1.255/32 Direct 0 0 192.168.1.40 Vlan11
224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0
224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0
255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
# Display brief information about active routes in the routing table for the public network.
<Sysname> display ip routing-table all-routes
VPN instance: public instance
Destinations : 10 Routes : 10
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
1.1.1.0/24 Static 60 0 192.168.47.4 Vlan11
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
192.168.1.40/32 Direct 0 0 127.0.0.1 InLoop0
224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0
224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0
255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
Field |
Description |
Destinations |
Number of destination addresses. |
Routes |
Number of routes. |
Destination/Mask |
Destination address/mask length. |
Proto |
Route type or protocol that installed the route: · Direct—Direct route. · Static—Static route. · RIP—RIP route. · OSPF—OSPF route. · O_INTRA—OSPF intra-area route. · O_INTER—OSPF inter-area route. · O_ASE1—OSPF Type-1 external route. · O_ASE2—OSPF Type-2 external route. · O_SUM—OSPF summary route. |
Pre |
Preference of the route. |
Cost |
Cost of the route. |
NextHop |
Next hop address of the route. |
Interface |
Output interface for packets to be forwarded along the route. |
Summary count |
Number of routes. |
# Display detailed information about all routes in the routing table.
<Sysname> display ip routing-table verbose
Destinations : 13 Routes : 13
Destination: 0.0.0.0/32
Protocol: Direct
Process ID: 0
SubProtID: 0x0 Age: 08h34m37s
Cost: 0 Preference: 0
IpPre: N/A QosLocalID: N/A
Tag: 0 State: Active NoAdv
OrigTblID: 0x0 OrigVrf: default-vrf
TableID: 0x2 OrigAs: 0
NibID: 0x10000000 LastAs: 0
AttrID: 0xffffffff Neighbor: 0.0.0.0
Flags: 0x1000c OrigNextHop: 127.0.0.1
Label: NULL RealNextHop: 127.0.0.1
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL Interface: InLoopBack0
BkSRLabel: NULL BkInterface: N/A
Tunnel ID: Invalid IPInterface: InLoopBack0
BkTunnel ID: Invalid BKIPInterface: N/A
InLabel: NULL ColorInterface: N/A
SIDIndex: NULL BKColorInterface: N/A
FtnIndex: 0x0 TunnelInterface: N/A
TrafficIndex: N/A BKTunnelInterface: N/A
Connector: N/A PathID: 0x0
SRTunnelID: Invalid
SID Type: N/A NID: Invalid
FlushNID: Invalid BkNID: Invalid
BkFlushNID: Invalid StatFlags: 0x0
Exp: N/A
VpnPeerId: N/A Dscp: N/A
SID: N/A OrigLinkID: 0x0
BkSID: N/A RealLinkID: 0x0
CommBlockLen: 0
Destination: 1.1.1.0/24
Protocol: Static
Process ID: 0
SubProtID: 0x0 Age: 04h20m37s
Cost: 0 Preference: 60
IpPre: N/A QosLocalID: N/A
Tag: 0 State: Active Adv
OrigTblID: 0x0 OrigVrf: default-vrf
TableID: 0x2 OrigAs: 0
NibID: 0x10000003 LastAs: 0
AttrID: 0xffffffff Neighbor: 0.0.0.0
Flags: 0x1008c OrigNextHop: 192.168.47.4
Label: NULL RealNextHop: 192.168.47.4
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL Interface: Vlan-interface12
BkSRLabel: NULL BkInterface: N/A
Tunnel ID: Invalid IPInterface: Vlan-interface12
BkTunnel ID: Invalid BKIPInterface: N/A
InLabel: NULL ColorInterface: N/A
SIDIndex: NULL BKColorInterface: N/A
FtnIndex: 0x0 TunnelInterface: N/A
TrafficIndex: N/A BKTunnelInterface: N/A
Connector: N/A PathID: 0x0
SRTunnelID: Invalid
SID Type: N/A NID: Invalid
FlushNID: Invalid BkNID: Invalid
BkFlushNID: Invalid StatFlags: 0x0
Exp: N/A
VpnPeerId: N/A Dscp: N/A
SID: N/A OrigLinkID: 0x0
BkSID: N/A RealLinkID: 0x0
CommBlockLen: 0
...
Field |
Description |
Destinations |
Number of destination addresses. |
Routes |
Number of routes. |
Destination |
Destination address/mask length. |
Protocol |
Route type or protocol that installed the route: · Direct—Direct route. · Static—Static route. · RIP—RIP route. · OSPF—OSPF route. · O_INTRA—OSPF intra-area route. · O_INTER—OSPF inter-area route. · O_ASE1—OSPF Type-1 external route. · O_ASE2—OSPF Type-2 external route. · O_SUM—OSPF summary 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. N/A represents an invalid value. |
Tag |
Route tag. |
State |
Route status: · Active—Active unicast route. · Adv—Route that can be advertised. · Inactive—Inactive route. · NoAdv—Route that the router must not advertise. · Nat—Routes generated by NAT. · TunE—Tunnel. · Derived—Derived route. If a route recurses to multiple related routes, all related routes except the first one are derived routes. The number of derived routes is not included in the total number of routes. |
OrigTblID |
Original routing table ID. |
OrigVrf |
This field is not supported in the current software version. Original VPN instance to which the route belongs. 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 |
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. |
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. Segment routing (SR) label. |
BkSRLabel |
This field is not supported in the current software version. Backup SR label. |
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 |
Tunnel ID. |
Interface |
Output interface for packets to be forwarded along the route. |
BkTunnel ID |
Backup tunnel ID. If an ellipsis (…) is displayed, the tunnel has multiple backup tunnels. Only the first backup tunnel can take effect. |
BkInterface |
Backup output interface. If an ellipsis (…) is displayed, the output interface has multiple backup output interfaces. Only the first backup output interface can take effect. |
IPInterface |
IP output interface. |
BkIPInterface |
Backup IP output interface. |
ColorInterface |
This field is not supported in the current software version. Color output interface obtained through SR-MPLS TE policy-based recursion or SRv6 TE policy-based recursion. |
BkColorInterface |
This field is not supported in the current software version. Backup color output interface. |
FtnIndex |
Index of the FTN entry. |
TunnelInterface |
Tunnel output interface. |
TrafficIndex |
Traffic index in the range of 1 to 64. This field displays N/A when the value is invalid. |
BkTunnelInterface |
Backup tunnel output interface. |
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 the BGP connector attribute is not supported. |
Summary count |
Number of routes. |
PathID |
Path ID. |
SRTunnelID |
This field is not supported in the current software version. SR tunnel ID. |
SID Type |
This field is not supported in the current software version. SID type. If the route does not have an SID, this field displays N/A. |
NID |
Index of the Next Hop Label Forwarding Entry (NHLFE) issued by the routing protocol. |
FlushNID |
Actual NHLFE index issued to the FIB. |
BkNID |
Backup NHLFE index issued by the routing protocol. |
BkFlushNID |
Actual backup NHLFE index issued to the FIB. |
StatFlags |
This field is not supported in the current software version. Flags for SRv6 traffic statistics. |
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 |
MPLS EXP value of the route, which is supported only by BGP. This field displays N/A when the value is invalid. |
SID |
This field is not supported in the current software version. Primary SID. N/A indicates that the attribute is not available. |
BkSID |
This field is not supported in the current software version. Backup SID. N/A indicates that the attribute is not available. |
CommBlockLen |
This field is not supported in the current software version. Common prefix length in the locator. |
OrigLinkID |
Original link ID of the SDWAN TTE connection. |
RealLinkID |
Real link ID of the SDWAN TTE connection. |
display ip routing-table acl
Use display ip routing-table acl to display information about routes permitted by a basic ACL.
Syntax
display ip routing-table acl ipv4-acl-number [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
ipv4-acl-number: Specifies a basic ACL by its number in the range of 2000 to 2999.
verbose: Displays detailed information about all routes permitted by the basic ACL. If you do not specify this keyword, the command displays only brief information about active routes permitted by the basic ACL.
Usage guidelines
If the specified ACL does not exist or has no rules configured, the command displays information about all routes.
Examples
# Define basic ACL 2000 and set the route filtering rules.
<Sysname> system-view
[Sysname] acl basic 2000
[Sysname-acl-ipv4-basic-2000] rule permit source 192.168.1.0 0.0.0.255
[Sysname-acl-ipv4-basic-2000] rule deny source any
# Display brief information about active routes permitted by basic ACL 2000.
[Sysname-acl-ipv4-basic-2000] display ip routing-table acl 2000
Summary count : 4
Destination/Mask Proto Pre Cost NextHop Interface
192.168.1.0/24 Direct 0 0 192.168.1.111 Vlan11
192.168.1.0/32 Direct 0 0 192.168.1.111 Vlan11
192.168.1.111/32 Direct 0 0 127.0.0.1 InLoop0
192.168.1.255/32 Direct 0 0 192.168.1.111 Vlan11
For command output, see Table 3.
# Display detailed information about all routes permitted by basic ACL 2000.
<Sysname> display ip routing-table acl 2000 verbose
Summary count : 4
Destination: 192.168.1.0/24
Protocol: Direct
Process ID: 0
SubProtID: 0x1 Age: 04h20m37s
Cost: 0 Preference: 0
IpPre: N/A QosLocalID: N/A
Tag: 0 State: Active Adv
OrigTblID: 0x0 OrigVrf: default-vrf
TableID: 0x2 OrigAs: 0
NibID: 0x10000003 LastAs: 0
AttrID: 0xffffffff Neighbor: 0.0.0.0
Flags: 0x10080 OrigNextHop: 192.168.1.111
Label: NULL RealNextHop: 192.168.1.111
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL Interface: Vlan-interface11
BkSRLabel: NULL BkInterface: N/A
Tunnel ID: Invalid IPInterface: Vlan-interface11
BkTunnel ID: Invalid BKIPInterface: N/A
InLabel: NULL ColorInterface: N/A
SIDIndex: NULL BKColorInterface: N/A
FtnIndex: 0x0 TunnelInterface: N/A
TrafficIndex: N/A BKTunnelInterface: N/A
Connector: N/A PathID: 0x0
SRTunnelID: Invalid
SID Type: N/A NID: Invalid
FlushNID: Invalid BkNID: Invalid
BkFlushNID: Invalid StatFlags: 0x0
Exp: N/A
VpnPeerId: N/A Dscp: N/A
SID: N/A OrigLinkID: 0x0
BkSID: N/A RealLinkID: 0x0
CommBlockLen: 0
Destination: 192.168.1.0/32
Protocol: Direct
Process ID: 0
SubProtID: 0x0 Age: 04h20m37s
Cost: 0 Preference: 0
IpPre: N/A QosLocalID: N/A
Tag: 0 State: Active NoAdv
OrigTblID: 0x0 OrigVrf: default-vrf
TableID: 0x2 OrigAs: 0
NibID: 0x10000003 LastAs: 0
AttrID: 0xffffffff Neighbor: 0.0.0.0
Flags: 0x1008c OrigNextHop: 192.168.1.111
Label: NULL RealNextHop: 192.168.1.111
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL Interface: Vlan-interface11
BkSRLabel: NULL BkInterface: N/A
Tunnel ID: Invalid IPInterface: Vlan-interface11
BkTunnel ID: Invalid BKIPInterface: N/A
InLabel: NULL ColorInterface: N/A
SIDIndex: NULL BKColorInterface: N/A
FtnIndex: 0x0 TunnelInterface: N/A
TrafficIndex: N/A BKTunnelInterface: N/A
Connector: N/A PathID: 0x0
SRTunnelID: Invalid
SID Type: N/A NID: Invalid
FlushNID: Invalid BkNID: Invalid
BkFlushNID: Invalid StatFlags: 0x0
Exp: N/A
VpnPeerId: N/A Dscp: N/A
SID: N/A OrigLinkID: 0x0
BkSID: N/A RealLinkID: 0x0
CommBlockLen: 0
Destination: 192.168.1.111/32
Protocol: Direct
Process ID: 0
SubProtID: 0x1 Age: 04h20m37s
Cost: 0 Preference: 0
IpPre: N/A QosLocalID: N/A
Tag: 0 State: Active NoAdv
OrigTblID: 0x0 OrigVrf: default-vrf
TableID: 0x2 OrigAs: 0
NibID: 0x10000000 LastAs: 0
AttrID: 0xffffffff Neighbor: 0.0.0.0
Flags: 0x10004 OrigNextHop: 127.0.0.1
Label: NULL RealNextHop: 127.0.0.1
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL Interface: InLoopBack0
BkSRLabel: NULL BkInterface: N/A
Tunnel ID: Invalid IPInterface: InLoopBack0
BkTunnel ID: Invalid BKIPInterface: N/A
InLabel: NULL ColorInterface: N/A
SIDIndex: NULL BKColorInterface: N/A
FtnIndex: 0x0 TunnelInterface: N/A
TrafficIndex: N/A BKTunnelInterface: N/A
Connector: N/A PathID: 0x0
SRTunnelID: Invalid
SID Type: N/A NID: Invalid
FlushNID: Invalid BkNID: Invalid
BkFlushNID: Invalid StatFlags: 0x0
Exp: N/A
VpnPeerId: N/A Dscp: N/A
SID: N/A OrigLinkID: 0x0
BkSID: N/A RealLinkID: 0x0
CommBlockLen: 0
Destination: 192.168.1.255/32
Protocol: Direct
Process ID: 0
SubProtID: 0x0 Age: 04h20m37s
Cost: 0 Preference: 0
IpPre: N/A QosLocalID: N/A
Tag: 0 State: Active NoAdv
OrigTblID: 0x0 OrigVrf: default-vrf
TableID: 0x2 OrigAs: 0
NibID: 0x10000003 LastAs: 0
AttrID: 0xffffffff Neighbor: 0.0.0.0
Flags: 0x1008c OrigNextHop: 192.168.1.111
Label: NULL RealNextHop: 192.168.1.111
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL Interface: Vlan-interface11
BkSRLabel: NULL BkInterface: N/A
Tunnel ID: Invalid IPInterface: Vlan-interface11
BkTunnel ID: Invalid BKIPInterface: N/A
InLabel: NULL ColorInterface: N/A
SIDIndex: NULL BKColorInterface: N/A
FtnIndex: 0x0 TunnelInterface: N/A
TrafficIndex: N/A BKTunnelInterface: N/A
Connector: N/A PathID: 0x0
SRTunnelID: Invalid
SID Type: N/A NID: Invalid
FlushNID: Invalid BkNID: Invalid
BkFlushNID: Invalid StatFlags: 0x0
Exp: N/A
VpnPeerId: N/A Dscp: N/A
SID: N/A OrigLinkID: 0x0
BkSID: N/A RealLinkID: 0x0
CommBlockLen: 0
...
For command output, see Table 4.
display ip routing-table ip-address
Use display ip routing-table ip-address to display information about routes to a specific destination address.
Use display ip routing-table ip-address1 to ip-address2 to display information about routes to a range of destination addresses.
Syntax
display ip routing-table ip-address [ mask-length | mask ] [ longer-match ] [ verbose ]
display ip routing-table ip-address1 to ip-address2 [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
ip-address: Specifies a destination IP address in dotted decimal notation.
mask-length: Specifies the mask length, an integer in the range of 0 to 32.
mask: Specifies the IP address mask in dotted decimal notation.
longer-match: Displays the route entries that meet the matching rules as described in the usage guidelines.
ip-address1 to ip-address2: Specifies a destination IP address range.
verbose: Displays detailed routing table information, including information about both active and inactive routes. If you do not specify this keyword, the command displays brief information about active routes.
Usage guidelines
Executing the command with different parameters yields different outputs.
· display ip routing-table ip-address
¡ The system ANDs the entered destination IP address with the subnet mask in each active route entry.
¡ The system ANDs the destination IP address in each active route entry with its own subnet mask.
If the two operations yield the same result for an entry, the entry is displayed.
· display ip routing-table ip-address mask
¡ The system ANDs the entered destination IP address with the entered subnet mask.
¡ The system ANDs the destination IP address in each active route entry with the entered subnet mask.
If the two operations yield the same result for an entry with a subnet mask not greater than the entered subnet mask, the entry is displayed.
· display ip routing-table ip-address longer-match
¡ The system ANDs the entered destination IP address with the subnet mask in the following way:
- If the entered IP address belongs to class A, B, or C, the system ANDs it with the default subnet mask of the corresponding class.
- If the entered IP address is 0.0.0.0, the system ANDs it with the subnet mask 0.0.0.0.
- Except the previous cases, for example, if the entered IP address is a loopback address, the system ANDs it with the subnet mask 255.255.255.255.
¡ The system ANDs the destination IP address in each active route entry with the subnet mask of the entered IP address.
If the two operations yield the same result for multiple entries, all the entries are displayed.
· display ip routing-table ip-address mask longer-match
¡ The system ANDs the entered destination IP address with the entered subnet mask.
¡ The system ANDs the destination IP address in each active route entry with the entered subnet mask.
If the two operations yield the same result for multiple entries, all the entries are displayed.
· display ip routing-table ip-address1 to ip-address2
The system displays active route entries with destinations in the range of ip-address1/32 to ip-address2/32.
Examples
# Display brief information about the routes to the destination IP address 11.0.0.1.
<Sysname> display ip routing-table 11.0.0.1
Summary count : 3
Destination/Mask Proto Pre Cost NextHop Interface
11.0.0.0/8 Static 60 0 0.0.0.0 NULL0
11.0.0.0/16 Static 60 0 0.0.0.0 NULL0
11.0.0.0/24 Static 60 0 0.0.0.0 NULL0
# Display brief information about the routes to the destination IP address 11.0.0.1 with mask length 20.
<Sysname> display ip routing-table 11.0.0.1 20
Summary count : 2
Destination/Mask Proto Pre Cost NextHop Interface
11.0.0.0/8 Static 60 0 0.0.0.0 NULL0
11.0.0.0/16 Static 60 0 0.0.0.0 NULL0
# Display brief information about the routes to the destination IP address 11.0.0.1 with the default mask length for class A networks.
<Sysname> display ip routing-table 11.0.0.1 longer-match
Summary count : 3
Destination/Mask Proto Pre Cost NextHop Interface
11.0.0.0/8 Static 60 0 0.0.0.0 NULL0
11.0.0.0/16 Static 60 0 0.0.0.0 NULL0
11.0.0.0/24 Static 60 0 0.0.0.0 NULL0
# Display brief information about the routes to the destination IP address 11.0.0.1 with mask length 20.
<Sysname> display ip routing-table 11.0.0.1 20 longer-match
Summary count : 3
Destination/Mask Proto Pre Cost NextHop Interface
11.0.0.0/8 Static 60 0 0.0.0.0 NULL0
11.0.0.0/16 Static 60 0 0.0.0.0 NULL0
11.0.0.0/24 Static 60 0 0.0.0.0 NULL0
# Display brief information about the routes to destination addresses in the range of 1.1.1.0 to 5.5.5.0.
<Sysname> display ip routing-table 1.1.1.0 to 5.5.5.0
Summary count : 4
Destination/Mask Proto Pre Cost NextHop Interface
1.1.1.1/32 Direct 0 0 127.0.0.1 InLoop0
2.2.2.0/24 Direct 0 0 2.2.2.1 Vlan2
3.3.3.1/32 Direct 0 0 127.0.0.1 InLoop0
4.4.4.1/32 Direct 0 0 127.0.0.1 InLoop0
# Display detailed information about the routes to the destination IP address 1.2.3.4.
<Sysname> display ip routing-table 1.2.3.4 verbose
Summary count : 1
Destination: 1.2.3.4/32
Protocol: Static
Process ID: 0
SubProtID: 0x1 Age: 00h00m37s
Cost: 0 Preference: 60
IpPre: N/A QosLocalID: N/A
Tag: 0 State: Active Adv
OrigTblID: 0x0 OrigVrf: default-vrf
TableID: 0x2 OrigAs: 0
NibID: 0x15000000 LastAs: 0
AttrID: 0x0 Neighbor: 0.0.0.0
Flags: 0x10060 OrigNextHop: 192.168.47.2
Label: NULL RealNextHop: 192.168.47.2
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL Interface: Vlan-interface11
BkSRLabel: NULL BkInterface: N/A
Tunnel ID: Invalid IPInterface: Vlan-interface11
BkTunnel ID: Invalid BKIPInterface: N/A
InLabel: NULL ColorInterface: N/A
SIDIndex: NULL BKColorInterface: N/A
FtnIndex: 0x0 TunnelInterface: N/A
TrafficIndex: N/A BKTunnelInterface: N/A
Connector: N/A PathID: 0x0
SRTunnelID: Invalid
SID Type: N/A NID: Invalid
FlushNID: Invalid BkNID: Invalid
BkFlushNID: Invalid StatFlags: 0x0
Exp: N/A
VpnPeerId: N/A Dscp: N/A
SID: N/A OrigLinkID: 0x0
BkSID: N/A RealLinkID: 0x0
CommBlockLen: 0
For command output, see Table 4.
display ip routing-table prefix-list
Use display ip routing-table prefix-list to display routes permitted by an IP prefix list.
Syntax
display ip routing-table prefix-list prefix-list-name [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
prefix-list-name: Specifies an IP prefix list by its name, a case-sensitive string of 1 to 63 characters.
verbose: Displays detailed information about all routes permitted by the IP prefix list. If you do not specify this keyword, the command displays brief information about active routes permitted by the IP prefix list.
Usage guidelines
If the specified IP prefix list does not exist, the command displays information about all routes.
Examples
# Create an IP prefix list named test to permit the route 1.1.1.0/24.
<Sysname> system-view
[Sysname] ip prefix-list test permit 1.1.1.0 24
# Display brief information about the active route permitted by the IP prefix list.
[Sysname] display ip routing-table prefix-list test
Summary count : 1
Destination/Mask Proto Pre Cost NextHop Interface
1.1.1.0/24 Direct 0 0 1.1.1.2 Vlan11
For command output, see Table 3.
# Display detailed information about all routes permitted by the IP prefix list.
[Sysname] display ip routing-table prefix-list test verbose
Summary count : 1
Destination: 1.1.1.0/24
Protocol: Direct
Process ID: 0
SubProtID: 0x1 Age: 04h20m37s
Cost: 0 Preference: 0
IpPre: N/A QosLocalID: N/A
Tag: 0 State: Active Adv
OrigTblID: 0x0 OrigVrf: default-vrf
TableID: 0x2 OrigAs: 0
NibID: 0x10000003 LastAs: 0
AttrID: 0xffffffff Neighbor: 0.0.0.0
Flags: 0x1008c OrigNextHop: 1.1.1.2
Label: NULL RealNextHop: 1.1.1.2
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL Interface: Vlan-interface11
BkSRLabel: NULL BkInterface: N/A
Tunnel ID: Invalid IPInterface: Vlan-interface11
BkTunnel ID: Invalid BKIPInterface: N/A
InLabel: NULL ColorInterface: N/A
SIDIndex: NULL BKColorInterface: N/A
FtnIndex: 0x0 TunnelInterface: N/A
TrafficIndex: N/A BKTunnelInterface: N/A
Connector: N/A PathID: 0x0
SRTunnelID: Invalid
SID Type: N/A NID: Invalid
FlushNID: Invalid BkNID: Invalid
BkFlushNID: Invalid StatFlags: 0x0
Exp: N/A
VpnPeerId: N/A Dscp: N/A
SID: N/A OrigLinkID: 0x0
BkSID: N/A RealLinkID: 0x0
CommBlockLen: 0
For command output, see Table 4.
display ip routing-table protocol
Use display ip routing-table protocol to display information about routes installed by a protocol.
Syntax
display ip routing-table protocol protocol [ inactive | verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
protocol: Specifies a routing protocol.
inactive: Displays information about inactive routes. If you do not specify this keyword, the command displays information about both active and inactive routes.
verbose: Displays detailed routing table information. If you do not specify this keyword, the command displays brief routing information.
Examples
# Display brief information about direct routes.
<Sysname> display ip routing-table protocol direct
Summary count : 9
Direct Routing table status : <Active>
Summary count : 9
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
2.2.2.0/24 Direct 0 0 2.2.2.1 Vlan2
2.2.2.0/32 Direct 0 0 2.2.2.1 Vlan2
2.2.2.2/32 Direct 0 0 127.0.0.1 InLoop0
2.2.2.255/32 Direct 0 0 2.2.2.1 Vlan2
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
Direct Routing table status : <Inactive>
Summary count : 0
# Display brief information about static routes.
<Sysname> display ip routing-table protocol static
Summary count : 1
Static Routing table status : <Active>
Summary count : 0
Static Routing table status : <Inactive>
Summary count : 1
Destination/Mask Proto Pre Cost NextHop Interface
1.2.3.0/24 Static 60 0 1.2.4.5 Vlan10
display ip routing-table statistics
Use display ip routing-table statistics to display IPv4 route or route prefix statistics.
Syntax
display ip routing-table [ all-routes ] [ prefix ] statistics
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
all-routes: Specifies the public network.
prefix: Displays statistics about IPv4 route prefixes. If you do not specify this keyword, the command displays statistics about IPv4 routes.
Usage guidelines
If you do not specify any parameters, this command displays statistics about IPv4 routes in the public network.
Examples
# Display IPv4 route statistics for the public network.
<Sysname> display ip routing-table statistics
Total prefixes: 15 Active prefixes: 15
Proto Routes Active Added Deleted
DIRECT 12 12 30 18
STATIC 3 3 5 2
UNR 0 0 0 0
RIP 0 0 0 0
OSPF 0 0 0 0
IS-IS 0 0 0 0
LISP 0 0 0 0
EIGRP 0 0 0 0
BGP 0 0 0 0
OpenR 0 0 0 0
Total 15 15 35 20
# Display IPv4 route prefix statistics for the public network.
<Sysname> display ip routing-table prefix statistics
Proto Prefixes Active Added Deleted
DIRECT 7 7 7 0
STATIC 0 0 0 0
UNR 0 0 0 0
RIP 1 0 1 0
OSPF 0 0 0 0
IS-IS 0 0 0 0
LISP 0 0 0 0
EIGRP 0 0 0 0
BGP 0 0 0 0
OpenR 0 0 0 0
Total 8 7 8 0
Table 5 Command output
Field |
Description |
Proto |
Protocol that installed the route. Only the DIRECT and STATIC values are supported. |
Routes |
Number of routes installed by the protocol. |
Prefixes |
Number of IPv4 route prefixes. |
Active |
Number of active routes. |
Added |
Number of routes added to the routing table after the router started up or the routing table was cleared most recently. |
Deleted |
Number of routes marked as deleted, which will be cleared after a period. |
Total |
Total number of routes. |
display ip routing-table summary
Use display ip routing-table summary to display brief routing table information, including maximum number of ECMP routes, maximum number of active routes, and number of remaining active routes.
Syntax
display ip routing-table summary
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
Examples
# Display brief routing table information for the public network.
<Sysname> display ip routing-table summary
Max ECMP: 32
Max Active Route: 262144
Remain Active Route: 262126
Field |
Description |
Max ECMP |
This field is not supported in the current software version. Maximum number of ECMP routes supported by the system. |
Max Active Route |
Maximum number of supported routes. |
Remain Active Route |
Number of the remaining inactive routes. |
display ipv6 rib graceful-restart
Use display ipv6 rib graceful-restart to display IPv6 RIB GR state information.
Syntax
display ipv6 rib graceful-restart
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display IPv6 RIB GR state information.
<Sysname> display ipv6 rib graceful-restart
RIB GR state : Phase2-calculation end
RCOM GR state : Flush end
Protocol GR state:
No. Protocol Lifetime FD State Start/End
--------------------------------------------------
1 DIRECT6 480 29 End No/No
2 STATIC6 480 32 End No/No
3 OpenR6 480 83 End No/No
For command output, see Table 10.
display ipv6 rib nib
Use display ipv6 rib nib to display next hop information in the IPv6 RIB.
Syntax
display ipv6 rib nib [ self-originated ] [ nib-id ] [ verbose ]
display ipv6 rib nib [ sub-nib nib-id ] [ verbose ]
display ipv6 rib nib protocol protocol [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
self-originated: Displays information about next hops of self-originated routes in the IPv6 RIB.
sub-nib nib-id: Specifies a sub-NIB by its ID to display information about its parent NIB.
nib-id: Specifies a NIB by its ID, a hexadecimal string in the range of 1 to ffffffff.
verbose: Displays detailed next hop information in the IPv6 RIB. If you do not specify this keyword, the command displays brief next hop information in the IPv6 RIB.
protocol protocol: Specifies a protocol by its name.
Examples
# Display brief next hop information in the IPv6 RIB.
<Sysname> display ipv6 rib nib
Total number of nexthop(s): 151
NibID: 0x20000000 Sequence: 0
Type: 0x1 Flushed: Yes
Age: 00h01m50s
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: ::
UserKey2: 0x0 IFIndex: 0x111
UserKey3: 0x0 LocalAddr: ::
TopoNthp: Invalid ExtType: 0x0
Color: 0 COFlag: 0x0
LinkID: 0x0
SIDIndex: 0x0 SRPName:
OriNexthop: ::
NibID: 0x20000001 Sequence: 1
Type: 0x1 Flushed: Yes
Age: 00h01m50s
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: ::1
UserKey2: 0x0 IFIndex: 0x112
UserKey3: 0x0 LocalAddr: ::1
TopoNthp: Invalid ExtType: 0x0
Color: 0 COFlag: 0x0
LinkID: 0x0
SIDIndex: 0x0 SRPName:
OriNexthop: ::
...
# Display detailed next hop information in the IPv6 RIB.
<Sysname> display ipv6 rib nib verbose
Total number of nexthop(s): 151
NibID: 0x20000000 Sequence: 0
Type: 0x1 Flushed: Yes
Age: 00h01m50s
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: ::
UserKey2: 0x0 IFIndex: 0x111
UserKey3: 0x0 LocalAddr: ::
TopoNthp: Invalid ExtType: 0x0
Color: 0 COFlag: 0x0
LinkID: 0x0
SIDIndex: 0x0 SRPName:
OriNexthop: ::
RefCnt: 4 FlushRefCnt: 1
Flag: 0x84 Version: 1
1 nexthop(s):
PrefixIndex: 0 OrigNexthop: ::
RelyDepth: 0 RealNexthop: ::
Interface: NULL0 LocalAddr: ::
TunnelCnt: 0 Vrf: default-vrf
TunnelID: N/A Topology:
Weight: 0 Flags: 0x0
SRPolicyNID: 4294967295 SRInterface:
ColorWeight: 0 Locator: N/A
OrigLinkID: 0x0 RealLinkID: 0x0
NibID: 0x20000001 Sequence: 1
Type: 0x1 Flushed: Yes
Age: 00h01m50s
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: ::1
UserKey2: 0x0 IFIndex: 0x112
UserKey3: 0x0 LocalAddr: ::1
TopoNthp: Invalid ExtType: 0x0
Color: 0 COFlag: 0x0
LinkID: 0x0
SIDIndex: 0x0 SRPName:
OriNexthop: ::
RefCnt: 4 FlushRefCnt: 1
Flag: 0x84 Version: 1
1 nexthop(s):
PrefixIndex: 0 OrigNexthop: ::1
RelyDepth: 0 RealNexthop: ::1
Interface: InLoop0 LocalAddr: ::1
TunnelCnt: 0 Vrf: default-vrf
TunnelID: N/A Topology:
Weight: 0 Flags: 0x0
SRPolicyNID: 4294967295 SRInterface:
ColorWeight: 0 Locator: N/A
OrigLinkID: 0x0 RealLinkID: 0x0
NibID: 0x26000002 Sequence: 1
Type: 0x1 Flushed: Yes
Age: 00h01m50s
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: 122::2
UserKey2: 0x0 IFIndex: 0x112
UserKey3: 0x0 LocalAddr: 122::2
TopoNthp: Invalid ExtType: 0x0
Color: 0 COFlag: 0x0
LinkID: 0x0
SIDIndex: 0x0 SRPName:
OriNexthop: ::
Instance: abc
RefCnt: 4 FlushRefCnt: 1
Flag: 0x84 Version: 1
1 nexthop(s):
PrefixIndex: 0 OrigNexthop: 122::2
RelyDepth: 0 RealNexthop: 122::2
Interface: InLoop0 LocalAddr: ::1
TunnelCnt: 0 Vrf: default-vrf
TunnelID: N/A Topology:
Weight: 0 Flags: 0x0
SRPolicyNID: 4294967295 SRInterface:
ColorWeight: 0 Locator: N/A
OrigLinkID: 0x0 RealLinkID: 0x0
...
For command output, see Table 11 and Table 12.
display ipv6 route-direct nib
Use display ipv6 route-direct nib to display next hop information for IPv6 direct routes.
Syntax
display ipv6 route-direct nib [ nib-id ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
nib-id: Specifies a NIB by its ID, a hexadecimal string in the range of 1 to ffffffff.
verbose: Displays detailed next hop information for IPv6 direct routes. If you do not specify this keyword, the command displays brief next hop information for IPv6 direct routes.
Examples
# Display brief next hop information for IPv6 direct routes.
<Sysname> display ipv6 route-direct nib
Total number of nexthop(s): 115
NibID: 0x20000000 Sequence: 0
Type: 0x1 Flushed: Yes
Age: 00h01m50s
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: ::
UserKey2: 0x0 IFIndex: 0x111
UserKey3: 0x0 LocalAddr: ::
TopoNthp: Invalid ExtType: 0x0
Color: 0 COFlag: 0x0
LinkID: 0x0
SIDIndex: 0x0 SRPName:
OriNexthop: ::
NibID: 0x20000001 Sequence: 1
Type: 0x1 Flushed: Yes
Age: 00h01m50s
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: ::1
UserKey2: 0x0 IFIndex: 0x112
UserKey3: 0x0 LocalAddr: ::1
TopoNthp: Invalid ExtType: 0x0
Color: 0 COFlag: 0x0
LinkID: 0x0
SIDIndex: 0x0 SRPName:
OriNexthop: ::
...
# Display detailed next hop information for IPv6 direct routes.
<Sysname> display ipv6 route-direct nib verbose
Total number of nexthop(s): 115
NibID: 0x20000000 Sequence: 0
Type: 0x1 Flushed: Yes
Age: 00h01m50s
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: ::
UserKey2: 0x0 IFIndex: 0x111
UserKey3: 0x0 LocalAddr: ::
TopoNthp: Invalid ExtType: 0x0
Color: 0 COFlag: 0x0
LinkID: 0x0
SIDIndex: 0x0 SRPName:
OriNexthop: ::
RefCnt: 1 FlushRefCnt: 0
Flag: 0x2 Version: 1
1 nexthop(s):
PrefixIndex: 0 OrigNexthop: ::
RelyDepth: 0 RealNexthop: ::
Interface: NULL0 LocalAddr: ::
TunnelCnt: 0 Vrf: default-vrf
TunnelID: N/A Topology:
Weight: 0 Flags: 0x0
SRPolicyNID: 4294967295 SRInterface:
ColorWeight: 0 Locator: N/A
OrigLinkID: 0x0 RealLinkID: 0x0
NibID: 0x20000001 Sequence: 1
Type: 0x1 Flushed: Yes
Age: 00h01m50s
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: ::1
UserKey2: 0x0 IFIndex: 0x112
UserKey3: 0x0 LocalAddr: ::1
TopoNthp: Invalid ExtType: 0x0
Color: 0 COFlag: 0x0
LinkID: 0x0
SIDIndex: 0x0 SRPName:
OriNexthop: ::
RefCnt: 1 FlushRefCnt: 0
Flag: 0x2 Version: 1
1 nexthop(s):
PrefixIndex: 0 OrigNexthop: ::1
RelyDepth: 0 RealNexthop: ::1
Interface: InLoop0 LocalAddr: ::1
TunnelCnt: 0 Vrf: default-vrf
TunnelID: N/A Topology:
Weight: 0 Flags: 0x0
SRPolicyNID: 4294967295 SRInterface:
ColorWeight: 0 Locator: N/A
OrigLinkID: 0x0 RealLinkID: 0x0
...
For command output, see Table 13 and Table 14.
display ipv6 routing-table
Use display ipv6 routing-table to display IPv6 routing table information.
Syntax
display ipv6 routing-table [ 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.
all-routes: Displays IPv6 routing table information for the public network.
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: 6::/64 Protocol : Static
NextHop : 5::2 Preference: 60
Interface : GE1/0/1 Cost : 0
Destination: 6::/64 Protocol : Static
NextHop : 5::2 Preference: 60
Interface : GE1/0/2 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 |
Route type or protocol that installed the route: · Direct—Direct route. · Static—Static route. · RIPng—RIPng 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
SRLabel: NULL Interface: InLoopBack0
BkSRLabel: NULL BkInterface: N/A
Tunnel ID: Invalid IPInterface: InLoopBack0
BkTunnel ID: Invalid BKIPInterface: N/A
InLabel: NULL ColorInterface: N/A
SIDIndex: NULL BKColorInterface: N/A
FtnIndex: 0x0 TunnelInterface: N/A
TrafficIndex: N/A BKTunnelInterface: N/A
Connector: N/A PathID: 0x0
SRTunnelID: Invalid
SID Type: N/A NID: Invalid
FlushNID: Invalid BkNID: Invalid
BkFlushNID: Invalid StatFlags: 0x0
Exp: N/A
VpnPeerId: N/A Dscp: N/A
SID: N/A OrigLinkID: 0x0
BkSID: N/A RealLinkID: 0x0
CommBlockLen: 0
Destination: 6::/64
Protocol: Static
Process ID: 0
SubProtID: 0x0 Age: 00h01m47s
Cost: 0 Preference: 60
IpPre: N/A QosLocalID: N/A
Tag: 0 State: Active Adv
OrigTblID: 0x0 OrigVrf: default-vrf
TableID: 0xa OrigAs: 0
NibID: 0x21000000 LastAs: 0
AttrID: 0xffffffff Neighbor: ::
Flags: 0x10080 OrigNextHop: 5::2
Label: NULL RealNextHop: 3::3
BkLabel: NULL BkNextHop: N/A
SRLabel: NULL Interface: Vlan-interface12
BkSRLabel: NULL BkInterface: N/A
Tunnel ID: Invalid IPInterface: Vlan-interface12
BkTunnel ID: Invalid BKIPInterface: N/A
InLabel: NULL ColorInterface: N/A
SIDIndex: NULL BKColorInterface: N/A
FtnIndex: 0x0 TunnelInterface: N/A
TrafficIndex: N/A BKTunnelInterface: N/A
Connector: N/A PathID: 0x0
SRTunnelID: Invalid
SID Type: N/A NID: Invalid
FlushNID: Invalid BkNID: Invalid
BkFlushNID: Invalid StatFlags: 0x0
Exp: N/A
VpnPeerId: N/A Dscp: N/A
SID: N/A OrigLinkID: 0x0
BkSID: N/A RealLinkID: 0x0
CommBlockLen: 0
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
Tunnel ID: Invalid IPInterface: Vlan-interface11
BkTunnel ID: Invalid BKIPInterface: N/A
InLabel: NULL ColorInterface: N/A
SIDIndex: NULL BKColorInterface: N/A
FtnIndex: 0x0 TunnelInterface: N/A
TrafficIndex: N/A BKTunnelInterface: N/A
Connector: N/A PathID: 0x0
SRTunnelID: Invalid
SID Type: N/A NID: Invalid
FlushNID: Invalid BkNID: Invalid
BkFlushNID: Invalid StatFlags: 0x0
Exp: N/A
VpnPeerId: N/A Dscp: N/A
SID: N/A OrigLinkID: 0x0
BkSID: N/A RealLinkID: 0x0
CommBlockLen: 0
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
SRLabel: NULL Interface: InLoopBack0
BkSRLabel: NULL BkInterface: N/A
Tunnel ID: Invalid IPInterface: InLoopBack0
BkTunnel ID: Invalid BKIPInterface: N/A
InLabel: NULL ColorInterface: N/A
SIDIndex: NULL BKColorInterface: N/A
FtnIndex: 0x0 TunnelInterface: N/A
TrafficIndex: N/A BKTunnelInterface: N/A
Connector: N/A PathID: 0x0
SRTunnelID: Invalid
SID Type: N/A NID: Invalid
FlushNID: Invalid BkNID: Invalid
BkFlushNID: Invalid StatFlags: 0x0
Exp: N/A
VpnPeerId: N/A Dscp: N/A
SID: N/A OrigLinkID: 0x0
BkSID: N/A RealLinkID: 0x0
CommBlockLen: 0
...
Field |
Description |
Destination |
IPv6 address and prefix of the destination network or host. |
Protocol |
Route type or protocol that installed the route: · Direct—Direct route. · Static—Static route. · RIPng—RIPng 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. N/A represents an invalid value. |
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. · Nat—Routes generated by NAT. · TunE—Tunnel. · Derived—Derived route. If a route recurses to multiple related routes, all related routes except the first one are derived routes. The number of derived routes is not included in the total number of routes. |
OrigTblID |
Original routing table ID. |
OrigVrf |
This field is not supported in the current software version. Original VPN instance to which the route belongs. 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 |
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. |
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. Segment routing (SR) label. |
BkSRLabel |
This field is not supported in the current software version. Backup SR label. |
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 |
Tunnel ID. |
Interface |
Output interface for packets to be forwarded along the route. |
BkTunnel ID |
Backup tunnel ID. If an ellipsis (…) is displayed, the tunnel has multiple backup tunnels. Only the first backup tunnel can take effect. |
BkInterface |
Backup output interface. If an ellipsis (…) is displayed, the output interface has multiple backup output interfaces. Only the first backup output interface can take effect. |
IPInterface |
IP output interface. |
BkIPInterface |
Backup IP output interface. |
ColorInterface |
This field is not supported in the current software version. Color output interface obtained through SR-MPLS TE policy-based recursion or SRv6 TE policy-based recursion. |
BkColorInterface |
This field is not supported in the current software version. Backup color output interface. |
TunnelInterface |
Tunnel output interface. |
BkTunnelInterface |
Backup tunnel 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 |
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. |
PathID |
Path ID. |
SRTunnelID |
This field is not supported in the current software version. SR tunnel ID. |
SID Type |
This field is not supported in the current software version. SID type. If the route does not have an SID, this field displays N/A. |
NID |
NHLFE index issued by the routing protocol. |
FlushNID |
Actual NHLFE index issued to the FIB. |
BkNID |
Backup NHLFE index issued by the routing protocol. |
BkFlushNID |
Actual backup NHLFE index issued to the FIB. |
StatFlags |
This field is not supported in the current software version. Flags for SRv6 traffic statistics. |
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 |
MPLS EXP value of the route, which is supported only by BGP. This field displays N/A when the value is invalid. |
SID |
This field is not supported in the current software version. Primary SID. N/A indicates that the attribute is not available. |
BkSID |
This field is not supported in the current software version. Backup SID. N/A indicates that the attribute is not available. |
CommBlockLen |
This field is not supported in the current software version. Common prefix length in the locator. |
OrigLinkID |
Original link ID of the SDWAN TTE connection. |
RealLinkID |
Real link ID of the SDWAN TTE connection. |
display ipv6 routing-table acl
Use display ipv6 routing-table acl to display routing information permitted by an IPv6 basic ACL.
Syntax
display ipv6 routing-table acl ipv6-acl-number [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
ipv6-acl-number: Specifies a basic IPv6 ACL by its number in the range of 2000 to 2999.
verbose: Displays detailed information about all routes permitted by the basic IPv6 ACL. If you do not specify this keyword, the command displays only brief information about active routes permitted by the basic IPv6 ACL.
Usage guidelines
If the specified IPv6 ACL does not exist or has no rules configured, the command displays information about all IPv6 routes.
Examples
# Display brief information about active routes permitted by IPv6 ACL 2000.
<Sysname> display ipv6 routing-table acl 2000
Summary count : 6
Destination : ::1/128 Protocol : Direct
NextHop : ::1 Preference: 0
Interface : InLoop0 Cost : 0
Destination: 12::/96 Protocol : Direct
NextHop : :: Preference: 0
Interface : Vlan11 Cost : 0
Destination: 12::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
For command output, see Table 7.
# Display detailed information about all routes permitted by IPv6 ACL 2000.
<Sysname> display ipv6 routing-table acl 2000 verbose
Summary count : 6
Destination: ::1/128
Protocol: Direct
Process ID: 0
SubProtID: 0x0 Age: 19h29m12s
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
Tunnel ID: Invalid IPInterface: InLoopBack0
BkTunnel ID: Invalid BKIPInterface: N/A
InLabel: NULL ColorInterface: N/A
SIDIndex: NULL BKColorInterface: N/A
FtnIndex: 0x0 TunnelInterface: N/A
TrafficIndex: N/A BKTunnelInterface: N/A
Connector: N/A PathID: 0x0
SRTunnelID: Invalid
SID Type: N/A NID: Invalid
FlushNID: Invalid BkNID: Invalid
BkFlushNID: Invalid StatFlags: 0x0
Exp: N/A
VpnPeerId: N/A Dscp: N/A
SID: N/A OrigLinkID: 0x0
BkSID: N/A RealLinkID: 0x0
CommBlockLen: 0
Destination: 12::/96
Protocol: Direct
Process ID: 0
SubProtID: 0x0 Age: 00h07m57s
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
Tunnel ID: Invalid IPInterface: Vlan-interface11
BkTunnel ID: Invalid BKIPInterface: N/A
InLabel: NULL ColorInterface: N/A
SIDIndex: NULL BKColorInterface: N/A
FtnIndex: 0x0 TunnelInterface: N/A
TrafficIndex: N/A BKTunnelInterface: N/A
Connector: N/A PathID: 0x0
SRTunnelID: Invalid
SID Type: N/A NID: Invalid
FlushNID: Invalid BkNID: Invalid
BkFlushNID: Invalid StatFlags: 0x0
Exp: N/A
VpnPeerId: N/A Dscp: N/A
SID: N/A OrigLinkID: 0x0
BkSID: N/A RealLinkID: 0x0
CommBlockLen: 0
...
For command output, see Table 8.
display ipv6 routing-table ipv6-address
Use display ipv6 routing-table ipv6-address to display information about routes to an IPv6 destination address.
Use display ipv6 routing-table ipv6-address1 to ipv6-address2 to display information about routes to a range of IPv6 destination addresses.
Syntax
display ipv6 routing-table ipv6-address [ prefix-length ] [ longer-match ] [ verbose ]
display ipv6 routing-table ipv6-address1 to ipv6-address2 [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
ipv6-address: Specifies a destination IPv6 address.
prefix-length: Specifies the prefix length in the range of 0 to 128.
longer-match: Displays the route entries that meet the matching rules as described in the usage guidelines.
ipv6-address1 to ipv6-address2: Specifies a destination IPv6 address range.
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
Executing the command with different parameters yields different output.
· display ipv6 routing-table ipv6-address
¡ The system ANDs the entered destination IPv6 address with the prefix length in each active route entry.
¡ The system ANDs the destination IPv6 address in each active route entry with the prefix length in the entry.
If the two operations yield the same result for an entry, the entry is displayed.
· display ipv6 routing-table ipv6-address prefix-length
¡ The system ANDs the entered destination IPv6 address with the entered prefix length.
¡ The system ANDs the destination IPv6 address in each active route entry with the entered prefix length.
If the two operations yield the same result for an entry with a prefix length not greater than the entered prefix length, the entry is displayed.
· display ipv6 routing-table ipv6-address longer-match
If you do not specify the prefix-length argument, the command yields the same result as the display ipv6 routing-table command.
· display ipv6 routing-table ipv6-address prefix-length longer-match
¡ The system ANDs the entered destination IPv6 address with the entered prefix length.
¡ The system ANDs the destination IPv6 address in each active route entry with the entered prefix length.
If the two operations yield the same result for multiple entries, all the entries are displayed.
· display ipv6 routing-table ipv6-address1 to ipv6-address2
The system displays route entries with destinations in the range of ipv6-address1/128 to ipv6-address2/128.
Examples
# Display brief information about the routes to the destination IPv6 address 10::1 127.
<Sysname> display ipv6 routing-table 10::1 127
Summary count: 3
Destination: 10::/64 Protocol : Static
NextHop : :: Preference: 60
Interface : NULL0 Cost : 0
Destination: 10::/68 Protocol : Static
NextHop : :: Preference: 60
Interface : NULL0 Cost : 0
Destination: 10::/120 Protocol : Static
NextHop : :: Preference: 60
Interface : NULL0 Cost : 0
# Display brief information about the routes to the destination IPv6 address 10::1 with prefix length 127.
<Sysname> display ipv6 routing-table 10::1 127 longer-match
Summary count : 3
Destination: 10::/64 Protocol : Static
NextHop : :: Preference: 60
Interface : NULL0 Cost : 0
Destination: 10::/68 Protocol : Static
NextHop : :: Preference: 60
Interface : NULL0 Cost : 0
Destination: 10::/120 Protocol : Static
NextHop : :: Preference: 60
Interface : NULL0 Cost : 0
# Display brief information about the routes to destination addresses in the range of 100:: to 300::.
<Sysname> display ipv6 routing-table 100:: to 300::
Summary count : 3
Destination: 100::/64 Protocol : Static
NextHop : :: Preference: 60
Interface : NULL0 Cost : 0
Destination: 200::/64 Protocol : Static
NextHop : :: Preference: 60
Interface : NULL0 Cost : 0
Destination: 300::/64 Protocol : Static
NextHop : :: Preference: 60
Interface : NULL0 Cost : 0
display ipv6 routing-table
display ipv6 routing-table prefix-list
Use display ipv6 routing-table prefix-list to display information about IPv6 routes permitted by an IPv6 prefix list.
Syntax
display ipv6 routing-table prefix-list prefix-list-name [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters.
verbose: Displays detailed information about all IPv6 routes permitted by the IPv6 prefix list. If you do not specify this keyword, the command displays brief information about active IPv6 routes permitted by the IPv6 prefix list.
Usage guidelines
If the specified IPv6 prefix list does not exist, the command displays information about all routes.
Examples
# Create an IPv6 prefix list named test to permit the prefix ::1/128.
<Sysname> system-view
[Sysname] ipv6 prefix-list test permit ::1 128
# Display brief information about the active IPv6 route permitted by the IPv6 prefix list.
[Sysname] display ipv6 routing-table prefix-list test
Summary count : 1
Destination: ::1/128 Protocol : Direct
NextHop : ::1 Preference: 0
Interface : InLoop0 Cost : 0
For command output, see Table 7.
# Display detailed information about all routes permitted by the IPv6 prefix list.
[Sysname] display ipv6 routing-table prefix-list test verbose
Summary count : 1
Destination: ::1/128
Protocol: Direct
Process ID: 0
SubProtID: 0x0 Age: 08h57m19s
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
Tunnel ID: Invalid IPInterface: InLoopBack0
BkTunnel ID: Invalid BKIPInterface: N/A
InLabel: NULL ColorInterface: N/A
SIDIndex: NULL BKColorInterface: N/A
FtnIndex: 0x0 TunnelInterface: N/A
TrafficIndex: N/A BKTunnelInterface: N/A
Connector: N/A PathID: 0x0
SRTunnelID: Invalid
SID Type: N/A NID: Invalid
FlushNID: Invalid BkNID: Invalid
BkFlushNID: Invalid StatFlags: 0x0
Exp: N/A
VpnPeerId: N/A Dscp: N/A
SID: N/A OrigLinkID: 0x0
BkSID: N/A RealLinkID: 0x0
CommBlockLen: 0
For command output, see Table 8.
display ipv6 routing-table protocol
Use display ipv6 routing-table protocol to display information about IPv6 routes installed by a protocol.
Syntax
display ipv6 routing-table protocol protocol [ inactive | verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
protocol: Specifies a routing protocol.
inactive: Displays information about inactive routes. If you do not specify this keyword, the command displays information about both active and inactive routes.
verbose: Displays detailed routing table information. If you do not specify this keyword, the command displays brief routing information.
Examples
# Display brief information about IPv6 direct routes.
<Sysname> display ipv6 routing-table protocol direct
Summary count : 3
Direct Routing table status : <Active>
Summary count : 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
Direct Routing table status : <Inactive>
Summary count : 0
# Display brief information about IPv6 static routes.
<Sysname> display ipv6 routing-table protocol static
Summary count : 3
Static Routing table status : <Active>
Summary count : 3
Destination: 2::2/128 Protocol : Static
NextHop : fe80::2 Preference: 60
Interface : Vlan12 Cost : 0
Destination: 2::2/128 Protocol : Static
NextHop : fe80::3 Preference: 60
Interface : Vlan12 Cost : 0
Destination: 3::3/128 Protocol : Static
NextHop : 2::2 Preference: 60
Interface : Vlan12 Cost : 0
Static Routing table status : <Inactive>
Summary count : 0
display ipv6 routing-table statistics
Use display ipv6 routing-table statistics to display IPv6 route and route prefix statistics.
Syntax
display ipv6 routing-table [ all-routes ] [ prefix ] statistics
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
all-routes: Specifies the public network.
prefix: Displays statistics about IPv6 route prefixes. If you do not specify this keyword, the command displays statistics about IPv6 routes.
Usage guidelines
If you do not specify any parameters, this command displays statistics about IPv6 routes in the public network.
Examples
# Display IPv6 route statistics for the public network.
<Sysname> display ipv6 routing-table statistics
Total prefixes: 8 Active prefixes: 8
Proto Routes Active Added Deleted
DIRECT 5 5 5 0
STATIC 3 3 3 0
UNR 0 0 0 0
RIPng 0 0 0 0
OSPFv3 0 0 0 0
IS-ISv6 0 0 0 0
LISP 0 0 0 0
SRv6 0 0 0 0
BGP4+ 0 0 0 0
OpenR6 0 0 0 0
Total 8 8 8 0
# Display IPv6 route prefix statistics for the public network.
<Sysname> display ipv6 routing-table prefix statistics
Proto Prefixes Active Added Deleted
DIRECT 5 5 5 0
STATIC 1 1 1 0
UNR 0 0 0 0
RIPng 0 0 0 0
OSPFv3 0 0 0 0
IS-ISv6 0 0 0 0
LISP 0 0 0 0
SRv6 0 0 0 0
BGP4+ 0 0 0 0
OpenR6 0 0 0 0
Total 6 6 6 0
Table 9 Command output
Field |
Description |
Proto |
Protocol that installed the route. Only the DIRECT and STATIC values are supported. |
Routes |
Number of routes installed by the protocol. |
Prefixes |
Number of IPv6 route prefixes. |
Active |
Number of active routes. |
Added |
Number of routes added to the routing table after the router started up or the routing table was cleared most recently. |
Deleted |
Number of routes marked as deleted, which will be cleared after a period. |
Total |
Total number of routes. |
display ipv6 routing-table summary
Use display ipv6 routing-table summary to display brief IPv6 routing table information, including maximum number of ECMP routes, maximum number of active routes, and number of remaining active routes.
Syntax
display ipv6 routing-table summary
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display brief IPv6 routing table information for the public network.
<Sysname> display ipv6 routing-table summary
Max ECMP: 32
Max Active Route: 262144
Remain Active Route: 262126
For command output, see Table 6.
display rib graceful-restart
Use display rib graceful-restart to display RIB GR state information.
Syntax
display rib graceful-restart
Views
Any view
Predefined user roles
network-admin
network-operator
Examples
# Display RIB GR state information.
<Sysname> display rib graceful-restart
RIB GR state : Phase2-calculation end
RCOM GR state : Flush end
Protocol GR state:
No. Protocol Lifetime FD State Start/End
--------------------------------------------------
1 DIRECT 100 30 End No/No
2 STATIC 480 34 End No/No
Field |
Description |
RIB GR state |
RIB GR status: · Start—GR starts. · IGP end—All IGP protocols complete GR. · Routing protocol end—All routing protocols complete GR. · NSR-calculation unfinished—NSR has not finished optimal route selection. · Triggering start—All triggered optimal route selection starts. · Triggering end—All triggered optimal route selection completes. · Phase1-calculation end—Optimal route selection phase 1 completes. · All end—All protocols complete GR. · Phase2-calculation end—Optimal route selection phase 2 completes. |
RCOM GR state |
RCOM GR status: · Start—GR starts. · Routing protocol end—All routing protocols complete GR. · NSR-calculation unfinished—NSR has not finished optimal route selection. · Phase1-calculation end—Optimal route selection phase 1 completes. · Notification end—All routes have been delivered to the route management module. · Phase2-calculation end—Optimal route selection phase 2 completes. · Flush start—Starts to flush routes to the FIB. · Flush end—Completes flushing routes to the FIB. |
No. |
Protocol number. |
Lifetime |
Lifetime (in seconds) of routes/labels in the RIB during GR. |
FD |
Handle between the protocol and the RIB. |
State |
Protocol GR state: · Init—Initialization state. · Listen—Listening state. · Idle. · Active. · Start—GR starts. · End—GR completes. |
Start/End |
Message sending state: · No—The message has not been sent. · Yes—The message has been sent. |
display rib nib
Use display rib nib to display next hop information in the RIB.
Syntax
display rib nib [ self-originated ] [ nib-id ] [ verbose ]
display rib nib [ sub-nib nib-id ] [ verbose ]
display rib nib protocol protocol [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
self-originated: Displays information about next hops of self-originated routes in the RIB.
sub-nib nib-id: Specifies a sub-NIB by its ID to display information about its parent NIB.
nib-id: Specifies a NIB by its ID, a hexadecimal string in the range of 1 to ffffffff.
verbose: Displays detailed next hop information in the RIB. If you do not specify this keyword, the command displays brief next hop information in the RIB.
protocol protocol: Specifies a protocol by its name.
Examples
# Display brief next hop information in the RIB.
<Sysname> display rib nib
Total number of nexthop(s): 176
NibID: 0x10000000 Sequence: 0
Type: 0x1 Flushed: Yes
Age: 00h01m50s
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: 0.0.0.0
UserKey2: 0x0 IFIndex: 0x111
UserKey3: 0x0 LocalAddr: 0.0.0.0
TopoNthp: 0 ExtType: 0x0
Color: 0 COFlag: 0x0
LinkID: 0x0
SIDIndex: 0x0 SRPName:
OriNexthop: 0.0.0.0
NibID: 0x10000001 Sequence: 1
Type: 0x1 Flushed: Yes
Age: 00h01m50s
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: 127.0.0.1
UserKey2: 0x0 IFIndex: 0x112
UserKey3: 0x0 LocalAddr: 127.0.0.1
TopoNthp: 0 ExtType: 0x0
Color: 0 COFlag: 0x0
LinkID: 0x0
SIDIndex: 0x0 SRPName:
OriNexthop: 0.0.0.0
NibID: 0x10000002 Sequence: 2
Type: 0x5 Flushed: Yes
Age: 00h01m50s
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: 127.0.0.1
UserKey2: 0x0 IFIndex: 0x112
UserKey3: 0x0 LocalAddr: 127.0.0.1
TopoNthp: 0 ExtType: 0x0
Color: 0 COFlag: 0x0
LinkID: 0x0
SIDIndex: 0x0 SRPName:
OriNexthop: 0.0.0.0
Field |
Description |
NibID |
ID of the next hop. |
Sequence |
Sequence number of the next hop. |
Type |
Type of the next hop. |
Flushed |
Indicates whether the route with the next hop has been flushed to the FIB. |
Age |
Elapsed time since the next hop information was last updated. |
UserKey0 |
Reserved data 1. |
UserKey1 |
Reserved data 2. |
UserKey2 |
Reserved data 3. |
UserKey3 |
Reserved data 4. |
VrfNthp |
This field is not supported in the current software version. Index of the VPN instance to which the next hop belongs. This field displays 0 if the next hop is on the public network. |
Nexthop |
Next hop address. |
IFIndex |
Interface index. |
LocalAddr |
Local interface address. |
TopoNthp |
(Non-base topologies are not supported in the current software version.) Index of the topology that contains the next hop. For IPv4 routes, this field displays 0 if the next hop is on the public network. For IPv6 routes, this field displays Invalid. |
ExtType |
NIB extension type. |
Color |
This field is not supported in the current software version. Color extended community attribute. |
COFlag |
This field is not supported in the current software version. Flag of the color extended community attribute. |
LinkID |
Link ID of the SDWAN TTE connection. |
SIDIndex |
This field is not supported in the current software version. SID index value. |
SubNibID |
ID of the sub-next hop. |
SubSeq |
Sequence number of the sub-next hop. |
NthpCnt |
Number of sub-next hops. |
Samed |
Number of the same sub-next hops. |
NthpType |
Type of the sub-next hop. The value is IP, which represents IP forwarding. |
SRPName |
This field is not supported in the current software version. SR-MPLS TE policy name. |
OriNexthop |
Original next hop of the route. |
# Display detailed next hop information in the RIB.
<Sysname> display rib nib verbose
Total number of nexthop(s): 176
NibID: 0x10000000 Sequence: 0
Type: 0x1 Flushed: Yes
Age: 00h01m50s
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: 0.0.0.0
UserKey2: 0x0 IFIndex: 0x10002
UserKey3: 0x0 LocalAddr: 0.0.0.0
TopoNthp: 0 ExtType: 0x0
Color: 0 COFlag: 0x0
LinkID: 0x0
SIDIndex: 0x0 SRPName:
OriNexthop: 0.0.0.0
RefCnt: 6 FlushRefCnt: 2
Flag: 0x84 Version: 1
1 nexthop(s):
PrefixIndex: 0 OrigNexthop: 0.0.0.0
RelyDepth: 0 RealNexthop: 0.0.0.0
Interface: NULL0 LocalAddr: 0.0.0.0
TunnelCnt: 0 Vrf: default-vrf
TunnelID: N/A Topology: base
Weight: 0 Flags: 0x0
SRPolicyNID: 4294967295 SRInterface:
ColorWeight: 0 Locator: N/A
OrigLinkID: 0x0 RealLinkID: 0x0
NibID: 0x10000001 Sequence: 1
Type: 0x1 Flushed: Yes
Age: 00h01m50s
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: 127.0.0.1
UserKey2: 0x0 IFIndex: 0x10002
UserKey3: 0x0 LocalAddr: 127.0.0.1
TopoNthp: 0 ExtType: 0x0
Color: 0 COFlag: 0x0
LinkID: 0x0
SIDIndex: 0x0 SRPName:
OriNexthop: 0.0.0.0
RefCnt: 11 FlushRefCnt: 5
Flag: 0x84 Version: 1
1 nexthop(s):
PrefixIndex: 0 OrigNexthop: 127.0.0.1
RelyDepth: 0 RealNexthop: 127.0.0.1
Interface: InLoop0 LocalAddr: 127.0.0.1
TunnelCnt: 0 Vrf: default-vrf
TunnelID: N/A Topology: base
Weight: 0 Flags: 0x0
SRPolicyNID: 4294967295 SRInterface:
ColorWeight: 0 Locator: N/A
OrigLinkID: 0x0 RealLinkID: 0x0
NibID: 0x15000003 Sequence: 3
Type: 0x43 Flushed: Yes
Age: 00h01m50s
UserKey0: 0x100010000 VrfNthp: 0
UserKey1: 0x0 Nexthop: 22.22.22.22
UserKey2: 0x0 IFIndex: 0x10002
UserKey3: 0x0 LocalAddr: 127.0.0.1
TopoNthp: 0 ExtType: 0x0
Color: 0 COFlag: 0x0
LinkID: 0x0
SIDIndex: 0x0 SRPName:
OriNexthop: 0.0.0.0
Instance: default
RefCnt: 9 FlushRefCnt: 3
Flag: 0x84 Version: 1
Policy: tnl-policy1
1 nexthop(s):
PrefixIndex: 0 OrigNexthop: 22.22.22.22
RelyDepth: 1 RealNexthop: 13.1.1.2
Interface: Vlan11 LocalAddr: 13.1.1.1
TunnelCnt: 1 Vrf: default-vrf
TunnelID: 1025 Topology: base
Weight: 0 Flags: 0x0
SRPolicyNID: 4294967295 SRInterface:
ColorWeight: 0 Locator: N/A
OrigLinkID: 0x0 RealLinkID: 0x0
...
Field |
Description |
NibID |
ID of the next hop. |
Sequence |
Sequence number of the next hop. |
Type |
Type of the next hop. |
Flushed |
Indicates whether the route with the next hop has been flushed to the FIB. |
Age |
Elapsed time since the next hop information was last updated. |
UserKey0 |
Reserved data 1. |
UserKey1 |
Reserved data 2. |
UserKey2 |
Reserved data 3. |
UserKey3 |
Reserved data 4. |
VrfNthp |
Index of the VPN instance to which the next hop belongs. This field displays 0 if the next hop is on the public network. |
Nexthop |
Next hop address. |
ExtType |
NIB extension type. |
SubNibID |
ID of the sub-next hop. |
SubSeq |
Sequence number of the sub-next hop. |
NthpCnt |
Number of sub-next hops. |
Samed |
Number of the same sub-next hops. |
NthpType |
Type of the sub-next hop: · IP—IP forwarding. · MPLS—MPLS forwarding. |
Policy |
Tunnel policy name. |
x nexthop (s) |
Number of next hops. |
PrefixIndex |
Prefix index of the next hop for an ECMP route. |
Vrf |
This field is not supported in the current software version. VPN instance name. For the public network, this field displays default-vrf. |
OrigNexthop |
Original next hop. |
RealNexthop |
Real next hop. |
Interface |
Output interface. |
LocalAddr |
Local interface address. |
IFIndex |
Interface index. |
TopoNthp |
(Non-base topologies are not supported in the current software version.) Index of the topology that contains the next hop. For IPv4 routes, this field displays 0 if the next hop is on the public network. For IPv6 routes, this field displays Invalid. |
Color |
This field is not supported in the current software version. Color extended community attribute. |
COFlag |
This field is not supported in the current software version. Flag of the color extended community attribute. |
LinkID |
Link ID of the SDWAN TTE connection. |
SIDIndex |
This field is not supported in the current software version. SID index value. |
SRPName |
This field is not supported in the current software version. SR-MPLS TE policy name. |
OriNexthop |
Original next hop of the route. |
RelyDepth |
Recursion depth. |
TunnelCnt |
Number of tunnels after route recursion. |
TunnelID |
ID of the tunnel after route recursion. |
Topology |
(Non-base topologies are not supported in the current software version.) Topology name. For IPv4 routes, this field displays base for the topology on the public network. For IPv6 routes, this field is blank. |
Weight |
ECMP route weight. This field displays 0 for non-ECMP routes. |
RefCnt |
Reference count of the next hop. |
FlushRefCnt |
Reference count of the next hop that is flushed to the FIB. |
Flag |
Flag of the next hop. |
Version |
Version of the next hop. |
Flags |
Flags of the detailed next hop. |
SRPolicyNID |
This field is not supported in the current software version. NIB ID of the route obtained from an SR-MPLS TE policy through route recursion. |
SRInterface |
This field is not supported in the current software version. Output interface of the route obtained from the SR-MPLS TE policy through route recursion. |
ColorWeight |
This field is not supported in the current software version. Weight value of the color attribute in the SR-MPLS TE policy. |
Locator |
This field is not supported in the current software version. IPv6 prefix of the locator to which the SID belongs. N/A indicates that the attribute is not available. |
OrigLinkID |
Original link ID of the SDWAN TTE connection. |
RealLinkID |
Real link ID of the SDWAN TTE connection. |
display route-direct nib
Use display route-direct nib to display next hop information for direct routes.
Syntax
display route-direct nib [ nib-id ] [ verbose ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
nib-id: Specifies a NIB by its ID, a hexadecimal string in the range of 1 to ffffffff.
verbose: Displays detailed next hop information for direct routes. If you do not specify this keyword, the command displays brief next hop information for direct routes.
Examples
# Display brief next hop information for direct routes.
<Sysname> display route-direct nib
Total number of nexthop(s): 116
NibID: 0x10000000 Sequence: 0
Type: 0x1 Flushed: Yes
Age: 00h01m50s
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: 0.0.0.0
UserKey2: 0x0 IFIndex: 0x10002
UserKey3: 0x0 LocalAddr: 0.0.0.0
TopoNthp: 0 ExtType: 0x0
Color: 0 COFlag: 0x0
LinkID: 0x0
SIDIndex: 0x0 SRPName:
OriNexthop: 0.0.0.0
NibID: 0x10000001 Sequence: 1
Type: 0x1 Flushed: Yes
Age: 00h01m50s
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: 127.0.0.1
UserKey2: 0x0 IFIndex: 0x10002
UserKey3: 0x0 LocalAddr: 127.0.0.1
TopoNthp: 0 ExtType: 0x0
Color: 0 COFlag: 0x0
LinkID: 0x0
SIDIndex: 0x0 SRPName:
OriNexthop: 0.0.0.0
...
Field |
Description |
NibID |
ID of the NIB. |
Sequence |
Sequence number of the NIB. |
Type |
Type of the NIB. |
Flushed |
Indicates whether the route with the NIB has been flushed to the FIB. |
Age |
Elapsed time since the next hop information was last updated. |
UserKey0 |
Reserved data 1. |
UserKey1 |
Reserved data 2. |
UserKey2 |
Reserved data 3. |
UserKey3 |
Reserved data 4. |
Color |
This field is not supported in the current software version. Color extended community attribute. |
COFlag |
This field is not supported in the current software version. Flag of the color extended community attribute. |
LinkID |
Link ID of the SDWAN TTE connection. |
SIDIndex |
This field is not supported in the current software version. SID index value. |
VrfNthp |
This field is not supported in the current software version. Index of the VPN instance to which the next hop belongs. This field displays 0 if the next hop is on the public network. |
Nexthop |
Next hop address. |
IFIndex |
Interface index. |
LocalAddr |
Local interface IP address. |
TopoNthp |
(Non-base topologies are not supported in the current software version.) Index of the topology that contains the next hop. For IPv4 routes, this field displays 0 if the next hop is on the public network. For IPv6 routes, this field displays Invalid. |
ExtType |
NIB extension type. |
SRPName |
This field is not supported in the current software version. SR-MPLS TE policy name. |
OriNexthop |
Original next hop of the route. |
# Display detailed next hop information for direct routes.
<Sysname> display route-direct nib verbose
Total number of nexthop(s): 116
NibID: 0x10000000 Sequence: 0
Type: 0x1 Flushed: Yes
Age: 00h01m50s
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: 0.0.0.0
UserKey2: 0x0 IFIndex: 0x10002
UserKey3: 0x0 LocalAddr: 0.0.0.0
TopoNthp: 0 ExtType: 0x0
Color: 0 COFlag: 0x0
LinkID: 0x0
SIDIndex: 0x0 SRPName:
OriNexthop: 0.0.0.0
RefCnt: 2 FlushRefCnt: 0
Flag: 0x2 Version: 1
1 nexthop(s):
PrefixIndex: 0 OrigNexthop: 0.0.0.0
RelyDepth: 0 RealNexthop: 0.0.0.0
Interface: NULL0 LocalAddr: 0.0.0.0
TunnelCnt: 0 Vrf: default-vrf
TunnelID: N/A Topology: base
Weight: 0 Flags: 0x0
SRPolicyNID: 4294967295 SRInterface:
ColorWeight: 0 Locator: N/A
OrigLinkID: 0x0 RealLinkID: 0x0
NibID: 0x10000001 Sequence: 1
Type: 0x1 Flushed: Yes
Age: 00h01m50s
UserKey0: 0x0 VrfNthp: 0
UserKey1: 0x0 Nexthop: 127.0.0.1
UserKey2: 0x0 IFIndex: 0x10002
UserKey3: 0x0 LocalAddr: 127.0.0.1
TopoNthp: 0 ExtType: 0x0
Color: 0 COFlag: 0x0
LinkID: 0x0
SIDIndex: 0x0 SRPName:
OriNexthop: 0.0.0.0
RefCnt: 5 FlushRefCnt: 0
Flag: 0x2 Version: 1
1 nexthop(s):
PrefixIndex: 0 OrigNexthop: 127.0.0.1
RelyDepth: 0 RealNexthop: 127.0.0.1
Interface: InLoop0 LocalAddr: 127.0.0.1
TunnelCnt: 0 Vrf: default-vrf
TunnelID: N/A Topology: base
Weight: 0 Flags: 0x0
SRPolicyNID: 4294967295 SRInterface:
ColorWeight: 0 Locator: N/A
OrigLinkID: 0x0 RealLinkID: 0x0
...
Field |
Description |
NibID |
ID of the NIB. |
Sequence |
Sequence number of the NIB. |
Type |
Type of the NIB. |
Flushed |
Indicates whether the route with the NIB has been flushed to the FIB. |
Age |
Elapsed time since the next hop information was last updated. |
UserKey0 |
Reserved data 1. |
UserKey1 |
Reserved data 2. |
UserKey2 |
Reserved data 3. |
UserKey3 |
Reserved data 4. |
VrfNthp |
Index of the VPN instance to which the next hop belongs. This field displays 0 if the next hop is on the public network. |
Nexthop |
Next hop address. |
x nexthop(s) |
Number of next hops. |
PrefixIndex |
Prefix index of the next hop for an ECMP route. |
Vrf |
This field is not supported in the current software version. VPN instance name. For the public network, this field displays default-vrf. |
OrigNexthop |
Original next hop. |
RealNexthop |
Real next hop. |
Interface |
Output interface. |
localAddr |
Local interface address. |
RelyDepth |
Recursion depth. |
TunnelCnt |
Number of tunnels after route recursion. |
TunnelID |
ID of the tunnel after route recursion. |
Topology |
(Non-base topologies are not supported in the current software version.) Topology name. For IPv4 routes, this field displays base for the topology on the public network. For IPv6 routes, this field is blank. |
Weight |
ECMP route weight. This field displays 0 for non-ECMP routes. |
RefCnt |
Reference count of the next hop. |
FlushRefCnt |
Reference count of the next hop that is flushed to the FIB. |
Flag |
Flag of the next hop. |
Version |
Version of the next hop. |
IFIndex |
Interface index. |
TopoNthp |
(Non-base topologies are not supported in the current software version.) Index of the topology that contains the next hop. For IPv4 routes, this field displays 0 if the next hop is on the public network. For IPv6 routes, this field displays Invalid. |
ExtType |
NIB extension type. |
Color |
This field is not supported in the current software version. Color extended community attribute. |
COFlag |
This field is not supported in the current software version. Flag of the extended community attribute. |
LinkID |
Link ID of the SDWAN TTE connection. |
SIDIndex |
This field is not supported in the current software version. SID index value. |
SRPName |
This field is not supported in the current software version. SR-MPLS TE policy name. |
OriNexthop |
Original next hop of the route. |
Flags |
Flags of the detailed next hop. |
SRPolicyNID |
This field is not supported in the current software version. NIB ID of the route obtained from an SR-MPLS TE policy through route recursion. |
SRInterface |
This field is not supported in the current software version. Output interface of the route obtained from the SR-MPLS TE policy through route recursion. |
ColorWeight |
This field is not supported in the current software version. Weight value of the color attribute in the SR-MPLS TE policy. |
Locator |
This field is not supported in the current software version. IPv6 prefix of the locator to which the SID belongs. N/A indicates that the attribute is not available. |
OrigLinkID |
Original link ID of the SDWAN TTE connection. |
RealLinkID |
Real link ID of the SDWAN TTE connection. |
ip load-sharing mode
Use ip load-sharing mode to configure the load sharing mode.
Use undo ip load-sharing mode to restore the default.
Syntax
ip load-sharing mode per-flow [ algorithm algorithm-number [ seed seed-number ] | [ dest-ip | dest-port | ingress-port | ip-pro | src-ip | src-port ] * | tunnel { all | inner | outer } ] global
undo ip load-sharing mode [ per-flow [ algorithm algorithm-number [ seed seed-number ] | [ dest-ip | dest-port | ingress-port | ip-pro | src-ip | src-port ] * | tunnel { all | inner | outer } ] ] global
Default
The device performs per-flow load sharing based on the destination IP address.
Views
System view
Predefined user roles
network-admin
Parameters
per-flow: Implements per-flow load sharing.
algorithm algorithm-number: Specifies an algorithm by its number for per-flow load sharing. The value range for the algorithm-number argument is 0 to 15.
seed seed-number: Specifies the seed value for the algorithm. The value range for the seed-number argument is 0 to ffff.
dest-ip: Identifies flows by destination IP address.
dest-port: Identifies flows by destination port.
ingress-port: Identifies flows by ingress port.
ip-pro: Identifies flows by protocol number.
src-ip: Identifies flows by source IP address.
src-port: Identifies flows by source port.
per-packet: Implements per-packet load sharing.
global: Configures the load sharing mode globally.
Usage guidelines
If traffic is not load shared well among interfaces, you can use the seed seed-number option to adjust the algorithm result.
Examples
# Configure per-flow load sharing.
[Sysname] ip load-sharing mode per-flow
ip load-sharing symmetric enable
Use ip load-sharing symmetric enable to enable symmetric load sharing.
Use undo ip load-sharing symmetric enable to disable symmetric load sharing.
Syntax
ip load-sharing symmetric enable
undo ip load-sharing symmetric enable
Default
Symmetric load sharing is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
Symmetric load sharing ensures that bidirectional traffic specific to a particular source and destination address pair flow along the same path.
Examples
# Enable symmetric load sharing.
<Sysname> system-view
[Sysname] ip load-sharing symmetric enable
ipv6 route fast-switchover enable
Use ipv6 route fast-switchover enable to enable IPv6 route fast switchover.
Use undo ipv6 route fast-switchover enable to disable IPv6 route fast switchover.
Syntax
ipv6 route fast-switchover enable
undo ipv6 route fast-switchover enable
Default
IPv6 route fast switchover is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
Use this command if a physical interface is the output interface for a large number of routes, including ECMP routes and primary/secondary routes. When a link failure occurs on an interface, the device typically performs the following operations before switching the traffic to a valid route:
1. Deletes all ND entries for the link.
2. Instructs the FIB to delete the associated FIB entries.
This process is time-consuming and interruptive if a large number of routes traverse the interface. Route fast switchover minimizes traffic interruption by instructing the FIB to delete the affected FIB entries immediately without having to wait for the ND entries to be deleted.
Examples
# Enable IPv6 route fast switchover.
<Sysname> system-view
[Sysname] ipv6 route fast-switchover enable
reset ip routing-table statistics protocol
Use reset ip routing-table statistics protocol to clear IPv4 route statistics.
Syntax
reset ip routing-table statistics protocol { protocol | all }
reset ip routing-table [ all-routes ] statistics protocol { protocol | all }
Views
User view
Predefined user roles
network-admin
Parameters
all-routes: Clears route statistics for the public network.
protocol: Clears route statistics for a routing protocol.
all: Clears route statistics for all IPv4 routing protocols.
Usage guidelines
This command clears IPv4 route statistics for the public network if you do not specify the all-routes keyword.
Examples
# Clear all IPv4 route statistics for the public network.
<Sysname> reset ip routing-table statistics protocol all
reset ipv6 routing-table statistics protocol
Use reset ipv6 routing-table statistics protocol to clear IPv6 route statistics.
Syntax
reset ipv6 routing-table statistics protocol { protocol | all }
reset ipv6 routing-table [ all-routes ] statistics protocol { protocol | all }
Views
User view
Predefined user roles
network-admin
Parameters
all-routes: Clears route statistics for the public network.
protocol: Clears route statistics for an IPv6 routing protocol.
all: Clears route statistics for all IPv6 routing protocols.
Usage guidelines
This command clears IPv6 route statistics for the public network if you do not specify the all-routes keyword.
Examples
# Clear all IPv6 route statistics for the public network.
<Sysname> reset ipv6 routing-table statistics protocol all