- Table of Contents
-
- H3C S3610[S5510] Series Ethernet Switches Command Manual-Release 5303(V1.01)
- 00-1Cover
- 01-Login Commands
- 02-VLAN Commands
- 03-IP Addressing and Performance Commands
- 04-QinQ-BPDU Tunneling Commands
- 05-Port Correlation Configuration Commands
- 06-Link Aggregation Commands
- 07-MAC Address Table Management Commands
- 08-IP Source Guard Commands
- 09-MSTP Commands
- 10-IPv6 Commands
- 11-Routing Overview Commands
- 12-IPv4 Routing Commands
- 13-BFD-GR Commands
- 14-IPv6 Routing Commands
- 15-Multicast Protocol Commands
- 16-802.1x-HABP-MAC Authentication Commands
- 17-AAA-RADIUS-HWTACACS Commands
- 18-ARP Commands
- 19-DHCP Commands
- 20-ACL Commands
- 21-QoS Commands
- 22-Port Mirroring Commands
- 23-Cluster Management Commands
- 24-UDP Helper Commands
- 25-SNMP-RMON Commands
- 26-NTP Commands
- 27-DNS Commands
- 28-File System Management Commands
- 29-Information Center Commands
- 30-System Maintaining and Debugging Commands
- 31-NQA Commands
- 32-VRRP Commands
- 33-SSH Commands
- 34-MCE Commands
- 35-OAM Commands
- 36-DLDP Commands
- 37-RRPP Commands
- 38-SSL-HTTPS Commands
- 39-PKI Commands
- 40-Appendix
- Related Documents
-
Title | Size | Download |
---|---|---|
11-Routing Overview Commands | 108.3 KB |
Chapter 1 Routing Overview Commands
1.1.1 display ip routing-table
1.1.2 display ip routing-table acl
1.1.3 display ip routing-table ip-address
1.1.4 display ip routing-table ip-prefix
1.1.5 display ip routing-table protocol
1.1.6 display ip routing-table statistics
1.1.7 display ipv6 routing-table
1.1.8 display ipv6 routing-table acl
1.1.9 display ipv6 routing-table ipv6-address
1.1.10 display ipv6 routing-table ipv6-address1 ipv6-address2
1.1.11 display ipv6 routing-table ipv6-prefix
1.1.12 display ipv6 routing-table protocol
1.1.13 display ipv6 routing-table statistics
1.1.14 display ipv6 routing-table verbose
1.1.15 reset ip routing-table statistics protocol
1.1.16 reset ipv6 routing-table statistics
Chapter 1 Routing Overview Commands
& Note:
l The term “router” in this document refers to a Layer 3 switch running routing protocols.
l Verify that the system already operates in IPv4/IPv6 dual-stack mode before displaying the information about IPv6 routing. For dual-stack mode configuration, see the part covering dual-stack in the IPv6 Configuration module.
1.1 Routing Overview Commands
1.1.1 display ip routing-table
Syntax
display ip routing-table [ vpn-instance vpn-instance-name ] [ verbose | | { begin | exclude | include } regular-expression ]
View
Any view
Parameters
vpn-instance vpn-instance-name: Displays routing table information for a VPN instance. The vpn-instance-name argument represents the instance name and is a string of 1 to 31 characters.
verbose: Displays detailed routing table information, including that for inactive routes. With this argument absent, the command displays only summary information about active routes.
|: Uses a regular expression to filter output information.
begin: Displays routing table entries starting from the one specified by the regular expression.
include: Displays routing table entries specified by the regular expression.
exclude: Displays routing table entries other than those specified by the regular expression.
regular-expression: Regular expression, a string of 1 to 256 characters used for specifying routing entries.
Table 1-1 Special characters for regular expressions
Character |
Meaning |
Remarks |
_ |
Underscore, functions similarly as a wildcard and matches one of the following: (^|$|[,(){}]) or a space, the beginning of a string, the end of a string. |
If it is not the first character in a regular expression, it can appear as many times as the command line length permits. If it is the first character in a regular expression, it can be followed with up to four underscores. If it appears intermittently in a regular expression, only the first group takes effect. |
( |
Left parenthesis, represents a stack push operation in a program. |
It is not recommended to use this character in a regular expression. |
. |
Full stop, a wildcard that matches any character, including a space. |
— |
* |
Asterisk, indicates that the character(s) to its left can appear 0 or more times. |
zo* matches z and zoo. |
+ |
Plus, indicates that the character(s) to its left can appear one or more times. |
zo+ matches zo and zoo, but not z. |
Description
Use the display ip routing-table command to display brief information about active routes in the routing table.
Use the display ip routing-table verbose command to display detailed information about all routes in the routing table.
Examples
# Display brief information about active routes in the routing table.
<Sysname> display ip routing-table
Routing Tables: Public
Destinations : 4 Routes : 4
Destination/Mask Proto Pre Cost NextHop Interface
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.0.0/24 Direct 0 0 192.168.0.136 Vlan1
192.168.0.136/32 Direct 0 0 127.0.0.1 InLoop0
Table 1-2 Description on the fields of the display ip routing-table command
Field |
Description |
Destinations |
Number of destination addresses |
Routes |
Number of routes |
Destination/Mask |
Destination address/mask length |
Proto |
Protocol that presents the route |
Pre |
Priority of the route |
Cost |
Cost of the route |
Nexthop |
Address of the next hop on the route |
Interface |
Output interface for packets to be forwarded along the route |
# Display detailed information about all routes in the routing table.
<Sysname>display ip routing-table verbose
Routing Table : Public
Destinations : 4 Routes : 4
Destination: 127.0.0.0/8
Protocol: Direct Process ID: 0
Preference: 0 Cost: 0
NextHop: 127.0.0.1 Interface: InLoopBack0
RelyNextHop: 0.0.0.0 Neighbor : 0.0.0.0
Tunnel ID: 0x0 Label: NULL
State: Active NoAdv Age: 04h18m18s
Tag: 0
Destination: 127.0.0.1/32
Protocol: Direct Process ID: 0
Preference: 0 Cost: 0
NextHop: 127.0.0.1 Interface: InLoopBack0
RelyNextHop: 0.0.0.0 Neighbor : 0.0.0.0
Tunnel ID: 0x0 Label: NULL
State: Active NoAdv Age: 04h18m18s
Tag: 0
Destination: 192.168.0.0/24
Protocol: Direct Process ID: 0
Preference: 0 Cost: 0
NextHop: 192.168.0.136 Interface: Vlan-interface1
RelyNextHop: 0.0.0.0 Neighbor : 0.0.0.0
Tunnel ID: 0x0 Label: NULL
State: Active Adv Age: 04h18m14s
Tag: 0
Destination: 192.168.0.136/32
Protocol: Direct Process ID: 0
Preference: 0 Cost: 0
NextHop: 127.0.0.1 Interface: InLoopBack0
RelyNextHop: 0.0.0.0 Neighbor : 0.0.0.0
Tunnel ID: 0x0 Label: NULL
State: Active NoAdv Age: 04h18m31s
Tag: 0
Displayed first are statistics for the whole routing table, followed by detailed description of each route (in sequence).
Table 1-3 Description on the fields of the display ip routing-table verbose command
Field |
Description |
Destination |
Destination address/mask length |
Protocol |
Protocol that presents the route |
Process ID |
Process ID |
Preference |
Priority of the route |
Cost |
Cost of the route |
NextHop |
Address of the next hop on the route |
Interface |
Outbound interface for packets to be forwarded along the route |
RelyNextHop |
The next hop address obtained through routing stack |
Neighbour |
Neighboring address determined by Routing Protocol |
Tunnel ID |
Tunnel ID |
Label |
Label |
State |
Status of the route, which could be Active, Inactive, Adv, or NoAdv. |
Age |
Time that the route has been in the routing table, in the sequence of hour, minute, and second from left to right. |
Tag |
Route tag |
1.1.2 display ip routing-table acl
Syntax
display ip routing-table acl acl-number [ verbose ]
View
Any view
Parameters
acl-number: Basic ACL number, in the range of 2000 to 2999.
verbose: Displays detailed routing table information, including that for inactive routes. With this argument absent, the command displays only brief information about active routes.
Description
Use the display ip routing-table acl command to display information about routes permitted by a specified basic ACL.
This command is intended for the follow-up display of routing policies.
For more information about routing policy, refer to IPv4 Routing Configuration.
& Note:
If the specified ACL does not exist or it has no rules configured, the entire routing table is displayed.
Examples
# Define basic ACL 2000 and set the route filtering rules.
<Sysname > system-view
[Sysname] acl number 2000
[Sysname-acl-basic-2000] rule permit source 192.168.0.0 0.0.255.255
[Sysname-acl-basic-2000] rule deny source any
# Display brief information about active routes permitted by basic ACL 2000.
[Sysname-acl-basic-2000] display ip routing-table acl 2000
Routes Matched by Access list : 2000
Summary Count : 2
Destination/Mask Proto Pre Cost NextHop Interface
192.168.0.0/24 Direct 0 0 192.168.0.136 Vlan1
192.168.0.136/32 Direct 0 0 127.0.0.1 InLoop0
For detailed description of the above output, see Table 1-2.
# Display detailed information about both active and inactive routes permitted by basic ACL 2000.
<Sysname> display ip routing-table acl 2000 verbose
Routes Matched by Access list : 2000
Summary Count : 2
Destination: 192.168.0.0/24
Protocol: Direct Process ID: 0
Preference: 0 Cost: 0
NextHop: 192.168.0.136 Interface: Vlan-interface1
RelyNextHop: 0.0.0.0 Neighbor : 0.0.0.0
Tunnel ID: 0x0 Label: NULL
State: Active Adv Age: 04h26m42s
Tag: 0
Destination: 192.168.0.136/32
Protocol: Direct Process ID: 0
Preference: 0 Cost: 0
NextHop: 127.0.0.1 Interface: InLoopBack0
RelyNextHop: 0.0.0.0 Neighbor : 0.0.0.0
Tunnel ID: 0x0 Label: NULL
State: Active NoAdv Age: 04h26m42s
Tag: 0
Table 1-4 Description on the fields of the display ip routing-table command
Field |
Description |
|
Destination |
Destination address |
|
Mask |
Mask |
|
Protocol |
Routing protocol that discovered the route |
|
Preference |
Preference of the route |
|
Nexthop |
Nexthop address |
|
Interface |
Outbound interface for packets to be forwarded along the route |
|
State |
Route status: |
|
Active U |
This is an active unicast route. U means unicast. |
|
Blackhole |
A blackhole route is similar with a reject route except that a router drops packets matching a blackhole route without sending ICMP unreachable messages to the source of the packets. |
|
Delete |
This route is deleted. |
|
Gateway |
This is an indirect route. |
|
Hidden |
This route is hidden. For routes that are temporarily unusable for some reasons (because of a policy configured or because the interface is down), you can hide them for later use. |
|
Holddown |
The route is suppressed. Holddown is a route advertisement policy used in some distance vector (D-V) routing protocols, such as RIP, to avoid the propagation of some incorrect routes and improve the transmission speed of unreachable route information. It distributes a certain route within an interval regardless of whether a new route to the same destination is found. For details, refer to corresponding routing protocols. |
|
Int |
The route was discovered by an Internal Gateway Protocol (IGP). |
|
NoAdvise |
The route is not advertised when the router advertises routes based on policies. |
|
NotInstall |
Normally, the routes with the highest preference in the routing table are installed into the core routing table and are advertised, while the NotInstall routes cannot be installed into the core routing table but can be advertised. |
|
Reject |
The packets matching a Reject route will be dropped. Besides, the router sends ICMP unreachable messages to the source of the dropped packets. The Reject routes are usually used for network testing. |
|
Retain |
The Retain routes are not deleted when the routes read from the core routing table are deleted. You can keep static routes in the core routing table by configuring them as Retain routes. |
|
Static |
A Static route are not lost when you perform the save operation and then restart the router. Routes configured manually are marked as static. |
|
Unicast |
Unicast routes |
|
Age |
Age of the route in the routing table, in the form of hh:mm:ss. |
|
Cost |
Route cost |
1.1.3 display ip routing-table ip-address
Syntax
display ip routing-table ip-address [ mask-length | mask ] [ longer-match ] [ verbose ]
display ip routing-table ip-address1 { mask-length | mask } ip-address2 { mask-length | mask } [ verbose ]
View
Any view
Parameters
ip-address: Destination IP address, in dotted decimal format.
mask-length: IP address mask length in the range 0 to 32.
mask: IP address mask in dotted decimal format.
longer-match: Displays the route with the longest mask.
verbose: Displays detailed routing table information, including that for inactive routes. With this argument absent, the command displays only summary information about active routes.
Description
Use the display ip routing-table ip-address command to display information about routes to a specified destination address.
Executing the command with different parameters yields different output:
l display ip routing-table ip-address
The system ANDs the input destination IP address with the subnet mask in each route entry; and ANDs the destination IP address in each route entry with its corresponding subnet mask.
If the two operations yield the same result for an entry and this entry is active, it is displayed.
l display ip routing-table ip-address mask
The system ANDs the input destination IP address with the input subnet mask; and ANDs the destination IP address in each route entry with the input subnet mask.
If the two operations yield the same result for an entry and the entry is active with a subnet mask less than or equal to the input subnet mask, the entry is displayed.
Only route entries that exactly match the input destination address and mask are displayed.
l display ip routing-table ip-address longer-match
The system ANDs the input destination IP address with the subnet mask in each route entry; and ANDs the destination IP address in each route entry with its corresponding subnet mask.
If the two operations yield the same result for multiple entries that are active, the one with longest mask length is displayed.
l display ip routing-table ip-address mask longer-match
The system ANDs the input destination IP address with the input subnet mask; and ANDs the destination IP address in each route entry with the input subnet mask.
If the two operations yield the same result for multiple entries with a mask less than or equal to the input subnet mask, the one that is active with longest mask length is displayed.
Use the display ip routing-table ip-address1 { mask-length | mask } ip-address2 { mask-length | mask } command to display route entries with destination addresses within a specified range.
Examples
# Display route entries for the destination IP address 11.1.1.1.
<Sysname> display ip routing-table 11.1.1.1
Routing Table : Public
Summary Count : 4
Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/0 Static 60 0 0.0.0.0 NULL0
11.0.0.0/8 Static 60 0 0.0.0.0 NULL0
11.1.0.0/16 Static 60 0 0.0.0.0 NULL0
11.1.1.0/24 Static 60 0 0.0.0.0 NULL0
For detailed description about the output, see Table 1-2.
# Display route entries by specifying a destination IP address and the longer-match keyword.
<Sysname> display ip routing-table 11.1.1.1 longer-match
Routing Table : Public
Summary Count : 1
Destination/Mask Proto Pre Cost NextHop Interface
11.1.1.0/24 Static 60 0 0.0.0.0 NULL0
# Display route entries by specifying a destination IP address and mask.
<Sysname> display ip routing-table 11.1.1.1 24
Routing Table : Public
Summary Count : 3
Destination/Mask Proto Pre Cost NextHop Interface
11.0.0.0/8 Static 60 0 0.0.0.0 NULL0
11.1.0.0/16 Static 60 0 0.0.0.0 NULL0
11.1.1.0/24 Static 60 0 0.0.0.0 NULL0
# Display route entries by specifying a destination IP address and mask and the longer-match keyword.
<Sysname> display ip routing-table 11.1.1.1 24 longer-match
Routing Table : Public
Summary Count : 1
Destination/Mask Proto Pre Cost NextHop Interface
11.1.1.0/24 Static 60 0 0.0.0.0 NULL0
For detailed description of the above output, see Table 1-3.
# Display route entries for destination addresses in the range 1.1.1.0 to 5.5.5.0.
<Sysname> display ip routing-table 1.1.1.0 24 5.5.5.0 24
Routing Table : Public
Destination/Mask Proto Pre Cost NextHop Interface
1.1.1.0/24 Direct 0 0 1.1.1.1 Vlan1
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
1.1.4 display ip routing-table ip-prefix
Syntax
display ip routing-table ip-prefix ip-prefix-name [ verbose ]
View
Any view
Parameters
ip-prefix-name: IP Prefix list name, a string of 1 to 19 characters.
verbose: Displays detailed routing table information, including that for inactive routes. With this argument absent, the command displays only brief information about active routes.
Description
Use the display ip routing-table ip-prefix command to display information about routes permitted by a specified prefix list.
This command is intended for the follow-up display of routing policies. If the specified prefix list is not configured, detailed information about all routes (with the verbose keyword) or brief information about all active routes (without the verbose keyword) is displayed.
Examples
# Configure a prefix list named test, permitting routes with a prefix of 2.2.2.0 and a mask length between 24 and 32.
<Sysname> system-view
[Sysname] ip ip-prefix test permit 2.2.2.0 24 less-equal 32
# Display brief information about active routes permitted by the prefix list test.
[Sysname] display ip routing-table ip-prefix test
Routes Matched by Prefix list : test
Summary Count : 2
Destination/Mask Proto Pre Cost NextHop Interface
2.2.2.0/24 Direct 0 0 2.2.2.1 Vlan2
2.2.2.1/32 Direct 0 0 127.0.0.1 InLoop0
For detailed description of the above output, see Table 1-2.
# Display detailed information about both active and inactive routes permitted by IP prefix list test.
[Sysname] display ip routing-table ip-prefix test verbose
Routes Matched by Prefix list test :
Summary Count : 2
Destination: 2.2.2.0/24
Protocol: Direct Process ID: 0
Preference: 0 Cost: 0
NextHop: 2.2.2.1 Interface: Vlan2
RelyNextHop: 0.0.0.0 Neighbour: 0.0.0.0
Tunnel ID: 0x0 Label: NULL
State: Active Adv Age: Od00h20m52s
Tag: 0
Destination: 2.2.2.1/32
Protocol: Direct Process ID: 0
Preference: 0 Cost: 0
NextHop: 127.0.0.1 Interface: InLoop0
RelyNextHop: 0.0.0.0 Neighbour: 0.0.0.0
Tunnel ID: 0x0 Label: NULL
State: Active NoAdv Age: Od00h20m52s
Tag: 0
For detailed description of the above output, see Table 1-3.
1.1.5 display ip routing-table protocol
Syntax
display ip routing-table protocol protocol [ inactive | verbose ]
View
Any view
Parameters
protocol: Routing protocol. It can be BGP, DIRECT, ISIS, OSPF, RIP, or STATIC.
inactive: Displays information about only inactive routes. With this argument absent, the command displays information about both active and inactive routes.
verbose: Displays detailed routing table information. With this argument absent, the command displays brief routing table information.
Description
Use the display ip routing-table protocol command to display routing information of a specified routing protocol.
Examples
# Display brief information about direct routes.
<Sysname> display ip routing-table protocol direct
Public Routing Table : Direct
Summary Count : 5
Direct Routing table Status : < Active>
Summary Count : 5
Destination/Mask Proto Pre Cost NextHop Interface
2.2.2.0/24 Direct 0 0 2.2.2.1 Vlan2
2.2.2.2/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.80.10/32 Direct 0 0 127.0.0.1 InLoop0
Direct Routing table Status : < Inactive>
Summary Count : 0
# Display summary information about static routes.
<Sysname> display ip routing-table protocol static
Public Routing Table : 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
For detailed description of the above output, see Table 1-2.
1.1.6 display ip routing-table statistics
Syntax
display ip routing-table [ vpn-instance vpn-instance-name ] statistics
View
Any view
Parameters
vpn-instance vpn-instance-name: Displays routing table information for a VPN instance. The VPN instance name is a string of 1 to 31 characters.
Description
Use the display ip routing-table statistics command to display statistics about the public network routing table or a VPN routing table.
Examples
# Display statistics about the routes in the routing table.
<Sysname> display ip routing-table statistics
Proto route active added deleted freed
DIRECT 24 4 25 1 0
STATIC 4 1 4 0 0
RIP 0 0 0 0 0
OSPF 0 0 0 0 0
IS-IS 0 0 0 0 0
BGP 0 0 0 0 0
Total 28 5 29 1 0
Table 1-5 Description on the fields of display ip routing-table statistics
Field |
Description |
Proto |
Origin of the routes. Possible values include O_ASE for OSPF_ASE routes, O_NSSA for OSPF NSSA, and AGGRE for aggregated routes. |
route |
Number of routes from the origin |
active |
Number of active routes from the origin |
added |
Number of routes added into the routing table since the router starts up or the last routing table reset operation |
deleted |
Number of routes marked as deleted, which will be freed after a period. |
freed |
Number of routes that got freed, that is, got removed permanently |
Total |
Sums for the numerical items above |
1.1.7 display ipv6 routing-table
Syntax
display ipv6 routing-table
View
Any view
Parameters
None
Description
Use the display ipv6 routing-table command to display brief routing table information, including destination IP address and prefix, protocol type, priority, metric, next hop and outbound interface.
The command displays only active routes, namely, the brief information about the current optimal routes.
Examples
# Display brief routing table information
<Sysname> display ipv6 routing-table
Routing Table :
Destinations : 1 Routes : 1
Destination : ::1/128 Protocol : Direct
NextHop : ::1 Preference : 0
Interface : InLoop0 Cost : 0
Table 1-6 Description on the fields of the display ipv6 routing-table command
Field |
Description |
Destination |
Destination IPv6 address |
NextHop |
Next hop |
Preference |
Routing preference |
Interface |
Outbound interface |
Protocol |
Routing protocol of the route |
Cost |
Routing cost |
1.1.8 display ipv6 routing-table acl
Syntax
display ipv6 routing-table acl acl6-number [ verbose ]
View
Any view
Parameters
acl6-number: Basic IPv6 ACL number, in the range 2000 to 2999.
verbose: Displays both active and inactive verbose routing information permitted by the ACL. Without this keyword, only brief active routing information is displayed.
Description
Use the display ipv6 routing-table acl command to display routing information permitted by the IPv6 ACL.
If the specified IPv6 ACL is not available, all routing information is displayed.
Examples
# Display brief routing information permitted by ACL 2000.
<Sysname> display ipv6 routing-table acl 2000
Routes Matched by Access list 2000 :
Summary Count : 2
Destination : ::1/128 Protocol : Direct
NextHop : ::1 Preference : 0
Interface : InLoop0 Cost : 0
Destination : 1:1::/64 Protocol : Static
NextHop : :: Preference : 60
Interface : NULL0 Cost : 0
Refer to Table 1-6 for description about the above output.
1.1.9 display ipv6 routing-table ipv6-address
Syntax
display ipv6 routing-table ipv6-address prefix-length [ longer-match ] [ verbose ]
View
Any view
Parameters
ipv6-address: Destination IPv6 address.
prefix-length: Prefix length, in the range 0 to 128.
longer-match: Displays the matched route having the longest prefix length.
verbose: Displays both active and inactive verbose routing information. Without this keyword, only brief active routing information is displayed.
Description
Use the display ipv6 routing-table ipv6-address command to display routing information about the specified destination IPv6 address.
Executing the command with different parameters yields different output:
l display ipv6 routing-table ipv6-address prefix-length
The system ANDs the input destination IPv6 address with the input prefix length, and ANDs the destination IPv6 address in each route entry with the input prefix length.
If the two operations yield the same result for an entry and the entry is active with a prefix length less than or equal to the input prefix length, the entry is displayed.
Only route entries that exactly match the input destination address and prefix length are displayed.
l display ipv6 routing-table ipv6-address prefix-length longer-match
The system ANDs the input destination IPv6 address with the input prefix length; and ANDs the destination IPv6 address in each route entry with the input prefix length.
If the two operations yield the same result for multiple entries with a prefix length less than or equal to the input prefix length, the one that is active with the longest prefix length is displayed.
Examples
# Display brief information about the route matching the specified destination IPv6 address.
<Sysname> display ipv6 routing-table 10::1 127
Routing Table:
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 matched route with the longest prefix length.
<Sysname> display ipv6 routing-table 10:: 127 longer-match
Routing Tables:
Summary Count : 1
Destination: 10::/120 Protocol : Static
NextHop : :: Preference: 60
Interface : NULL0 Cost : 0
Refer to Table 1-6 for description about the above output.
1.1.10 display ipv6 routing-table ipv6-address1 ipv6-address2
Syntax
display ipv6 routing-table ipv6-address1 prefix-length1 ipv6-address2 prefix-length2 [ verbose ]
View
Any view
Parameters
ipv6-address1/ipv6-address2: An IPv6 address range from IPv6 address1 to IPv6 address2.
prefix-length1/prefix-length2: Prefix length, in the range 0 to 128.
verbose: Displays both active and inactive verbose routing information. Without this keyword, only brief active routing information is displayed.
Description
Use the display ipv6 routing-table ipv6-address1 ipv6-address2 command to display routes with destinations falling into the specified IPv6 address range.
Examples
# Display routes with destinations falling into the IPv6 address range.
<Sysname> display ipv6 routing-table 100:: 64 400:: 64
Routing Table :
Summary Count : 3
Destination: 100::/64 Protocol : Static
NextHop : 1::2 Preference: 60
Interface : Vlan1 Cost : 0
Destination: 200::/64 Protocol : Static
NextHop : 1::2 Preference: 60
Interface : Vlan1 Cost : 0
Destination: 300::/64 Protocol : Static
NextHop : 1::2 Preference: 60
Interface : Vlan1 Cost : 0
Refer to Table 1-6 for description about the above output.
1.1.11 display ipv6 routing-table ipv6-prefix
Syntax
display ipv6 routing-table ipv6-prefix ipv6-prefix-name [ verbose ]
View
Any view
Parameters
ipv6-prefix-name: Name of the IPv6 prefix list, in the range 1 to 19 characters.
verbose: Displays both active and inactive verbose routing information. Without this keyword, only brief active routing information is displayed.
Description
Use the display ipv6 routing-table ipv6-prefix command to display routes permitted by the IPv6 prefix list.
Examples
# Display brief active routing information permitted by the IPv6 prefix list test2.
<Sysname> display ipv6 routing-table ipv6-prefix test2
Routes Matched by Prefix list test2 :
Summary Count : 1
Destination: 100::/64 Protocol : Static
NextHop : :: Preference: 60
Interface : NULL0 Cost : 0
Refer to Table 1-6 for description about the above output.
1.1.12 display ipv6 routing-table protocol
Syntax
display ipv6 routing-table protocol protocol [ inactive | verbose ]
View
Any view
Parameters
protocol: Displays routes of a routing protocol, which can be bgp4+, direct, isisv6, ospfv3, ripng and static.
inactive: Displays only inactive routes. Without the keyword, all active and inactive routes are displayed.
verbose: Displays both active and inactive verbose routing information. Without this keyword, only brief active routing information is displayed.
Description
Use the display ipv6 routing-table protocol command to display routes of a specified routing protocol.
Examples
# Display brief information about all direct routes.
<Sysname> display ipv6 routing-table protocol direct
Direct Routing Table :
Summary Count : 1
Direct Routing Table's Status : < Active >
Summary Count : 1
Destination: ::1/128 Protocol : Direct
NextHop : ::1 Preference: 0
Interface : InLoop0 Cost : 0
Direct Routing Table's Status : < Inactive >
Summary Count : 0
Refer to Table 1-6 for description about the above output.
1.1.13 display ipv6 routing-table statistics
Syntax
display ipv6 routing-table statistics
View
Any view
Parameters
None
Description
Use the display ipv6 routing-table statistics command to display routing statistics, including total route number, added route number and deleted route number.
Examples
# Display routing statistics.
<Sysname> display ipv6 routing-table statistics
Protocol route active added deleted freed
DIRECT 1 1 1 0 0
STATIC 3 0 3 0 0
RIPng 0 0 0 0 0
OSPFv3 0 0 0 0 0
IS-ISv6 0 0 0 0 0
BGP4+ 0 0 0 0 0
Total 4 1 4 0 0
Table 1-7 Description on the fields of the display ipv6 routing-table statistics command
Field |
Description |
Protocol |
Routing protocol |
route |
Route number of the protocol |
active |
Active route number |
added |
Routes added after the last startup of the router |
deleted |
Deleted routes, which will be released after a specified time |
freed |
Released (totally removed from the routing table) route number |
Total |
Total route number |
1.1.14 display ipv6 routing-table verbose
Syntax
display ipv6 routing-table verbose
View
Any view
Parameters
None
Description
Use the display ipv6 routing-table verbose command to display detailed information about all active and inactive routes, including the statistics of the entire routing table and information for each route.
Examples
# Display detailed information about all active and inactive routes.
<Sysname> display ipv6 routing-table verbose
Routing Table :
Destinations : 1 Routes : 1
Destination : ::1 PrefixLength : 128
NextHop : ::1 Preference : 0
RelayNextHop : :: Tag : 0H
Neighbour : :: ProcessID : 0
Interface : InLoopBack0 Protocol : Direct
State : Active NoAdv Cost : 0
Tunnel ID : 0x0 Label : NULL
Age : 22161sec
Table 1-8 Description on the fields of the display ipv6 routing-table verbose command
Field |
Description |
Destination |
Destination IPv6 address |
PrefixLength |
Prefix length of the address |
Nexthop |
Next hop |
Preference |
Routing preference |
RelayNextHop |
Relay next hop |
Tag |
Tag of the route |
Neighbour |
Neighbor address |
ProcessID |
Process ID |
Interface |
Outbound interface |
Protocol |
Routing protocol |
State |
State of the route, Active, Inactive, Adv (advertised), or NoAdv (not advertised) |
Cost |
Cost of the route |
Tunnel ID |
Tunnel ID |
Label |
Label |
Age |
Time that has elapsed since the route was generated |
1.1.15 reset ip routing-table statistics protocol
Syntax
reset ip routing-table statistics protocol [ vpn-instance vpn-instance-name ] { all | protocol }
View
User view
Parameters
vpn-instance-name: VPN instance name, a string of 1 to 31 characters.
all: Clears statistics for all routing protocols.
protocol: Clears statistics for the routing protocol, which can be bgp, direct, is-is, ospf, rip, or static.
Description
Use the reset ip routing-table statistics protocol command to clear the routing statistics of the routing table or VPN routing table.
Examples
# Clear routing statistics for the VPN instance Sysname1.
<Sysname> reset ip routing-table statistics protocol vpn-instance Sysname1 all
1.1.16 reset ipv6 routing-table statistics
Syntax
reset ipv6 routing-table statistics protocol { all | protocol }
View
User view
Parameters
all: Clears statistics for all routing protocols.
protocol: Clears statistics for the routing protocol, which can be bgp4+, direct, isisv6, ospfv3, ripng, or static.
Description
Use the reset ipv6 routing-table statistics command to clear the route statistics of the routing table.
Examples
# Clear statistics for all routing protocols.
<Sysname> reset ipv6 routing-table statistics protocol all