Enterprise products and services are set forth in the express warranty statements acco mpanying such
products and services. Nothing herein should be construe d as constituting an additional warranty. Hewlett
Packard Enterprise shall not be liable for technical or editorial errors or omissions co ntained herein.
Confidential computer software. V alid license from Hewlett Packard Enterprise required for possession, use, or
copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software
Documentation, and T e chnical Data for Commercial Items are licensed to the U.S. Government under vendor’s
standard commercial license.
Links to third-party websites take you outside the Hewlett Packard Enterprise website. Hewlett Packard
Enterprise has no control over and is not responsible for information outside the Hewlett Packard Enterprise
website.
Acknowledgments
Intel®, Itanium®, Pentium®, Intel Inside®, and the Intel Inside logo are trademarks of Intel Corporation in the
United States and other countries.
Microsoft® and Windows® are trademarks of the Microsoft group of companies.
Adobe® and Acrobat® are trademarks of Adobe Systems In corporated.
Java and Oracle are registered trademarks of Oracle and/or its affiliates.
UNIX® is a registered trademark of The Open Group.
Page 3
Contents
Basic IP routing commands ································································ 1
display ip routing-table ·········································································································· 1
display ip routing-table acl ····································································································· 5
display ip routing-table ip-address ··························································································· 8
display ip routing-table ip-prefix ···························································································· 10
display ip routing-table protocol ···························································································· 12
display ip routing-table statistics ··························································································· 13
display ipv6 routing-table ···································································································· 14
display ipv6 routing-table acl ································································································ 16
delete static-routes all ········································································································ 24
ip route-static ···················································································································· 24
ip route-static default-preference ·························································································· 27
ip route-static fast-reroute ··································································································· 27
Index ························································································· 492
x
Page 13
Basic IP routing commands
The term "router" in this chapter refers to both routers and Layer 3 switches.
The term "interface" in the routing features collectively refers to Layer 3 interfaces, including VLAN
interfaces and Layer 3 Ethernet interfaces. You can set an Ethernet port as a Layer 3 interface by
using the port link-mode route command (see Layer 2—LAN Switching Configuration Guide).
HPE FlexNetwork 3600 v2 SI Switch Series does not support OSPF, BGP, IS-IS, OSPFv3, IPv6 BGP,
or IPv6 IS-IS.
display ip routing-table
Syntax
display ip routing-table [ vpn-instance vpn-instance-name ] [ verbose ] [ | { begin | exclude |
include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a
case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public
network is displayed.
verbose: Displays detailed routing table information, including inactive routes. Without this keyword,
the command displays only brief information about active routes.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ip routing-table to display brief information about active routes in the routing table.
This command displays brief information about a routing table, with a routing entry contained in one
line. The information displayed includes destination IP address/mask length, protocol, priority, cost,
next hop, and outbound interface. This command displays only the optimal routes in use.
Use display ip routing-table verbose to display detailed information about all routes in the routing
table.
This command displays detailed information about all active and inactive routes, including the
statistics of the entire routing table and information for each route.
Examples
# Display brief information about active routes in the routing table.
<Sysname> display ip routing-table
Routing Tables: Public
1
Page 14
Destinations : 7 Routes : 7
Destination/Mask Proto Pre Cost NextHop Interface
1.1.2.0/24 Direct 0 0 1.1.2.1 Vlan11
1.1.2.1/32 Direct 0 0 127.0.0.1 InLoop0
2.2.2.0/24 OSPF 10 2 1.1.2.2 Vlan12
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.1 Vlan1
192.168.0.1/32 Direct 0 0 127.0.0.1 InLoop0
Table 1 Command output
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 Outbound 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 Tables: Public
Destinations : 7 Routes : 7
Displayed first are statistics for the whole routing table, followed by a detailed description of each
route (in sequence).
Table 2 Command output
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.
IpPrecedence IP precedence.
QosLcId QoS-local ID.
NextHop Address of the next hop on the route.
Interface Outbound interface for packets to be forwarded along the route.
BkNextHop Backup next hop.
BkInterface Backup outbound interface.
RelyNextHop Next hop address obtained through routing recursion.
Neighbor Neighboring address determined by routing protocol.
Tunnel ID Tunnel ID.
Label Label.
BKTunnel ID Backup tunnel ID.
BKLabel Backup label.
4
Page 17
Field Description
Route status:
• Active—This is an active unicast route.
• Adv—This route can be advertised.
• Delete—This route is deleted.
• Gateway—This is an indirect route.
• Holddown—Number of holddown routes. 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. It distributes a Holddown route
during a period regardless of whether a new route to the same destination is
found. For more information, refer to relevant routing protocols.
• Int—The route was discovered by an Interior Gateway Protocol (IGP).
• NoAdv—The route is not advertised when the router advertises routes based on
policies.
State
•NotInstall—Among routes to a destination, the route with the highest priority is
installed into the core routing table and advertised. A NotInstall route 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 sources of the dropped
packets. The Reject routes are usually used for network testing.
•Static—A static route is not lost when you perform the save operation and then
restart the router. Routes configured manually are marked as static.
• Unicast—Unicast routes.
• Inactive—Inactive routes.
• Invalid—Invalid routes.
• WaitQ—The route is the WaitQ during route recursion.
• TunE—Tunnel.
• GotQ—The route is in the GotQ during route recursion.
Age
Tag Route tag.
Time for which the route has been in the routing table, in the sequence of hour,
minute, and second from left to right.
display ip routing-table acl
Syntax
display ip routing-table [ vpn-instance vpn-instance-name ] acl acl-number [ verbose ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a
case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public
network is displayed.
5
Page 18
acl-number: Specifies the basic ACL number, in the range of 2000 to 2999.
verbose: Displays detailed routing table information, including inactive routes. Without this
argument, the command displays only brief information about active routes.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ip routing-table acl to display information about routes permitted by a specified basic
ACL.
For more information about routing policy, see Layer 3—IP Routing Configuration Guide.
This command is usually used together with routing policy display commands.
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 10.1.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 : 6
Destination/Mask Proto Pre Cost NextHop Interface
10.1.1.0/24 Direct 0 0 10.1.1.2 Vlan1
10.1.1.2/32 Direct 0 0 127.0.0.1 InLoop0
10.1.2.0/24 Direct 0 0 10.1.2.1 Vlan12
10.1.2.1/32 Direct 0 0 127.0.0.1 InLoop0
10.1.3.0/24 Direct 0 0 10.1.3.1 Vlan11
10.1.3.1/32 Direct 0 0 127.0.0.1 InLoop0
For command output, see Table 1.
# 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: 6
Destination: 10.1.1.0/24
Protocol: Direct Process ID: 0
Preference: 0 Cost: 0
IpPrecedence: QosLcId:
NextHop: 10.1.1.2 Interface: Vlan-interface1
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a
case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public
network is displayed.
ip-address: Specifies the destination IP address, in dotted decimal format.
mask | mask-length: Specifies the IP address mask, in dotted decimal format or represented by an
integer in the range of 0 to 32.
longer-match: Displays the route with the longest mask.
verbose: Displays detailed routing table information, including both active and inactive routes.
Without this argument, the command displays only brief information about active routes.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
8
Page 21
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ip routing-table ip-address to display information about routes to a specified
destination address.
Executing the command with different parameters yields different output:
• display ip routing-table ip-address:
• display ip routing-table ip-addressmask:
• display ip routing-table ip-addresslonger-match:
• display ip routing-table ip-address mask longer-match:
{ The system ANDs the input destination IP address with the subnet mask in each route entry.
{ The system ANDs the destination IP address in each route entry with its own subnet mask.
If the two operations yield the same result for an entry and this entry is active, it is displayed.
{ The system ANDs the input destination IP address with the input subnet mask.
{ The system 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.
{ The system ANDs the input destination IP address with the subnet mask in each route entry.
{ The system ANDs the destination IP address in each route entry with its own subnet mask.
If the two operations yield the same result for multiple entries that are active, the one with the
longest mask length is displayed.
{ The system ANDs the input destination IP address with the input subnet mask.
{ The system 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 display ip routing-tableip-address1 { mask-length | mask } ip-address2 { mask-length | mask }
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
# 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
9
Page 22
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 : 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 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
# Display route entries for destination addresses in the range of 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
3.3.3.0/24 Direct 0 0 3.3.3.1 Vlan12
3.3.3.1/32 Direct 0 0 127.0.0.1 InLoop0
4.4.4.0/24 Direct 0 0 4.4.4.1 Vlan11
4.4.4.1/32 Direct 0 0 127.0.0.1 InLoop0
For command output, see Table 1.
display ip routing-table ip-prefix
Syntax
display ip routing-table [ vpn-instance vpn-instance-name ] ip-prefix ip-prefix-name [ verbose ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
10
Page 23
Parameters
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a
case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public
network is displayed.
ip-prefix-name: Specifies the IP prefix list name, a string of 1 to 19 characters.
verbose: Displays detailed routing table information, including inactive routes. Without this
argument, the command displays only brief information about active routes.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ip routing-table ip-prefix to display information about routes permitted by a specified
prefix list.
This command is usually used together with routing policy display commands. 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 command output, see Table 1.
# 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
display ip routing-table [ vpn-instance vpn-instance-name ] protocol protocol [ inactive |
verbose ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a
case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public
network is displayed.
protocol: Specifies the routing protocol. It can be bgp, direct, isis, nat, ospf, rip, and static.
inactive: Displays information about only inactive routes. Without this argument, the command
displays information about both active and inactive routes.
verbose: Displays detailed routing table information. Without this argument, the command displays
brief routing table information.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ip routing-table protocol to display routing information of a specified routing protocol.
Examples
# Display brief information about direct routes.
12
Page 25
<Sysname> display ip routing-table protocol direct
Public Routing Table : Direct
Summary Count : 6
Direct Routing Table Status : <Active>
Summary Count : 6
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.0/24 Direct 0 0 192.168.80.10 Vlan11
192.168.80.10/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
Public Routing Table : Static
Summary Count : 2
Static Routing Table Status : <Active>
Summary Count : 0
Static Routing Table Status : <Inactive>
Summary Count : 2
Destination/Mask Proto Pre Cost NextHop Interface
1.2.3.0/24 Static 60 0 1.2.4.5 Vlan10
3.0.0.0/8 Static 60 0 2.2.2.2 Vlan11
For command output, see Table 1.
display ip routing-table statistics
Syntax
display ip routing-table [ vpn-instance vpn-instance-name ] statistics [ | { begin | exclude |
include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a
case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public
network is displayed.
13
Page 26
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ip routing-table statistics to display the route statistics of the routing table.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a
case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public
network is displayed.
verbose: Displays detailed information about both active and inactive routes. Without this keyword,
only brief information about active routes is displayed.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ipv6 routing-table to display brief IPv6 routing information, including destination IP
address and prefix, protocol type, priority, metric, next hop, and outbound interface.
The command displays only active routes (the brief information about the current optimal routes).
Use display ipv6 routing-table verbose to display detailed information about all IPv6 routes,
including both active and inactive routes. The output shows the statistics of the entire routing table,
and then the detailed information of each route.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a
case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public
network is displayed.
acl6-number: Specifies the basic IPv6 ACL number, in the range of 2000 to 2999.
16
Page 29
verbose: Displays both active and inactive verbose routing information permitted by the ACL.
Without this keyword, only brief active routing information is displayed.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ipv6 routing-table acl 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.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a
case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public
network is displayed.
ipv6-address: Specifies the destination IPv6 address.
prefix-length: Specifies the prefix length, in the range of 0 to 128.
longer-match: Displays the matched route having the longest prefix length.
17
Page 30
ipv6-address1/ipv6-address2: Specifies the an IPv6 address range from IPv6 address1 to IPv6
address2.
prefix-length1/prefix-length2: Specifies the prefix length, in the range of 0 to 128.
verbose: Displays both active and inactive verbose routing information. Without this keyword, only
brief active routing information is displayed.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ipv6 routing-table ipv6-address to display routing information about the specified
destination IPv6 address.
Executing the command with different parameters yields different output:
{ The system ANDs the input destination IPv6 address with the input prefix length.
{ The system 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.
{ The system ANDs the input destination IPv6 address with the input prefix length.
{ The system 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.
Use display ipv6 routing-table ipv6-address1 ipv6-address2 to display routes whose destinations
fall into the specified IPv6 address range.
Examples
# Display brief information about the route matching the specified destination IPv6 address.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a
case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public
network is displayed.
ipv6-prefix-name: Specifies the name of the IPv6 prefix list, in the range of 1 to 19 characters.
verbose: Displays both active and inactive verbose routing information. Without this keyword, only
brief active routing information is displayed.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
19
Page 32
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ipv6 routing-table ipv6-prefix 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
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a
case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public
network is displayed.
protocol: Displays routes of a routing protocol, which can be bgp4+, direct, isisv6, ospfv3, ripng,
and static.
inactive: Displays only inactive routes. Without this 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.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
20
Page 33
Description
Use display ipv6 routing-table protocol to display IPv6 routes of a specified routing protocol.
Examples
# Display brief information about all direct routes.
<Sysname> display ipv6 routing-table protocol direct
Public Routing Table : Direct
Summary Count : 1
Direct Routing Table Status : <Active>
Summary Count : 1
Direct Routing Table Status : <Inactive>
Summary Count : 0
For command output, see Table 4.
display ipv6 routing-table statistics
Syntax
display ipv6 routing-table [ vpn-instance vpn-instance-name ] statistics [ | { begin | exclude |
include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a
case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public
network is displayed.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ipv6 routing-table statistics to display IPv6 routing statistics, including total route
number, added route number, and deleted route number.
vpn-instance s-vpn-instance-name&<1-6>: Specifies a source MPLS L3VPN. s-vpn-instance-name
is a case-sensitive string of 1 to 31 characters. &<1-6> indicates the argument before it can be
entered up to 6 times. Each VPN has its own routing table, and the configured static route is installed
in the routing tables of the specified VPNs.
dest-address: Specifies the destination IP address of the static route, in dotted decimal notation.
mask: Specifies the mask of the IP address, in dotted decimal notation.
mask-length: Specifies the mask length, in the range of 0 to 32.
next-hop-address: Specifies the IP address of the next hop, in dotted decimal notation.
interface-type interface-number: Specifies the output interface by its type and number. If the output
interface is a broadcast interface, such as an Ethernet interface or a VLAN interface, the next hop
address must be specified.
vpn-instance d-vpn-instance-name: Specifies a destination MPLS L3VPN. d-vpn-instance-name is
a case-sensitive string of 1 to 31 characters. If a destination VPN is specified, the router will search
the output interface in the destination VPN based on the configured next-hop-address. next-hop-address public: Indicates that the specified next-hop-address is a public network address,
rather than a VPN instance address.
preferencepreference-value : Specifies the preference of the static route, in the range of 1 to 255
and defaults to 60.
tagtag-value: Sets a tag value for the static route from 1 to 4294967295. The default is 0. Tags of
routes are used in routing policies to control routing. For more information about routing policies, see
"Routing policy configuration commands."
permanent: Specifies the route as a permanent static route. If the output interface is down, the
permanent static route is still active.
description description-text: Configures a description for the static route, which consists of 1 to 60
characters, including special characters like space, but excluding question marks (?).
bfd: Enable the bidirectional forwarding detection (BFD) function to detect reachability of the static
route's next hop. Once the next hop is unreachable, the system will switch to a backup route.
control-packet: Implements BFD in the control mode.
echo-packet: Implements BFD in the echo mode.
bfd-source ip-address: Specifies the source address of BFD packets. Hewlett Packard Enterprise
recommends you configure loopback interface address.
track track-entry-number: Associates the static route with a track entry. Use the track-entry-number
argument to specify a track entry number, in the range of 1 to 1024.
Description
Use ip route-static to configure a unicast static route.
25
Page 38
Use undo ip route-static to delete a unicast static route.
When you configure a unicast static route, follow these guidelines:
•If the destination IP address and the mask are both 0.0.0.0 (or 0), the configured route is a
default route. The default route will be used for forwarding a packet if no route is available for
the packet in the routing table.
•Implement different routing policies by tuning route preference. For example, to enable multiple
routes to the same destination address to share load, assign the same preference to the routes;
to enable them to back up one another, assign different preferences to them.
•Specify the output interface or the next hop address of the static route as needed.
{If the output interface supports network address-to-link layer address resolution or is a
point-to-point interface, you may specify only the interface or the next hop address.
{ If the output interface is a Null 0 interface, no next hop address is required.
{ If you specify a broadcast interface (such as an Ethernet interface or a VLAN interface) as
the output interface for a static route, you must specify the corresponding next hop of the
interface at the same time.
{To implement BFD with the control-packet mode, the remote end must create a BFD
session; otherwise the BFD function cannot work. To implement BFD with the echo-packet
mode, the BFD function can work without the remote end needing to create any BFD
session.
{To configure a static route and enable BFD control packet mode for it, specify an output
interface and a direct next hop—BFD establishes a direct session, or specify an indirect
next hop and a specific BFD packet source address—BFD establishes an indirect
session—for the static route.
•The next hop address cannot be the IP address of a local interface (such as an Ethernet
interface and VLAN interface). Otherwise, the static route does not take effect.
•Enabling BFD for a flapping route could worsen the situation. Therefore, use it with caution. For
more information about BFD, see High Availability Configuration Guide.
•If the track module uses NQA to detect the reachability of the private network static route's next
hop, the VPN instance number of the static route's next hop must be identical to that configured
in the NQA test group.
•If a static route needs route recursion, the associated track entry must monitor the next hop of
the recursive route instead of that of the static route. Otherwise, a valid route may be mistakenly
considered invalid.
•Do not specify the permanent keyword together with the bfd or track keyword.
Related commands: display ip routing-table and ip route-static default-preference.
Examples
# Configure a static route, whose destination address is 1.1.1.1/24, next hop address is 2.2.2.2, tag
value is 45, and description information is for internet & intranet.
<Sysname> system-view
[Sysname] ip route-static 1.1.1.1 24 2.2.2.2 tag 45 description for internet & intranet
# Configure a static route for a VPN instance named vpn1: the destination address is 1.1.1.1/16 and
the next hop address is 1.1.1.2, which is the address of this VPN instance.
# Configure a static route: the destination address is 1.1.1.1/24, the output interface is
Vlan-interface11, and the next hop address is 2.2.2.2, and enable BFD with the echo packet mode.
ip route-static default-preference default-preference-value
undo ip route-static default-preference
View
System view
Default level
2: System level
Parameters
default-preference-value: Specifies the default preference for static routes, in the range of 1 to 255.
Description
Use iproute-staticdefault-preference to configure the default preference for static routes.
Use undo ip route-static default-preference to restore the default.
By default, the default preference of static routes is 60.
If no preference is specified when configuring a static route, the default preference is used.
When the default preference is re-configured, it applies only to newly added static routes.
Related commands: display ip routing-table and ip route-static.
Examples
# Set the default preference of static routes to 120.
<Sysname> system-view
[Sysname] ip route-static default-preference 120
ip route-static fast-reroute
Syntax
ip route-static [ vpn-instance vpn-instance-name ] fast-reroute route-policy route-policy-name
undo ip route-static [ vpn-instance vpn-instance-name ] fast-reroute
View
System view
Default level
2: System level
Parameters
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN to configure FRR for all matching
static routes in it. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is
specified, FRR is configured for all static routes on the public network.
route-policyroute-policy-name: References a routing policy. The route-policy-name argument is a
case-sensitive string of 1 to 63 characters.
Description
Use iproute-staticfast-reroute to configure static route fast reroute (FRR).
Use undoiproute-static fast-reroute to restore the default.
27
Page 40
Example
By default, static route FRR is not configured.
Configuring static route FRR needs to reference a routing policy, which specifies a backup next hop
with the apply fast-reroute backup-interface command. For more information about the command
and routing policy configurations, see Layer 3—IP Routing Configuration Guide.
Static route FRR takes effect only for static routes that have both the output interface and next hop
specified.
Do not use static route FRR and BFD (for static route) at the same time.
# Enable static route FRR to designate a backup next hop using routing policy frr.
backup-nexthop 193.1.1.8
[Sysname-route-policy] quit
[Sysname] ip route-static fast-reroute route-policy frr
28
Page 41
RIP configuration commands
The term "router" in this chapter refers to both routers and Layer 3 switches.
checkzero
Syntax
checkzero
undo checkzero
View
RIP view
Default level
2: System level
Parameters
None
Description
Use checkzero to enable zero field check on RIPv1 messages.
Use undo checkzero to disable zero field check.
The zero field check function is enabled by default.
After the zero field check is enabled, the router discards RIPv1 messages in which zero fields are
non-zero. If all messages are trusty, disable this feature to reduce the processing time of the CPU.
Examples
# Disable the zero field check on RIPv1 messages for RIP process 100.
only: Advertises only a default route.
originate: Advertises both a default route and other routes.
cost: Cost of the default route, in the range of 1 to 15. The default is 1.
Description
Use default-route to configure all the interfaces under the RIP process to advertise a default route
with the specified metric to RIP neighbors.
Use undo default-route to disable all the interfaces under the RIP process from sending a default
route.
By default, no default route is sent to RIP neighbors.
The RIP router with this feature configured will not receive any default routes from RIP neighbors.
Related commands: rip default-route.
Examples
# Configure all the interfaces under RIP process 100 to send only a default route with a metric of 2 to
RIP neighbors.
<Sysname> system-view
[Sysname] rip 100
[Sysname-rip-100] default-route only cost 2
30
Page 43
display rip
Syntax
display rip [ process-id | vpn-instance vpn-instance-name ] [ | { begin | exclude | include }
regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
process-id: RIP process ID, in the range of 1 to 65535. If no process ID is specified, information
about all configured RIP processes is displayed.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a
case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public
network is displayed.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display rip to display the current status and configuration information of the specified RIP
process.
Examples
# Display the current status and configuration information of all configured RIP processes.
<Sysname> display rip
Public VPN-instance name :
RIP process : 1
RIP version : 1
Preference : 100
Checkzero : Enabled
Default-cost : 0
Summary : Enabled
Hostroutes : Enabled
Maximum number of balanced paths : 8
Update time : 30 sec(s) Timeout time : 180 sec(s)
Suppress time : 120 sec(s) Garbage-collect time : 120 sec(s)
update output delay : 20(ms) output count : 3
TRIP retransmit time : 5 sec(s)
TRIP response packets retransmit count : 36
Silent interfaces : None
Default routes : Only Default route cost : 3
Verify-source : Enabled
31
Page 44
Networks :
192.168.1.0
Configured peers : None
Triggered updates sent : 0
Number of routes changes : 0
Number of replies to queries : 0
Table 7 Command output
Field Description
Public VPN-instance name (or Private VPN-instance
name)
RIP process RIP process ID.
RIP version RIP version 1 or 2.
Preference RIP route priority.
The RIP process runs under a public VPN
instance./The RIP process runs under a private VPN
instance.
Checkzero
Indicates whether the zero field check is enabled for
RIPv1 messages.
Default-cost Default cost of the redistributed routes.
Summary Indicates whether route summarization is enabled.
Hostroutes Indicates whether to receive host routes.
Maximum number of balanced paths Maximum number of load balanced routes.
Update time RIP update interval.
Timeout time RIP timeout time.
Suppress time RIP suppress interval.
update output delay RIP packet sending interval.
output count
Maximum number of RIP packets sent at each
interval.
Garbage-collect time RIP garbage collection interval.
TRIP retransmit time
TRIP response packets retransmit count
Silent interfaces
TRIP retransmit interval for sending update requests
and responses.
Maximum retransmit times for update requests and
responses.
Number of silent interfaces, which do not periodically
send updates.
Indicates whether a default route is sent to RIP
neighbors:
Default routes
• only—Means only a default route is advertised.
• originate—Means a default route is advertised
along with other routes.
•disable—Means no default route is advertised.
Default route cost Cost of the default route.
Verify-source
Indicates whether the source IP address is checked
on the received RIP routing updates.
Networks Networks enabled with RIP.
Configured peers Configured neighbors.
32
Page 45
Field Description
Triggered updates sent Number of sent triggered updates.
Number of routes changes Number of changed routes in the database.
Number of replies to queries Number of RIP responses.
display rip database
Syntax
display rip process-id database [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
process-id: RIP process ID, in the range of 1 to 65535.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ripdatabase to display active routes in the database of the specified RIP process,
which are sent in normal RIP routing updates.
Examples
# Display the active routes in the database of RIP process 100.
classful-summ Indicates the route is a RIP summary route.
Nexthop Address of the next hop.
Rip-interface Routes learned from a RIP-enabled interface.
imported Routes redistributed from other routing protocols.
33
Page 46
display rip interface
Syntax
display rip process-id interface [ interface-type interface-number ] [ | { begin | exclude | include }
regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
process-id: RIP process ID, in the range of 1 to 65535.
interface-type interface-number: Specifies an interface by its type and number.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display rip interface to display the RIP interface information of the RIP process.
If no interface is specified, information about all RIP interfaces of the RIP process is displayed.
Examples
# Display all the interface information of RIP process 1.
process-id: RIP process ID, in the range of 1 to 65535.
ip-address { mask | mask-length }: Displays route information about a specified IP address.
peer ip-address: Displays all routing information learned from a specified neighbor.
statistics: Displays the route statistics, including total number of routes and number of routes of
each neighbor.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
35
Page 48
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display rip route to display the routing information of a specified RIP process.
Examples
# Display all routing information of RIP process 1.
<Sysname> display rip 1 route
Route Flags: R - RIP, T - TRIP
P - Permanent, A - Aging, S - Suppressed, G - Garbage-collect
--------------------------------------------------------------------------- Peer 111.1.1.2 on Vlan-interface11
Destination/Mask Nexthop Cost Tag Flags Sec
122.0.0.0/8 111.1.1.2 1 0 RA 22
Table 10 Command output
Field Description
Route Flags
• R—RIP route.
• T—TRIP route.
• P—The route never expires.
• A— he route is aging.
• S—The route is suppressed.
• G— he route is in Garbage-collect state.
Peer 21.0.0.23 on Vlan-interface11
Destination/Mask Destination IP address and subnet mask.
Nexthop Next hop of the route.
Cost Cost of the route.
Tag Route tag.
Flags Indicates the route state.
Sec
Routing information learned on a RIP interface from the
specified neighbor.
Remaining time of the timer corresponding to the route
state.
# Display the routing statistics of RIP process 1.
changes from bidirectional to unidirectional or down. A unidirectional link refers to the link through
which packets are forwarded only from one end to the other.
acl-number: Number of an ACL used to filter outbound routes, in the range of 2000 to 3999.
ip-prefix ip-prefix-name: Name of an IP prefix list used to filter outbound routes, a string of 1 to 19
characters.
protocol: Filters outbound routes redistributed from a specified routing protocol, which can be bgp,
direct, isis, ospf, rip, and static.
process-id: Process ID of the specified routing protocol, in the range of 1 to 65535. You need to
specify a process ID when the routing protocol is rip, ospf, or isis.
interface-type interface-number: Specifies an interface by its type and number.
Description
Use filter-policyexport to configure the filtering of RIP outgoing routes. Only routes not filtered out
can be advertised.
Use undo filter-policyexport to remove the filtering.
38
Page 51
By default, RIP does not filter outbound routes.
If a protocol is specified, RIP filters only the routes redistributed from the specified routing protocol.
Otherwise, RIP filters all routes to be advertised.
If interface-type interface-number is specified, RIP filters only the routes advertised by the specified
interface. Otherwise, RIP filters routes advertised by all RIP interfaces.
If you want to reference an advanced ACL (with a number from 3000 to 3999) in the command, the
ACL should be configured with the rule [ rule-id ] { deny | permit } ip source sour-addr sour -wildcard
command to deny/permit a route with the specified destination, or with the rule [ rule-id ] { deny |
permit } ip sourcesour-addr sour-wildcard destinationdest-addr dest-wildcard command to
deny/permit a route with the specified destination and mask. The source keyword specifies the
destination address of a route and the destination keyword specifies the subnet mask of the route
(the subnet mask must be valid; otherwise, the configuration is ineffective).
Related commands: import-route and ip ip-prefix; acl (ACL and QoS Command Reference).
acl-number: Number of the ACL used for filtering incoming routes, in the range of 2000 to 3999.
ip-prefix ip-prefix-name: References an IP prefix list to filter incoming routes. The ip-prefix-name is a
string of 1 to 19 characters.
gateway ip-prefix-name: References an IP prefix list to filter routes from the gateway. ip-prefix-name
is a string of 1 to 19 characters.
interface-type interface-number: Specifies an interface by its type and number.
Description
Use filter-policyimport to configure RIP to filter the incoming routes.
Use undo filter-policy import to restore the default.
By default, RIP does not filter incoming routes.
If you want to reference an advanced ACL (with a number from 3000 to 3999) in the command, the
ACL should be configured with the rule [ rule-id ] { deny | permit } ip source sour-addr sour -wildcard
command to deny/permit a route with the specified destination, or with the rule [ rule-id ] { deny |
permit } ip sourcesour-addr sour-wildcard destinationdest-addr dest-wildcard command to
deny/permit a route with the specified destination and mask. The source keyword specifies the
destination address of a route and the destination keyword specifies the subnet mask of the route
(the subnet mask must be valid; otherwise, the configuration is ineffective).
Related commands: ip ip-prefix; acl (ACL and QoS Command Referen ce).
Use host-route to enable host route reception.
Use undo host-route to disable host route reception.
By default, receiving host routes is enabled.
In some cases, a router may receive many host routes from the same network segment. These
routes are not helpful for routing and occupy a large amount of network resources. Use undo host-route to disable receiving of host routes.
RIPv2 can be disabled from receiving host routes, but RIPv1 cannot.
protocol: Specifies a routing protocol from which to redistribute routes. It can be bgp, direct, isis,
ospf, rip, or static.
process-id: Process ID, in the range of 1 to 65535. The default is 1. It is available only when the
protocol is isis, rip, or ospf.
all-processes: Enables route redistribution from all the processes of a protocol. This keyword takes
effect only when the protocol is rip, ospf, or isis.
allow-ibgp: When the protocol argument is set to bgp, allow-ibgp is an optional keyword.
cost: Cost for redistributed routes, in the range of 0 to 16. If cost is not specified, the default cost
specified by the default cost command applies.
tag: Tag marking redistributed routes, in the range of 0 to 65,535. The default is 0.
41
Page 54
route-policy route-policy-name: Specifies a routing policy with 1 to 63 case-sensitive characters.
Description
Use import-route to enable route redistribution from another routing protocol.
Use undo import-route to disable route redistribution.
By default, RIP does not redistribute routes from other routing protocols.
The import-route bgp command only redistributes eBGP routes. The import-route bgp
allow-ibgp command additionally redistributes IBGP routes, which may cause routing loops.
Only active routes can be redistributed. Use the display ip routing-tableprotocol command to
display route state information.
The undo import-route protocolall-processes command cancels the configuration made by the import-route protocol all-processes command, rather than the import-route protocol process-id
command.
Related commands: default cost.
Examples
# Redistribute static routes, and set the cost to 4.
network-address: IP address of a network segment, which can be the IP network address of any
interface.
Description
Use network to enable RIP on the interface attached to the specified network.
Use undo network to disable RIP on the interface attached to the specified network.
RIP is disabled on an interface by default.
RIP runs only on the interfaces attached to the specified network. For an interface not on the
specified network, RIP neither receives/sends routes on it nor forwards interface route through it.
You need to specify the network after enabling RIP to validate RIP on a specific interface.
For a single process, the network 0.0.0.0 command can enable RIP on all interfaces, but the
command is not applicable in case of multi-process.
If a physical interface is attached to multiple networks, you cannot advertise these networks in
different RIP processes.
Examples
# Enable RIP on the interface attached to the network 129.102.0.0.
ip-address: IP address of a RIP neighbor, in dotted decimal format.
Description
Use peer to specify the IP address of a neighbor in the non-broadcast multi-access (NBMA) network,
where routing updates destined for the peer are unicast, rather than multicast or broadcast.
Use undo peer to remove the IP address of a neighbor.
By default, no neighbor is specified.
You need not use the peer ip-address command when the neighbor is directly connected; otherwise
the neighbor may receive both the unicast and multicast (or broadcast) of the same routing
information.
Examples
# Specify to send unicast updates to peer 202.38.165.1.
route-policy-name: Routing policy name with 1 to 63 case-sensitive characters.
value: Preference for RIP routes, in the range of 1 to 255. The smaller the value, the higher the
preference.
Description
Use preference to specify the preference for RIP routes.
Use undo preference to restore the default.
By default, the preference of RIP routes is 100.
You can specify a routing policy by using the keyword route-policy to set a preference for the
matching RIP routes.
• The preference set by the routing policy applies to all matching RIP routes. The preference of
• If no preference is set by the routing policy, the preference of all RIP routes is set by the
md5: Specifies the MD5 authentication mode.
rfc2082: Uses the message format defined in RFC 2082.
cipher: Sets a ciphertext authentication key or password. If this keyword is not specified, you set a
plaintext authentication key or password.
key-string: Specifies the MD5 key string. This argument is case sensitive. It must be a plaintext string
of 1 to 16 characters, or a ciphertext string of 33 to 53 characters.
key-id: Specifies the MD5 key number, in the range of 1 to 255.
rfc2453: Uses the message format defined in RFC 2453 (IETF standard).
simple: Specifies the simple authentication mode.
password: Sets the password in simple authentication mode. This argument is case sensitive. It
must be a plaintext string of 1 to 16 characters, or a ciphertext string of 33 to 53 characters.
Description
Use rip authentication-mode to configure RIPv2 authentication mode and parameters.
Use undo rip authentication-mode to cancel authentication.
The key string you configured can overwrite the old one, if any.
The authentication key or password, set in either plain text or cipher text, is saved to the
configuration file in cipher text.
This feature does not apply to RIPv1 because RIPv1 does not support authentication. Although you
can specify an authentication mode for RIPv1 in interface view, the configuration does not take
effect.
Related commands: rip version.
Examples
# Configure MD5 authentication on VLAN-interface 10 with the plaintext key string being rose in the
format defined in RFC 2453.
[Sysname-Vlan-interface10] rip version 2
[Sysname-Vlan-interface10] rip authentication-mode md5 rfc2453 rose
rip bfd enable
Syntax
rip bfd enable
undo rip bfd enable
View
Interface view
Default level
2: System level
Parameters
None
Description
Use rip bfd enable to enable BFD on the RIP interface.
Use undo rip bfd enable to restore the default and delete the relevant BFD session.
By default, a RIP interface is not enabled with BFD.
BFD echo-mode detection only works for a RIP neighbor one hop away.
Using the undo peer command does not delete the neighbor relationship at once and cannot bring
rip metricin [ route-policy route-policy-name ] value
undo rip metricin
49
Page 62
View
Interface view
Default level
2: System level
Parameters
route-policy route-policy-name: Specifies the name of a routing policy used to add an additional
metric for the routes matching it. The name is a string of 1 to 63 case-sensitive characters.
value: Additional metric added to received routes, in the range of 0 to 16.
Description
Use rip metricin to configure the interface to add a metric to the routes it receives.
Use undo rip metricin to restore the default.
By default, the additional metric of a received route is 0.
When a valid RIP route is received, the system adds a metric to it and then installs it into the routing
table. The metric of the route received on the configured interface is then increased. If the sum of the
additional metric and the original metric is greater than 16, the metric of the route will be 16.
If a routing policy is referenced with the route-policy keyword, the following operations can be
performed:
• Routes matching the policy is added with the metric specified in the apply cost command
• If the apply cost command is not configured in the policy, all the advertised routes is added with
configured in the policy. Routes not matching it is added with the metric specified in the rip
metricout command. The rip metricout command does not support the + or – keyword—used
to add or reduce a metric—specified in the apply cost command. For more information about
the apply cost command, see "Routing policy configuration commands."
the metric specified in the rip metricout command.
Examples
# Configure VLAN-interface 10 to add a metric of 6 for incoming route 1.0.0.0/8 and to add a metric of
2 for other incoming routes.
configured in the policy. Routes not matching it is added with the metric specified in the rip
metricout command. The rip metricout command does not support the + or – keyword—used
to add or reduce a metric—specified in the apply cost command. For more information about
the apply cost command, see "Routing policy configuration commands."
the metric specified in the rip metricout command.
rip mib-binding
Syntax
rip mib-binding process-id
undo rip mib-binding
View
System view
Default level
2: System level
Parameters
process-id: RIP process ID, in the range of 1 to 65535.
Description
Use rip mib-binding to bind MIB operations with a specified RIP process, so that the RIP process
can receive SNMP requests.
Use undo rip mib-binding to restore the default.
By default, MIB operations are bound to RIP process 1. RIP process 1 is enabled to receive SNMP
requests.
51
Page 64
Examples
# Enable RIP process 100 to receive SNMP requests.
ip-address: Destination IP address of summary route.
mask: Subnet mask of summary route, in dotted decimal format.
mask-length: Subnet mask length of summary route, in the range of 0 to 32.
Description
Use rip summary-address to configure RIPv2 to advertise a summary route through the interface.
Use undo rip summary-address to remove the configuration.
The summary address is valid only when the automatic summarization is disabled.
Related commands: summary.
Examples
# Advertise a local summary address on VLAN-interface 10.
rip version { 1 | 2 [ broadcast | multicast ] }
undo rip version
View
Interface view
Default level
2: System level
Parameters
1: RIP version 1.
2: RIP version 2.
broadcast: Sends RIPv2 messages in broadcast mode.
multicast: Sends RIPv2 messages in multicast mode.
Description
Use rip version to specify a RIP version for the interface.
Use undo rip version to remove the specified RIP version.
By default, no RIP version is configured for an interface, which uses the global RIP version. If the
global RIP version is not configured, the interface can only send RIPv1 broadcasts and can receive
RIPv1 broadcasts and unicasts, and RIPv2 broadcasts, multicasts, and unicasts.
If RIPv2 is specified with no sending mode configured, RIPv2 messages will be sent in multicast
mode.
When RIPv1 runs on an interface, the interface can perform the following operations:
• Sends RIPv1 broadcast messages
• Receives RIPv1 broadcast and unicast messages
When RIPv2 runs on the interface in broadcast mode, the interface can perform the following
operations:
54
Page 67
• Sends RIPv2 broadcast messages
• Receives RIPv1 broadcast and unicast messages, and RIPv2 broadcast, multicast, and unicast
messages
When RIPv2 runs on the interface in multicast mode, the interface can perform the following
operations:
• Sends RIPv2 multicast messages
• Receives RIPv2 broadcast, multicast, and unicast messages
Examples
# Configure VLAN-interface 10 to broadcast RIPv2 messages.
silent-interface { interface-type interface-number | all }
undo silent-interface { interface-type interface-number | all }
View
RIP view
Default level
2: System level
Parameters
interface-type interface-number: Specifies an interface by its type and number.
all: Disables all interfaces from sending routing updates.
Description
Use silent-interface to disable an interface or all interfaces from sending routing updates. The
interface only receives but does not send RIP messages.
Use undo silent-interface to restore the default.
By default, all interfaces are allowed to send routing updates.
Examples
# Configure all VLAN interfaces to work in silent state, and activate VLAN-interface 10.
garbage-collect-value: Garbage-collect timer time in seconds, in the range of 1 to 3600.
suppress-value: Suppress timer time in seconds, in the range of 0 to 3600.
timeout-value: Timeout timer time in seconds, in the range of 1 to 3600.
update-value: Update timer time in seconds, in the range of 1 to 3600.
Description
Use timers to configure RIP timers. By adjusting RIP timers, you can improve network performance.
Use undo timers to restore the default.
By default, the garbage-collect timer is 120 seconds, the suppress timer is 120 seconds, the timeout
timer is 180 seconds, and the update timer is 30 seconds.
RIP is controlled by the following timers:
56
Page 69
• Update timer—Defines the interval between routing updates.
• Timeout timer—Defines the route aging time. If no routing update related to a route is received
• Suppress timer—Defines how long a RIP route stays in suppressed state. When the metric of
• Garbage-collect timer—Defines the interval from when the metric of a route becomes 16 to
IMPORTANT:
• Hewlett Packard Enterprise does not recommend changing the default values of these timers.
• The time lengths of these timers must be kept consistent on all routers in the network.
Examples
# Specifies the update, timeout, suppress, and garbage-collect timers as 5, 15, 15 and 30.
after the aging time, the metric of the route is set to 16 in the routing table.
a route is 16, the route enters the suppressed state. In suppressed state, only routes which
come from the same neighbor and whose metric is less than 16 will be received by the router to
replace unreachable routes.
when it is deleted from the routing table. During the Garbage-Collect timer length, RIP
advertises the route with the routing metric set to 16. If no routing update is announced for that
route after the Garbage-Collect timer expires, the route will be deleted from the routing table.
1: Specifies the RIP version as RIPv1.
2: Specifies the RIP version as RIPv2. RIPv2 messages are multicast.
Description
Use version to specify a global RIP version.
Use undo version to remove the configured global RIP version.
By default, if an interface has a RIP version specified, the RIP version takes effect; if it has no RIP
version specified, it can send RIPv1 broadcasts, and receive RIPv1 broadcasts and unicasts, and
RIPv2 broadcasts, multicasts, and unicasts.
If an interface has an RIP version specified, the RIP version takes precedence over the global RIP
version.
If no RIP version is specified for the interface and the global version is RIPv1, the interface inherits
RIPv1, and it can send RIPv1 broadcasts, and receive RIPv1 broadcasts and unicasts.
If no RIP version is specified for the interface and the global version is RIPv2, the interface operates
in the RIPv2 multicast mode, and it can send RIPv2 multicasts, and receive RIPv2 broadcasts,
multicasts, and unicasts.
Examples
# Specify RIPv2 as the global RIP version.
<Sysname> system-view
[Sysname] rip 100
[Sysname-rip-100] version 2
58
Page 71
OSPF configuration commands
The term "router" in this chapter refers to both routers and Layer 3 switches.
HPE FlexNetwork 3600 v2 SI Switch Series does not support OSPF.
ip-address: Destination IP address of the summary route, in dotted decimal format.
mask: Mask of the IP address in dotted decimal format.
mask-length: Mask length, in the range of 0 to 32 bits.
advertise | not-advertise: Advertises the summary route or not. If none of the advertise and
not-advertise keywords is set, the summary route is advertised.
cost cost: Specifies the cost of the summary route, in the range of 1 to 16777215. The default cost is
the largest cost value among routes that are summarized.
Description
Use abr-summary to configure a summary route on an area border router (ABR).
Use undo abr-summary to remove a summary route.
By default, no route summarization is configured on an ABR.
You can enable advertising the summary route or not, and specify a route cost.
This command is available only on an ABR to summarize multiple contiguous networks into one
network.
With the undo abr-summary command used, summarized routes will be advertised.
Examples
# Summarize networks 36.42.10.0/24 and 36.42.110.0/24 in Area 1 into 36.42.0.0/16.
ip-address: IP address of the summary route in dotted decimal notation.
mask: Summary route mask, in dotted decimal notation.
mask-length: Length of summary route mask, in the range of 0 to 32 bits.
costcost: Specifies the cost of the summary route, in the range of 1 to 16777214. For Type-1
external routes, the cost defaults to the largest cost among routes that are summarized. For Type-2
external routes, the cost defaults to the largest cost among routes that are summarized plus 1.
not-advertise: Disables advertising the summary route. If the keyword is not specified, the route is
advertised.
60
Page 73
tag tag: Specifies a tag value for the summary route, used by a routing policy to control summary
route advertisement, in the range of 0 to 4294967295. The default is 1.
Description
Use asbr-summary to configure a summary route.
Use undo asbr-summary to remove a summary route.
No ASBR route summarization is configured by default.
With the asbr-summary command configured, an ASBR summarizes redistributed routes that fall
into the specified address range into a single route. If the ASBR resides in an NSSA area, it
advertises the summary route in a Type-7 LSA into the area.
With the asbr-summary command configured, an NSSA ABR summarizes routes described by
Type-5 LSAs translated from Type-7 LSAs into a single route and advertises the summary route to
other areas. This command does not take effect on non NSSA ABRs.
If the undo asbr-summary command is used, summarized routes will be advertised.
Related command: display ospf asbr-summary.
Examples
# Summarize redistributed static routes into a single route, and specify a tag value of 2 and a cost of
100 for the summary route.
<Sysname> system-view
[Sysname] ip route-static 10.2.1.0 24 null 0
[Sysname] ip route-static 10.2.2.0 24 null 0
[Sysname] ospf 100
[Sysname-ospf-100] import-route static
[Sysname-ospf-100] asbr-summary 10.2.0.0 255.255.0.0 tag 2 cost 100
bandwidth-reference value
undo bandwidth-reference
View
OSPF view
Default level
2: System level
Parameters
value: Bandwidth reference value for link cost calculation, in the range of 1 to 2147483648 Mbps.
Description
Use bandwidth-reference to specify a reference bandwidth value for link cost calculation.
Use undo bandwidth-reference to restore the default value.
The default value is 100 Mbps.
When links have no cost values configured, OSPF calculates their cost values using formula:
Cost=Reference bandwidth value / Link bandwidth. If the calculated cost is greater than 65535, the
value of 65535 is used.
Examples
# Specify the reference bandwidth value as 1000 Mbps.
default { cost cost | limit limit | tag tag | type type } *
undo default { cost | limit | tag | type } *
View
OSPF view
Default level
2: System level
Parameters
cost: Specifies the default cost for redistributed routes, in the range of 0 to 16777214.
62
Page 75
limit: Specifies the default upper limit of routes redistributed per time, in the range of 1 to
2147483647.
tag: Specifies the default tag for redistributed routes, in the range of 0 to 4294967295.
type: Specifies the default type for redistributed routes: 1 or 2.
Description
Use default to configure default parameters for redistributed routes.
Use undodefault to restore default values.
The cost, route type, tag, and the upper limit are 1, 2, 1 and 1000 by default.
Related commands: import-route.
Examples
# Configure the default cost, upper limit, tag and type as 10, 20000, 100 and 2 for redistributed
external routes.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] default cost 10 limit 20000 tag 100 type 2
default-cost (OSPF area view)
Syntax
default-cost cost
undo default-cost
View
OSPF area view
Default level
2: System level
Parameters
cost: Specifies a cost for the default route advertised to the Stub or NSSA area, in the range of 0 to
16777214.
Description
Use default-cost to configure a cost for the default route advertised to the stub or NSSA area.
Use undo default-cost to restore the default value.
The cost defaults to 1.
This command is only applicable to the ABR of a stub area or the ABR/ASBR of an NSSA area.
Related commands: stub and nssa.
Examples
# Configure Area 1 as a stub area, and specify the cost of the default route advertised to the stub
area as 20.
always: Generates a default route in a Type-5 LSA into the OSPF routing domain regardless of
whether there is a default route in the routing table. If this keyword is not specified, the router
generates a default route in a Type-5 LSA into the OSPF routing domain only when an active default
route that does not belong to the current OSPF process exists in the IP routing table.
permit-calculate-other: Calculates default routes from other routers with this keyword specified or
does not calculate default routes from other routers without this keyword specified when the router
generates a default route in a Type-5 LSA into the OSPF routing domain. If the router generates no
default route in a Type-5 LSA into the OSPF routing domain, the router calculates default routes from
other routers regardless of whether this keyword is specified.
costcost: Specifies a cost for the default route, in the range of 0 to 16777214. If no cost is specified,
the default cost specified by the default cost command applies.
route-policyroute-policy-name: Specifies a routing policy name, a string of 1 to 63 case-sensitive
characters. When a default route exists in the routing table and the specified routing policy is
matched, the command distributes a default route in a Type-5 LSA into the OSPF routing domain,
and the routing policy modifies some values in the Type-5 LSA. If the always keyword is specified at
the same time, the command can distribute a default route in a Type-5 LSA into the OSPF routing
domain when the specified routing policy is matched, regardless of whether a default route exists in
the routing table, and the routing policy modifies some values in the Type-5 LSA.
type type: Specifies a type for the Type-5 LSA: 1 or 2. If type is not specified, the default type for the
Type-5 LSA specified by the default type command applies.
summary: Advertises the Type-3 summary LSA of the specified default route.
Description
Use default-route-advertise to generate a default route into the OSPF routing domain.
Use undo default-route-advertise to disable OSPF from distributing a default external route.
By default, no default route is distributed.
The default-route-advertisesummary cost command is applicable only to VPNs, and the default
route is redistributed in a Type-3 LSA. The PE router advertises the redistributed default route to the
CE router.
Using the import-route command cannot redistribute a default route. To redistribute a default route,
use the default-route-advertise command.
If neither the always nor permit-calculate-other keyword is specified, the router generates a default
route in a Type-5 LSA into the OSPF routing domain only when an active default route that does not
belong to the current OSPF process exists in the IP routing table. The router then does not calculate
default routes from other routers.
Related commands: import-route and default.
64
Page 77
Examples
# Generate a default route in an ASE LSA into the OSPF routing domain, regardless of whether the
default route is available in the routing table.
description: Configures a description for the OSPF process in OSPF view, or for the OSPF area in
OSPF area view. description is a string of up to 80 characters.
Description
Use description to configure a description for an OSPF process or area.
Use undo description to remove the description.
No description is configured by default.
Use of this command is only for the identification of an OSPF process or area. The description has
no special meaning.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] area 0
[Sysname-ospf-100-area-0.0.0.0] description bone area
display ospf abr-asbr
Syntax
display ospf [ process-id ] abr-asbr [ | { begin | exclude | include } regular-expression ]
View
Any view
65
Page 78
Default level
1: Monitor level
Parameters
process-id: OSPF process ID, in the range of 1 to 65535. Use this argument to display information
about the routes to the ABR/ASBR under the specified OSPF process.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ospf abr-asbr to display information about the routes to OSPF ABR/ASBR.
If you use this command on routers in a stub area, no ASBR information is displayed.
Examples
# Display information about the routes to the OSPF ABR and ASBR.
<Sysname> display ospf abr-asbr
OSPF Process 1 with Router ID 192.168.1.2
Routing Table to ABR and ASBR
Type Destination Area Cost Nexthop RtType
Inter 3.3.3.3 0.0.0.0 3124 10.1.1.2 ASBR
Intra 2.2.2.2 0.0.0.0 1562 10.1.1.2 ABR
process-id: OSPF process ID, in the range of 1 to 65535.
ip-address: IP address, in dotted decimal format.
mask: IP address mask, in dotted decimal format.
mask-length: Mask length, in the range of 0 to 32 bits.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use displayospfasbr-summary to display information about the redistributed routes that are
summarized.
If no OSPF process is specified, related information of all OSPF processes is displayed.
If no IP address is specified, information about all summarized redistributed routes will be displayed.
Related commands: asbr-summary.
Examples
# Display information about all summarized redistributed routes.
<Sysname> display ospf asbr-summary
OSPF Process 1 with Router ID 2.2.2.2
Summary Addresses
Total Summary Address Count: 1
Summary Address
Net : 30.1.0.0
Mask : 255.255.0.0
Tag : 20
Status : Advertise
Cost : 10 (Configured)
The Count of Route is : 2
Destination Net Mask Proto Process Type Metric
30.1.2.0 255.255.255.0 OSPF 2 2 1
30.1.1.0 255.255.255.0 OSPF 2 2 1
67
Page 80
Table 13 Command output
Field Description
Total Summary Address Count Total number of summary routes
Net Address of the summary route
Mask Mask of the summary route address
Tag Tag of the summary route
Status Advertisement status of the summary route
Cost Cost to the summary net
The Count of Route Number of routes that are summarized
Destination Destination address of a summarized route
Net Mask Network mask of a summarized route
Proto Routing protocol
Process Process ID of the routing protocol
Type Type of a summarized route
Metric Metric of a summarized route
display ospf brief
Syntax
display ospf [ process-id ] brief [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
process-id: OSPF process ID, in the range of 1 to 65535.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ospf brief to display OSPF brief information. If no OSPF process is specified, brief
information about all OSPF processes is displayed.
ExChange/Loading Neighbors Neighbors in ExChange/Loading state.
Area Area ID in the IP address format .
Authentication type of the area:
Authtype
• None—No authentication.
• Simple—Simple authentication.
• MD5—MD5 authentication.
Area flag The type of the area.
SPF scheduled Count SPF calculation count in the OSPF area.
Interface Interface in the area.
Cost Interface cost.
State Interface state.
Type Interface network type.
MTU Interface MTU.
Priority Router priority.
Designated Router The Designated Router.
Backup Designated Router The Backup Designated Router.
Timers
Intervals of timers: hello, dead, poll, retransmit, and transmit
delay.
70
Page 83
display ospf cumulative
Syntax
display ospf [ process-id ] cumulative [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
process-id: OSPF process ID, in the range of 1 to 65535.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ospf cumulative to display OSPF statistics.
Use of this command is helpful for troubleshooting.
Examples
# Display OSPF statistics.
<Sysname> display ospf cumulative
OSPF Process 1 with Router ID 2.2.2.2
Cumulations
Routing Table:
Intra Area: 2 Inter Area: 3 ASE/NSSA: 0
Table 15 Command output
Field Description
IO statistics Statistics about input/output packets and LSAs
Type OSPF packet type
Input Packets received
Output Packets sent
Hello Hell packet
DB Description Database Description packet
Link-State Req Link-State Request packet
Link-State Update Link-State Update packet
Link-State Ack Link-State Acknowledge packet
LSAs originated by this router LSAs originated by this router
Router Number of Type-1 LSAs originated
Network Number of Type-2 LSAs originated
Sum-Net Number of Type-3 LSAs originated
Sum-Asbr Number of Type-4 LSAs originated
External Number of Type-5 LSAs originated
NSSA Number of Type-7 LSAs originated
Opq-Link Number of Type-9 LSAs originated
Opq-Area Number of Type-10 LSAs originated
Opq-As Number of Type-11 LSAs originated
LSA originated Number of LSAs originated
LSA Received Number of LSAs received
Routing Table Routing table information
Intra Area Intra-area route number
Inter Area Inter-area route number
ASE ASE route number
display ospf error
Syntax
display ospf [ process-id ] error [ | { begin | exclude | include } regular-expression ]
View
Any view
72
Page 85
Default level
1: Monitor level
Parameters
process-id: OSPF process ID, in the range of 1 to 65535.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ospf error to display OSPF error information.
If no process is specified, the OSPF error information of all OSPF processes is displayed.
Examples
# Display OSPF error information.
<Sysname> display ospf error
OSPF Process 1 with Router ID 192.168.80.100
OSPF Packet Error Statistics
0 : OSPF Router ID confusion 0 : OSPF bad packet
0 : OSPF bad version 0 : OSPF bad checksum
0 : OSPF bad area ID 0 : OSPF drop on unnumber interface
0 : OSPF bad virtual link 0 : OSPF bad authentication type
0 : OSPF bad authentication key 0 : OSPF packet too small
0 : OSPF Neighbor state low 0 : OSPF transmit error
0 : OSPF interface down 0 : OSPF unknown neighbor
0 : HELLO: Netmask mismatch 0 : HELLO: Hello timer mismatch
0 : HELLO: Dead timer mismatch 0 : HELLO: Extern option mismatch
0 : HELLO: Neighbor unknown 0 : DD: MTU option mismatch
0 : DD: Unknown LSA type 0 : DD: Extern option mismatch
0 : LS ACK: Bad ack 0 : LS ACK: Unknown LSA type
0 : LS REQ: Empty request 0 : LS REQ: Bad request
0 : LS UPD: LSA checksum bad 0 : LS UPD: Received less recent LSA
0 : LS UPD: Unknown LSA type
Table 16 Command output
Field Description
OSPF Router ID confusion Packets with duplicate route ID
OSPF bad packet Packets illegal
OSPF bad version Packets with wrong version
OSPF bad checksum Packets with wrong checksum
OSPF bad area ID Packets with invalid area ID
OSPF drop on unnumber interface Packets dropped on the unnumbered interface
73
Page 86
Field Description
OSPF bad virtual link Packets on wrong virtual links
OSPF bad authentication type Packets with invalid authentication type
OSPF bad authentication key Packets with invalid authentication key
OSPF packet too small Packets too small in length
OSPF Neighbor state low Packets received in low neighbor state
OSPF transmit error Packets with error when being transmitted
OSPF interface down Shutdown times of the interface
OSPF unknown neighbor Packets received from unknown neighbors
HELLO: Netmask mismatch Hello packets with mismatched mask
HELLO: Hello timer mismatch Hello packets with mismatched hello timer
HELLO: Dead timer mismatch Hello packets with mismatched dead timer
HELLO: Extern option mismatch Hello packets with mismatched option field
HELLO: Neighbor unknown Hello packets received from unknown neighbors
DD: MTU option mismatch DD packets with mismatched MTU
DD: Unknown LSA type DD packets with unknown LSA type
DD: Extern option mismatch DD packets with mismatched option field
LS ACK: Bad ack Bad LSAck packets for LSU packets
LS ACK: Unknown LSA type LSAck packets with unknown LSA type
LS REQ: Empty request LSR packets with no request information
LS REQ: Bad request Bad LSR packets
LS UPD: LSA checksum bad LSU packets with wrong LSA checksum
LS UPD: Received less recent LSA LSU packets without latest LSA
LS UPD: Unknown LSA type LSU packets with unknown LSA type
display ospf interface
Syntax
display ospf [ process-id ] interface [ interface-typeinterface-number | all ] [ | { begin | exclude |
include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
process-id: OSPF process ID, in the range of 1 to 65535.
interface-type interface-number: Specifies an interface by its type and number.
all: Displays the OSPF information of all interfaces.
74
Page 87
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ospf interface to display OSPF interface information.
If no OSPF process is specified, the OSPF interface information of all OSPF processes is displayed.
Examples
# Display OSPF interface information.
<Sysname> display ospf interface
OSPF Process 1 with Router ID 192.168.1.1
Interfaces
Area: 0.0.0.0
IP Address Type State Cost Pri DR BDR
192.168.1.1 PTP P-2-P 1562 1 0.0.0.0 0.0.0.0
Area: 0.0.0.1
IP Address Type State Cost Pri DR BDR
172.16.0.1 Broadcast DR 1 1 172.16.0.1 0.0.0.0
Table 17 Command output
Field Description
Area Area ID of the interface.
IP address Interface IP address (regardless of whether TE is enabled or not).
Interface network type:
• PTP
Type
State
• PTMP
• Broadcast
• NBMA
Interface state defined by interface state machine:
•Down—In this state, no protocol traffic will be sent or received on the
interface.
•Waiting—Means the interface starts sending and receiving Hello packets
and the router is trying to determine the identity of the (Backup) designated
router for the network.
•p-2-p—Means the interface will send Hello packets at the interval of
HelloInterval, and try to establish an adjacency with the neighbor.
•DR—Means the router itself is the designated router on the attached
network.
•BDR—Means the router itself is the backup designated router on the
attached network.
•DROther—Means the router is a DROther router on the attached network.
process-id: OSPF process ID, in the range of 1 to 65535.
brief: Displays brief LSDB information.
asbr: Displays Type-4 LSA (ASBR Summary LSA) information in the LSDB.
ase: Displays Type-5 LSA (AS External LSA) information in the LSDB.
network: Displays Type-2 LSA (Network LSA) information in the LSDB.
nssa: Displays Type-7 LSA (NSSA External LSA) information in the LSDB.
opaque-area: Displays Type-10 LSA (Opaque-area LSA) information in the LSDB.
opaque-as: Displays Type-11 LSA (Opaque-AS LSA) information in the LSDB.
opaque-link: Displays Type-9 LSA (Opaque-link LSA) information in the LSDB.
router: Displays Type-1 LSA (Router LSA) information in the LSDB.
summary: Displays Type-3 LSA (Network Summary LSA) information in the LSDB. link-state-id: Link state ID, in the IP address format.
originate-router advertising-router-id: Displays information about LSAs originated by the specified
router.
self-originate: Displays information about self-originated LSAs.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ospf lsdb to display LSDB information.
If no OSPF process is specified, LSDB information of all OSPF processes is displayed.
76
Page 89
Examples
# Display OSPF LSDB information.
<Sysname> display ospf lsdb
OSPF Process 1 with Router ID 192.168.0.1
Link State Database
Area: 0.0.0.0
Type LinkState ID AdvRouter Age Len Sequence Metric
Router 192.168.0.2 192.168.0.2 474 36 80000004 0
Router 192.168.0.1 192.168.0.1 21 36 80000009 0
Network 192.168.0.1 192.168.0.1 321 32 80000003 0
Sum-Net 192.168.1.0 192.168.0.1 321 28 80000002 1
Sum-Net 192.168.2.0 192.168.0.2 474 28 80000002 1
Area: 0.0.0.1
Type LinkState ID AdvRouter Age Len Sequence Metric
Router 192.168.0.1 192.168.0.1 21 36 80000005 0
Sum-Net 192.168.2.0 192.168.0.1 321 28 80000002 2
Sum-Net 192.168.0.0 192.168.0.1 321 28 80000002 1
Table 18 Command output
Field Description
Area LSDB information of the area
Type LSA type
LinkState ID Link state ID
AdvRouter Advertising router
Age Age of the LSA
Len Length of the LSA
Sequence Sequence number of the LSA
Metric Cost of the LSA
# Display Type2 LSA (Network LSA) information in the LSDB.
<Sysname> display ospf 1 lsdb network
OSPF Process 1 with Router ID 192.168.1.1
Area: 0.0.0.0
Link State Database
Type : Network
LS ID : 192.168.0.2
Adv Rtr : 192.168.2.1
LS Age : 922
Len : 32
Options : E
Seq# : 80000003
Checksum : 0x8d1b
Net Mask : 255.255.255.0
77
Page 90
Attached Router 192.168.1.1
Attached Router 192.168.2.1
Area: 0.0.0.1
Link State Database
Type : Network
LS ID : 192.168.1.2
Adv Rtr : 192.168.1.2
LS Age : 782
Len : 32
Options : NP
Seq# : 80000003
Checksum : 0x2a77
Net Mask : 255.255.255.0
Attached Router 192.168.1.1
Attached Router 192.168.1.2
Table 19 Command output
Field Description
Type LSA type
LS ID DR IP address
Adv Rtr Router that advertised the LSA
LS Age LSA age time
Len LSA length
Options
Seq# LSA sequence number
Checksum LSA checksum
Net Mask Network mask
Attached Router ID of the router that established adjacency with the DR, and ID of the DR itself
display ospf nexthop
LSA options:
• O—Opaque LSA advertisement capability
• E—AS External LSA reception capability
• EA—External extended LSA reception capability
• DC—On-demand link support
• N—NSSA external LSA support
• P—Capability of an NSSA ABR to translate Type-7 LSAs into Type-5
LSAs
Syntax
View
display ospf [ process-id ] nexthop [ | { begin | exclude | include } regular-expression ]
Any view
78
Page 91
Default level
1: Monitor level
Parameters
process-id: OSPF process ID, in the range of 1 to 65535.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ospf nexthop to display OSPF next hop information.
If no OSPF process is specified, the next hop information of all OSPF processes is displayed.
Examples
# Display OSPF next hop information.
<Sysname> display ospf nexthop
OSPF Process 1 with Router ID 192.168.0.1
Routing Nexthop Information
process-id: OSPF process ID, in the range of 1 to 65535.
verbose: Displays detailed neighbor information.
interface-type interface-number: Specifies an interface by its type and number.
neighbor-id: Neighbor router ID.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ospf peer to display information about OSPF neighbors.
If no OSPF process is specified, OSPF neighbor information of all OSPF processes is displayed.
If an interface is specified, the neighbor on the interface is displayed.
If a neighbor ID is specified, detailed information about the neighbor is displayed,
If neither interface nor neighbor ID is specified, brief information about neighbors of the specified
OSPF process or all OSPF processes is displayed.
Examples
# Display detailed OSPF neighbor information.
<Sysname> display ospf peer verbose
OSPF Process 1 with Router ID 1.1.1.1
Neighbors
Area 0.0.0.0 interface 1.1.1.1(Vlan-interface11)'s neighbors
Router ID: 1.1.1.2 Address: 1.1.1.2 GR State: Normal
State: Full Mode: Nbr is Master Priority: 1
DR: 1.1.1.2 BDR: 1.1.1.1 MTU: 0
Dead timer due in 33 sec
Neighbor is up for 02:03:35
Authentication Sequence: [ 0 ]
Neighbor state change count: 6
Table 21 Command output
Field Description
Neighbor information of the interface in the specified area:
Area areaID interface
IPAddress(InterfaceName)'s neighbors
interface Interface attached with the neighbor.
• areaID—Area to which the neighbor belongs.
• IPAddress—Interface IP address.
• InterfaceName—Interface name.
80
Page 93
Field Description
Router ID Neighbor router ID.
Address Neighbor router address.
GR State GR state.
Neighbor state:
• Down—This is the initial state of a neighbor conversation.
• Init—In this state, the router has seen a Hello packet from
the neighbor. However, the router has not established
bidirectional communication with the neighbor (the router
itself did not appear in the neighbor's hello packet).
•Attempt—Available only in an NBMA network, Under this
state, the OSPF router has not received any information
from a neighbor for a period but can send Hello packets at
a longer interval to keep neighbor relationship.
•2-Way—In this state, communication between the two
State
routers is bidirectional. The router itself appears in the
neighbor's Hello packet.
•Exstart—The goal of this state is to decide which router is
the master, and to decide upon the initial Database
Description (DD) sequence number.
•Exchange—In this state, the router is sending DD
packets to the neighbor, describing its entire link-state
database.
•Loading—In this state, the router sends Link State
Request packets to the neighbor, requesting more recent
LSAs.
•Full—In this state, the neighboring routers are fully
adjacent.
Mode Neighbor mode for LSDB synchronization.
Priority Neighboring router priority.
DR The DR on the interface's network segment.
BDR The BDR on the interface’s network segment.
MTU Interface MTU.
Dead timer due in 33 sec Dead timer times out in 33 seconds.
Neighbor is up for 02:03:35 The neighbor has been up for 02:03:35.
Neighbor state change count Count of neighbor state changes.
# Display brief OSPF neighbor information.
<Sysname> display ospf peer
OSPF Process 1 with Router ID 1.1.1.1
Neighbor Brief Information
Area: 0.0.0.0
Router ID Address Pri Dead-Time Interface State
1.1.1.2 1.1.1.2 1 40 Vlan11 Full/DR
81
Page 94
Table 22 Command output
Field Description
Area Neighbor area
Router ID Neighbor router ID
Address Neighbor interface address
Pri Neighboring router priority
Dead-Time Dead interval remained
Interface Interface connected to the neighbor
State
display ospf peer statistics
Syntax
display ospf [ process-id ] peer statistics [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
process-id: OSPF process ID, in the range of 1 to 65535.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
Neighbor state: Down, Init, Attempt, 2-Way, Exstart, Exchange,
Loading or Full
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ospf peer statistics to display OSPF neighbor statistics.
If no OSPF process is specified, OSPF neighbor statistics of all OSPF processes is displayed.
Examples
# Display OSPF neighbor statistics.
<Sysname> display ospf peer statistics
OSPF Process 1 with Router ID 10.3.1.1
Neighbor Statistics
Area ID Down Attempt Init 2-Way ExStart Exchange Loading Full Total
0.0.0.0 0 0 0 0 0 0 0 1 1
0.0.0.2 0 0 0 0 0 0 0 1 1
Total 0 0 0 0 0 0 0 2 2
82
Page 95
Table 23 Command output
Field Description
Area ID
Down Number of neighboring routers in Down state in the same area.
Attempt Number of neighboring routers in Attempt state in the same area.
Init Number of neighboring routers in Init state in the same area.
2-Way Number of neighboring routers in 2-Way state in the same area.
ExStart Number of neighboring routers in ExStart state in the same area.
Exchange Number of neighboring routers in Exchange state in the same area.
Loading Number of neighboring routers in Loading state in the same area.
Full Number of neighboring routers in Full state in the same area.
Total
Area ID. The state statistics of all the routers in the area to which the router belongs
is displayed.
Total number of neighbors under the same state: Down, Attempt, Init, 2-Way,
ExStart, Exchange, Loading, or Full.
display ospf request-queue
Syntax
display ospf [ process-id ] request-queue [ interface-type interface- number ] [ neighbor-id ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
process-id: OSPF process ID, in the range of 1 to 65535.
interface-type interface-number: Specifies an interface by its type and number.
neighbor-id: Neighbor’s router ID.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ospf request-queue to display OSPF request queue information.
If no OSPF process is specified, the OSPF request queue information of all OSPF processes is
displayed.
Examples
# Display OSPF request queue information.
83
Page 96
<Sysname> display ospf request-queue
The Router's Neighbor is Router ID 2.2.2.2 Address 10.1.1.2
Interface 10.1.1.1 Area 0.0.0.0
Request list:
Type LinkState ID AdvRouter Sequence Age
Router 2.2.2.2 1.1.1.1 80000004 1
Network 192.168.0.1 1.1.1.1 80000003 1
Sum-Net 192.168.1.0 1.1.1.1 80000002 2
Table 24 Command output
Field Description
The Router's Neighbor is Router ID Neighbor router ID
process-id: OSPF process ID, in the range of 1 to 65535.
interface-type interface-number: Specifies an interface by its type and number.
neighbor-id: Neighbor’s router ID.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
84
Page 97
Description
Use display ospf retrans-queue to display retransmission queue information.
If no OSPF process is specified, the retransmission queue information of all OSPF processes is
displayed.
Examples
# Display OSPF retransmission queue information.
<Sysname> display ospf retrans-queue
The Router's Neighbor is Router ID 2.2.2.2 Address 10.1.1.2
Interface 10.1.1.1 Area 0.0.0.0
Retransmit list:
Type LinkState ID AdvRouter Sequence Age
Router 2.2.2.2 2.2.2.2 80000004 1
Network 12.18.0.1 2.2.2.2 80000003 1
Sum-Net 12.18.1.0 2.2.2.2 80000002 2
Table 25 Command output
Field Description
The Router's Neighbor is Router ID Neighbor router ID
process-id: OSPF process ID, in the range of 1 to 65535.
interface interface-type interface-number: Displays OSPF routing information advertised via the
specified interface.
85
Page 98
nexthop nexthop-address: Displays OSPF routing information with the specified next hop.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ospf routing to display OSPF routing information.
If no OSPF process is specified, the routing information of all OSPF processes is displayed.
Examples
# Display OSPF routing information.
<Sysname> display ospf routing
OSPF Process 1 with Router ID 192.168.1.2
Routing Tables
Routing for Network
Destination Cost Type NextHop AdvRouter Area
display ospf [ process-id ] vlink [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
process-id: OSPF process ID, in the range of 1 to 65535.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ospf vlink to display OSPF virtual link information.
If no OSPF process is specified, the OSPF virtual link information of all OSPF processes is
displayed.
Examples
# Display OSPF virtual link information.
<Sysname> display ospf vlink
OSPF Process 1 with Router ID 3.3.3.3
Virtual Links
Interface IP address and name of the local interface on the virtual link
Cost Interface route cost
State Interface state
Type Type: virtual link
Transit Area Transit area ID
Timers Values of timers: hello, dead, retransmit, and interface transmission delay
87
Page 100
display router id
Syntax
display router id [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display router id to display the global router ID.
Examples
# Display the global router ID.
<Sysname> display router id
Configured router ID is 1.1.1.1
dscp (OSPF view)
Syntax
dscp dscp-value
undo dscp
View
OSPF view
Default level
2: System level
Parameters
dscp-value: Sets the Differentiated Services Code Point (DSCP) value for OSPF packets, in the
range of 0 to 63.
Description
Use dscp to set the DSCP value for OSPF packets.
Use undo dscp to restore the default.
By default, the DSCP value in OSPF packets is 48.
Examples
# Set the DSCP value for OSPF packets of OSPF process 1 to 63.
88
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.