HP 5920 & 5900 Switch Series Layer 3—IP Routing Command Reference Part number: 5998-5321a Software version: Release 23xx Document version: 6W101-20150320...
Page 2
The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty.
Page 13
························································································································································ 581 ipv6 prefix-list ······················································································································································· 582 reset ipv6 prefix-list ············································································································································· 583 Support and other resources ·································································································································· 585 Contacting HP ······························································································································································ 585 Subscription service ············································································································································ 585 Related information ······················································································································································ 585 Documents ···························································································································································· 585 ...
Basic IP routing commands address-family ipv4 Use address-family ipv4 to create a RIB IPv4 address family and enter RIB IPv4 address family view. Use undo address-family ipv4 to remove a RIB IPv4 address family and all configurations in the view. Syntax address-family ipv4 undo address-family ipv4...
Examples # Create a RIB IPv6 address family and enter RIB IPv6 address family view. <Sysname> system-view [Sysname] rib [Sysname-rib] address-family ipv6 [Sysname-rib-ipv6] display ecmp mode Use display ecmp mode to display the ECMP mode. Syntax display ecmp mode Views Any view Predefined user roles network-admin...
Page 16
<Sysname> display ip routing-table Destinations : 13 Routes : 13 Destination/Mask Proto Cost NextHop Interface 0.0.0.0/32 Direct 0 127.0.0.1 InLoop0 1.1.1.0/24 Static 60 192.168.47.4 Vlan1 127.0.0.0/8 Direct 0 127.0.0.1 InLoop0 127.0.0.0/32 Direct 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 127.0.0.1 InLoop0 127.255.255.255/32 Direct 0 127.0.0.1...
Field Description Route status: • Active—Active unicast route. • Adv—Route that can be advertised. • Inactive—Inactive route. State • NoAdv—Route that the router must not advertise. • Vrrp—Routes generated by VRRP. • Nat—Routes generated by NAT. • TunE—Tunnel. OrigTblID Original routing table ID. OrigVrf Original VPN that the route belongs to.
Page 19
Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. Without this option, the command displays routing information for the public network. acl-number: Specifies a basic ACL by its number in the range of 2000 to 2999. verbose: Displays detailed information about all routes permitted by the basic ACL.
For command output, see Table display ip routing-table ip-address Use display ip routing-table ip-address to display information about routes to a specific destination address. Use display ip routing-table ip-address1 to ip-address2 to display information about routes to a range of destination addresses.
Page 22
If the two operations yield the same result for an entry with a subnet mask not greater than the entered subnet mask, the entry is displayed. display ip routing-table ip-address longer-match: • The system ANDs the entered destination IP address with the subnet mask in each active route entry.
Summary Count : 1 Destination/Mask Proto Cost NextHop Interface 11.0.0.0/16 Static 60 0.0.0.0 NULL0 # Display brief information about the routes to destination addresses in the range of 1.1.1.0 to 5.5.5.0. <Sysname> display ip routing-table 1.1.1.0 to 5.5.5.0 Summary Count : 6 Destination/Mask Proto Cost...
# Display brief information about the active route permitted by the IP prefix list. [Sysname] display ip routing-table prefix-list test Routes Matched by Prefix list : test Summary Count : 1 Destination/Mask Proto Cost NextHop Interface 1.1.1.0/24 Direct 0 1.1.1.2 Vlan2 For command output, see Table...
Page 25
protocol: Specifies a routing protocol. It can be bgp, direct, isis, ospf, rip, or static. inactive: Displays information about inactive routes. Without this keyword, the command displays information about both active and inactive routes. verbose: Displays detailed routing table information. Without this keyword, the command displays brief routing information.
display ip routing-table statistics Use display ip routing-table statistics to display IPv4 route statistics. Syntax display ip routing-table [ vpn-instance vpn-instance-name ] statistics Views Any view Predefined user roles network-admin network-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.
Views Any view Predefined user roles network-admin network-operator Parameters attribute-id: Specifies a route attribute by its ID in the range of 0 to FFFFFFFF. Examples # Display route attribute information in the IPv6 RIB. <Sysname> display ipv6 rib attribute Total number of attribute(s): 1 Detailed information of attribute 0x9: Flag: 0x0 Protocol: BGP4+...
# Display detailed next hop information in the IPv6 RIB. <Sysname> display ipv6 rib nib verbose Total number of nexthop(s): 151 NibID: 0x20000000 Sequence: 0 Type: 0x1 Flushed: Yes UserKey0: 0x0 VrfNthp: 1 UserKey1: 0x0 Nexthop: :: IFIndex: 0x111 LocalAddr: :: RefCnt: 4 FlushRefCnt: 1 Flag: 0x84...
Page 30
network-operator Parameters nib-id: Specifies a NIB by its ID in the range of 1 to FFFFFFFF. verbose: Displays detailed next hop information for IPv6 direct routes. Without this keyword, the command displays brief next hop information for IPv6 direct routes. Examples # Display brief next hop information for IPv6 direct routes.
Field Description Version Version of the next hop. display ipv6 routing-table Use display ipv6 routing-table to display IPv6 routing table information. Syntax display ipv6 routing-table [ vpn-instance vpn-instance-name ] [ verbose ] Views Any view Predefined user roles network-admin network-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.
Page 33
Field Description NextHop Next hop address of the route. Preference Preference of the route. Interface Output interface for packets to be forwarded along the route. Protocol that installed the route. Route types include: • O_INTRA—OSPF intra area route. • O_INTER—OSPF inter area route. •...
Field Description OrigAs Original AS number. NibID ID of the next hop. LastAs Last AS number. AttrID Attribute ID. Neighbor Address of the neighbor determined by the routing protocol. Flags Flags of the route. OrigNextHop Next hop address of the route. RealNextHop Real next hop of the route.
Page 36
Examples # Display brief information about active routes permitted by IPv6 ACL 2000. <Sysname> display ipv6 routing-table acl 2000 Routes Matched by Access control list : 2000 Summary Count : 3 Destination : ::1/128 Protocol : Direct NextHop : ::1 Preference: 0 Interface : InLoop0...
BkLabel: NULL BkNextHop: N/A Tunnel ID: Invalid Interface: NULL0 BkTunnel ID: Invalid BkInterface: N/A For command output, see Table display ipv6 routing-table ipv6-address Use display ipv6 routing-table ipv6-address to display information about routes to an IPv6 destination address. Use display ipv6 routing-table ipv6-address1 to ipv6-address2 to display information about routes to a range of IPv6 destination addresses.
Page 38
The system ANDs the destination IPv6 address in each active route entry with the entered prefix length. If the two operations yield the same result for an entry with a prefix length not greater than the entered prefix length, the entry is displayed. display ipv6 routing-table ipv6-address longer-match: •...
Interface : NULL0 Cost # Display brief information about the routes to destination addresses in the range of 100:: to 300::. <Sysname> display ipv6 routing-table 100:: to 300:: Summary Count : 3 Destination: 100::/64 Protocol : Static NextHop : :: Preference: 60 Interface : NULL0...
[Sysname] ipv6 prefix-list test permit ::1 128 # Display brief information about the active IPv6 route permitted by the IPv6 prefix list. [Sysname] display ipv6 routing-table prefix-list test Routes Matched by Prefix list : test Summary Count : 1 Destination: ::1/128 Protocol : Direct NextHop...
Page 41
Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. Without this option, the command displays routing information for the public network. protocol: Specifies a routing protocol. It can be bgp4+, direct, isisv6, ospfv3, ripng, or static. inactive: Displays information about inactive routes.
Field Description deleted Number of routes marked as deleted, which will be cleared after a period. Total Total number of routes. display max-ecmp-num Use display max-ecmp-num to display the maximum number of ECMP routes. Syntax display max-ecmp-num Views Any view Predefined user roles network-admin network-operator...
Page 44
Examples # Display route attribute information in the RIB. <Sysname> display rib attribute Total number of attribute(s): 10 Detailed information of attribute 0x0: Flag: 0x0 Protocol: BGP Address family: IPv4 Reference count: 0 Local preference: 0 Ext-communities number: 26 Ext-communities value: <RT: 1:1> <RT: 2:2> <RT: 3:3> <RT: 123.123.123.123:65535 >...
Field Description Values of the AS_PATH attribute, including AS_SET, AS_SEQUENCE, AS-path value confederation AS_SET, and confederation AS_SEQUENCE. This field displays N/A when no value exists, and it can display up to 20 values. display rib graceful-restart Use display rib graceful-restart to display RIB GR state information. Syntax display rib graceful-restart Views...
Page 46
Table 11 Command output Field Description RIB GR status: • Start—GR starts. • IGP end—All IGP protocols complete GR. • VPN-triggering end—Optimal route selection triggered by VPN routes completes. • VPN-calculation end—Optimal VPN route selection completes. • Routing protocol end—All routing protocols complete GR. RIB GR state •...
display rib nib Use display rib nib to display next hop information in the RIB. Syntax display rib nib [ self-originated ] [ nib-id ] [ verbose ] display rib nib protocol protocol-name [ verbose ] Views Any view Predefined user roles network-admin network-operator Parameters...
Page 48
SubNibID: 0x21000023 SubSeq: 35 NthpCnt: 1 Samed: 0 NthpType: IP SubNibID: 0x21000003 SubSeq: 36 NthpCnt: 1 Samed: 0 NthpType: IP SubNibID: 0x21000004 SubSeq: 37 NthpCnt: 1 Samed: 0 NthpType: IP SubNibID: 0x21000005 SubSeq: 38 NthpCnt: 1 Samed: 0 NthpType: IP Table 12 Command output Field Description...
RelyDepth: 0 RealNexthop: 10.1.1.2 Interface: Vlan10 LocalAddr: 10.1.1.1 TunnelCnt: 0 Vrf: default-vrf TunnelID: N/A PrefixIndex: 1 OrigNexthop: 11.1.1.2 RelyDepth: 0 RealNexthop: 11.1.1.2 Interface: Vlan11 LocalAddr: 11.1.1.1 TunnelCnt: 0 Vrf: default-vrf TunnelID: N/A Table 13 Command output Field Description Policy Tunnel policy name. x nexthop (s) Number of next hops.
Page 51
Parameters nib-id: Specifies a NIB by its ID in the range of 1 to FFFFFFFF. verbose: Displays detailed next hop information for direct routes. Without this keyword, the command displays brief next hop information for direct routes. Examples # Display brief next hop information for direct routes. <Sysname>...
ecmp mode enhanced Use ecmp mode enhanced to enable the enhanced ECMP mode. Use undo ecmp mode to restore the default. Syntax ecmp mode enhanced undo ecmp mode Default The enhanced ECMP mode is disabled. Views System view Predefined user roles network-admin Examples # Enable the enhanced ECMP mode.
Examples # Set the maximum lifetime for IPv4 routes in the FIB to 60 seconds. <Sysname> system-view [Sysname] rib [Sysname-rib] address-family ipv4 [Sysname-rib-ipv4] fib lifetime 60 max-ecmp-num Use max-ecmp-num to configure the maximum number of ECMP routes. Syntax max-ecmp-num number Default The maximum number of ECMP routes is 8.
Default The maximum lifetime for IPv4 or IPv6 routes and labels in the RIB is 480 seconds. Views RIB IPv4 address family view, RIB IPv6 address family view Predefined user roles network-admin Parameters second: Sets the maximum lifetime for routes and labels in the RIB, in the range of 0 to 900 seconds. When this argument is set to 0, RIB entries immediately age out when a protocol switchover occurs.
Static routing commands delete static-routes all Use delete static-routes all to delete all static routes. Syntax delete [ vpn-instance vpn-instance-name ] static-routes all Views System view Predefined user roles network-admin Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.
Page 58
network-operator Parameters nib-id: Specifies a NIB by its ID in the range of 1 to FFFFFFFF. verbose: Displays detailed static route next hop information. Without this keyword, the command displays brief static route next hop information. Examples # Display brief static route next hop information. <Sysname>...
Field Description RefCnt Reference count of the next hop. FlushRefCnt Reference count of the next hop that is flushed to the FIB. Flag Flag of the next hop. Version Version of the next hop. display route-static routing-table Use display route-static routing-table to display static routing table information. Syntax display route-static routing-table [ vpn-instance vpn-instance-name ] [ ip-address { mask-length | mask } ]...
Field Description DbIndex Index of the database to which the route belongs. Route type: • Normal. Type • DHCP. • NAT. BfdSrcIp Source IP address of the indirect BFD session. BfdIfIndex Index of the interface where BFD is enabled. BfdVrfIndex Index of the VPN instance where BFD is enabled.
Page 63
Specifies the BFD control mode. bfd-source ip-address: Specifies the source IP address of BFD packets. HP recommends that you specify the loopback interface address. permanent: Specifies the route as a permanent static route. If the output interface is down, the permanent static route is still active.
tag tag-value: Sets a tag value for marking the static route, in the range of 1 to 4294967295. The default is 0. Tags of routes are used for route control in routing policies. For more information about routing policies, see Layer 3—IP Routing Configuration Guide. description description-text: Configures a description for the static route, which comprises 1 to 60 characters, including special characters like the space, but excluding the question mark (?).
Page 65
Views System view Predefined user roles network-admin Parameters default-preference-value: Specifies a default preference for static routes, in the range of 1 to 255. Usage guidelines If no preference is specified for a static route, the default preference applies. When the default preference is reconfigured, it applies to only newly added static routes. Examples # Set a default preference of 120 for static routes.
RIP commands checkzero Use checkzero to enable zero field check on RIPv1 messages. Use undo checkzero to disable zero field check. Syntax checkzero undo checkzero Default The zero field check function is enabled. Views RIP view Predefined user roles network-admin Usage guidelines When the zero field check is enabled, the router discards RIPv1 messages in which zero fields contain non-zero values.
Predefined user roles network-admin Parameters value: Specifies a default metric for redistributed routes, in the range of 0 to 16. Usage guidelines When you use the import-route command to redistribute routes from another routing protocol without specifying a metric, the metric specified by the default cost command applies. Examples # Configure a default metric of 3 for redistributed routes.
[Sysname] rip 100 [Sysname-rip-100] default-route only cost 2 Related commands rip default-route display rip Use display rip to display state and configuration information for a RIP process. Syntax display rip [ process-id ] Views Any view Predefined user roles network-admin network-operator Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535.
Page 69
Triggered updates sent: 0 Number of routes changes: 1 Number of replies to queries: 0 Table 19 Command output Field Description Public VPN-instance name/Private VPN-instance Public network or VPN where the RIP process runs. name RIP process RIP process ID. RIP version RIP version 1 or 2.
display rip database Use display rip database to display active routes for a RIP process. RIP advertises active routes in RIP routing updates. Syntax display rip process-id database [ ip-address { mask-length | mask } ] Views Any view Predefined user roles network-admin network-operator Parameters...
Page 71
Syntax display rip process-id interface [ interface-type interface-number ] Views Any view Predefined user roles network-admin network-operator Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535. interface-type interface-number: Specifies an interface by its type and number. If no interface is specified, the command displays information about all RIP interfaces for the RIP process.
Field Description Indicates whether the interface is enabled to receive and send RIP messages: Input/Output • on—Enabled. • off—Disabled. Indicates whether to send a default route to RIP neighbors: • Only—Advertises only a default route. • Default route Originate—Advertises both a default route and other routes. •...
Page 73
O - Optimal, F - Flush to RIB ---------------------------------------------------------------------------- Peer 1.1.1.1 on Vlan-interface2 Destination/Mask Nexthop Cost Flags 3.0.0.0/8 1.1.1.1 RAOF # Display specified routing information for RIP process 1. <Sysname> display rip 1 route 3.0.0.0 8 verbose Route Flags: R – RIP A - Aging, S - Suppressed, G - Garbage-collect O - Optimal, F - Flush to RIB ----------------------------------------------------------------------------...
Table 23 Command output Field Description Peer IP address of a neighbor. Optimal Total number of optimal routes. Aging Total number of aging routes. Garbage Total number of routes in the Garbage-collection state. Local Total number of locally generated direct routes. Total Total number of routes learned from all RIP neighbors.
To deny/permit a route with the specified destination and mask, use the rule [ rule-id ] { deny | • permit } ip source sour-addr sour-wildcard destination dest-addr dest-wildcard command. The source keyword specifies the destination address of a route and the destination keyword specifies the subnet mask of the route.
Page 77
Views RIP view Predefined user roles network-admin Parameters acl-number: Specifies an ACL by its number in the range of 2000 to 3999 to filter received routes. prefix-list prefix-list-name: Specifies an IP prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter received routes.
Related commands acl (ACL and QoS Command Reference) • ip prefix-list • graceful-restart Use graceful-restart to enable GR for RIP. Use undo graceful-restart to disable RIP GR capability. Syntax graceful-restart undo graceful-restart Default RIP GR is disabled. Views RIP view Predefined user roles network-admin Examples...
Usage guidelines A router might receive many host routes from the same subnet. These routes are not helpful for routing and occupy many resources. To solve this problem, use the undo host-route command to disable RIP from receiving host routes. This command takes effect only for RIPv2 routes.
Usage guidelines The import-route bgp command redistributes only EBGP routes. The import-route bgp allow-ibgp command additionally redistributes IBGP routes and might cause routing loops. Therefore, use it with caution. This command redistributes only active routes. To view route state information, use the display ip routing-table protocol command.
[Sysname-rip-1] maximum load-balancing 2 Related commands max-ecmp-num network Use network to enable RIP on an interface attached to a specified network. Use undo network to disable RIP on an interface attached to a specified network. Syntax network network-address [ wildcard-mask ] undo network network-address Default RIP is disabled on an interface.
output-delay Use output-delay to configure the rate at which an interface sends RIP packets. Use undo output-delay to restore the default. Syntax output-delay time count count undo output-delay Default An interface sends up to three RIP packets every 20 milliseconds. Views RIP view Predefined user roles...
Usage guidelines Do not use the peer ip-address command when the neighbor is directly connected. Otherwise, the neighbor might receive both unicast and multicast (or broadcast) messages with the same routing information. This command must be executed together with the undo validate-source-address command, which disables source IP address check on inbound RIP routing updates.
Examples # Set a preference of 120 for RIP routes. <Sysname> system-view [Sysname] rip 1 [Sysname-rip-1] preference 120 reset rip process Use reset rip process to reset a RIP process. Syntax reset rip process-id process Views User view Predefined user roles network-admin Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535.
Use rip to enable RIP and enter RIP view. Use undo rip to disable RIP. Syntax rip [ process-id ] [ vpn-instance vpn-instance-name ] undo rip [ process-id ] Default RIP is disabled. Views System view Predefined user roles network-admin Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535.
Predefined user roles network-admin Parameters md5: Specifies the MD5 authentication. rfc2082: Uses the message format defined in RFC 2082. cipher: Sets a ciphertext key. cipher-string: Specifies a ciphertext key, a case-sensitive string of 33 to 53 characters. plain: Sets a plaintext key. plain-string: Specifies a plaintext key, a case-sensitive string of 1 to 16 characters.
Predefined user roles network-admin Usage guidelines RIP supports BFD echo-mode detection for a directly connected neighbor, and BFD control-mode detection for an indirectly neighbor. BFD echo-mode detection only applies to a RIP neighbor one hop away. Using the undo peer command does not delete the neighbor relationship immediately and cannot bring down the BFD session immediately.
[Sysname-Vlan-interface10] rip bfd enable destination 202.38.165.1 rip default-route Use rip default-route to configure a RIP interface to advertise a default route with a specified metric. Use undo rip default-route to disable a RIP interface from sending a default route. Syntax rip default-route { { only | originate } [ cost cost ] | no-originate } undo rip default-route Default...
Syntax rip process-id enable [ exclude-subip ] undo rip enable Default RIP is disabled on an interface. Views Interface view Predefined user roles network-admin Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535. exclude-subip: Excludes secondary IP addresses from being enabled with RIP.
<Sysname> system-view [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] undo rip input rip max-packet-length Use rip max-packet-length to set the maximum length of RIP packets. Use undo rip max-packet-length to restore the default. Syntax rip max-packet-length value undo rip max-packet-length Default The maximum length of RIP packets is 512 bytes. Views Interface view Predefined user roles...
Syntax rip metricin [ route-policy route-policy-name ] value undo rip metricin Default The additional metric of an inbound route is 0. Views Interface view Predefined user roles network-admin Parameters route-policy route-policy-name: Uses the specified routing policy to add an additional metric for the routes matching it.
Use undo rip metricout to restore the default. Syntax rip metricout [ route-policy route-policy-name ] value undo rip metricout Default The additional metric for outbound routes is 1. Views Interface view Predefined user roles network-admin Parameters route-policy route-policy-name: Uses the specified routing policy to add an additional metric for the routes matching it.
Use undo rip mib-binding to restore the default. Syntax rip mib-binding process-id undo rip mib-binding Default MIB operation is bound to the RIP process with the smallest process ID. Views System view Predefined user roles network-admin Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535. Usage guidelines If the specified process ID does not exist, the MIB binding configuration fails.
rip poison-reverse Use rip poison-reverse to enable the poison reverse function. Use undo rip poison-reverse to disable the poison reverse function. Syntax rip poison-reverse undo rip poison-reverse Default The poison reverse function is disabled. Views Interface view Predefined user roles network-admin Examples # Enable the poison reverse function on VLAN-interface 10.
[Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] rip split-horizon rip summary-address Use rip summary-address to configure RIPv2 to advertise a summary route on an interface. Use undo rip summary-address to remove the configuration. Syntax rip summary-address ip-address { mask-length | mask } undo rip summary-address ip-address { mask-length | mask } Default RIPv2 does not advertise a summary route.
Default No RIP version is configured on an interface. The interface can send RIPv1 broadcasts, and receive RIPv1 broadcasts and unicasts, and RIPv2 broadcasts, multicasts, and unicasts. Views Interface view Predefined user roles network-admin Parameters 1: Specifies the RIP version as RIPv1. 2: Specifies the RIP version as RIPv2.
16. If no update is announced for that route before the garbage-collect timer expires, RIP deletes the route from the routing table. HP recommends not changing the default values of these timers. The timer lengths must be consistent on all routers on the network.
Examples # Configure the update, timeout, suppress, and garbage-collect timers as 5, 15, 15, and 30 seconds. <Sysname> system-view [Sysname] rip 100 [Sysname-rip-100] timers update 5 timeout 15 suppress 15 garbage-collect 30 validate-source-address Use validate-source-address to enable source IP address check on inbound RIP routing updates. Use undo validate-source-address to disable source IP address check.
Page 100
Parameters 1: Specifies the RIP version as RIPv1. 2: Specifies the RIP version as RIPv2. RIPv2 messages are multicast. Usage guidelines An interface prefers the RIP version configured on it over the global RIP version. If no RIP version is specified for the interface and the global version is RIPv1, the interface uses RIPv1, and it can send RIPv1 broadcasts, and receive RIPv1 broadcasts and unicasts.
OSPF commands abr-summary (OSPF area view) Use abr-summary to configure a summary route on an area border router (ABR). Use undo abr-summary to remove a summary route. Syntax abr-summary ip-address { mask-length | mask } [ advertise | not-advertise ] [ cost cost ] undo abr-summary ip-address { mask-length | mask } Default No route summarization is configured on an ABR.
area (OSPF view) Use area to create an area and enter area view. Use undo area to remove an area. Syntax area area-id undo area area-id Default No OSPF area is created. Views OSPF view Predefined user roles network-admin Parameters area-id: Specifies an area by its ID, an IP address or a decimal integer in the range of 0 to 4294967295 that is translated into the IP address format by the system.
mask: Specifies the mask in dotted decimal notation. cost cost: Specifies the cost of the summary route, in the range of 1 to 16777214. Without this option, the cost of Type- 1 external routes defaults to the largest cost among routes that are summarized, and the cost of Type-2 external routes defaults to the largest cost among routes that are summarized plus 1.
Page 104
undo authentication-mode Default No authentication is performed for an area. Views OSPF area view Predefined user roles network-admin Parameters hmac-md5: Specifies the HMAC-MD5 authentication mode. md5: Specifies the MD5 authentication mode. simple: Specifies the simple authentication mode. key-id: Specifies a key by its ID in the range of 0 to 255. cipher: Sets a ciphertext key.
[Sysname-ospf-100-area-0.0.0.0] authentication-mode md5 15 plain abc Related commands ospf authentication-mode bandwidth-reference (OSPF view) Use bandwidth-reference to specify a reference bandwidth value for link cost calculation. Use undo bandwidth-reference to restore the default value. Syntax bandwidth-reference value undo bandwidth-reference Default The default value is 100 Mbps. Views OSPF view Predefined user roles...
default Use default to configure default parameters for redistributed routes. Use undo default to remove the configuration. Syntax default { cost cost | tag tag | type type } * undo default { cost | tag | type } * Default The cost is 1, the tag is 1, and the route type is 2.
Parameters cost: Specifies a cost for the default route advertised to the Stub or NSSA area, in the range of 0 to 16777214. Usage guidelines This command takes effect only on the ABR of a stub area or the ABR/ASBR of an NSSA area. Examples # Configure Area 1 as a stub area, and specify the cost of the default route advertised to the stub area as 20.
cost cost: 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-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.
Parameters description: Configures a description for the OSPF process in OSPF view, or for the OSPF area in OSPF area view. The description argument specifies a string of 1 to 80 characters. Usage guidelines The description specified by this command is used to identify an OSPF process or area. Examples # Describe OSPF process 100 as abc.
Examples # Configure the device to generate external and internal discard routes with preferences 100 and 200, respectively. <Sysname> system-view [Sysname] ospf 100 [Sysname-ospf-100] discard-route external 100 internal 200 display ospf Use display ospf to display OSPF process information. Syntax display ospf [ process-id ] [ verbose ] [ standby slot slot-number ] Views Any view...
Page 111
Transmit pacing: Interval: 20 Count: 3 Default ASE parameters: Metric: 1 Tag: 1 Type: 2 Route preference: 10 ASE route preference: 150 SPF computation count: 22 RFC 1583 compatible Graceful restart interval: 120 SNMP trap rate limit interval: 2 Count: 300 This process is currently bound to MIB Area count: 1 NSSA area count: 1...
Page 112
Field Description RouterID Router ID. Router type: • ABR. • Router type ASBR. • NSSA. • Null. Route tag Tag of redistributed routes. Multi-VPN-Instance is not enabled The OSPF process does not support multi-VPN-instance. Opaque LSA advertisement and reception capability is Opaque capable enabled.
Page 113
Field Description Route calculation trigger type: • Full—Calculation of all routes is triggered. • Area topology change—Topology change in an area. • Intra router change—Incremental intra-area route change. • ASBR change—Incremental ASBR route change. • 7to5 translator—Type-7-to-Type-5 LSA translator role change.
Page 114
Field Description Current process reset type: • N/A—The process is not reset. • Normal—Normal reset. Current reset type • GR quit—Normal reset when GR quits abnormally. • Delete—Delete OSPF process. • VPN delete—Delete VPN. Next process reset type: • N/A—The process is not reset. •...
Page 115
Field Description Reset phase of each module: • Main control module: N/A—Not reset. Delete area. Delete process. • Neighbor maintenance (P) module: N/A—Not reset. Delete neighbor. Delete interface. Delete vlink—Delete virtual link. Delete shamlink—Delete sham link. • LSDB synchronization (L) module: N/A—Not reset.
Field Description Authentication type of the area: • None—No authentication. Authtype • Simple—Simple authentication. • MD5—MD5 authentication. Type of the area: • Normal. • Stub. Area flag • StubNoSummary (totally stub area). • NSSA. • NSSANoSummary (totally NSSA area). SPF scheduled Count SPF calculation count in the OSPF area.
Usage guidelines If you use this command on routers in a stub area, the commands displays no ASBR information. Examples # Display brief information about routes to the ABR or ASBR. <Sysname> display ospf abr-asbr OSPF Process 1 with Router ID 192.168.1.2 Routing Table to ABR and ASBR Type Destination...
Page 118
Predefined user roles network-admin network-operator Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. Without this argument, the command displays information about ABR summary routes for all OSPF processes. area area-id: Specifies an OSPF area by its ID. The area ID is an IP address or a decimal integer in the range of 0 to 4294967295 that is translated into the IP address format.
ABR Summary Addresses Total summary address count: 1 Area: 0.0.0.1 Total summary addresses: 1 : 100.0.0.0 Mask : 255.0.0.0 Status : Advertise Cost : (Not Configured) Routes count: 1 Destination NetMask Metric 100.1.1.0 255.255.255.0 1000 Table 27 Command output Field Description Destination Destination address of a summarized route.
Page 120
Examples # Display information about all summarized redistributed routes for OSPF process 1. <Sysname> display ospf 1 asbr-summary OSPF Process 1 with Router ID 2.2.2.2 Summary Addresses Total Summary Address Count: 1 Summary Address : 30.1.0.0 Mask : 255.255.0.0 : 20 Status : Advertise Cost...
display ospf event-log spf Use display ospf event-log spf to display OSPF route calculation log information for a process. Syntax display ospf [ process-id ] event-log spf Views Any view Predefined user roles network-admin network-operator Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. Without this argument, the command displays OSPF route calculation log information for all processes.
10.0.1.1 10.0.1.2 Vlan10 10.0.11.1 10.0.11.2 Vlan20 Table 30 Command output Field Description Area Area to which the backup next hops belong. Candidate nexthop count Number of backup next hops. NextHop Backup next hop address. IntIP IP address of the output interface. Interface Output interface.
Page 124
Restarter : None Helper : None Area: 0.0.0.0 Authtype: None Area flag: Normal Area up Interface count: 2 Interface: 40.4.0.1 (Vlan-interface40) Restarter state: Normal State: P-2-P Type: PTP Last exit reason: Restarter : None Helper : None Neighbor count of this interface: 1 Number of neighbors under Helper: 0 Neighbor IP address...
Page 125
Field Description Helper capability that the process supports: • Enable (IETF)—Supports IETF GR helper capability. • Enable (Nonstandard)—Supports non IETF GR helper capability. Helper capability • Enable (IETF and nonstandard)—Supports both IETF GR helper capability and non IETF GR helper capability.
Field Description Neighbor GR state: • Normal—Normal state. GR state • Under GR—GR is in process. • Under Helper—The process is acting as GR helper. Last Helper exit reason Reason that the helper exited last time. Virtual-link Neighbor-ID Router ID of the virtual link's neighbor. Neighbor state: Down, Init, 2-Way, ExStart, Exchange, Neighbor-State Loading, and Full.
Page 127
IP Address Type State Cost 192.168.1.1 P-2-P 1562 0.0.0.0 0.0.0.0 Area: 0.0.0.1 IP Address Type State Cost 172.16.0.1 Broadcast 172.16.0.1 0.0.0.0 Table 32 Command output Field Description Area Area ID of the interface. IP address Interface IP address (regardless of whether TE is enabled or not). Type Interface network type: PTP, PTMP, Broadcast, or NBMA.
The rollover is in progress, 2 neighbor(s) left. Table 33 Command output Field Description Interface Information about the interface, such as the IP address. Timers OSPF timers: hello, dead, poll, retransmit, and transmit delay. FRR backup Indicates whether LFA calculation is enabled on an interface. Enabled by interface configuration (including OSPF is enabled on the interface (including secondary IP addresses).
Page 129
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: Specifies a link state ID in the IP address format. originate-router advertising-router-id: Specifies an advertising router by its ID.
Page 130
Field Description *Opq-Link Opaque LSA generated by a virtual link. # Display Type-2 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...
Field Description Nexthop Next hop address. Interface Output interface. RefCount Reference count (routes that reference the next hop). Status Next hop status: valid or invalid. display ospf non-stop-routing status Use display ospf non-stop-routing status to display OSPF NSR status information. Syntax display ospf [ process-id ] non-stop-routing status Views...
display ospf peer Use display ospf peer to display information about OSPF neighbors. Syntax display ospf [ process-id ] peer [ verbose ] [ interface-type interface-number ] [ neighbor-id ] [ standby slot slot-number ] Views Any view Predefined user roles network-admin network-operator Parameters...
Page 134
BFD status: Disabled Table 38 Command output Field Description Neighbor information of the interface in the specified area: • areaID—Area to which the neighbor belongs. Area areaID interface IPAddress(InterfaceName)'s neighbors • IPAddress—Interface IP address. • InterfaceName—Interface name. Router ID Neighbor router ID. Address Neighbor router address.
Page 135
Field Description LSA options: • O—Opaque LSA advertisement capability. • E—AS External LSA reception capability. • EA—External extended LSA reception capability. Options • 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.
Field Description 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.
Table 41 Command output Field Description The Router's Neighbor is Router ID Neighbor router ID. Address Neighbor interface IP address. Interface Local interface IP address. Area Area ID. Request list Request list information. Type LSA type. LinkState ID Link state ID. AdvRouter Advertising router.
Network 12.18.0.1 2.2.2.2 80000003 Sum-Net 12.18.1.0 2.2.2.2 80000002 Table 42 Command output Field Description The Router's Neighbor is Router ID Neighbor router ID. Address Neighbor interface IP address. Interface Interface address of the router. Area Area ID. Retrans List Retransmission list. Type LSA type.
Page 140
Usage guidelines If no OSPF process is specified, this command displays the routing information for all OSPF processes. If no interface is specified, this command displays OSPF routing information for all interfaces. If no next hop is specified, this command displays all OSPF routing information. Examples # Display OSPF routing information.
display ospf spf-tree Use display ospf spf-tree to display OSPF topology information. Syntax display ospf [ process-id ] [ area area-id ] spf-tree [ verbose ] Views Any view Predefined user roles network-admin network-operator Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. Without this argument, the command displays topology information for all OSPF processes.
Page 143
Table 45 Command output Field Description SPF node, represented by a router ID when the node type is Router, or the IP address of the DR when the node type is Network. Node flag: • I—The node is in initialization state. SpfNode •...
Field Description Link flag: • I—The link is in initialization state. • P—The peer is the parent node. • C—The peer is the child node. • D—The link is to be deleted. LinkFlag • H—The next hop is changed. • V—When the peer node is deleted or added, the peer node is not on the SPF tree or is deleted.
Page 146
LSAs originated by this router Router Network : 0 Sum-Net : 0 Sum-Asbr: 0 External: 0 NSSA Opq-Link: 0 Opq-Area: 0 Opq-As LSAs originated: 4 LSAs received: 7 Routing table: Intra area: 2 Inter area: 3 ASE/NSSA: 0 Table 47 Command output Field Description I/O statistics...
Page 147
Field Description Inter area Number of inter-area routes. Number of ASE routes. # Display OSPF error statistics. <Sysname> display ospf statistics error OSPF Process 1 with Router ID 192.168.1.112 OSPF Packet Error Statistics : Router ID confusion : Bad packet : Bad version : Bad checksum : Bad area ID...
Field Description HELLO: Hello-time mismatch Hello packets with mismatched hello timer. HELLO: Dead-time mismatch Hello packets with mismatched dead timer. HELLO: Ebit option mismatch Hello packets with mismatched E-bit in the option field. DD: MTU option mismatch DD packets with mismatched MTU. DD: Unknown LSA type DD packets with unknown LSA type.
Transit Area: 0.0.0.1 Timers: Hello 10 , Dead 40 , Retransmit 5 , Transmit Delay 1 MD5 authentication enabled. The last key is 3. The rollover is in progress, 2 neighbor(s) left. Table 49 Command output Field Description Virtual-link Neighbor-ID ID of the neighbor on the virtual link.
Syntax dscp dscp-value undo dscp Default The DSCP value for outgoing OSPF packets is 48. Views OSPF view Predefined user roles network-admin Parameters dscp-value: Specifies a DSCP value in the range of 0 to 63 for outgoing OSPF packets. Examples # Set the DSCP value for outgoing OSPF packets to 63 in OSPF process 1.
Use undo enable out-of-band-resynchronization to disable the OSPF out-of-band resynchronization capability. Syntax enable out-of-band-resynchronization undo enable out-of-band-resynchronization Default The OSPF out-of-band resynchronization capability is disabled. Views OSPF view Predefined user roles network-admin Usage guidelines Before you configure this command, enable the link-local signaling capability. Examples # Enable the out-of-band resynchronization capability for OSPF process 1.
route-policy route-policy-name: Uses a routing policy to designate a backup next hop. The route-policy-name argument is a case-sensitive string of 1 to 63 characters. Usage guidelines Do not use OSPF FRR and BFD for OSPF at the same time. Otherwise, OSPF FRR might fail to work. Do not use the fast-reroute lfa command together with the vlink-peer or sham-link (see MPLS Command Reference) command.
Examples # Use IP prefix list my-prefix-list to filter inbound Type-3 LSAs, and use ACL 2000 to filter outbound Type-3 LSAs in OSPF Area 1. <Sysname> system-view [Sysname] ospf 100 [Sysname-ospf-100] area 1 [Sysname-ospf-100-area-0.0.0.1] filter prefix-list my-prefix-list import [Sysname-ospf-100-area-0.0.0.1] filter 2000 export filter-policy export (OSPF view) Use filter-policy export to configure OSPF to filter redistributed routes.
Usage guidelines To reference an advanced ACL (with a number from 3000 to 3999) in the command or in the specified routing policy, configure the ACL in one of the following ways: To deny/permit a route with the specified destination, use the rule [ rule-id ] { deny | permit } ip •...
nonstandard: Enables non-IETF GR. global: Enables global GR. In global GR mode, a GR process can be completed only when all GR helpers exist. A GR process fails if a GR helper fails (for example, the interface connected to the GR helper goes down).
Syntax graceful-restart helper enable [ planned-only ] undo graceful-restart helper enable Default OSPF GR helper capability is enabled. Views OSPF view Predefined user roles network-admin Parameters planned-only: Enable only planned GR for the GR helper. Without this keyword, this command enables both planned GR and unplanned GR for the GR helper.
[Sysname] ospf 1 [Sysname-ospf-1] graceful-restart helper strict-lsa-checking graceful-restart interval (OSPF view) Use graceful-restart interval to configure the GR interval. Use undo graceful-restart interval to restore the default GR interval. Syntax graceful-restart interval interval-value undo graceful-restart interval Default The GR interval is 120 seconds. Views OSPF view Predefined user roles...
Views OSPF area view Predefined user roles network-admin Parameters ip-address: Specifies the IP address of a host. cost: Specifies a cost for the route, in the range of 1 to 65535. Examples # Advertise host route 1.1.1.1 with a cost of 100. <Sysname>...
and FULL state neighbors exist in the backbone area, the P-bit is set to 0. This keyword applies to NSSA routers. route-policy route-policy-name: Specifies a routing policy to filter redistributed routes. The route-policy-name argument is a case-sensitive string of 1 to 63 characters. tag tag: Specifies a tag for marking external LSAs, in the range of 0 to 4294967295.
Syntax ispf enable undo ispf enable Default OSPF ISPF is enabled. Views OSPF view Predefined user roles network-admin Usage guidelines Upon topology changes, ISPF recomputes only the affected part of the SPT, instead of the entire SPT. Examples # Enable ISPF for OSPF process 100. <Sysname>...
OSPF discards the LSA. This feature helps protect resources from being over consumed due to frequent network changes. HP recommends setting the interval with the lsa-arrival-interval command to be smaller than or equal to the initial interval set with the lsa-generation-interval command.
Views OSPF view Predefined user roles network-admin Parameters interval: Specifies the interval that OSPF exits overflow state, in the range of 0 to 2147483647 seconds. Usage guidelines When the number of LSAs in the LSDB exceeds the upper limit, the LSDB is in an overflow state. In this state, OSPF does not receive any external LSAs and deletes the external LSAs generated by itself to save system resources.
Usage guidelines When network changes are infrequent, LSAs are generated at the minimum-interval. If network changes become frequent, the LSA generation interval is incremented by incremental-interval × 2 (n is the number of generation times) for each generation until the maximum-interval is reached. The minimum interval and the incremental interval cannot be greater than the maximum interval.
Syntax maximum load-balancing maximum undo maximum load-balancing Views OSPF view Predefined user roles network-admin Parameters maximum: Specifies the maximum number of ECMP routes. No ECMP load balancing is available when the number is set to 1. Usage guidelines The default maximum number of OSPF ECMP routes equals the maximum number of ECMP routes supported by the system.
Parameters ip-address: Specifies the IP address of a network. wildcard-mask: Specifies the wildcard mask of the IP address. For example, the wildcard mask of mask 255.0.0.0 is 0.255.255.255. Usage guidelines This command enables OSPF on the interface attached to the specified network. The interface's primary IP address must be in the specified network.
nssa Use nssa to configure the current area as an NSSA area. Use undo nssa to restore the default. Syntax nssa [ default-route-advertise [ cost cost | nssa-only | route-policy route-policy-name | type type ] * | no-import-route | no-summary | suppress-fa | [ translate-always | translate-never ] | translator-stability-interval value ] * undo nssa Default...
translator-stability-interval value: Specifies the stability interval of the translator. During the interval, the translator can maintain its translating capability after another device becomes the new translator. The value argument is the stability interval in the range of 0 to 900 seconds and defaults to 0. A value of 0 means the translator does not maintain its translating capability when a new translator arises.
Syntax ospf [ process-id | router-id router-id | vpn-instance vpn-instance-name ] * undo ospf [ process-id ] Default OSPF is disabled. Views System view Predefined user roles network-admin Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. router-id router-id: Specifies an OSPF router ID in dotted decimal notation.
area-id: Specifies an area by its ID, an IP address or a decimal integer in the range of 0 to 4294967295 that is translated into the IP address format by the system. exclude-subip: Excludes secondary IP addresses. Without this keyword, the command enables OSPF also on secondary IP addresses.
cipher-string: Specifies a ciphertext key. This argument is case sensitive. If simple is specified, the key must be a string of 33 to 41 characters. If md5 or hmac-md5 is specified, the key must be a string of 33 to 53 characters.
undo ospf bfd enable Default BFD for OSPF is disabled. Views Interface view Predefined user roles network-admin Parameters echo: Enables BFD single-hop echo detection. Without this keyword, this command enables BFD bidirectional control detection. Usage guidelines Do not use OSPF FRR and BFD for OSPF at the same time. Otherwise, OSPF FRR might fail to take effect. Examples # Enable BFD for OSPF on VLAN-interface 1 1.
Examples # Set the OSPF cost on VLAN-interface 10 to 65. <Sysname> system-view [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] ospf cost 65 Related commands bandwidth-reference ospf dr-priority Use ospf dr-priority to set the router priority for DR/BDR election on an interface. Use undo ospf dr-priority to restore the default value.
Default LFA is enabled on the interface. Predefined user roles network-admin Usage guidelines If you enable LFA on an interface, it can be selected as a backup interface. After you disable LFA on the interface, it cannot be selected as a backup. Examples # Disable VLAN-interface 1 1 from calculating a backup next hop by using the LFA algorithm.
ospf mtu-enable Use ospf mtu-enable to enable an interface to add the interface MTU into DD packets. Use undo ospf mtu-enable to restore the default. Syntax ospf mtu-enable undo ospf mtu-enable Default The MTU in DD packets is 0. Views Interface view Predefined user roles network-admin...
Predefined user roles network-admin Parameters broadcast: Specifies the network type as broadcast. nbma: Specifies the network type as NBMA. p2mp: Specifies the network type as P2MP. unicast: Specifies the P2MP interface to unicast OSPF packets. By default, a P2MP interface multicasts OSPF packets.
Default Prefix suppression is disabled. Views Interface view Predefined user roles network-admin Parameters disable: Disables prefix suppression on an interface. Usage guidelines To disable prefix suppression on an interface associated with an OSPF process that has been enabled with prefix suppression, execute the ospf prefix-suppression disable command on that interface. For more information, see "prefix-suppression."...
Usage guidelines If an interface receives no hello packet from a neighbor within the dead interval, the interface considers the neighbor down. The dead interval on an interface is at least four times the hello interval. Routers attached to the same segment must have the same dead interval. Examples # Configure the dead interval for VLAN-interface 10 as 60 seconds.
ospf timer poll Use ospf timer poll to set the poll interval on an NBMA interface. Use undo ospf timer poll to restore the default. Syntax ospf timer poll seconds undo ospf timer poll Default The poll interval is 120 seconds on an interface. Views Interface view Predefined user roles...
Predefined user roles network-admin Parameters interval: Specifies the LSA retransmission interval in the range of 1 to 3600 seconds. Usage guidelines After sending an LSA, an interface waits for an acknowledgement packet. If the interface receives no acknowledgement within the retransmission interval, it retransmits the LSA. To avoid unnecessary retransmissions, set an appropriate retransmission interval.
peer Use peer to specify a neighbor in an NBMA or P2MP network. Use undo peer to remove the configuration. Syntax peer ip-address [ cost value | dr-priority dr-priority ] undo peer ip-address Default No neighbor is specified. Views OSPF view Predefined user roles network-admin Parameters...
Syntax pic [ additional-path-always ] undo pic Default OSPF PIC is enabled. Views OSPF view Predefined user roles network-admin Parameters additional-path-always: Allows the indirect suboptimal route as the backup route. Usage guidelines Prefix Independent Convergence (PIC) enables the device to speed up network convergence by ignoring the number of prefixes.
value: Specifies the preference value in the range of 1 to 255. The smaller the value, the higher the preference. Usage guidelines If multiple routing protocols find routes to the same destination, the router uses the route found by the protocol with the highest preference.
Predefined user roles network-admin Usage guidelines If you want to use prefix suppression, HP recommends that you configure prefix suppression on all OSPF routers. To disable an OSPF process from advertising the prefixes of loopback interfaces and passive interfaces, configure prefix suppression on the interfaces by using the ospf prefix-suppression command.
Related commands ospf prefix-suppression reset ospf counters Use reset ospf counters to clear OSPF statistics. Syntax reset ospf [ process-id ] counters Views User view Predefined user roles network-admin Parameters process-id: Clears the statistics for an OSPF process specified by its ID in the range of 1 to 65535. Examples # Clear OSPF statistics for all processes.
Examples # Reset all OSPF processes. <Sysname> reset ospf process Reset OSPF process? [Y/N]:y reset ospf redistribution Use reset ospf redistribution to restart route redistribution. Syntax reset ospf [ process-id ] redistribution Views User view Predefined user roles network-admin Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
Selects the route with lower cost if two routes have equal preference. Selects the route with larger originating area ID if two routes have equal cost. To avoid routing loops, HP recommends setting identical RFC 1583-compatibility on all routers in a routing domain.
after a physical interface address is selected as the router ID, or a higher interface IP address is configured as the router ID. After a router ID is changed, you must use the reset command to enable it. Examples # Configure a global router ID as 1.1.1.1. <Sysname>...
virtneighbor-state-change: Specifies notifications about the neighbor state change of a virtual interface. Examples # Disable SNMP notifications for OSPF. <Sysname> system-view [Sysname] undo snmp-agent trap enable ospf snmp trap rate-limit Use snmp trap rate-limit to configure the SNMP notification output interval and the maximum number of SNMP notifications that can be output at each interval.
Views OSPF view Predefined user roles network-admin Parameters maximum-interval: Specifies the maximum OSPF SPF calculation interval in the range of 1 to 60 seconds. minimum-interval: Specifies the minimum OSPF SPF calculation interval in the range of 10 to 60000 milliseconds. incremental-interval: Specifies the incremental OSPF SPF calculation interval in the range of 10 to 60000 milliseconds.
Parameters default-route-advertise-always: Used only on a stub ABR. With this keyword, the ABR advertises a default route in a Type-3 LSA into the stub area regardless of whether FULL-state neighbors exist in the backbone area. Without this keyword, the ABR advertises a default route in a Type-3 LSA into the stub area only when at least one FULL-state neighbor exists in the backbone area.
wait-for-bgp seconds: Specifies the router as a stub router during BGP route convergence after reboot, and specifies the timeout time in the range of 5 to 86400 seconds. The default timeout time is 600 seconds. summary-lsa max-metric-value: Specifies a cost for the Type-3 LSAs, in the range of 1 to 16777215. The default cost value is 1671 1680.
[Sysname] ospf 1 [Sysname-ospf-1] transmit-pacing interval 30 count 10 vlink-peer (OSPF area view) Use vlink-peer to configure a virtual link. Use undo vlink-peer to remove a virtual link. Syntax vlink-peer router-id [ dead seconds | hello seconds | { { hmac-md5 | md5 } key-id { cipher cipher-string | plain plain-string } | simple { cipher cipher-string | plain plain-string } } | retransmit seconds | trans-delay seconds ] * undo vlink-peer router-id [ dead | hello | { hmac-md5 | md5 } key-id | retransmit | simple |...
Page 195
Usage guidelines As defined in RFC 2328, all non-backbone areas must maintain connectivity to the backbone. You can use the vlink-peer command to configure a virtual link to connect an area to the backbone. When you configure this command, follow these guidelines: The smaller the hello interval is, the faster the network converges, and the more network resources •...
IS-IS commands area-authentication-mode Use area-authentication-mode to specify an area authentication mode and a password. Use undo area-authentication-mode to restore the default. Syntax area-authentication-mode { md5 | simple | gca key-id { hmac-sha-1 | hmac-sha-224 | hmac-sha-256 | hmac-sha-384 | hmac-sha-512 } } { cipher cipher-string | plain plain-string } [ ip | osi ] undo area-authentication-mode Default No area authentication or password is configured.
Usage guidelines The password in the specified mode is inserted into all outbound Level- 1 packets (LSP, CSNP, and PSNP) and is used to authenticate inbound Level- 1 packets. Area authentication enables IS-IS to discard routes from untrusted routers. Routers in an area must have the same authentication mode and password. If neither ip nor osi is specified, OSI-related fields are checked.
Interface bandwidth Cost ≤155 Mbps ≤622 Mbps ≤2500 Mbps >2500 Mbps Examples # Enable automatic link cost calculation for IS-IS process 1. <Sysname> system-view [Sysname] isis 1 [Sysname-isis-1] auto-cost enable Related commands bandwidth-reference • cost-style • isis cost • bandwidth-reference (IS-IS view) Use bandwidth-reference to set the bandwidth reference value for automatic link cost calculation.
circuit-cost Use circuit-cost to set a global IS-IS link cost. Use undo circuit-cost to remove the configuration. Syntax circuit-cost value [ level-1 | level-2 ] undo circuit-cost [ level-1 | level-2 ] Default No global link cost is configured. Views IS-IS view Predefined user roles network-admin...
Default Only narrow cost style packets can be received and sent. Views IS-IS view Predefined user roles network-admin Parameters narrow: Receives and sends only narrow cost style packets. (The narrow cost is in the range of 0 to 63.) wide: Receives and sends only wide cost style packets. (The wide cost is in the range of 0 to 16777215.) compatible: Receives and sends both wide and narrow cost style packets.
Predefined user roles network-admin Parameters level-1: Advertises a Level- 1 default route. level-1-2: Advertises both Level- 1 and Level-2 default routes. level-2: Advertises a Level-2 default route. route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.
Syntax display isis graceful-restart event-log slot slot-number Views Any view Predefined user roles network-admin network-operator Parameters slot slot-number: Specifies an IRF member device by its ID. Examples # Display IS-IS GR log information about IRF member device 1. <Sysname> display isis graceful-restart event-log slot 1 IS-IS loginfo : Jul 18 20:44:33 2012 -Slot=0 Enter HA Block status Jul 18 10:44:33 2012 -Slot=0 Exit HA Block status...
Page 204
Views Any view Predefined user roles network-admin network-operator Parameters level-1: Displays the IS-IS Level- 1 GR state. level-2: Displays the IS-IS Level-2 GR state. process-id: Specifies a process by its ID in the range of 1 to 65535. Without this argument, the command displays GR state of all IS-IS processes.
Field Description Current Restart phase: • Initialization. • LSDB synchronization. • First SPF computation. • Restart phase Redistribution. • Second SPF computation. • LSP stability—Ready to generate LSPs. • LSP generation. • Finish. Restart t1 T1 timer, in seconds. count Number of T1 timer expirations.
Page 206
standby slot slot-number: Displays backup IS-IS interface information for an IRF member device. Without this option, the command displays IS-IS interface information. Examples # Display brief IS-IS interface information. <Sysname> display isis interface Interface information for IS-IS(1) ---------------------------------- Interface: Vlan-interface2 IPv4.State IPv6.State Type...
Field Description IP address Primary IP address. Secondary IP address(es) Secondary IP addresses. IPv6 link-local address IPv6 link local address. CSNP timer value Interval for sending CSNP packets. Hello timer value Interval for sending Hello packets. Hello multiplier value Number of invalid Hello packets. Lsp timer value Minimum interval for sending LSP packets.
Table 56 Command output Field Description LSPID LSP ID. Seq Num LSP sequence number. Checksum LSP checksum. Holdtime LSP lifetime, which decreases as time elapses. Length LSP length. • ATT—Attach bit. • P—Partition bit. ATT/P/OL • OL—Overload bit. 1 means the LSP bit is set and 0 means the LSP bit is not set. Source System ID of the originating router.
Parameters process-id: Displays the host name to system ID mapping table for an IS-IS process specified by its ID in the range of 1 to 65535. Without this argument, the command displays the host name to system ID mapping table for all IS-IS processes. Examples # Configure a name RUTA for the local IS system.
Page 214
System Id: 0000.0000.0001 Interface: Vlan2 Circuit Id: State: Up HoldTime: Type: L2(L1L2) PRI: 64 # Display detailed IS-IS neighbor information. <Sysname> display isis peer verbose Peer information for ISIS(1) ---------------------------- System ID: 0000.1111.2222 Interface: Vlan2 Circuit Id: 0000.1111.2222.01 State: Up Holdtime: Type: L1(L1L2) PRI: 64...
Page 215
Field Description Circuit type: • L1—Means the circuit type is Level- 1 and the neighbor is a Level- 1 router. • L2—Means the circuit type is Level-2 and the neighbor is a Level-2 router. Type • L1(L1L2)—Means the circuit type is Level- 1 and the neighbor is a Level- 1 -2 router.
Field Description Redistributed route type: • Direct. • IS-IS. • Type Static. • OSPF. • BGP. • RIP. IPV4 Destination IPv4 destination address. IntCost Internal cost of the route. ExtCost External cost of the route. Tag value. State Indicates whether the route is valid. display isis route Use display isis route to display IS-IS IPv4 routing information.
Page 218
<Sysname> display isis route Route information for ISIS(1) ----------------------------- Level-1 IPv4 Forwarding Table ----------------------------- IPv4 Destination IntCost ExtCost ExitInterface NextHop Flags ------------------------------------------------------------------------------- 8.8.8.0/24 NULL Vlan2 Direct D/L/- 9.9.9.0/24 NULL Vlan2 8.8.8.5 R/L/- Flags: D-Direct, R-Added to Rib, L-Advertised in LSPs, U-Up/Down Bit Set Level-2 IPv4 Forwarding Table ----------------------------- IPv4 Destination...
Page 219
----------------------------- Level-1 IPv4 Forwarding Table ----------------------------- IPV4 Dest : 8.8.8.0/24 Int. Cost : 10 Ext. Cost : NULL Admin Tag : - Src Count : 2 Flag : D/L/- NextHop Interface : ExitIndex : Direct Vlan2 0x00000000 IPV4 Dest : 9.9.9.0/24 Int.
Field Description NextHop Primary next hop of the node or the link advertising source. Interface Primary output interface of the node or the link advertising source. BkNextHop Backup next hop. BkInterface Backup output interface. Neighbor ID of the primary next hop neighbor. BkNeighbor ID of the backup next hop neighbor.
Page 226
Parameters level-1: Displays IS-IS Level- 1 statistics. level-1-2: Displays IS-IS Level- 1 -2 statistics. level-2: Displays IS-IS Level-2 statistics. process-id: Displays statistics for an IS-IS process specified by its ID in the range of 1 to 65535. Usage guidelines If no level is specified, this command displays both Level- 1 and Level-2 routing information. If no IS-IS process ID is specified, this command displays the statistics for all IS-IS processes.
Learnt routes information: Total IPv4 Learnt Routes in IPv4 Routing Table: 0 Total IPv6 Learnt Routes in IPv6 Routing Table: 0 Imported routes information: IPv4 Imported Routes: Static: 0 Direct: 0 ISIS: BGP: RIP: OSPF: Total Number: IPv6 Imported Routes: Static: 0 Direct: 0 ISISv6: 0...
Page 228
Predefined user roles network-admin network-operator Parameters slot slot-number: Specifies an IRF member device by its ID. Without this option, the command displays OSI connection information about all IRF member devices. Examples # Display OSI connection information. <Sysname> display osi Total OSI socket number: 1 Slot: 1 Creator: isisd[1007] State: N/A...
Field Description Input interfaces and matched multicast MAC addresses. Only Enabled interfaces packets received from Ethernet link-layer interfaces need to match the multicast MAC addresses. display osi statistics Use display osi statistics to display OSI packet statistics, including received packets, relayed packets, discarded packets, and sent packets.
Field Description Number of discarded packets due to unavailable IRF Invalid service slot member device. Number of discarded packets due to mismatches in input No matched socket interfaces, MAC addresses, or connection filter criteria. Not delivered, input socket Number of undelivered packets due to a socket receiving full buffer overflow.
hmac-sha-1: Specifies the HMAC-SHA- 1 algorithm. hmac-sha-224: Specifies the HMAC-SHA-224 algorithm. hmac-sha-256: Specifies the HMAC-SHA-256 algorithm. hmac-sha-384: Specifies the HMAC-SHA-384 algorithm. hmac-sha-512: Specifies the HMAC-SHA-512 algorithm. cipher: Sets a ciphertext password. cipher-string: Specifies a ciphertext password of 33 to 53 characters. plain: Sets a plaintext password.
Predefined user roles network-admin Parameters auto: Calculates a backup next hop automatically for all routes. route-policy route-policy-name: Uses the specified routing policy to designate a backup next hop. The route-policy-name argument is a case-sensitive string of 1 to 63 characters. Usage guidelines Do not use FRR and BFD at the same time.
Usage guidelines To use an advanced ACL (with a number from 3000 to 3999) in the command, configure the ACL using one of the following methods: To deny/permit a route with the specified destination, use the rule [ rule-id ] { deny | permit } ip •...
Predefined user roles network-admin Parameters acl-number: Specifies an ACL by its number in the range of 2000 to 3999 to filter routes calculated using received LSPs. prefix-list prefix-list-name: Specifies an IPv4 prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter routes calculated using received LSPs by destination address.
Syntax flash-flood [ flood-count flooding-count | max-timer-interval flooding-interval | [ level-1 | level-2 ] ] * undo flash-flood [ level-1 | level-2 ] Default IS-IS LSP flash flooding is disabled. Views IS-IS view Predefined user roles network-admin Parameters flood-count flooding-count: Specifies the maximum number of LSPs to be flooded before the next SPF calculation, in the range of 1 to 15.
Usage guidelines IS-IS GR and IS-IS NSR are mutually exclusive. Therefore, do not configure the graceful-restart command and the non-stop-routing command at the same time. Examples # Enable GR for IS-IS process 1. <Sysname> system-view [Sysname] isis 1 [Sysname-isis-1] graceful-restart Related commands graceful-restart suppress-sa graceful-restart suppress-sa...
Syntax graceful-restart t1 seconds count count undo graceful-restart t1 Default The T1 timer is 3 seconds and can expire 10 times. Views IS-IS view Predefined user roles network-admin Parameters seconds: Specifies the T1 timer in the range of 3 to 10 seconds. count: Specifies the number of times that the T1 timer can expire, in the range of 1 to 20.
Predefined user roles network-admin Parameters seconds: Specifies the T2 timer in the range of 30 to 65535 seconds. Usage guidelines The T2 timer specifies the LSDB synchronization interval. Each LSDB has a T2 timer. The Level- 1 -2 router has two T2 timers: a Level- 1 timer and a Level-2 timer. If the LSDBs have not achieved synchronization before the two timers expire, the GR process fails.
route-policy route-policy-name: Redistributes only routes matching the specified routing policy. The route-policy-name argument is a case-sensitive string of 1 to 63 characters. tag tag: Specifies a tag value for marking redistributed routes, in the range of 1 to 4294967295. Usage guidelines IS-IS takes all the redistributed routes as external routes to destinations outside the IS-IS routing domain.
acl-number: Specifies an ACL by its number in the range of 2000 to 3999 to filter routes from Level- 1 to Level-2. prefix-list prefix-list-name: Specifies an IPv4 prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter routes from Level- 1 to Level-2 by destination address. route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to filter routes from Level- 1 to Level-2.
prefix-list prefix-list-name: Specifies an IPv4 prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter routes from Level-2 to Level- 1 by destination address. route-policy route-policy-name: Uses the specified routing policy to filter routes from Level-2 to Level- 1 . The route-policy-name argument is a case-sensitive string of 1 to 63 characters.
[Sysname-isis-1] import-route limit 1000 Related commands import-route isis Use isis to enable an IS-IS process and enter IS-IS view. Use undo isis to disable an IS-IS process. Syntax isis [ process-id ] [ vpn-instance vpn-instance-name ] undo isis [ process-id ] Default The system does not run any IS-IS process.
Page 244
Default No neighbor relationship authentication is configured. Views Interface view Predefined user roles network-admin Parameters md5: Specifies the MD5 authentication mode. simple: Specifies the simple authentication mode. gca: Specifies the generic cryptographic authentication mode. key-id: Specifies an SA by its key ID in the range of 1 to 65535. The sender puts a key ID in the authentication TLV, and the receiver uses the SA associated with the key ID to authenticate the incoming packet.
Examples # On VLAN-interface 10, configure the authentication mode as simple, and set the plaintext password to 123456. <Sysname> system-view [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] isis authentication-mode simple plain 123456 Related commands area-authentication-mode • domain authentication-mode • isis bfd enable Use isis bfd enable to enable BFD.
Views Interface view Predefined user roles network-admin Parameters level-1: Sets the circuit level to Level- 1 . level-1-2: Sets the circuit level to Level- 1 -2. level-2: Sets the circuit level to Level-2. Usage guidelines For a Level- 1 (Level-2) router, the circuit level can only be Level- 1 (Level-2). For a Level- 1 -2 router, you must specify a circuit level for a specific interface to form only the specified level neighbor relationship.
If only two routers exist on a broadcast network, configure the network type of attached interfaces as P2P to avoid DIS election and CSNP flooding, saving network bandwidth and speeding up network convergence. Examples # Configure the network type of VLAN-interface 10 as P2P. <Sysname>...
isis dis-name NOTE: This command does not take effect on a Point-to-Point interface. Use isis dis-name to configure a name for a DIS to represent the pseudo node on a broadcast network. Use undo isis dis-name to restore the default. Syntax isis dis-name symbolic-name undo isis dis-name...
Views Interface view Predefined user roles network-admin Parameters value: Specifies a DIS priority in the range of 0 to 127. level-1: Applies the DIS priority to Level- 1 . level-2: Applies the DIS priority to Level-2. Usage guidelines If neither level-1 nor level-2 is specified, the DIS priority applies to both Level- 1 and Level-2. On an IS-IS broadcast network, a router must be elected as the DIS at each routing level.
undo isis silent Default An interface is not disabled from sending and receiving IS-IS packets. Views Interface view Predefined user roles network-admin Usage guidelines The feature is not supported on the loopback interface. Examples # Disable VLAN-interface 10 from sending and receiving IS-IS packets. <Sysname>...
Use undo isis timer csnp to remove the configuration. Syntax isis timer csnp seconds [ level-1 | level-2 ] undo isis timer csnp [ level-1 | level-2 ] Default The default CSNP interval is 10 seconds. Views Interface view Predefined user roles network-admin Parameters seconds: Specifies on the DIS of a broadcast network the interval in seconds for sending CSNP packets.
Parameters seconds: Specifies the interval in seconds for sending hello packets, in the range of 3 to 255. level-1: Specifies the interval for sending Level- 1 hello packets. level-2: Specifies the interval for sending Level-2 hello packets. Usage guidelines If a neighbor does not receive any hello packets from the router within the advertised hold time, it considers the router down and recalculates the routes.
level-2: Applies the number to the Level-2 IS-IS neighbor. Usage guidelines The hello multiplier is the number of hello packets a neighbor must miss before declaring the router is down. If a neighbor does not receive any hello packets from the router within the advertised hold time, it considers the router down and recalculates the routes.
Parameters time: Specifies the minimum interval in milliseconds for sending link-state packets, in the range of 1 to 1000. count: Specifies the maximum number of link-state packets to be sent at one time, in the range of 1 to 1000. Usage guidelines If a change occurs in the LSDB, IS-IS advertises the changed LSP to neighbors.
[Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] isis circuit-type p2p [Sysname-Vlan-interface10] isis timer retransmit 50 Related commands isis circuit-type p2p • isis timer lsp • is-level Use is-level to specify the IS level. Use undo is-level to restore the default. Syntax is-level { level-1 | level-1-2 | level-2 } undo is-level Default The IS level is level-1-2.
Syntax is-name sys-name undo is-name Default Dynamic system ID to hostname mapping is not enabled. Views IS-IS view Predefined user roles network-admin Parameters sys-name: Specifies a host name for the local IS, a case-insensitive string of 1 to 64 characters. Usage guidelines To display the host name rather than the system ID of an IS by using the display isis lsdb command, first enable dynamic system ID to hostname mapping.
Examples # Map the host name RUTB to the system ID 0000.0000.0041 of the remote IS. <Sysname> system-view [Sysname] isis 1 [Sysname-isis-1] is-name map 0000.0000.0041 RUTB Related commands display isis name-table ispf enable Use ispf enable to enable IS-IS incremental SPF (ISPF). Use undo ispf enable to disable IS-IS ISPF.
Views IS-IS view Predefined user roles network-admin Usage guidelines This command enables sending logs about IS-IS neighbor state changes to the information center. The information center processes the logs according to user-defined output rules (whether to output logs and where to output). For more information about the information center, see Network Management and Monitoring Configuration Guide.
lsp-length originate Use lsp-length originate to configure the maximum size of generated Level- 1 or Level-2 LSPs. Use undo lsp-length originate to remove the configuration. Syntax lsp-length originate size [ level-1 | level-2 ] undo lsp-length originate [ level-1 | level-2 ] Default The maximum size of generated Level- 1 and Level-2 LSPs is 1497 bytes.
Predefined user roles network-admin Parameters size: Specifies the maximum size of received LSPs, in the range of 512 to 16384 bytes. Examples # Configure the maximum size of received LSPs. <Sysname> system-view [Sysname] isis 1 [Sysname-isis-1] lsp-length receive 1024 maximum load-balancing (IS-IS view) Use maximum load-balancing to configure the maximum number of equal-cost multi-path (ECMP) routes for load balancing.
Use undo network-entity to delete a NET. Syntax network-entity net undo network-entity net Default No NET is configured. Views IS-IS view Predefined user roles network-admin Parameters net: Specifies a NET as a dotted hexadecimal string in the X…X.XXXX..XXXX.00 format. The X…X segment represents the area address, the XXXX..XXXX segment represents the system ID, and the 00 segment is the SEL.
undo non-stop-routing Views IS-IS view Predefined user roles network-admin Usage guidelines IS-IS NSR and IS-IS GR are mutually exclusive. Therefore, do not configure the non-stop-routing command and the graceful-restart command at the same time. Examples # Enable NSR for IS-IS process 1. <Sysname>...
[Sysname-isis-1] preference 25 priority Use priority to assign convergence priorities to specific IS-IS routes. Use undo priority to remove the configuration. Syntax priority { critical | high | medium } { prefix-list prefix-list-name | tag tag-value } undo priority { critical | high | medium } [ prefix-list | tag ] Default IS-IS routes have the lowest convergence priority.
Predefined user roles network-admin Parameters process-id: Specifies an IS-IS process by its ID in the range of 1 to 65535 to clear the data structure information for an IS-IS process. graceful-restart: Recovers the data through graceful restart after the data is cleared. Usage guidelines If no IS-IS process is specified, the command clears data structure information for all IS-IS processes.
Examples # Clear IS-IS NSR log information on IRF member device 1. <Sysname> reset isis non-stop-routing event-log slot 1 reset isis peer Use reset isis peer to clear data structure information for a specified IS-IS neighbor. Syntax reset isis peer system-id [ process-id ] Views User view Predefined user roles...
set-overload Use set-overload to set the overload bit. Use undo set-overload to clear the overload bit. Syntax set-overload [ on-startup [ [ start-from-nbr system-id [ timeout1 [ nbr-timeout ] ] ] | timeout2 ] [ allow { external | interlevel } * ] undo set-overload Default The overload bit is not set.
<Sysname> system-view [Sysname] isis 1 [Sysname-isis-1] set-overload snmp context-name Use snmp context-name to set the context name for the SNMP object for managing IS-IS. Use undo snmp context-name to restore the default. Syntax snmp context-name context-name undo snmp context-name Default No context name is set for the SNMP object for managing IS-IS.
timer lsp-max-age Use timer lsp-max-age to set the LSP maximum age in the LSDB. Use undo timer lsp-max-age to restore the default. Syntax timer lsp-max-age seconds undo timer lsp-max-age Default The LSP maximum age is 1200 seconds. Views IS-IS view Predefined user roles network-admin Parameters...
Predefined user roles network-admin Parameters seconds: Specifies the LSP refresh interval in the range of 1 to 65534 seconds. Usage guidelines To prevent valid routes from aging out and to synchronize LSPs in the network, each router needs to refresh its LSPs at a configurable interval and send them to other routers. A smaller refresh interval speeds up network convergence but consumes more bandwidth.
Usage guidelines Based on the LSDB, an IS-IS router uses the SPF algorithm to calculate a shortest path tree with itself being the root, and uses the shortest path tree to determine the next hop to a destination network. By adjusting the SPF calculation interval, you can prevent bandwidth and router resources from being overused due to frequent topology changes.
BGP commands address-family ipv4 Use address-family ipv4 to create the BGP IPv4 unicast address family or BGP-VPN IPv4 unicast address family and enter its view. Use undo address-family ipv4 to remove the BGP IPv4 unicast address family or BGP-VPN IPv4 unicast address family and all configurations in address family view.
address-family ipv6 Use address-family ipv6 to create the BGP IPv6 unicast address family or BGP-VPN IPv6 unicast address family and enter its view. Use undo address-family ipv6 to remove the BGP IPv6 unicast address family or BGP-VPN IPv6 unicast address family and all configurations in address family view. Syntax address-family ipv6 [ unicast ] undo address-family ipv6 [ unicast ]...
Syntax advertise-rib-active undo advertise-rib-active Default BGP advertises optimal routes in the BGP routing table, regardless of whether they are optimal in the IP routing table. Views BGP view Predefined user roles network-admin Usage guidelines The advertise-rib-active command does not apply to the following routes: Routes redistributed by the import-route command •...
Page 278
Default No summary route is configured. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast address family view Predefined user roles network-admin Parameters ip-address: Specifies a summary address. mask: Specifies a mask for the summary address, in dotted decimal notation. mask-length: Specifies a mask length for the summary address, in the range of 0 to 32.
Page 279
Table 69 Functions of the keywords Keywords Function Enables the summary route to carry the AS path information of all summarized routes. This feature can help avoid routing loops. However, if many routes are summarized and as-set are changed frequently, do not specify this keyword because this configuration causes the summary route to flap with the more specific routes.
<Sysname> system-view [Sysname] ip prefix-list spert deny 1.1.1.0 24 [Sysname] ip prefix-list spert permit 0.0.0.0 0 less-equal 32 [Sysname] route-policy srcrt permit node 0 [Sysname-route-policy-srcrt-0] if-match ip address prefix-list spert [Sysname-route-policy-srcrt-0] quit [Sysname] bgp 100 [Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] aggregate 1.1.0.0 255.255.0.0 origin-policy srcrt # In BGP IPv4 unicast address family view, create a summary route 1.1.0.0/16 in the BGP routing table, and disable BGP to advertise the specific route 1.1.1.0/24.
Page 281
Default Load balancing is not enabled. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view Predefined user roles network-admin Parameters number: Specifies the maximum number of BGP ECMP routes for load balancing. When it is set to 1, load balancing is disabled.
balance as-path-neglect Use balance as-path-neglect to enable BGP to implement load balancing over routes with different AS_PATH attributes. Use undo balance as-path-neglect to disable BGP to implement load balancing over routes with different AS_PATH attributes. Syntax balance as-path-neglect undo balance as-path-neglect Default BGP does not implement load balancing over routes with different AS_PATH attributes.
becomes the optimal route in the BGP routing table. In this way, route learning sequence might affect optimal route selection. With the bestroute compare-med command configured, the router puts routes received from the same AS into a group. The router then selects the route with the lowest MED from the same group, and compares routes from different groups.
peers. The AS_PATH attributes of these routes are 65006 65009, 65007 65009, and 65008 65009, and the MED values of them are 2, 3, and 1. Because the third route's AS_PATH attribute contains AS number 65008 that does not belong to the confederation, BGP does not compare it with other routes. As a result, the first route becomes the optimal route.
A router supports 4-byte AS number. Examples # Enable BGP, set the local AS number to 100, and enter BGP view. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] compare-different-as-med Use compare-different-as-med to enable MED comparison for routes from peers in different ASs. Use undo compare-different-as-med to disable the comparison.
[Sysname-bgp] address-family ipv6 unicast [Sysname-bgp-ipv6] compare-different-as-med confederation id Use confederation id to configure a confederation ID. Use undo confederation id to remove the specified confederation ID. Syntax confederation id as-number undo confederation id Default No confederation ID is configured. Views BGP view Predefined user roles network-admin...
[Sysname-bgp] peer 200.1.1.1 group Remote98 Related commands • confederation nonstandard confederation peer-as • confederation nonstandard Use confederation nonstandard to enable compatibility with routers not compliant with RFC 3065 in the confederation. Use undo confederation nonstandard to restore the default. Syntax confederation nonstandard undo confederation nonstandard Default...
undo confederation peer-as [ as-number-list ] Default No confederation peer sub-ASs are specified. Views BGP view Predefined user roles network-admin Parameters as-number-list: Specifies a sub-AS number list. A maximum of 32 sub-ASs can be configured in one command line. The expression is as-number-list = as-number &<1-32>. The as-number argument specifies a sub-AS number in the range of 1 to 4294967295, and &<1-32>...
Page 290
Predefined user roles network-admin Parameters half-life-reachable: Specifies a half-life for active routes, in the range of 1 to 45 minutes. By default, the value is 15 minutes. half-life-unreachable: Specifies a half-life for suppressed routes, in the range of 1 to 45 minutes. By default, the value is 15 minutes.
display bgp dampening parameter ipv6 unicast • default local-preference Use default local-preference to configure a default local preference. Use undo default local-preference to restore the default. Syntax default local-preference value undo default local-preference Default The default local preference is 100. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view...
default med Use default med to specify a default MED value. Use undo default med to restore the default. Syntax default med med-value undo default med Default The default med-value is 0. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view Predefined user roles network-admin...
default-route imported Use default-route imported to enable default route redistribution into the BGP routing table. Use undo default-route imported to restore the default. Syntax default-route imported undo default-route imported Default Default route redistribution is not enabled. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view Predefined user roles network-admin...
Field Description Maximum number of routes allowed to learn from the peer. Maximum number of prefixes allowed This field does not apply to BGP L2VPN. Percentage of received routes from the peer to maximum routes allowed to learn from the peer. If the percentage is reached, the system Threshold generates a log message.
Page 299
Views Any view Predefined user roles network-admin network-operator Parameters ipv4: Displays IPv4 address family information. ipv6: Displays IPv6 address family information. unicast: Displays IPv4 or IPv6 unicast address family information regardless of whether this keyword is specified or not. vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.
Network Mask Route-policy Short-cut 50.1.1.0 255.255.255.0 40.1.1.0 255.255.255.0 Table 73 Command output Field Description Destination network address of the routes advertised by the Network network command and the shortcut routes. Mask Mask of the destination network address. PrefixLen Prefix length of the destination network address. Route-policy Routing policy that is applied to the route.
Table 74 Command output Field Description RefCount Number of BGP routes with these path attributes. MULTI_EXIT_DISC attribute. AS_PATH and ORIGIN attributes of the route: • AS_PATH attribute—Records the ASs the route has passed to avoid routing loops. • ORIGIN attribute—Identifies the origin of the route: Path/Origin i—Originated in the AS.
Page 302
group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. ip-address: Specifies a peer by its IP address. log-info: Displays log information. verbose: Displays detailed information. Usage guidelines If no parameter is specified, this command displays brief information about all BGP peers for the specified address family.
Page 303
BGP last state: OpenConfirm Port: Local - 179 Remote - 60672 Configured: Active Hold Time: 180 sec Keepalive Time: 60 sec Received : Active Hold Time: 180 sec Negotiated: Active Hold Time: 180 sec Keepalive Time: 60 sec Peer optional capabilities: Peer support BGP multi-protocol extended Peer support BGP route refresh capability Peer support BGP route AS4 capability...
Page 304
Optional capabilities: Multi-protocol extended capability has been enabled Route refresh capability has been enabled Peer preferred value: 0 BFD: Enabled IPsec profile name: profile001 Routing policy configured: No routing policy is configured # Display detailed information about BGP L2VPN peer 10.1.1.1. <Sysname>...
Page 305
Table 76 Command output Field Description Peer IP address of the peer. Local Local router ID. BGP connection type between the local router and the peer: • Type IBGP link—IBGP connection. • EBGP link—EBGP connection. remote router ID Router ID of the peer. BGP current state Current state of the BGP session between the local router and the peer.
Field Description IPsec profile applied to the IPv6 BGP peer. IPsec profile name This field is available only for the IPv6 unicast and IPv6 multicast address families. Routing policy configured for the peer. Routing policy configured If no routing policy is specified, this field displays No routing policy is configured.
Page 307
Views Any view Predefined user roles network-admin network-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, the command displays dampened BGP IPv4 unicast routes for the public network.
Field Description From IP address from which the route was received. Reuse Reuse time of the route. AS_PATH and ORIGIN attributes of the route: • AS_PATH attribute—Records the ASs the route has passed to avoid routing Path/Ogn loops. • ORIGIN attribute—Identifies the origin of the route. Related commands •...
de Network : 2:: PrefixLen : 64 From : 1::1 Reuse : 00:39:49 Path/Ogn: 100i Table 79 Command output Field Description Status codes: • * – valid—Valid route. • > – best—Best route. • d – dampened—Dampened route. • Status codes h –...
Page 310
network-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, the command displays BGP IPv4 unicast route flap statistics for the public. network-address: Specifies a destination network address. mask: Specifies a network mask, in dotted decimal notation.
Table 80 Command output Field Description Status codes: • * – valid—Valid route. • > – best—Best route. • d – dampened—Dampened route. • Status codes h – history—History route. • s – suppressed—Suppressed route. • S – stale—Stale route. •...
Page 312
Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, the command displays BGP IPv6 unicast route flap statistics for the public network. network-address prefix-length: Specifies the destination network address and prefix length. The value range for the prefix-length argument is 0 to 128.
Field Description Origin of the route: • i – IGP—Originated in the AS. The origin of summary routes and routes advertised with the network command is IGP. Origin • e – EGP—Learned through EGP. • ?– incomplete—Unknown origin. The origin of routes redistributed from IGP protocols is INCOMPLETE.
Page 314
AND the specified network address with the specified mask. Display the route with the longest mask among the matching routes that have a mask shorter than or equal to the specified mask. Usage guidelines If the network-address, mask, and mask-length arguments are not specified, the command displays •...
Page 315
Field Description Origin of the route: • i – IGP—Originated in the AS. The origin of summary routes and routes advertised with the network command is IGP. Origin • e – EGP—Learned through EGP. • ?– incomplete—Unknown origin. The origin of routes redistributed from IGP protocols is INCOMPLETE.
Table 83 Command output Field Description Number of routes: • Paths available—Number of valid routes. • best—Number of optimal routes. Original next hop of the route. If the route is received from a BGP update Original nexthop message, the original next hop is the next hop IP address in the message. OutLabel Outgoing label of the route.
Page 317
Predefined user roles network-admin network-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, the command displays advertisement information of BGP IPv4 unicast routes for the public network. network-address: Specifies a destination network address.
* > 10.2.1.0/24 10.2.1.1 * > 192.168.1.0 192.168.1.135 # Display all BGP IPv4 unicast routing information received from BGP peer 10.2.1.2 for the public network. <Sysname> display bgp routing-table ipv4 peer 10.2.1.2 received-routes Total number of routes: 2 BGP local router ID is 192.168.100.1 Status codes: * - valid, >...
Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, the command displays the BGP IPv4 unicast route statistics for the public network. Usage guidelines The command with the unicast keyword has the same effect as that without the unicast keyword.
Page 323
s - suppressed, S - stale, i - internal, e - external Origin: i - IGP, e - EGP, ? - incomplete * >e Network : 3:: PrefixLen : 64 NextHop : 1::2 LocPrf PrefVal : 0 OutLabel : NULL Path/Ogn: 100i Table 86 Command output Field...
Page 324
Paths: 2 available, 1 best BGP routing table information of 2::/64: From : 10.1.1.1 (192.168.1.136) Relay nexthop : ::FFFF:10.1.1.1 Original nexthop: ::FFFF:10.1.1.1 OutLabel : NULL AS-path : 100 Origin : igp Attribute value : MED 0, pref-val 0 State : valid, external, best, From : 1::1 (192.168.1.136) Relay nexthop...
Field Description Current state of the route: • valid. • internal. State • external. • local. • best. From IP address of BGP peer that advertised the route. Next hop found by route recursion. If no next hop is found, this field Relay Nexthop displays not resolved.
network-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, the command displays BGP IPv6 unicast routes permitted by an AS path list for the public network. as-path-acl-number: Specifies an AS path list by its number in the range of 1 to 256.
Page 327
Predefined user roles network-admin network-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, the command displays BGP IPv6 unicast routing information matching the specified BGP community list for the public network. basic-community-list-number: Specifies a basic community list by its number in the range of 1 to 99.
display bgp routing-table ipv6 unicast inlabel Use display bgp routing-table ipv6 unicast inlabel to display incoming labels for BGP IPv6 unicast routing information. Syntax display bgp routing-table ipv6 [ unicast ] inlabel Views Any view Predefined user roles network-admin network-operator Usage guidelines The command with the unicast keyword has the same effect as that without the unicast keyword.
Field Description Incoming label of the IPv6 unicast route, which is assigned by the local 6PE InLabel device. display bgp routing-table ipv6 unicast outlabel Use display bgp routing-table ipv6 unicast outlabel to display outgoing labels for BGP IPv6 unicast routing information. Syntax display bgp routing-table ipv6 [ unicast ] outlabel Views...
Field Description Outgoing label of the IPv6 unicast route, which is assigned by the peer 6PE OutLabel device. display bgp routing-table ipv6 unicast peer Use display bgp routing-table ipv6 unicast peer to display BGP IPv6 unicast routing information advertised to or received from the specified BGP peer. Syntax display bgp routing-table ipv6 [ unicast ] peer { ip-address | ipv6-address } { advertised-routes | received-routes } [ network-address prefix-length | statistics ]...
s - suppressed, S - stale, i - internal, e - external Origin: i - IGP, e - EGP, ? - incomplete * > Network : 2:: PrefixLen : 64 NextHop : :: LocPrf OutLabel : NULL Path/Ogn: i # Display all BGP IPv6 unicast routing information received from BGP peer 1::1. <Sysname>...
Predefined user roles network-admin network-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, the command displays the BGP IPv6 unicast route statistics for the public network. Usage guidelines The command with the unicast keyword has the same effect as that without the unicast keyword.
Page 333
ipv6-address: Displays BGP update group information for the specified IPv6 BGP peer. Usage guidelines The update group feature classifies BGP peers that have the same export policy into an update group. When BGP advertises routes to the peers in the update group, it uses the export policy to filter the routes and generates route updates for all the peers only once.
Page 334
# Display all update group information for the BGP L2VPN address family. <Sysname> display bgp update-group l2vpn Update-group ID: 0 Type: IBGP link 4-byte AS number: Supported L2VPN signaling (VPLS): Supported L2VPN signaling (VPWS): RFC mode L2VPN auto-discovery: RFC mode Minimum time between advertisements: 15 seconds OutQ: 0 Members: 2...
Page 335
Field Description BGP link type: • IBGP link. • Type EBGP link. • Confed IBGP link—Confederation IBGP link. • Confed EBGP link—Confederation EBGP link. Label capability: Supported The peers in the update group support labeled routes. 4-byte AS number suppression is disabled for the peers in the 4-byte AS number: Supported update group.
Field Description L2VPN auto-discovery: Non-standard Peers in the update group support using non-standard NLRI to mode exchange VPLS PE information. ebgp-interface-sensitive Use ebgp-interface-sensitive to enable quick reestablishment of direct EBGP sessions. Use undo ebgp-interface-sensitive to disable the function. Syntax ebgp-interface-sensitive undo ebgp-interface-sensitive Default Quick reestablishment of direct EBGP sessions is enabled.
Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view Predefined user roles network-admin Parameters route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters. Usage guidelines There are two methods to configure BGP FRR: Method 1—Execute the pic command in BGP address family view.
Page 338
In BGP IPv6 unicast address family view/BGP-VPN IPv6 unicast address family view/BGP VPNv6 address family view: filter-policy { acl6-number | prefix-list ipv6-prefix-name } export [ protocol process-id ] undo filter-policy export [ protocol process-id ] Default Advertised BGP routes are not filtered. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP VPNv4 address family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view, BGP...
The sour-addr sour-wildcard argument combination matches the destination address of a route without matching the mask in the route. The dest-addr dest-wildcard argument combination matches the subnet mask of the route without matching the destination address in the route. The dest-wildcard must be contiguous. Otherwise, the ACL rule does not take effect.
Page 340
In BGP IPv6 unicast address family view/BGP-VPN IPv6 unicast address family view/BGP VPNv6 address family view: filter-policy { acl6-number | prefix-list ipv6-prefix-name } import undo filter-policy import Default Received BGP routes are not filtered. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP VPNv4 address family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view, BGP VPNv6 address family view Predefined user roles...
graceful-restart timer wait-for-rib Use graceful-restart timer wait-for-rib to configure the time to wait for the End-of-RIB marker. Use undo graceful-restart timer wait-for-rib to restore the default. Syntax graceful-restart timer wait-for-rib timer undo graceful-restart timer wait-for-rib Default The time to wait for the End-of-RIB marker is 180 seconds. Views BGP view Predefined user roles...
Page 344
Syntax group group-name [ external | internal ] undo group group-name Default No peer group is created. Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters group-name: Specifies a name for the peer group, a case-sensitive string of 1 to 47 characters. external: Creates an EBGP peer group.
<Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] group test external [Sysname-bgp] peer test as-number 200 [Sysname-bgp] peer 1::1 group test [Sysname-bgp] peer 1::2 group test # In BGP-VPN instance view, create an EBGP peer group test with AS number 200, and add EBGP peers 1::1 and 1::2 into the group.
Page 346
Use undo import-route to disable route redistribution from an IGP protocol. Syntax In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view: import-route protocol [ { process-id | all-processes } [ med med-value | route-policy route-policy-name ] undo import-route protocol [ process-id | all-processes ] In BGP IPv6 unicast address family view/BGP-VPN IPv6 unicast address family view: import-route protocol [ process-id [ med med-value | route-policy route-policy-name ] * ] undo import-route protocol [ process-id ]...
[Sysname] bgp 100 [Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] import-route rip 1 med 100 # In BGP-VPN IPv4 unicast address family view, redistribute routes from RIP process 1, and reference a routing policy imprt to exclude route 1.1.1.0/24 from route redistribution. <Sysname>...
Parameters vpn-instance-name: Specifies a VPN instance by its name, a case-sensitive string of 1 to 31 characters. Usage guidelines After you create a BGP peer in BGP-VPN instance view, the BGP routes learned from the peer are added into the routing table of the specified VPN instance. This command and all commands in BGP-VPN instance view are usually executed on provider edge (PE) or Multi-VPN-Instance CE (MCE) devices to add routes learned from different sites into different VPN instances.
device. The output rules of the logs (whether to output the logs and where to output) are determined by the information center configuration. For more information about information center configuration, see Network Management and Monitoring Configuration Guide. If you disable the logging of BGP session state changes, BGP does not generate logs for session establishments and disconnections.
route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to filter routes or set the route attributes. Usage guidelines The network to be injected must be available and active in the local IP routing table. •...
Page 351
In BGP IPv6 unicast address family view/BGP-VPN IPv6 unicast address family view: network ipv6-address prefix-length short-cut undo network ipv6-address prefix-length short-cut Default A received EBGP route has a preference of 255. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view Predefined user roles network-admin...
peer advertise-community Use peer advertise-community to advertise the COMMUNITY attribute to a peer or peer group. Use undo peer advertise-community to disable the COMMUNITY attribute advertisement to a peer or peer group. Syntax In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view/BGP VPNv4 address family view: peer { group-name | ip-address } advertise-community undo peer { group-name | ip-address } advertise-community...
[Sysname-bgp-ipv4] peer test advertise-community # In BGP-VPN IPv4 unicast address family view, advertise the COMMUNITY attribute to peer group test. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] address-family ipv4 unicast [Sysname-bgp-ipv4-vpn1] peer test advertise-community # In BGP IPv6 unicast address family view, advertise the COMMUNITY attribute to peer group test. <Sysname>...
ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created. Usage guidelines To meet increasing user demands, BGP defines a new attribute—extended community attribute. The extended community attribute has the following advantages over the COMMUNITY attribute: The extended community attribute has an 8-byte length.
Page 355
Syntax In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view/BGP VPNv4 address family view/BGP L2VPN address family view: peer { group-name | ip-address } allow-as-loop [ number ] undo peer { group-name | ip-address } allow-as-loop In BGP IPv6 unicast address family view: peer { group-name | ip-address | ipv6-address } allow-as-loop [ number ] undo peer { group-name | ip-address | ipv6-address } allow-as-loop In BGP VPN IPv6 unicast address family view:...
# In BGP VPNv4 address family view, configure the number of times the local AS number can appear in AS_PATH attribute of routes from peer group test as 2. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] address-family vpnv4 [Sysname-bgp-vpnv4] peer test allow-as-loop 2 # In BGP-VPN IPv6 unicast address family view, configure the number of times the local AS number can appear in AS_PATH attribute of routes from peer group test as 2.
To modify the AS number of a peer, do not execute the peer as-number command repeatedly. Instead, you must first delete the peer and configure it again. After you create a peer, you must use the peer enable command to enable BGP to exchange routing information with the specified peer.
If you have specified no AS number for a peer group, peers added to it can use their own AS • numbers. Examples # In BGP view, specify the AS number for peer group test as 100. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] peer test as-number 100 # In BGP-VPN instance view, specify the AS number for peer group test as 100.
as-path-acl-number: Specifies an AS path list by its number in the range of 1 to 256. export: Filters outgoing routes. import: Filters incoming routes. Usage guidelines The specified AS path list must have been created with the ip as-path command in system view. Otherwise, all routes can pass the AS path list.
Page 360
Default BFD is disabled. Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters ip-address: Specifies a peer by its IP address. The peer must have been created. ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created. multi-hop: Enables multi-hop BFD.
2-byte AS numbers instead of 4-byte AS numbers, the session cannot be established. To resolve this issue, enable the 4-byte AS number suppression function. The device then sends an Open message to inform the peer that it does not support 4-byte AS numbers, so the BGP session can be established. If the peer device supports 4-byte AS numbers, do not enable the 4-byte AS number suppression function.
If a BGP router has multiple links to a peer, and the source interface fails, BGP has to reestablish TCP connections, causing network oscillation. To improve link availability, HP recommends that you use a loopback interface as the source interface.
[Sysname-bgp] address-family ipv6 unicast [Sysname-bgp-ipv6] peer test default-route-advertise peer description Use peer description to configure a description for a peer or peer group. Use undo peer description to remove the description for a peer or peer group. Syntax peer { group-name | ip-address | ipv6-address } description description-text undo peer { group-name | ip-address | ipv6-address } description Default No description information is configured for a peer or peer group.
undo peer { group-name | ip-address | ipv6-address } ebgp-max-hop Default BGP does not establish an EBGP session to an indirectly-connected peer or peer group. Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created.
Page 369
Syntax In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view/BGP VPNv4 address family view/BGP-VPN VPNv4 address family view/BGP VPNv6 address family view/BGP L2VPN address family view: peer { group-name | ip-address } enable undo peer { group-name | ip-address } enable In BGP IPv6 unicast address family view: peer { group-name | ip-address | ipv6-address } enable undo peer { group-name | ip-address | ipv6-address } enable...
Page 370
with ISP CEs, and add the VPNv4 routes learned by the PE devices to the routing table of the specified VPN instance. In BGP IPv6 unicast address family view, the command enables the capability to exchange IPv6 • unicast routing information, and adds the learned routes to the IPv6 BGP routing table of the public network.
[Sysname-bgp] address-family l2vpn [Sysname-bgp-l2vpn] peer 1.1.1.1 enable Related commands display bgp peer peer fake-as Use peer fake-as to advertise a fake AS number to a peer or peer group. Use undo peer fake-as to restore the default. Syntax peer { group-name | ip-address | ipv6-address } fake-as as-number undo peer { group-name | ip-address | ipv6-address } fake-as Default No fake local AS number is advertised to a peer or peer group.
[Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] peer test fake-as 200 peer filter-policy Use peer filter-policy to filter routes advertised to or received from a peer or peer group by using an ACL. Use undo peer filter-policy to remove the configuration. Syntax In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view/BGP VPNv4 address family view: peer { group-name | ip-address } filter-policy acl-number { export | import }...
Usage guidelines The specified ACL referenced by the peer filter-policy command must have been created with the acl command in system view. Otherwise, all routes can pass the ACL. If you use a basic ACL (with a number from 2000 to 2999) configured with the rule [ rule-id ] { deny | permit } source source-address source-wildcard command, the command matches whose destination network addresses match the source-address source-wildcard argument without matching the masks of the destination addresses.
Page 374
Default No peer exists in a peer group. Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters ip-address: Specifies a peer by its IP address. ipv6-address: Specifies a peer by its IPv6 address. group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created.
[Sysname] bgp 100 [Sysname-bgp] group test external [Sysname-bgp] peer 10.1.1.1 group test as-number 2004 # In BGP-VPN instance view, add peer 10.1.1.1 to the EBGP peer group test. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] group test external [Sysname-bgp-vpn1] peer 10.1.1.1 group test as-number 2004 # In BGP view, add peer 1::1 to the EBGP peer group test.
ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created. Usage guidelines This command enables you to temporarily tear down the BGP session to a specific peer or peer group so that you can perform network upgrade and maintenance without needing to delete and reconfigure the peer or peer group.
Usage guidelines IMPORTANT: Ignoring the ORIGINATOR_ID attribute might introduce routing loops to the network. Do not use this command to ignore the ORIGINATOR_ID attribute if you are not sure there are no routing loops. By default, BGP drops incoming route updates whose ORIGINATOR_ID attribute is the same as the local router ID.
Usage guidelines IPsec can protect IPv6 BGP packets from data eavesdropping, tampering, and attacks caused by forged IPv6 BGP packets. When two IPv6 BGP neighbor devices, for example Device A and Device B, are configured with IPsec, Device A encapsulates an IPv6 BGP packet with IPsec before sending it to Device B. If Device B successfully receives and decapsulates the packet, it establishes an IPv6 BGP peer relationship with Device A or learns IPv6 BGP routes to Device A.
Page 379
peer { group-name | ip-address | ipv6-address } keep-all-routes undo peer { group-name | ip-address | ipv6-address } keep-all-routes Default Route updates from a peer or peer group are not saved. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP VPNv4 address family view, BGP IPv6 unicast address family view Predefined user roles network-admin...
peer label-route-capability Use peer label-route-capability to enable BGP to exchange labeled routes with a peer or peer group. Use undo peer label-route-capability to disable BGP from exchanging labeled routes with a peer or peer group. Syntax peer { group-name | ip-address } label-route-capability undo peer { group-name | ip-address } label-route-capability Default BGP cannot exchange labeled routes with a peer or peer group.
# In BGP IPv6 unicast address family view, enable BGP to exchange labeled IPv6 routes with peer 2.2.2.2. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv6 [Sysname-bgp-ipv6] peer 2.2.2.2 label-route-capability peer low-memory-exempt Use peer low-memory-exempt to configure BGP to protect EBGP peer or peer group when the memory usage reaches level 2 threshold.
<Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] peer 1.1.1.1 as-number 200 [Sysname-bgp-vpn1] peer 1.1.1.1 low-memory-exempt peer next-hop-local Use peer next-hop-local to set the local router as the next hop for routes sent to a peer or peer group. Use undo peer next-hop-local to restore the default.
[Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] peer test next-hop-local # In BGP-VPN IPv4 unicast address family view, specify the router as the next hop for routes sent to peer group test. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] address-family ipv4 unicast [Sysname-bgp-ipv4-vpn1] peer test next-hop-local # In BGP IPv6 unicast address family view, specify the router as the next hop for routes sent to peer group test.
Perform MD5 authentication when establishing TCP connections. Only the two parties that have the • same password configured can establish TCP connections. Perform MD5 calculation on TCP segments to avoid modification to the encapsulated BGP packets. • For security purposes, all passwords, including passwords configured in plain text, are saved in cipher text.
Page 385
undo peer { group-name | ipv6-address } preferred-value Default The preferred value is 0. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP-VPNv4 address family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view, BGP-VPNv6 address family view Predefined user roles network-admin...
[Sysname-bgp-ipv6-vpn1] peer 1::1 preferred-value 50 Related commands • apply preferred-value route-policy • peer prefix-list Use peer prefix-list to reference a prefix list to filter routes received from or advertised to a peer or peer group. Use undo peer prefix-list to remove the configuration. Syntax In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view/BGP VPNv4 address family view:...
ipv6-prefix-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters. export: Applies the filter to routes advertised to the specified peer/peer group. import: Applies the filter to routes received from the specified peer/peer group. Usage guidelines The specified IPv4 prefix list or IPv6 prefix list must have been created with the ip prefix-list or ipv6 prefix-list command in system view.
Page 388
undo peer { group-name | ip-address | ipv6-address } public-as-only In BGP-VPN IPv6 unicast address family view: peer { group-name | ipv6-address } public-as-only undo peer { group-name | ipv6-address } public-as-only Default BGP updates sent to an EBGP peer or peer group can carry both public and private AS numbers. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP VPNv4 address family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view, BGP...
[Sysname-bgp] address-family vpnv4 [Sysname-bgp-vpnv4] peer test public-as-only # In BGP-VPN IPv6 unicast address family view, remove private AS numbers in BGP updates sent to EBGP peer group test. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] address-family ipv6 unicast [Sysname-bgp-ipv6-vpn1] peer test public-as-only peer reflect-client Use peer reflect-client to configure the device as a route reflector and specify a peer or peer group as a...
Examples # In BGP IPv4 unicast address family view, configure the local device as a route reflector and specify the IBGP peer group test as a client. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] peer test reflect-client # In BGP VPNv4 address family view, configure the local device as a route reflector and specify the IBGP peer group test as a client.
Page 391
undo peer { group-name | ip-address | ipv6-address } route-limit Default The number of routes that can be received from a peer or peer group is not limited. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP VPNv4 address family view, BGP IPv6 unicast address family view, BGP VPNv6 address family view Predefined user roles network-admin...
# In BGP IPv6 unicast address family view, specify the maximum number of routes that can be received from peer 1::1 to 10000, and configure the router to tear down the session to the peer if the number is exceeded. <Sysname>...
route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters. export: Applies the routing policy to routes outgoing to the peer or peer group. import: Applies the routing policy to routes incoming from the peer or peer group. Usage guidelines The specified routing policy must have been configured with the route-policy command in system view.
Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. ip-address: Specifies a peer by its IP address. The peer must have been created. ipv6-address: Specifies a peer by its IPv6 address.
Predefined user roles network-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. ip-address: Specifies a peer by its IP address. The peer must have been created. ipv6-address: Specifies a peer by its IPv6 address.
Page 396
ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created. keepalive keepalive: Sets a keepalive interval in the range of 0 to 21845 seconds. hold holdtime: Sets a holdtime in the range of 3 to 65535 seconds. Usage guidelines After establishing a BGP session, two routers send keepalive messages at the specified keepalive interval to each other to keep the session.
Use pic to enable BGP FRR for a BGP address family. Use undo pic to disable BGP FRR for a BGP address family. Syntax undo pic Default BGP FRR is disabled. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view Predefined user roles network-admin...
Page 398
Default The preferences of external, internal, and local BGP routes are 255, 255, and 130, respectively. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view Predefined user roles network-admin Parameters...
Examples # In BGP IPv4 unicast address family view, configure the cluster ID on the local router (a reflector in the cluster) as 80. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] reflector cluster-id 80 # In BGP VPNv4 address family view, configure the cluster ID on the local router (a reflector in the cluster) as 80.
This command requires that both the local router and the peer support route refresh. If the peer keep-all-routes command is configured, the refresh bgp ipv4 unicast import command does not take effect. The command with the unicast keyword has the same effect as that without the unicast keyword. Examples # Soft-reset all inbound BGP sessions for the IPv4 unicast address family.
group group-name: Resets the BGP sessions to the peers in the peer group specified by its name, a case-sensitive string of 1 to 47 characters. internal: Resets all IBGP sessions. ipv4: Resets BGP sessions for IPv4 address family. ipv6: Resets BGP sessions for IPv6 address family. unicast: Resets BGP sessions for unicast address family.
Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, this command clears the flap statistics of the BGP IPv4 unicast routes for the public network. network-address: Specifies a destination network address.
Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, this command clears the flap statistics of the BGP IPv6 unicast routes for the public network. network-address prefix-length: Specifies the destination network address and prefix length.
If no global router ID is configured, the highest loopback address, if any, is used as the router ID. If no loopback address is available, the highest physical interface IP address is used, regardless of the interface status. If no IP address is configured for any interface, the router ID is 0.0.0.0. During an active/standby switchover, the standby main processing unit (MPU) checks whether the previous router ID that is backed up before switchover is valid.
Examples # Configure the router ID for BGP as 1.1.1.1. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] router-id 1.1.1.1 Related commands router id (system view) • router-id (BGP-VPN instance view) • router-id (BGP-VPN instance view) Use router-id to configure a router ID for a BGP VPN instance. Use undo router-id to remove the router ID for a BGP VPN instance.
If a non-zero router ID is selected for the BGP VPN instance, the router ID will not change when a more preferable router ID is available in the BGP VPN instance. Examples # In BGP-VPN instance view, configure the router ID as 1.1.1.1. <Sysname>...
Syntax summary automatic undo summary automatic Default Automatic route summarization is not performed for redistributed IGP subnet routes. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view Predefined user roles network-admin Usage guidelines After the summary automatic command is configured, BGP summarizes IGP subnets redistributed by the import-route command.
Page 413
Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters keepalive keepalive: Configures a keepalive interval in the range of 0 to 21845 seconds. hold holdtime: Configures a holdtime in seconds, whose value is 0 or in the range of 3 to 65535. Usage guidelines After establishing a BGP session, two routers send keepalive messages at the specified keepalive interval to each other to keep the session.
Page 414
[Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] timer keepalive 0 hold 0 Related commands display bgp peer • peer timer •...
Policy-based routing commands apply next-hop Use apply next-hop to set a next hop. Use undo apply next-hop to remove the configuration. Syntax apply next-hop vpn-instance vpn-instance-name ip-address direct track track-entry-number ] }&<1-n> undo apply next-hop [ [ vpn-instance vpn-instance-name ] ip-address&<1-n> ] Default No next hop is set.
display ip policy-based-route Use display ip policy-based-route to display PBR policy information. Syntax display ip policy-based-route [ policy policy-name ] Views Any view Predefined user roles network-admin network-operator Parameters policy policy-name: Specifies a policy by its name, a case-sensitive string of 1 to 19 characters. Usage guidelines If no policy is specified, this command displays information about all policies.
Page 417
Predefined user roles network-admin network-operator Parameters interface-type interface-number: Specifies an interface by its type and number. slot slot-number: Displays the PBR configuration and statistics on an IRF member device. The slot-number argument is the ID of the IRF member device. Examples # Display PBR configuration and statistics on VLAN-interface 1.
Total matched: 0 Table 94 Command output Field Description PBR configuration and statistics on VLAN-interface 1. failed indicates that the policy (including all its nodes) failed to be Policy based routing information for assigned to the driver. interface Vlan-interface1(failed) For a global interface (with only a one-dimensional interface number, for example, VLAN-interface 1), failed can be displayed only when you specify the slot slot-number option for the command.
network-operator Parameters slot slot-number: Displays the PBR configuration and statistics on an IRF member device. The slot-number argument is the ID of the IRF member device. Examples # Display local PBR configuration and statistics. <Sysname> display ip policy-based-route local Policy based routing information for local: Policy name: aaa node 0 deny: Matched: 0...
Views Any view Predefined user roles network-admin network-operator Examples # Display PBR configuration. <Sysname> display ip policy-based-route setup Policy Name Interface Name pr01 Vlan-interface 1 Table 96 Command output Field Description Interface Name Interface where the policy is applied. Related commands ip policy-based-route if-match acl Use if-match acl to configure an ACL match criterion.
[Sysname-pbr-aa-11] if-match acl 2011 # Configure Node 1 1 of policy aa to permit the packets matching ACL aaa. <Sysname> system-view [Sysname] policy-based-route aa permit node 11 [Sysname-pbr-aa-11] if-match acl name aaa ip local policy-based-route Use ip local policy-based-route to configure local PBR based on a policy. Use undo ip local policy-based-route to remove the configuration.
undo ip policy-based-route Default No policy is applied to an interface. Views Interface view Predefined user roles network-admin Parameters policy-name: Specifies a policy by its name, a case-sensitive string of 1 to 19 characters. The specified policy must already exist. Usage guidelines You can apply only one policy to an interface.
permit: Specifies the match mode for the policy node as permit (default mode). node node-number: Specifies a policy node by its number in the range of 0 to 255. A smaller number has a higher priority. Usage guidelines A policy that has been applied to an interface or locally cannot be removed. To remove it, you must first cancel the application.
IPv6 static routing commands delete ipv6 static-routes all Use delete ipv6 static-routes all to delete all IPv6 static routes. Syntax delete ipv6 [ vpn-instance vpn-instance-name ] static-routes all Views System view Default level 2: System level Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.
Page 425
Parameters nib-id: Specifies a NIB by its ID in the range of 1 to FFFFFFFF. verbose: Displays detailed IPv6 static route next hop information. Without this keyword, the command displays brief IPv6 static route next hop information. Examples # Displays brief IPv6 static route next hop information. <Sysname>...
Field Description Version Version of the next hop. display ipv6 route-static routing-table Use display ipv6 route-static routing-table to display IPv6 static routing table information. Syntax display ipv6 route-static routing-table [ vpn-instance vpn-instance-name ] [ ipv6-address prefix-length ] Views Any view Predefined user roles network-admin network-operator...
Field Description BfdIfIndex Index of the interface where BFD is enabled. BfdVrfIndex Index of the VPN instance where BFD is enabled. BFD session mode: • N/A—No BFD session is configured. BfdMode • Ctrl—Control packet mode • Echo—Echo packet mode. TrackIndex NQA Track index.
Page 430
Enables BFD to detect reachability of the static route's next hop. control-packet: Specifies the BFD control mode. bfd-source ipv6-address: Specifies the source IPv6 address of BFD packets. HP recommends that you specify the loopback interface address. echo-packet: Specifies the BFD echo mode.
ipv6 route-static default-preference Use ipv6 route-static default-preference to configure a default preference for IPv6 static routes. Use undo ipv6 route-static default-preference to restore the default. Syntax ipv6 route-static default-preference default-preference-value undo ipv6 route-static default-preference Default The default preference of IPv6 static routes is 60. Views System view Predefined user roles...
RIPng commands checkzero Use checkzero to enable the zero field check on RIPng packets. Use undo checkzero to disable the zero field check. Syntax checkzero undo checkzero Default The zero field check function is enabled. Views RIPng view Predefined user roles network-admin Usage guidelines Some fields in RIPng packet headers must be zero.
Predefined user roles network-admin Parameters value: Specifies a default metric for redistributed routes, in the range of 0 to 16. Usage guidelines When you use the import-route command to redistribute routes from another routing protocol without specifying a metric, the metric specified by the default cost command applies. Examples # Configure a default metric of 2 for redistributed routes.
Number of trigger updates sent: 1 Table 100 Command output Field Description Public VPN-instance name/Private VPN-instance Public network or VPN where the RIPng process runs. name RIPng process RIPng process ID. Preference RIPng preference. Indicates whether zero field check for RIPng packet Checkzero headers is enabled.
Table 101 Command output Field Description cost Route metric value. imported Indicates the route is redistributed from another routing protocol. RIPng-interface Route learned from the interface. Next hop IPv6 address. display ripng interface Use display ripng interface to display interface information for a RIPng process. Syntax display ripng process-id interface [ interface-type interface-number ] Views...
Field Description Indicates whether the poison reverse function is enabled: • Poison-reverse On—Enabled. • Off—Disabled. MetricIn/MetricOut Additional metric to incoming and outgoing routes. • Only—The interface advertises only a default route. • Originate—The interface advertises a default route and other RIPng routes. Default route •...
Page 437
Destination 1::/64, via FE80::20C:29FF:FE7A:E3E4, cost 1, tag 0, AOF, 7 secs Destination 2::2/128, via FE80::20C:29FF:FE7A:E3E4, cost 1, tag 0, AOF, 7 secs # Display information of routes with specified prefix for RIPng process 1. <Sysname> display ripng 1 route 1:: 64 verbose Route Flags: A - Aging, S - Suppressed, G - Garbage-collect O - Optimal, F - Flush to RIB ----------------------------------------------------------------...
Field Description Total Total number of routes learned from RIPng neighbors. enable ipsec-profile Use enable ipsec-profile to apply an IPsec profile to a RIPng process. Use undo enable ipsec-profile to remove the IPsec profile from the RIPng process. Syntax enable ipsec-profile profile-name undo enable ipsec-profile Default No IPsec profile is applied to the RIPng process.
Page 439
Views RIPng view Predefined user roles network-admin Parameters acl6-number: Specifies an ACL by its number in the range of 2000 to 3999 to filter redistributed routes. prefix-list prefix-list-name: Specifies an IPv6 prefix list by its name, a string of 1 to 63 characters, to filter redistributed routes.
filter-policy import Use filter-policy import to configure RIPng to filter received routes. Only routes not filtered can be received. Use undo filter-policy import to remove the configuration. Syntax filter-policy { acl6-number | prefix-list prefix-list-name } import undo filter-policy import Default RIPng does not filter received routes.
[Sysname-ripng-100] filter-policy 3000 import graceful-restart Use graceful-restart to enable Graceful Restart (GR) for RIPng. Use undo graceful-restart to disable RIPng GR capability. Syntax graceful-restart undo graceful-restart Default RIPng GR is disabled. Views RIPng view Predefined user roles network-admin Examples # Enable GR for RIPng process 1. <Sysname>...
allow-ibgp: Allows redistribution of IBGP routes. This keyword is available when the protocol argument is set to bgp4+. cost cost: Specifies a metric for redistributed routes, in the range of 0 to 16. The default metric is 0. route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.
Related commands max-ecmp-num preference Use preference to specify the preference for RIPng routes. Use undo preference to restore the default. Syntax preference [ route-policy route-policy-name ] value undo preference Default The preference of RIPng routes is 100. Views RIPng view Predefined user roles network-admin Parameters...
Predefined user roles network-admin Parameters process-id: Specifies a RIPng process by its ID in the range of 1 to 65535. Usage guidelines After executing the command, you are prompted to confirm the operation. Examples # Reset RIPng process 100. <Sysname> reset ripng 100 process Reset RIPng process? [Y/N]:y reset ripng statistics Use reset ripng statistics to clear statistics for a RIPng process.
Predefined user roles network-admin Parameters process-id: Specifies a RIPng process by its ID in the range of 1 to 65535. The default value is 1. vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN is specified, the RIPng process runs on the public network. Usage guidelines Before you configure global RIPng parameters, you must create a RIPng process.
Examples # Configure RIPng on VLAN-interface 100 to advertise only a default route. <Sysname> system-view [Sysname] interface vlan-interface 100 [Sysname-Vlan-interface100] ripng default-route only # Configure RIPng on VLAN-interface 101 to advertise a default route and other routes. <Sysname> system-view [Sysname] interface vlan-interface 101 [Sysname-Vlan-interface101] ripng default-route originate ripng enable Use ripng enable to enable RIPng on an interface.
Views Interface view Predefined user roles network-admin Parameters profile-name: Specifies an IPsec profile by its name, a case-sensitive string of 1 to 63 characters. Usage guidelines This command must reference an IPsec profile. For more information about IPsec profiles, see Security Configuration Guide.
Syntax ripng metricout value undo ripng metricout Default The additional metric of outbound routes is 1. Views Interface view Predefined user roles network-admin Parameters value: Adds an additional metric to outbound routes, in the range of 1 to 16. Examples # Configure RIPng on VLAN-interface 100 to add a metric of 12 to outbound routes.
Use undo ripng split-horizon to disable the split horizon function. Syntax ripng split-horizon undo ripng split-horizon Default The split horizon function is enabled. Views Interface view Predefined user roles network-admin Usage guidelines The split horizon function prevents routing loops. If you want to disable this function, make sure the operation is indispensable.
Usage guidelines Networks on the summary network will not be advertised. The cost of the summary route is the lowest cost among summarized routes. Examples # Assign an IPv6 address with the 64-bit prefix to VLAN-interface 100 and configure a summary with the 35-bit prefix length.
Page 451
16. If no update is announced for that route before the garbage-collect timer expires, RIPng deletes the route from the routing table. HP recommends not changing the default values of these timers. The timer lengths must be kept consistent on all routers in the network.
OSPFv3 commands abr-summary (OSPFv3 area view) Use abr-summary to configure route summarization on an area border router (ABR). Use undo abr-summary to remove the configuration. Syntax abr-summary ipv6-address prefix-length [ not-advertise ] [ cost value ] undo abr-summary ipv6-address prefix-length Default No route summarization is configured on an ABR.
Syntax area area-id undo area area-id Default No OSPFv3 area is created. Views OSPFv3 view Predefined user roles network-admin Parameters area-id: Specifies an area by its ID, an IPv4 address or a decimal integer in the range of 0 to 4294967295 that is changed to an IPv4 address by the system.
cost cost: Specifies the cost of the summary route, in the range of 1 to 16777214. If you do not specify this option, the summary route uses the largest cost among the summarized routes. If the summarized routes are Type-2 external routes described in Type-5 LSAs translated from Type-7 LSAs, the summary route uses the largest cost among the summarized routes plus 1.
Parameters value: Specifies the bandwidth reference value for link cost calculation, in the range of 1 to 2147483648 Mbps. Usage guidelines You can configure an OSPFv3 cost for an interface with one of the following methods: • Configure the cost value in interface view. Configure a bandwidth reference value.
Examples # Configure the tag for redistributed routes as 2. <Sysname> system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] default tag 2 Related commands default-route-advertise (OSPFv3 view) • import-route • route-tag (MPLS Command Reference) • default-cost (OSPFv3 area view) Use default-cost to configure a cost for the default route advertised to the stub area or NSSA area. Use undo default-cost to restore the default.
default-route-advertise (OSPFv3 view) Use default-route-advertise to redistribute a default route into the OSPFv3 routing domain. Use undo default-route-advertise to restore the default. Syntax default-route-advertise [ [ always | permit-calculate-other ] | cost cost | route-policy route-policy-name | tag tag | type type ] * undo default-route-advertise Default No default route is redistributed into the OSPFv3 routing domain.
<Sysname> system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] default-route-advertise always Related commands import-route (OSPFv3 view) display ospfv3 Use display ospfv3 to display OSPFv3 process information. Syntax display ospfv3 [ process-id ] [ verbose ] Views Any view Predefined user roles network-admin network-operator Parameters process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535.
Page 459
LSA generation interval: 5 LSA arrival interval: 1000 Transmit pacing: Interval: 20 Count: 3 Default ASE parameters: Tag: 1 Route preference: 10 ASE route preference: 150 SPF calculation count: 0 External LSA count: 0 LSA originated count: 0 LSA received count: 0 Area count: 2 Stub area Count: 0 NSSA area Count: 1...
Page 460
Area flag: Normal SPF scheduled count: 0 ExChange/Loading neighbors: 0 LSA count: 0 Up interfaces: 1 MTU: 1500 Default cost: 1 Process reset state: N/A Current reset type: N/A Reset prepare message replied: -/-/-/- Reset process message replied: -/-/-/- Reset phase of module: M-N/A, P-N/A, S-N/A, C-N/A, R-N/A Area: 0.0.0.3 Area flag: NSSA...
Page 461
Field Description Indicates whether the OSPFv3 process supports PE or multiple VPN instances: • Multi-VPN-Instance: Disabled—The process does not support multiple VPN instances. Multi-VPN-Instance • Multi-VPN-Instance: Enabled—The process supports multiple VPN instances. • PE Router, Multi-VPN-Instance: Enabled—The local device is a PE. Indicates whether the check is enabled for the DN bit in DN-bit check OSPFv3 LSAs of the OSPFv3 process.
Page 462
Field Description Route calculation trigger type: • Full—Calculation of all routes is triggered. • Area topology change—Topology change in an area. • Intra router change—Incremental intra-area route change. • ASBR change—Incremental ASBR route change. • Full IP prefix—Calculation of all IP prefixes is triggered.
Page 463
Field Description Current route calculation phase: • Calculation area topology—Calculating area topology. • Calculation router—Calculating routes on routers. • Calculation intra AS—Calculating intra-AS routes. Current calculation phase • Calculation ASBR—Calculating routes on ASBRs. • Calculation inter AS—Calculating AS-external routes. • Calculation end—Ending phase of calculation.
Field Description Reset phase of each module: • LSDB synchronization (S) module: N/A—Not reset. Delete ASE—Delete all ASE LSAs. Delete area LSA—Delete LSAs from an area. Delete area IF—Delete interfaces from an area. • Route calculation (C) module: N/A—Not reset. Reset phase of module Delete topology—Delete area topology.
Examples # Display information about all the routes to the OSPFv3 ABR and ASBR. <Sysname> display ospfv3 abr-asbr OSPFv3 Process 1 with Router ID 1.1.1.1 Destination :1.1.1.2 Rtr Type : ABR Area :0.0.0.0 Path Type: Intra NextHop :FE80:1:1::1 Cost Destination :1.1.1.3 Rtr Type : ASBR Area :0.0.0.0...
Page 466
ipv6-address prefix-length: Specifies an IPv6 address. The ipv6-address argument specifies an IPv6 prefix. The prefix-length argument specifies a prefix length in the range of 0 to 128. If you do not specify this argument, the command displays information about all summary routes on the ABR. verbose: Displays detailed ABR summary route information.
1000:4:11:3::/96 Table 108 Command output Field Description Destination Destination address of a summarized route. Metric Metric of a summarized route. display ospfv3 asbr-summary Use display ospfv3 asbr-summary to display ASBR summary route information. NOTE: This command is available in Release 2311P04 and later versions. Syntax display ospfv3 [ process-id ] asbr-summary [ ipv6-address prefix-length ] [ verbose ] Views...
Page 468
Routes count: 2 Table 109 Command output Field Description Total summary addresses Total number of summary routes. Prefix Prefix and prefix length of the summary route. Advertisement status of the summary route: • Advertise—The summary route has been advertised. Status •...
Field Description Protocol Routing protocol from which the route was redistributed. Process of the routing protocol from which the route was Process redistributed. Type of the summarized route. Type Metric Metric of the summarized route. display ospfv3 graceful-restart Use display ospfv3 graceful-restart to display GR information. Syntax display ospfv3 [ process-id ] graceful-restart [ verbose ] Views...
Page 470
Table 111 Command output Field Description The GR status of OSPFv3 process 1 with router ID 3.3.3.3 OSPFv3 Process 1 with Router ID 3.3.3.3 is displayed. Indicates whether OSPFv3 GR is enabled: • Graceful-restart capability Enabled. • Disabled. GR modes that the process supports (displayed only when GR is enabled): •...
Page 471
Field Description Last exit reason: • Restarter—Reason that the restarter exited most recently: None. Completed—GR is completed. Interval timer is fired—The GR timer expires. Interface state change—An interface state change occurs. Received 1-way hello—The device receives 1-way hello packets from the neighbor. Reset neighbor—The neighbor is reset.
Page 472
Restarter state: Normal State: P-2-P Type: Virtual Interface: 6696 (Vlan-interface200), Instance-ID: 0 Local IPv6 address: 200:1:FFFF::1 Remote IPv6 address: 201:FFFF::2 Transit area: 0.0.0.1 Last exit reason: Restarter: None Helper : None Neighbor GR state Last helper exit reason 100.1.1.1 Normal None Area: 0.0.0.1 Area flag: Transit...
Page 473
Area up interface count: 0 Table 112 Command output Field Description Area Area ID. Type of the area: • Normal. • Transit. • Stub. Area flag • StubNoSummary—Totally stub area. • NSSA. • NSSANoSummary—Totally NSSA area. • NSSANoSummaryNoImportRoute—Totally NSSA area with the no-import-route keyword configured. State of the translator that translates Type-7 LSAs to Type-5 LSAs: •...
Field Description Source Source address of the sham link. Destination Destination address of the sham link. display ospfv3 interface Use display ospfv3 interface to display OSPFv3 interface information. Syntax display ospfv3 [ process-id ] interface [ interface-type interface-number | verbose ] Views Any view Predefined user roles...
Page 475
IPsec profile name: profile001 Exchanging/Loading neighbors: 0 Wait timer: Off, LsAck timer: Off Prefix-suppression is enabled Table 113 Command output Field Description Area Area ID that the interface belongs to. Interface ID Interface ID. Instance ID Instance ID. IPv6 prefixes IPv6 prefix.
display ospfv3 lsdb Use display ospfv3 lsdb to display the OSPFv3 LSDB. Syntax display ospfv3 [ process-id ] lsdb [ { external | grace | inter-prefix | inter-router | intra-prefix | link | network | nssa | router | unknown [ type ] } [ link-state-id ] [ originate-router router-id | self-originate ] | statistics | total | verbose ] Views Any view...
Page 477
OSPFv3 Process 1 with Router ID 1.1.1.1 Link-LSA (Interface Vlan-interface1) ------------------------------------------------------------------------- Link State ID Origin Router SeqNum CkSum Prefix 0.15.0.8 2.2.2.2 0691 0x80000041 0x8315 0.0.0.3 1.1.1.1 0623 0x80000001 0x0fee Router-LSA (Area 0.0.0.1) ------------------------------------------------------------------------- Link State ID Origin Router SeqNum CkSum Link 0.0.0.0 1.1.1.1...
Page 478
LS Seq Number : 0x80000041 Checksum : 0x8315 Length : 56 Priority Options : 0x000013 (-|R|-|-|E|V6) Link-Local Address: fe80::200:5eff:fe00:100 Number of Prefixes: 1 Prefix : 1001::/64 Prefix Options: 0 (-|-|-|-) Table 115 Command output Field Description LS age Age of LSA. LS Type Type of LSA.
Page 479
Field Description Network Number of Type-2 LSAs. IntePre Number of Type-3 LSAs. InteRou Number of Type-4 LSAs. IntraPre Number of Type-9 LSAs. NSSA Number of Type-7 LSAs. Link Total number of Type-8 LSAs. Grace Number of Type-11 LSAs. Total number of Type-5 LSAs. # Display detailed OSPFv3 LSDB information.
Table 117 Command output Field Description SendCnt Number of interfaces to send the LSA. RxmtCnt Number of LSAs in the link state retransmission list. LSA status: • Normal. • Delayed. • Maxage routed—The LSA has reached its Status maximum age. •...
Table 118 Command output Field Description Nexthop Next hop address. Interface Output interface. RefCount Reference count (routes that reference the next hop). Status Next hop status: valid or invalid. NbrId Neighbor router ID. NbrIntID Neighbor interface ID. display ospfv3 non-stop-routing Use display ospfv3 non-stop-routing to display OSPFv3 NSR information.
Page 483
Router ID Pri State Dead-Time InstID Interface 2.2.2.2 Init/ - 00:00:36 Vlan1 Table 120 Command output Field Description Router ID Router ID of a neighbor. Priority of neighbor router. State Neighbor state. Dead-Time Dead time remained. Inst ID Instance ID. Interface Interface connected to the neighbor.
Page 484
Field Description LSA options: • DC—The originating router supports OSPFv3 over on-demand circuits. • R—Indicates whether the originating router is an active router. • N—Indicates whether the originating router supports NSSA Options LSAs. • x—Reserved. • E—Indicates whether the originating router can receive AS External LSAs.
Field Description This state is available only in an NBMA network. In this state, the OSPFv3 router has not Attempt received any information from a neighbor for a period but can send Hello packets at a longer interval to keep neighbor relationship. In this state, the device received a Hello packet from the neighbor but the packet contains Init no Router ID of the neighbor.
area area-id: Specifies an area by its ID, an IPv4 address or a decimal integer in the range of 0 to 4294967295 that is translated into an IPv4 address by the system. interface-type interface-number: Specifies an interface by its type and number. neighbor-id: Specifies a neighbor's router ID.
Page 488
Views Any view Predefined user roles network-admin network-operator Parameters process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays the OSPFv3 route information for all processes. ipv6-address prefix-length: Specifies an IPv6 address.
Field Description Cost Route cost value. Nexthop Next hop address. Interface Output interface. AdvRouter Advertising router. Area Area ID. Tag of external routes. Preference Route preference. Total Total number of routes. Intra area Number of intra-area routes. Inter area Number of inter-area routes. Number of Type-5 external routes.
Page 490
I-Node or Link is init D-Node or Link is to be deleted P-Neighbor is parent A-Node is in candidate list C-Neighbor is child H-Nexthop changed N-Link is a new path V-Link is involved Area: 0.0.0.0 Shortest Path Tree SPFNode Type Flag SPFLink Type...
Page 491
I-Node or Link is init D-Node or Link is to be deleted P-Neighbor is parent A-Node is in candidate list C-Neighbor is child H-Nexthop changed N-Link is a new path V-Link is involved Area: 0.0.0.0 Shortest Path Tree >SPFNode[0] AdvID : 1.1.1.1 LsID : 0.0.0.0...
Field Description SPFLink count Number of SPF links. IntID Interface ID. Link type: • RT2RT—Router to router. LinkType • NET2RT—Network to router. • RT2NET—Router to network. LinkCost Link cost. LinkNewCost New link cost. Link flag: • I—The link is in initialization state. •...
Page 493
OSPFv3 Process 1 with Router ID 1.1.1.1 Packet Statistics ---------------------------------------------------------- Type Recv Send Hello 1746 1284 DB Description Ls Req Ls Upd 1553 Ls Ack Local Originated LSAs Statistics ---------------------------------------------------------- Type Count Router-LSA Network-LSA Inter-Area-Prefix-LSA Inter-Area-Router-LSA AS-external-LSA NSSA-LSA Link-LSA Intra-Area-Prefix-LSA Grace-LSA Unknown-LSA Total...
Page 494
Field Description Inter-Area-Prefix-LSA Number of Type-3 LSAs. Inter-Area-Router-LSA Number of Type-4 LSAs. AS-external-LSA Number of Type-5 LSAs. NSSA-LSA Number of Type-7 LSAs. Link-LSA Number of Type-8 LSAs. Intra-Area-Prefix-LSA Number of Type-9 LSAs. Grace-LSA Number of Type-11 LSAs. Unknown-LSA Number of Unknown-LSAs. Total Total number.
Field Description Bad version Packets with wrong version. Bad checksum Packets with wrong checksum. Unknown neighbor Packets received from unknown neighbors. Bad area ID Packets with invalid area ID. Bad packet Packets illegal. Packet dest error Packets with wrong destination addresses. Inactive area packet Packets received in inactive areas.
network-operator Parameters process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays the OSPFv3 virtual link information for all OSPFv3 processes. Examples # Display OSPFv3 virtual link information. <Sysname>...
Default No IPsec profile is applied to an area. Views OSPFv3 area view Predefined user roles network-admin Parameters profile-name: Specifies an IPsec profile by its name, a case-insensitive string of 1 to 63 characters. Usage guidelines To protect routing information and prevent attacks, OSPFv3 can authenticate protocol packets by using an IPsec profile.
import: Filters Inter-Area-Prefix-LSAs advertised into the local area. Usage guidelines This command is available only on an ABR. Examples # Use IPv6 prefix list my-prefix-list to filter inbound Inter-Area-Prefix-LSAs. Use IPv6 ACL 2000 to filter outbound Inter-Area-Prefix-LSAs in OSPFv3 Area 1. <Sysname>...
To deny/permit a route with the specified destination and prefix, use rule [ rule-id ] { deny | permit } • ipv6 source sour sour-prefix destination dest dest-prefix. The source keyword specifies the destination address of a route, and the destination keyword specifies the prefix of the route.
gateway prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter routes by next hop. If you do not specify this option, the command does not filter routes by next hop. prefix-list prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter routes by destination.
Default The GR capability for OSPFv3 is disabled. Views OSPFv3 view Predefined user roles network-admin Parameters global: Enables global GR. In global GR mode, a GR process can be completed only when all GR helpers exist. A GR process fails if a GR helper fails (for example, the interface connected to the GR helper goes down).
undo graceful-restart helper enable Default The GR helper capability for OSPFv3 is enabled. Views OSPFv3 view Predefined user roles network-admin Parameters planned-only: Enables only planned GR for the GR helper. If you do not specify this keyword, the command enables both planned GR and unplanned GR for the GR helper. This keyword is available in Release 231 1P04 and later versions.
Examples # Enable strict LSA checking for the GR helper in OSPFv3 process 1. <Sysname> system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] graceful-restart helper strict-lsa-checking Related commands graceful-restart helper enable graceful-restart interval Use graceful-restart interval to configure the GR restart interval. Use undo graceful-restart interval to restore the default. Syntax graceful-restart interval interval-value undo graceful-restart interval...
Page 504
Syntax import-route protocol [ process-id | all-processes | allow-ibgp ] [ cost cost | nssa-only | route-policy route-policy-name | tag tag | type type ] * undo import-route protocol [ process-id | all-processes ] Default OSPFv3 route redistribution is disabled. Views OSPFv3 view Predefined user roles...
The import-route bgp4+ command redistributes only EBGP routes. The import-route bgp4+ allow-ibgp command redistributes both EBGP and IBGP routes, and might cause routing loops. Therefore, use it with caution. The import-route nssa-only command redistributes AS-external routes in Type-7 LSAs only into the NSSA area.
lsa-generation-interval Use lsa-generation-interval to configure the OSPFv3 LSA generation interval. Use undo lsa-generation-interval to restore the default. Syntax lsa-generation-interval maximum-interval [ minimum-interval [ incremental-interval ] ] undo lsa-generation-interval Default The maximum interval is 5 seconds, the minimum interval is 0 milliseconds, and the incremental interval is 0 milliseconds.
Syntax maximum load-balancing maximum undo maximum load-balancing Views OSPFv3 view Predefined user roles network-admin Parameters maximum: Specifies the maximum number of ECMP routes. When the maximum number is 1, OSPFv3 does not perform load balancing. Usage guidelines The default maximum number of OSPFv3 ECMP routes equals the maximum number of ECMP routes supported by the system.
Predefined user roles network-admin Usage guidelines OSPFv3 NSR and OSPFv3 GR are mutually exclusive. Do not configure the non-stop-routing command and the graceful-restart enable command at the same time. Examples # Enable NSR for OSPFv3 process 100. <Sysname> system-view [Sysname] ospfv3 100 [Sysname-ospfv3-100] non-stop-routing nssa Use nssa to configure the current area as an NSSA area.
route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters. When the specified routing policy is matched, the command distributes a default route in a Type-7 LSA into the OSPFv3 routing domain. The routing policy modifies values in the Type-7 LSA. tag tag: Specifies a tag for marking the default route, in the range of 0 to 4294967295.
Views System view Predefined user roles network-admin Parameters process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. The default process ID is vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.
ospfv3 bfd enable Use ospfv3 bfd enable to enable BFD on an OSPFv3 interface. Use undo ospfv3 bfd enable to disable BFD on an OSPFv3 interface. Syntax ospfv3 bfd enable [ instance instance-id ] undo ospfv3 bfd enable [ instance instance-id ] Default BFD for OSPFv3 is disabled.
Parameters value: Specifies an OSPFv3 cost in the range of 0 to 65535 for a loopback interface, and in the range of 1 to 65535 for other interfaces. instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0. Examples # Specifies the OSPFv3 cost for VLAN-interface 10 in instance 1 as 33.
undo ospfv3 ipsec-profile [ instance instance-id ] Default No IPsec profile is applied to an OSPFv3 interface. Views Interface view Predefined user roles network-admin Parameters profile-name: Specifies an IPsec profile by its name, a case-sensitive string of 1 to 63 characters. instance-id: Specifies an ID of the instance of the interface, in the range of 0 to 255.
Examples # Bind MIB to OSPFv3 process 100. <Sysname> system-view [Sysname] ospfv3 mib-binding 100 ospfv3 mtu-ignore Use ospfv3 mtu-ignore to configure an interface to ignore MTU check during DD packet exchange. Use undo ospfv3 mtu-ignore to restore the default. Syntax ospfv3 mtu-ignore [ instance instance-id ] undo ospfv3 mtu-ignore [ instance instance-id ] Default...
For PPP, LAPB, HDLC, and POS, the default network type is P2P. • Views Interface view Predefined user roles network-admin Parameters broadcast: Specifies the network type as broadcast. nbma: Specifies the network type as NBMA. p2mp: Specifies the network type as P2MP. unicast: Specifies the P2MP interface to unicast OSPFv3 packets.
Default No link-local address is specified for the neighbor interface. Views Interface view Predefined user roles network-admin Parameters ipv6-address: Specifies the link-local IPv6 address of the neighbor. cost value: Specifies the cost of the neighbor, in the range of 1 to 65535. dr-priority dr-priority: Specifies the DR priority of the neighbor, in the range of 0 to 255.
instance instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0. Usage guidelines To disable prefix suppression for an interface associated with an OSPFv3 process that has been enabled with prefix suppression, use the ospfv3 prefix-suppression disable command on that interface. Examples # Enable prefix suppression for VLAN-interface 10.
ospfv3 timer hello Use ospfv3 timer hello to configure the hello interval for an interface. Use undo ospfv3 timer hello to restore the default. Syntax ospfv3 timer hello seconds [ instance instance-id ] undo ospfv3 timer hello [ instance instance-id ] Default The hello interval is 10 seconds for P2P and broadcast interfaces, and is 30 seconds for P2MP or NBMA interfaces.
Predefined user roles network-admin Parameters seconds: Specifies the poll interval in the range of 1 to 65535 seconds. instance-id: Specifies an interface instance by its ID in the range of 0 to 255. The default is 0. Usage guidelines When an NBMA interface finds its neighbor is down, it sends hello packets at the poll interval. The poll interval must be at least four times the hello interval.
Examples # Configure the LSA retransmission interval on VLAN-interface 10 in instance 1 as 12 seconds. <Sysname> system-view [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] ospfv3 timer retransmit 12 instance 1 ospfv3 trans-delay Use ospfv3 trans-delay to configure the transmission delay for an interface. Use undo ospfv3 trans-delay to restore the default.
Default The preference for OSPFv3 internal routes is 10, and that for OSPFv3 external routes is 150. Views OSPFv3 view Predefined user roles network-admin Parameters ase: Sets a preference to OSPFv3 external routes. If you do not specify this keyword, the command sets a preference for OSPFv3 internal routes.
Usage guidelines To disable an OSPFv3 process from advertising the prefixes of loopback and passive interfaces, configure prefix suppression on the interfaces by using the ospfv3 prefix-suppression command. When prefix suppression is enabled: OSPFv3 does not advertise the prefixes of suppressed interfaces in Type-8 LSAs. •...
Examples # Restart all OSPFv3 processes. <Sysname> reset ospfv3 process Reset OSPFv3 process? [Y/N]:y reset ospfv3 redistribution Use reset ospfv3 redistribution to restart route redistribution. NOTE: This command is available in Release 2311P04 and later versions. Syntax reset ospfv3 [ process-id ] redistribution Views User view Predefined user roles...
Examples # Clear statistics for all OSPFv3 processes. <Sysname> reset ospfv3 statistics router-id Use router-id to configure a router ID. Use undo router-id to remove the configured router ID. Syntax router-id router-id undo router-id Default No router ID is configured. Views OSPFv3 view Predefined user roles...
Views OSPFv3 view Predefined user roles network-admin Parameters context-name: Specifies a context name, a case-sensitive string of 1 to 32 characters. Usage guidelines The standard OSPFv3 MIB provides only single-instance MIB objects. For SNMP to correctly identify OSPFv3 management information in the standard OSPFv3 MIB, you must configure a unique context name for OSPFv3.
[Sysname-ospfv3-100] snmp trap rate-limit interval 5 count 10 silent-interface(OSPFv3 view) Use silent-interface to disable the specified interface from receiving and sending OSPFv3 packets. Use undo silent-interface to restore the default. Syntax silent-interface { interface-type interface-number | all } undo silent-interface { interface-type interface-number | all } Default An interface can receive and send OSPFv3 packets.
Default The maximum SPF calculation interval is 5 seconds, the minimum interval is 50 milliseconds, and the incremental interval is 200 milliseconds. Views OSPFv3 view Predefined user roles network-admin Parameters maximum-interval: Specifies the maximum OSPFv3 route calculation interval in the range of 1 to 60 seconds.
Predefined user roles network-admin Parameters default-route-advertise-always: Enables the ABR to always advertise the default route. no-summary: Enables the ABR of a stub area to advertise only a default route in an Inter-Area-Prefix-LSA into the stub area. No AS-external-LSA, Inter-Area-Prefix-LSA, or other Inter-Area-Router-LSA is advertised in the area.
max-metric: Advertises the locally generated Type- 1 LSAs with the maximum cost of 65535. external-lsa max-metric-value: Specifies a cost for external LSAs, in the range of 1 to 16777215. The default is 1671 1680. summary-lsa max-metric-value: Specifies a cost for Type-3 and Type-4 LSAs, in the range of 1 to 16777215.
Parameters interval interval: Specifies an interval at which an interface sends LSU packets, in the range of 10 to 1000 milliseconds. If the router has multiple OSPFv3 interfaces, increase this interval to reduce the total number of LSU packets sent by the router every second. count count: Specifies the maximum number of LSU packets sent by an interface at each interval, in the range of 1 to 200.
Page 532
Usage guidelines You can configure a virtual link to maintain connectivity between a non-backbone area and the backbone, or in the backbone itself. A virtual link is similar to an interface with OSPFv3 enabled. You can configure parameters such as hello, dead, retransmit and trans-delay for the virtual link. Both ends of a virtual link must be ABRs that are configured with the vlink-peer command.
IPv6 IS-IS commands IPv6 IS-IS supports all the features of IPv4 IS-IS except that it advertises IPv6 routing information. This chapter describes only IPv6 IS-IS exclusive commands. For other IS-IS configuration commands, see "IS-IS commands." display isis redistribute ipv6 Use display isis redistribute ipv6 to display information about redistributed IPv6 IS-IS routes. Syntax display isis redistribute ipv6 [ ipv6-address mask-length ] [ level-1 | level-2 ] [ process-id ] Views...
IntCost State : Active Table 131 Command output Field Description Route information for IS-IS(1) Redistributed route information for IS-IS process 1. Level-1 IPv6 Redistribute Table Redistributed route information of IS-IS Level-1. Level-2 IPv6 Redistribute Table Redistributed route information of IS-IS Level-2. Redistributed route types: •...
Page 535
Examples # Display IPv6 IS-IS route information. <Sysname> display isis route ipv6 Route information for IS-IS(1) ------------------------------ Level-1 IPv6 Forwarding Table ----------------------------- Destination: 2001:1:: PrefixLen: 64 Flag : R/L/- Cost : 20 Next Hop : FE80::200:5EFF:FE64:8905 Interface: Vlan1 Destination: 2001:2:: PrefixLen: 64 Flag : D/L/-...
Page 536
# Display detailed IPv6 IS-IS routing information. <Sysname> display isis route ipv6 verbose Route information for IS-IS(1) ------------------------------ Level-1 IPv6 Forwarding Table ----------------------------- IPV6 Dest : 2001:1::/64 Cost : 20 Flag : R/L/- Admin Tag Src Count : 1 NextHop Interface : ExitIndex : FE80::200:5EFF:FE64:8905...
Field Description NextHopCnt Next hop count. Next Hop Primary next hop of the node or the link advertising source. Interface Primary output interface of the node or the link advertising source. BkNextHop Backup next hop. BkInterface Backup output interface. Neighbor ID of the primary next hop neighbor.
Predefined user roles network-admin Parameters level-1: Generates a default route for Level- 1 . level-1-2: Generates a default route for Level- 1 -2. level-2: Generates a default route for Level-2. route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.
The source keyword specifies the destination address of a route and the destination keyword specifies the prefix of the route. The specified prefix must be valid. Otherwise, the configuration does not take effect. Examples # Use IPv6 ACL 2006 to filter redistributed routes. <Sysname>...
Usage guidelines This command filters received routes. Only routes that have not been filtered can be added into the routing table. To reference an advanced ACL (with a number from 3000 to 3999) in the command or in the routing policy, configure the ACL using one of the following methods: To deny/permit a route with the specified destination, use the rule [ rule-id ] { deny | permit } ipv6 •...
Predefined user roles network-admin Parameters protocol: Redistributes routes from the specified routing protocol, which can be direct, static, ripng, isisv6, bgp4+, or ospfv3. process-id: Specifies a process by its ID in the range of 1 to 65535. It is available only when the protocol is ripng, isisv6, or ospfv3.
Views IS-IS view Predefined user roles network-admin Parameters filter-policy: Specifies a filtering policy. acl6-number: Specifies an IPv6 ACL by its number in the range of 2000 to 3999. prefix-list prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters.
prefix-list prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters. route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters. tag: Specifies an administrative tag for marking redistributed routes, in the range of 1 to 4294967295. Usage guidelines This command enables a Level- 1 -2 router to redistribute Level-2 routes to the Level- 1 and Level- 1 -2 routers in the local area.
Use undo ipv6 maximum load-balancing to restore the default. Syntax ipv6 maximum load-balancing number undo ipv6 maximum load-balancing Views IS-IS view Predefined user roles network-admin Parameters number: Specifies the maximum number of ECMP routes. Usage guidelines The default maximum number of IPv6 IS-IS ECMP routes equals the maximum number of ECMP routes supported by the system.
Usage guidelines If multiple dynamic routing protocols find routes to the same destination, the route found by the protocol with the highest preference is selected as the optimal route. Examples # Configure the preference for IPv6 IS-IS as 20. <Sysname> system-view [Sysname] isis 1 [Sysname-isis-1] ipv6 preference 20 ipv6 priority...
display ipv6 policy-based-route Use display ipv6 policy-based-route to display IPv6 PBR policy information. Syntax display ipv6 policy-based-route [ policy policy-name ] Views Any view Predefined user roles network-admin network-operator Parameters policy policy-name: Specifies a policy by its name, a case-sensitive string of 1 to 19 characters. Usage guidelines If no policy is specified, this command displays information about all policies.
Page 557
Predefined user roles network-admin network-operator Parameters interface-type interface-number: Specifies an interface by its type and number. slot slot-number: Displays the IPv6 PBR configuration and statistics on an IRF member device. The slot-number is the ID of the IRF member device. Examples # Display IPv6 PBR configuration and statistics on VLAN-interface 1.
Table 136 Command output Field Description IPv6 PBR configuration and statistics on Vlan-interface1. failed indicates the policy (including all its nodes) failed to be assigned Policy based routing information for to the driver. interface Vlan-interface1(failed) For a global interface (with only one-dimensional interface number, for example, VLAN-interface 1), failed can be displayed only when you specify the slot slot-number option for the command.
Parameters slot slot-number: Displays the IPv6 PBR configuration and statistics on an IRF member device. The slot-number argument is the ID of the IRF member device. Examples # Display IPv6 local PBR configuration and statistics. <Sysname> display ipv6 policy-based-route local Policy based routing information for local: Policy name: aaa node 0 deny:...
Predefined user roles network-admin network-operator Examples # Display IPv6 PBR configuration. <Sysname> display ipv6 policy-based-route setup Policy Name Interface Name pr01 Vlan-interface 1 Table 138 Command output Field Description policy Name Policy name. Interface Name Interface where the policy is applied. Related commands ipv6 policy-based-route (interface view) if-match acl...
# Configure Node 10 of policy aa to permit the packets matching ACL aaa. <Sysname> system-view [Sysname] ipv6 policy-based-route aa permit node 10 [Sysname-pbr6-aa-10] if-match acl name aaa ipv6 local policy-based-route Use ipv6 local policy-based-route to configure IPv6 local PBR based on a specified policy. Use undo ipv6 local policy-based-route to remove the configuration.
undo ipv6 policy-based-route Default No IPv6 is applied to an interface. Views Interface view Predefined user roles network-admin Parameters policy-name: Specifies a policy by its name, a case-sensitive string of 1 to 19 characters. The specified policy must already exist. Usage guidelines You can apply only one policy to an interface.
Parameters policy-name: Specifies a policy name, a case-sensitive string of 1 to 19 characters. deny: Specifies the match mode for the policy node as deny. permit: Specifies the match mode for the policy node as permit (default mode). node node-number: Specifies an IPv6 policy node by its number in the range of 0 to 255. A smaller number has a higher priority.
display ipv6 policy-based-route local • Routing policy commands Common routing policy commands apply as-path Use apply as-path to set the AS_PATH attribute for BGP routes. Use undo apply as-path to restore the default. Syntax apply as-path as-number&<1-32> [ replace ] undo apply as-path Default No AS_PATH attribute is set.
Use undo apply comm-list to restore the default. Syntax apply comm-list { comm-list-number | comm-list-name } delete undo apply comm-list Default No COMMUNITY attributes are deleted from BGP routes. Views Routing policy node view Predefined user roles network-admin Parameters comm-list-number: Specifies a basic community list by its number in the range of 1 to 99 or an advanced community list by its number in the range of 100 to 199.
Parameters none: Removes the COMMUNITY attributes of BGP routes. community-number&<1-32>: Specifies a community sequence number in the range of 1 to 4294967295. &<1-32> indicates that the argument before it can be entered up to 32 times. aa:nn&<1-32>: Specifies a community number; both aa and nn are in the range of 0 to 65535. &<1-32> indicates that the argument before it can be entered up to 32 times.
Parameters +: Increases a cost value. -: Decreases a cost value. value: Specifies a cost in the range of 0 to 4294967295. Examples # Configure node 10 in permit mode for routing policy policy1 to set a cost of 120 for OSPF external routes.
<Sysname> system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match tag 8 [Sysname-route-policy-policy1-10] apply cost-type internal apply extcommunity Use apply extcommunity to apply the specified extended community attribute. Use undo apply extcommunity to restore the default. Syntax apply extcommunity { rt route-target }&<1-32> [ additive ] undo apply extcommunity Default No extended community attribute is set for BGP routes.
<Sysname> system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match as-path 1 [Sysname-route-policy-policy1-10] apply local-preference 130 apply mpls-label Use apply mpls-label to set MPLS labels for routes. Use undo apply mpls-label to restore the default. Syntax apply mpls-label undo apply mpls-label Default No MPLS label is set for routes.
Parameters egp as-number: Sets the ORIGIN attribute to EGP. The as-number argument specifies an AS number in the range 1 to 4294967295 for EGP routes. igp: Sets the ORIGIN attribute to IGP. incomplete: Sets the ORIGIN attribute to UNKNOWN. Examples # Configure node 10 in permit mode for routing policy policy1 to set the ORIGIN attribute for routes matching AS path list 1 to IGP.
apply preferred-value Use apply preferred-value to set a preferred value for BGP routes. Use undo apply preferred-value to restore the default. Syntax apply preferred-value preferred-value undo apply preferred-value Default No preferred value is set for BGP routes. Views Routing policy node view Predefined user roles network-admin Parameters...
medium: Sets the medium prefix priority for routes. Examples # Configure node 10 in permit mode for routing policy policy1 to set prefix priority critical for routes matching prefix list abc. <Sysname> system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match ip address prefix-list abc [Sysname-route-policy-policy1-10] apply prefix-priority critical apply tag Use apply tag to set a specified tag for IGP routes.
Views Routing policy node view Predefined user roles network-admin Parameters node-number: Specifies the routing policy node number in the range of 0 to 65535. Usage guidelines The specified next node must have a larger number than the current node. Example # Specify the next node 20 for node 10 of routing policy policy1.
display ip community-list Use display ip community-list to display BGP community list information. Syntax display ip community-list [ basic-community-list-number | adv-community-list-number | name comm-list-name ] Views Any view Predefined user roles network-admin network-operator Parameters basic-community-list-number: Specifies a basic community list by its number in the range of 1 to 99. adv-community-list-number: Specifies an advanced community list by its number in the range of 100 to 199.
Views Any view Predefined user roles network-admin network-operator Parameters ext-comm-list-number: Specifies an extended community list by its number in the range of 1 to 199. Without this argument, the command displays information about all BGP extended community lists. Examples # Display information about BGP extended community list 1. <Sysname>...
permit : 1 if-match cost 10 continue: next node 11 apply comm-list a delete Table 142 Command output Field Description Route-policy Routing policy name. Match mode: • permit permit. • deny. if-match Match criterion. continue Specify the next node to be matched. apply Action.
ip as-path-acl • if-match community Use if-match community to match BGP routes whose COMMUNITY attribute matches a specified community list. Use undo if-match community to remove the configuration. Syntax if-match community { { basic-community-list-number | name comm-list-name } [ whole-match ] | adv-community-list-number }&<1-32>...
Syntax if-match cost value undo if-match cost Default No cost match criterion is configured. Views Routing policy node view Predefined user roles network-admin Parameters value: Specifies a cost in the range of 0 to 4294967295. Examples # Configure node 10 in permit mode for routing policy policy1 to permit routes with a cost of 8. <Sysname>...
[Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match extcommunity 100 150 Related commands apply extcommunity • ip extcommunity-list • if-match interface Use if-match interface to match routes having the specified output interface. Use undo if-match interface to remove the configuration. Syntax if-match interface { interface-type interface-number }&<1- 1 6>...
Default No local preference match criterion is configured. Views Routing policy node view Predefined user roles network-admin Parameters preference: Specifies a local preference in the range of 0 to 4294967295. Examples # Create node 10 in permit mode for routing policy policy1 to match BGP routes having a local preference of 2.
Predefined user roles network-admin Parameters value: Specifies a tag in the range of 0 to 4294967295. Examples # Configure node 10 in permit mode for routing policy policy1 to match IGP routes having a tag of 8. <Sysname> system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match tag 8 ip as-path Use ip as-path to create an AS path list.
display ip as-path • • if-match ip as-path ip community-list Use ip community-list to configure a community list entry. Use undo ip community-list to remove a community list or entry. Syntax ip community-list { basic-comm-list-num | basic basic-comm-list-name } { deny | permit } [ community-number&<1-32>...
aa:nn&<1-32>: Specifies a community number. Both aa and nn are in the range of 0 to 65535. &<1-32> indicates that the argument before it can be entered up to 32 times. internet: Specifies the INTERNET community attribute. Routes with this attribute can be advertised to all BGP peers.
deny: Specifies the match mode for the extended community list as deny. permit: Specifies the match mode for the extended community list as permit. { rt route-target }&<1-32>: Specifies the RT extended community attribute, a string of 3 to 21 characters. &<1-32>...
permit: Specifies the permit match mode for the routing policy node. If a route matches all the if-match clauses of the node, it is handled by the apply clauses of the node. If not, it matches against the next node. node node-number: Specifies a number for the node, in the range of 0 to 65535.
Usage guidelines This command sets a backup link in the routing policy for FRR. Using the routing policy, a routing protocol can designate a backup link for specific routes to implement FRR. When the primary link fails, FRR immediately directs packets to the backup link to minimize interruption time.
[Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match as-path 1 [Sysname-route-policy-policy1-10] apply ip-address next-hop 193.1.1.8 display ip prefix-list Use display ip prefix-list to display IPv4 prefix list statistics. Syntax display ip prefix-list [ name prefix-list-name ] Views Any view Predefined user roles network-admin network-operator Parameters...
if-match ip Use if-match ip to match IPv4 routes whose destination, next hop, or source matches the specified IPv4 prefix list. Use undo if-match ip to remove the configuration. Syntax if-match ip { address | next-hop | route-source } { acl acl-number | prefix-list prefix-list-name } undo if-match ip { address | next-hop | route-source } [ acl | prefix-list ] Default No IPv4 prefix list match criterion is configured.
Views System view Predefined user roles network-admin Parameters prefix-list-name: Specifies a name for the IPv4 prefix list, a case-sensitive string of 1 to 63 characters. index-number: Specifies an index number for an IPv4 prefix list item, in the range of 1 to 65535. An item with a smaller number is matched first.
Views User view Predefined user roles network-admin Parameters prefix-list-name: Specifies an IP prefix list by its name, a case-sensitive string of 1 to 63 characters. Without this argument, this command clears statistics for all IPv4 prefix lists. Examples # Clear the statistics for IPv4 prefix list abc. <Sysname>...
<Sysname> system-view [Sysname] ipv6 prefix-list abc index 10 permit 100::1 64 [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match ipv6 address prefix-list abc [Sysname-route-policy-policy1-10] apply ipv6 fast-reroute backup-nexthop 1::1 apply ipv6 next-hop Use apply ipv6 next-hop to set a next hop for IPv6 routes. Use undo apply ipv6 next-hop to restore the default.
network-operator Parameters name prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters. Without this argument, this command displays statistics for all IPv6 prefix lists. Examples # Display the statistics for all IPv6 prefix lists. <Sysname>...
Predefined user roles network-admin Parameters address: Matches the destination address of IPv6 routes. next-hop: Matches the next hop of IPv6 routes. route-source: Matches the source address of IPv6 routes. acl acl6-number: Specifies an IPv6 ACL for filtering by its number in the range of 2000 to 3999 for address, and 2000 to 2999 for next-hop and route-source.
permit: Specifies the permit mode. If a route matches the item, it passes the IPv4 prefix list. If not, it matches against the next item (suppose the IPv6 prefix list has multiple items). ipv6-address prefix-length: Specifies an IPv6 prefix and prefix length. The value range for the prefix-length argument is 0 to 128.
Page 597
Syntax reset ipv6 prefix-list [ prefix-list-name ] Views User view Predefined user roles network-admin Parameters prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters. Without this argument, this command clears statistics for all IPv6 prefix lists. Examples # Clear the statistics for IPv6 prefix list abc.
Related information Documents To find related documents, browse to the Manuals page of the HP Business Support Center website: http://www.hp.com/support/manuals For related documentation, navigate to the Networking section, and select a networking category. •...
Conventions This section describes the conventions used in this documentation set. Command conventions Convention Description Boldface Bold text represents commands and keywords that you enter literally as shown. Italic Italic text represents arguments that you replace with actual values. Square brackets enclose syntax choices (keywords or arguments) that are optional. Braces enclose a set of required syntax choices separated by vertical bars, from which { x | y | ...
Page 600
Network topology icons Represents a generic network device, such as a router, switch, or firewall. Represents a routing-capable device, such as a router or Layer 3 switch. Represents a generic switch, such as a Layer 2 or Layer 3 switch, or a router that supports Layer 2 forwarding and other Layer 2 features.
Index A B C D E F G H I L M N O P R S T V W balance,267 balance as-path-neglect,269 abr-summary (OSPF area view),88 bandwidth-reference,441 abr-summary (OSPFv3 area view),439 bandwidth-reference (IS-IS view),185 address-family ipv4,262 bandwidth-reference (OSPF view),92 address-family ipv4,1 bestroute...