HP HSR6800 Routers Layer 3 - IP Routing Command Reference Part number: 5998-4507 Software version: HSR6800-CMW520-R3303P05 Document version: 6PW105-20140507
Legal and notice information © Copyright 2014 Hewlett-Packard Development Company, L.P. No part of this documentation may be reproduced or transmitted in any form or by any means without prior written consent of Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Contents Basic IP routing commands ········································································································································· 1 display ip routing-table ············································································································································ 1 display ip routing-table acl ······································································································································ 5 dis
rip mib-binding ······················································································································································ 56 rip output ································································································································································ 56 rip poison-reverse ·················································································································································· 5
network (OSPF area view)·································································································································· 110 nssa ······································································································································································· 111 opaque-capability enable ··································································································································· 112 ospf ··········
flash-flood ····························································································································································· 170 graceful-restart (IS-IS view) ································································································································· 170 graceful-restart interval (IS-IS view) ···················································································································· 171 graceful-resta
bestroute as-path-neglect (BGP/BGP-VPN instance view) ··············································································· 212 bestroute compare-med (BGP/BGP-VPN instance view) ················································································· 213 bestroute med-confederation (BGP/BGP-VPN instance view) ········································································ 213 bgp······································································································
peer capability-advertise conventional ············································································································· 260 peer capability-advertise orf ······························································································································ 261 peer capability-advertise orf non-standard ······································································································· 262 peer capability-advertise route-refresh ·······
display ip policy-based-route setup ··················································································································· 304 display ip policy-based-route statistics ·············································································································· 305 display policy-based-route ·································································································································· 306 if-match acl ·························
display ospfv3 request-list ··································································································································· 353 display ospfv3 retrans-list ··································································································································· 355 display ospfv3 routing ········································································································································ 357 display ospfv3 stati
IPv6 BGP configuration commands ······················································································································· 399 aggregate (IPv6 address family view)··············································································································· 399 balance (IPv6 address family view/IPv6 BGP-VPN instance view)································································ 400 bestroute as-path-neglect (IPv6 address family view) ·····················
peer ignore (IPv6 address family view) ············································································································ 448 peer ipv6-prefix ··················································································································································· 449 peer ipsec-policy (IPv6 address family view)···································································································· 449 peer keep-all-routes (IPv6 address family
apply extcommunity ············································································································································ 488 apply ip-precedence ··········································································································································· 489 apply isis ······························································································································································ 489 apply loca
Documents ···························································································································································· 523 Websites······························································································································································· 523 Conventions ·····························································································································································
Basic IP routing commands display ip routing-table Use display ip routing-table to display brief information about active routes in the routing table. Use display ip routing-table verbose to display detailed information about all routes in the routing table.
Destination/Mask Proto 1.1.2.0/24 1.1.2.1/32 Pre Cost NextHop Interface Direct 0 0 1.1.2.1 GE2/1/1 Direct 0 0 127.0.0.1 InLoop0 2.2.2.0/24 OSPF 2 1.1.2.2 GE2/1/2 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 192.168.0.0/24 Direct 0 0 192.168.0.1 VT1 192.168.0.1/32 Direct 0 0 127.0.0.1 InLoop0 10 Table 1 Command output Field Description Destinations Number of destination addresses. Routes Number of routes.
BKTunnel ID: 0x0 State: Active NoAdv BKLabel: NULL Age: 06h46m22s Tag: 0 Destination: 2.2.2.0/24 Protocol: OSPF Preference: 10 IpPrecedence: NextHop: 1.1.2.2 BkNextHop: 0.0.0.0 RelyNextHop: 0.0.0.0 Process ID: 1 Cost: 2 QosLcId: Interface: GigabitEthernet2/1/2 BkInterface: Neighbor : 0.0.0.0 Tunnel ID: 0x0 Label: NULL BKTunnel ID: 0x0 BKLabel: NULL State: Active Adv Age: 00h00m53s Tag: 0 Destination: 127.0.0.0/8 Protocol: Direct Preference: 0 IpPrecedence: NextHop: 127.0.0.1 BkNextHop: 0.0.0.
BKTunnel ID: 0x0 BKLabel: NULL State: Active Adv Age: 06h46m35s Tag: 0 Destination: 192.168.0.1/32 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 IpPrecedence: QosLcId: NextHop: 127.0.0.1 BkNextHop: 0.0.0.0 Interface: InLoopBack0 BkInterface: RelyNextHop: 0.0.0.0 Neighbor : 0.0.0.
Field Description Route status: • • • • • Active—This is an active unicast route. Adv—This route can be advertised. Delete—This route is deleted. Gateway—This is an indirect route. Holddown—Number of holddown routes. Holddown is a route advertisement policy used in some routing protocols, such as RIP, to avoid the propagation of some incorrect routes. It distributes a Holddown route during a period regardless of whether a new route to the same destination is found.
Parameters multiple-topology topology-name: Specifies a topology. topology-name is a case-sensitive string of 1 to 31 characters. vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public network is displayed. acl-number: Specifies a basic ACL by its number in the range of 2000 to 2999. verbose: Displays detailed information about all routes.
Destination: 10.1.1.0/24 Protocol: Direct Preference: 0 IpPrecedence: NextHop: 10.1.1.2 BkNextHop: 0.0.0.0 RelyNextHop: 0.0.0.0 Process ID: 0 Cost: 0 QosLcId: Interface: Vlan-interface1 BkInterface: Neighbor: 0.0.0.0 Tunnel ID: 0x0 Label: NULL BKTunnel ID: 0x0 BKLabel: NULL State: Active Adv Age: 1d00h25m32s Tag: 0 Destination: 10.1.1.2/32 Protocol: Direct Preference: 0 IpPrecedence: NextHop: 127.0.0.1 BkNextHop: 0.0.0.0 RelyNextHop: 0.0.0.
Destination: 10.1.3.0/24 Protocol: Direct Preference: 0 IpPrecedence: NextHop: 10.1.3.1 BkNextHop: 0.0.0.0 RelyNextHop: 0.0.0.0 Process ID: 0 Cost: 0 QosLcId: Interface: Ethernet1/1 BkInterface: Neighbor: 0.0.0.0 Tunnel ID: 0x0 Label: NULL BKTunnel ID: 0x0 BKLabel: NULL State: Active Adv Age: 1d00h05m31s Tag: 0 Destination: 10.1.3.1/32 Protocol: Direct Preference: 0 IpPrecedence: NextHop: 127.0.0.1 BkNextHop: 0.0.0.0 RelyNextHop: 0.0.0.
Parameters multiple-topology topology-name: Specifies a topology. topology-name is a case-sensitive string of 1 to 31 characters. vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public network is displayed. ip-address: Specifies a destination IP address in dotted decimal notation.
display ip routing-table 11.0.0.1 Routing Table : Public Summary Count : 3 Destination/Mask Proto 11.0.0.0/8 11.0.0.0/16 11.0.0.0/24 Pre Cost NextHop Interface Static 60 0 0.0.0.0 NULL0 Static 60 0 0.0.0.0 NULL0 Static 60 0 0.0.0.0 NULL0 # Display brief information about the routes with destination IP address 11.0.0.1 and mask length 20. display ip routing-table 11.0.0.1 20 Routing Table : Public Summary Count : 2 Destination/Mask Proto 11.0.0.0/8 11.1.0.
4.4.4.0/24 Direct 0 0 4.4.4.1 GE2/1/1 4.4.4.1/32 Direct 0 0 127.0.0.1 InLoop0 For command output, see Table 1. display ip routing-table ip-prefix Use display ip routing-table ip-prefix to display information about routes permitted by a specified prefix list.
Summary Count : 2 Destination/Mask Proto Pre Cost NextHop Interface 2.2.2.0/24 Direct 0 0 2.2.2.1 Vlan2 2.2.2.1/32 Direct 0 0 127.0.0.1 InLoop0 For command output, see Table 1. # Display detailed information about all routes permitted by IP prefix list test. [Sysname] display ip routing-table ip-prefix test verbose Routes Matched by Prefix list test : Summary Count : 2 Destination: 2.2.2.0/24 Protocol: Direct Preference: 0 IpPrecedence: NextHop: 2.2.2.1 BkNextHop: 0.0.0.0 RelyNextHop: 0.
Parameters multiple-topology topology-name: Specifies a topology. topology-name is a case-sensitive string of 1 to 31 characters. vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public network is displayed. protocol: Routing protocol. It can be bgp, direct, isis, nat, ospf, rip, static, or guard. inactive: Displays information about only inactive routes.
Static Routing Table Status : Summary Count : 2 Destination/Mask Proto Pre Cost NextHop Interface 1.2.3.0/24 Static 60 0 1.2.4.5 Vlan10 3.0.0.0/8 Static 60 0 2.2.2.2 GE2/1/1 For descriptions of the output, see Table 1. display ip routing-table statistics Use display ip routing-table statistics to display the route statistics of the routing table.
Table 3 Command output Field Description Proto Origin of the routes. route Number of routes from the origin. active Number of active routes from the origin. added Number of routes added into the routing table since the router started up or the routing table was last cleared. deleted Number of routes marked as deleted, which are freed after a period. freed Number of routes that got freed (removed permanently). Total Total number.
The display ipv6 routing-table verbose command output shows the statistics of the entire routing table, and the detailed information of each route. Examples # Display brief routing table information display ipv6 routing-table Routing Table : Public Destinations : 1 Routes : 1 Destination: ::1/128 Protocol : Direct NextHop : ::1 Preference: 0 Interface : InLoop0 Cost : 0 Table 4 Command output Field Description Destination IPv6 address of the destination network/host.
Field Description RelayNextHop Recursive next hop. Tag Tag of the route. Neighbor Neighbor address. ProcessID Process ID. Interface Outgoing interface. Protocol Routing protocol. State of the route: State • • • • Active. Inactive. Adv (advertised). NoAdv (not advertised). Cost Cost of the route. Tunnel ID Tunnel ID. Label Label. Age Time that has elapsed since the route was generated.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines If the specified IPv6 ACL is not available, all routing information is displayed. Examples # Display brief routing information permitted by ACL 2000.
verbose: Displays detailed information about all routes. Without this keyword, only brief information about active routes is displayed. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
Destination: 10::/68 Protocol NextHop : :: Preference: 60 : Static Interface : NULL0 Cost : 0 Destination: 10::/120 Protocol NextHop : :: Preference: 60 : Static Interface : NULL0 Cost : 0 # Display brief information about the routes with destination IPv6 address 10::1 and prefix length 100.
NextHop : :: Preference: 60 Interface : NULL0 Cost : 0 Destination: 300::/64 Protocol : Static NextHop : :: Preference: 60 Interface : NULL0 Cost Cost : 0 : 0 For command output, see Table 4. display ipv6 routing-table ipv6-prefix Use display ipv6 routing-table ipv6-prefix to display routes permitted by the IPv6 prefix list.
display ipv6 routing-table protocol Use display ipv6 routing-table protocol to display IPv6 routes of a specified routing protocol. Syntax display ipv6 routing-table [ vpn-instance vpn-instance-name ] protocol protocol [ inactive | verbose ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters.
display ipv6 routing-table statistics Use display ipv6 routing-table statistics to display IPv6 routing statistics, including total number of routes and number of added, deleted, active, and freed routes. Syntax display ipv6 routing-table [ vpn-instance vpn-instance-name ] statistics [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN.
Field Description Total Total number of routes. reset ip routing-table statistics protocol Use reset ip routing-table statistics protocol to clear statistics of the routing table. Syntax reset ip routing-table statistics protocol [ multiple-topology topology-name | vpn-instance vpn-instance-name ] { protocol | all } Views User view Default command level 2: System level Parameters multiple-topology topology-name: Specifies a topology. topology-name is a case-sensitive string of 1 to 31 characters.
all: Clears route statistics for all IPv6 routing protocols. Examples # Clear route statistics for all IPv6 routing protocols.
Static routing configuration commands delete static-routes all Use delete static-routes all to delete all static routes. Syntax delete [ multiple-topology topology-name | vpn-instance vpn-instance-name ] static-routes all Views System view Default command level 2: System level Parameters multiple-topology topology-name: Specifies a topology. topology-name is a case-sensitive string of 1 to 31 characters. vpn-instance vpn-instance-name: Specifies an MPLS L3VPN.
Related commands • display ip routing-table • ip route-static ip route-static Use ip route-static to configure a unicast static route. Use undo ip route-static to delete a unicast static route.
mask: Specifies the mask of the IP address, in dotted decimal notation. mask-length: Specifies the mask length in the range of 0 to 32. next-hop-address: Specifies IP address of the next hop, in dotted decimal notation. interface-type interface-number: Specifies the outgoing interface by its type and number.
{ { { { If the outgoing interface is a Null 0 interface, no next hop address is required. If the outgoing interface is a point-to-point interface, a PPP serial interface for example, you can specify only the outgoing interface. You do not need to change the configuration of the route even if the peer address is changed. If the outgoing interface is an NBMA interface or point-to-multipoint (P2MP) interface, an X.
undo ip route-static default-preference Default The default preference of static routes is 60. Views System view Default command level 2: System level 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 is used. When the default preference is re-configured, it applies to newly added static routes only.
Usage guidelines Configuring static route FRR needs to reference a routing policy, which specifies a backup next hop with the apply fast-reroute backup-interface command. For more information about the command and routing policy configurations, see Layer 3—IP Routing Configuration Guide. Static route FRR takes effect only for static routes that have both the outgoing interface and next hop specified. Do not use static route FRR and BFD (for static route) at the same time.
RIP configuration 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 Default command level 2: System level Usage guidelines After the zero field check is enabled, the router discards RIPv1 messages in which zero fields are non-zero. If all messages are trusted, disable this feature to reduce the processing time of the CPU.
Default command level 2: System level 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 other protocols without specifying a metric, the metric specified by the default cost command applies. Examples # Configure the default metric for redistributed routes as 3.
[Sysname] rip 100 [Sysname-rip-100] default-route only cost 2 Related commands rip default-route display rip Use display rip to display the current status and configuration information of the specified RIP process. Syntax display rip [ process-id | vpn-instance vpn-instance-name ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535.
TRIP retransmit time : 5 sec(s) TRIP response packets retransmit count : 36 Silent interfaces : None Default routes : Only Default route cost : 3 Verify-source : Enabled Networks : 192.168.1.0 Configured peers : None Triggered updates sent : 0 Number of routes changes : 0 Number of replies to queries : 0 Table 7 Command output Field Description Public VPN-instance name (or Private VPN-instance name) The RIP process runs under a public VPN instance/The RIP process runs under a private VPN instance.
Field Description Indicates whether a default route is sent to RIP neighbors: • only—Only a default route is advertised. • originate—A default route is advertised along with Default routes other routes. • disable—No default route is advertised. Default route cost Cost of the default route. Verify-source Indicates whether the source IP address is checked on the received RIP routing updates. Networks Networks enabled with RIP. Configured peers Configured neighbors.
11.0.0.0/24, cost 1, nexthop 10.0.0.1, Imported Table 8 Command output Field Description X.X.X.X/X Destination address and subnet mask. cost Cost of the route. classful-summ Indicates that the route is a RIP summary route. Nexthop Address of the next hop. Rip-interface Routes learned from a RIP-enabled interface. imported Routes redistributed from other routing protocols. display rip interface Use display rip interface to display the RIP interface information of the RIP process.
MetricOut:5 MetricOut route policy:234 Split-horizon/Poison-reverse:on/off Input/Output:on/on Default route:off Current packets number/Maximum packets number:234/2000 Table 9 Command output Field Description Interface-name Name of an interface running RIP. Address/Mask IP address and mask of the interface. Version RIP version running on the interface. MetricIn Additional routing metric added to the incoming routes.
Syntax display rip process-id route [ ip-address { mask | mask-length } | peer ip-address | statistics ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535. ip-address { mask | mask-length }: Displays route information about a specified IP address. peer ip-address: Displays all routing information learned from a specified neighbor.
Field Description Nexthop Next hop of the route. Cost Cost of the route. Tag Route tag. Flags Indicates the route state. Sec Remaining time of the timer corresponding to the route state. # Display the routing statistics of RIP process 1. display rip 1 route statistics Peer Aging Permanent Garbage 111.1.1.2 1 0 0 Total 1 0 0 Table 11 Command output Field Description Peer IP address of a neighbor. Aging Total number of aging routes learned from the specified neighbor.
Usage guidelines RIP FRR is only effective for non-recursive RIP routes that are learned from directly connected neighbors. Do not use RIP FRR and BFD for RIP at the same time; otherwise, RIP FRR might fail to take effect. Examples # Enable RIP FRR and reference routing policy frr to specify a backup next hop. system-view [Sysname] bfd echo-source-ip 1.1.1.1 [Sysname] ip ip-prefix abc index 10 permit 100.1.1.
Usage guidelines If a protocol is specified, RIP filters only the routes redistributed from the specified routing protocol. Otherwise, RIP filters all routes to be advertised. If interface-type interface-number is specified, RIP filters only the routes advertised by the specified interface. Otherwise, RIP filters routes advertised by all RIP interfaces.
Syntax filter-policy { acl-number | gateway ip-prefix-name | ip-prefix ip-prefix-name [ gateway ip-prefix-name ] } import [ interface-type interface-number ] undo filter-policy import [ interface-type interface-number ] Default RIP does not filter received routes. Views RIP view Default command level 2: System level Parameters acl-number: Specifies an ACL by its number in the range of 2000 to 3999 to filter received routes.
[Sysname-acl-adv-3000] quit [Sysname] rip 1 [Sysname-rip-1] filter-policy 3000 import Related commands • acl (ACL and QoS Command Reference) • ip ip-prefix host-route Use host-route to enable host route reception. Use undo host-route to disable host route reception. Syntax host-route undo host-route Default Receiving host routes is enabled. Views RIP view Default command level 2: System level Usage guidelines In some cases, a router might receive many host routes from the same network segment.
Default RIP does not redistribute routes from other routing protocols. Views RIP view Default command level 2: System level Parameters protocol: Specifies a routing protocol from which to redistribute routes. It can be bgp, direct, isis, ospf, rip, or static. process-id: Specifies a process by its ID in the range of 1 to 65535. The default is 1. This argument is available only when the protocol is isis, rip, or ospf. all-processes: Enables route redistribution from all the processes of a protocol.
Syntax maximum load-balancing number undo maximum load-balancing Default The maximum number of ECMP routes is 8. Views RIP view Default command level 2: System level Parameters number: Specifies the maximum number of ECMP routes, in the range of 1 to 8. Examples # Specify the maximum number of ECMP routes as 2. system-view [Sysname] rip [Sysname-rip-1] maximum load-balancing 2 network Use network to enable RIP on the interface attached to the specified network.
If a physical interface is attached to multiple networks, you cannot advertise these networks in different RIP processes. Examples # Enable RIP on the interface attached to the network 129.102.0.0. system-view [Sysname] rip 100 [Sysname-rip-100] network 129.102.0.0 output-delay Use output-delay to configure the maximum RIP packets that can be sent at the specified interval for all interfaces under the RIP process. Use undo output-delay to restore the default.
Default No neighbor is specified. Views RIP view Default command level 2: System level Parameters ip-address: Specifies the IP address of a RIP neighbor, in dotted decimal notation. Usage guidelines You need not use the peer ip-address command when the neighbor is directly connected; otherwise the neighbor might receive both the unicast and multicast (or broadcast) of the same routing information. Examples # Specify to send unicast updates to peer 202.38.165.1.
• If no preference is set by the routing policy, the preference of all RIP routes is set by the preference command. Examples # Set the RIP route preference to 120. system-view [Sysname] rip 1 [Sysname-rip-1] preference 120 reset rip process Use reset rip process to reset the specified RIP process. Syntax reset rip process-id process Views User view Default command level 1: Monitor level Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535.
reset rip 100 statistics rip Use rip to create a RIP process and enter RIP view. Use undo rip to disable a RIP process. Syntax rip [ process-id ] [ vpn-instance vpn-instance-name ] undo rip [ process-id ] [ vpn-instance vpn-instance-name ] Default No RIP process runs. Views System view Default command level 2: System level Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535. The default is 1. vpn-instance vpn-instance-name: Specifies an MPLS L3VPN.
Views Interface view Default command level 2: System level Parameters md5: Specifies the MD5 cipher authentication mode. rfc2082: Uses the message format defined in RFC 2082. cipher: Sets a ciphertext authentication key or password. If this keyword is not specified, you set a plaintext authentication key or password. key-string: Specifies the MD5 key string. This argument is case sensitive. It must be a plaintext string of 1 to 16 characters, or a ciphertext string of 33 to 53 characters.
Default A RIP interface is not enabled with BFD. Views Interface view Default command level 2: System level Usage guidelines BFD echo-mode detection only works for a RIP neighbor one hop away. Using the undo peer command does not delete the neighbor relationship at once and cannot bring down the BFD session at once. The rip bfd enable command and the rip bfd enable destination command are mutually exclusive and cannot be configured on a device at the same time.
Examples # Enable BFD on GigabitEthernet 0/0/1 for a specified destination 202.38.165.1. system-view [Sysname] interface gigabitethernet 0/0/1 [Sysname-GigabitEthernet0/0/1] rip bfd enable destination 202.38.165.1 rip default-route Use rip default-route to configure the RIP interface to advertise a default route with the specified metric. Use undo rip default-route to disable the RIP interface from sending a default route.
Syntax rip input undo rip input Default An interface is enabled to receive RIP messages. Views Interface view Default command level 2: System level Examples # Enable GigabitEthernet 2/1/1 to receive RIP messages. system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] rip input rip metricin Use rip metricin to configure the interface to add a metric to the routes it receives. Use undo rip metricin to restore the default.
• Routes matching the policy are added with the metric specified in the apply cost command configured in the policy. Routes not matching it are added with the metric specified in the rip metricin command. The metric specified in the rip metricin command cannot be changed by using the + or – keyword—used to add or reduce a metric—specified in the apply cost command. For more information about the apply cost command, see "Routing policy configuration commands.
• If the apply cost command is not configured in the policy, all the advertised routes are added with the metric specified in the rip metricout command. Examples # Configure GigabitEthernet 2/1/1 to add a metric of 6 for the outgoing route 1.0.0.0/8 and to add a metric of 2 for other outgoing routes. system-view [Sysname] ip ip-prefix 123 permit 1.0.0.
Syntax rip output undo rip output Default Sending RIP messages is enabled on an interface. Views Interface view Default command level 2: System level Examples # Enable GigabitEthernet 2/0/1 to receive RIP messages. system-view [Sysname] interface GigabitEthernet 2/0/1 [Sysname-GigabitEthernet2/0/1] rip output 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 split-horizon undo rip split-horizon Default The split horizon function is enabled. Views Interface view Default command level 2: System level Usage guidelines • The split horizon function is necessary for preventing routing loops. To disable it in special cases, make sure it is necessary. • In Frame Relay, X.
Usage guidelines The summary address is valid only when the automatic summarization is disabled. Examples # Advertise a local summary address on GigabitEthernet 2/1/1. system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] rip summary-address 10.0.0.0 255.255.255.0 Related commands summary rip version Use rip version to specify a RIP version for the interface. Use undo rip version to remove the specified RIP version.
When RIPv2 runs on the interface in multicast mode, the interface can perform the following operations: • Sends RIPv2 multicast messages. • Receives RIPv2 broadcast, multicast, and unicast messages. Examples # Configure GigabitEthernet 2/1/1 to broadcast RIPv2 messages.
undo summary Default Automatic RIPv2 summarization is enabled. Views RIP view Default command level 2: System level Usage guidelines Enabling automatic RIPv2 summarization can reduce the size of the routing table to enhance the scalability and efficiency of large networks. Examples # Disable RIPv2 automatic summarization. system-view [Sysname] rip [Sysname-rip-1] undo summary Related commands rip version timers Use timers to configure RIP timers.
Usage guidelines RIP is controlled by the following timers: • Update timer—Defines the interval between routing updates. • Timeout timer—Defines the route aging time. If no routing update related to a route is received after the aging time, the metric of the route is set to 16 in the routing table. • Suppress timer—Defines how long a RIP route stays in suppressed state. When the metric of a route is 16, the route enters the suppressed state.
version Use version to specify a global RIP version. Use undo version to remove the configured global RIP version. Syntax version { 1 | 2 } undo version Default If an interface has a RIP version specified, the RIP version takes effect; if it has no RIP version specified, it can send RIPv1 broadcasts, and receive RIPv1 broadcasts and unicasts, and RIPv2 unicasts, broadcasts, and multicasts. Views RIP view Default command level 2: System level Parameters 1: Specifies the RIP version as RIPv1.
OSPF configuration commands For OSPF TE related commands and OSPF VPN related commands, see MPLS Command Reference. 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 | mask-length } [ advertise | not-advertise ] [ cost cost ] undo abr-summary ip-address { mask | mask-length } 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 Default command level 2: System level 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-length: Specifies the mask length in the range of 0 to 32 bits. cost cost: Specifies the cost of the summary route, in the range of 1 to 16777214. For Type-1 external routes, the cost defaults to the largest cost among routes that are summarized. For Type-2 external routes, the cost defaults to the largest cost among routes that are summarized plus 1. not-advertise: Disables advertising the summary route. If the keyword is not specified, the route is advertised.
Views OSPF area view Default command level 2: System level Parameters hmac-md5: Specifies HMAC-MD5 authentication. md5: Specifies MD5 authentication. simple: Specifies simple authentication. key-id: Specifies a key by its ID in the range of 0 to 255. cipher: Sets a ciphertext key. plain: Sets a plaintext key. password: Specifies a password.
Syntax bandwidth-reference value undo bandwidth-reference Default The default value is 100 Mbps. Views OSPF view Default command level 2: System level Parameters value: Specifies the bandwidth reference value for link cost calculation, in the range of 1 to 2147483648 Mbps. Usage guidelines When links have no cost values configured, OSPF calculates their cost values using formula: Cost=Reference bandwidth value / Link bandwidth. If the calculated cost is greater than 65535, the value of 65535 is used.
type: Specifies the default type for redistributed routes: 1 or 2. Examples # Configure the default cost, upper limit, tag, and type as 10, 20000, 100, and 2, respectively, for redistributed external routes. system-view [Sysname] ospf 100 [Sysname-ospf-100] default cost 10 limit 20000 tag 100 type 2 Related commands import-route default-cost (OSPF area view) Use default-cost to configure a cost for the default route advertised to the stub or NSSA area.
default-route-advertise (OSPF view) Use default-route-advertise to generate a default external route into the OSPF routing domain. Use undo default-route-advertise to disable OSPF from distributing a default external route. Syntax default-route-advertise [ [ [ always | permit-calculate-other ] | cost cost | route-policy route-policy-name | type type ] * | summary cost cost ] undo default-route-advertise Default No default route is distributed.
Examples # Generate a default route in an ASE LSA into the OSPF routing domain, regardless of whether the default route is available in the routing table. system-view [Sysname] ospf 100 [Sysname-ospf-100] default-route-advertise always Related commands • default • import-route description (OSPF/OSPF area view) Use description to configure a description for an OSPF process or area. Use undo description to remove the description.
display ospf abr-asbr Use display ospf abr-asbr to display information about the routes to OSPF ABR/ASBR. Syntax display ospf [ process-id ] abr-asbr [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. Use this argument to display information about the routes to the ABR/ASBR under the specified OSPF process.
Field Description RtType Router type: ABR, or ASBR. display ospf asbr-summary Use display ospf asbr-summary to display information about the redistributed routes that are summarized. Syntax display ospf [ process-id ] asbr-summary [ ip-address { mask | mask-length } ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
Mask : 255.255.0.0 Tag : 20 Status : Advertise Cost : 10 (Configured) The Count of Route is : 2 Destination Net Mask Proto Process Type Metric 30.1.2.0 255.255.255.0 OSPF 2 2 1 30.1.1.0 255.255.255.0 OSPF 2 2 1 Table 13 Command output Field Description Total Summary Address Count Total number of summary routes. Net Address of the summary route. Mask Mask of the summary route address. Tag Tag of the summary route. Status Advertisement status of the summary route.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Timers: Hello 10 , Dead 40 , Poll 40 , Retransmit 5 , Transmit Delay 1 Table 14 Command output Field Description OSPF Process 1 with Router ID 192.168.1.2 OSPF process ID and OSPF router ID. RouterID Router ID. Router type: • • • • Router Type ABR. ASBR. NSSA. Null. Route Tag Tag of redistributed routes. Multi-VPN-Instance is not enabled The OSPF process does not support multi-VPN-instance. Applications Supported Applications supported. MPLS Traffic-Engineering means MPLS TE is supported.
Field Description Authentication type of the area: • None—No authentication. • Simple—Simple authentication. • MD5—MD5 authentication. Authtype Area flag Type of the area. SPF scheduled Count SPF calculation count in the OSPF area. Interface Interface in the area. Cost Interface cost. State Interface state. Type Interface network type. MTU Interface MTU. Priority Router priority. Timers Timers: Hello, dead, poll, retransmit, and transmit delay.
Cumulations IO Statistics Type Input Output Hello 61 122 DB Description 2 3 Link-State Req 1 1 Link-State Update 3 3 Link-State Ack 3 2 LSAs originated by this router Router: 4 Network: 0 Sum-Net: 0 Sum-Asbr: 0 External: 0 NSSA: 0 Opq-Link: 0 Opq-Area: 0 Opq-As: 0 LSAs Originated: 4 LSAs Received: 7 Routing Table: Intra Area: 2 Inter Area: 3 ASE/NSSA: 0 Table 15 Command output Field Description IO statistics Statistics about input/output packets and LSAs. Type OSPF packet type.
Field Description NSSA Number of Type-7 LSAs originated. Opq-Link Number of Type-9 LSAs originated. Opq-Area Number of Type-10 LSAs originated. Opq-As Number of Type-11 LSAs originated. LSA originated Number of LSAs originated. LSA Received Number of LSAs received. Routing Table Routing table information. Intra Area Intra-area route number. Inter Area Inter-area route number. ASE ASE route number. display ospf error Use display ospf error to display OSPF error information.
0 : OSPF Router ID confusion 0 : OSPF bad packet 0 : OSPF bad version 0 : OSPF bad checksum 0 : OSPF bad area ID 0 : OSPF drop on unnumber interface 0 : OSPF bad virtual link 0 : OSPF bad authentication type 0 : OSPF bad authentication key 0 : OSPF packet too small 0 : OSPF Neighbor state low 0 : OSPF transmit error 0 : OSPF interface down 0 : OSPF unknown neighbor 0 : HELLO: Netmask mismatch 0 : HELLO: Hello timer mismatch 0 : HELLO: Dead timer mismatch 0 : HELLO: Extern
Field Description LS ACK: Unknown LSA type LSAck packets with unknown LSA type. LS REQ: Empty request LSR packets with no request information. LS REQ: Bad request Bad LSR packets. LS UPD: LSA checksum bad LSU packets with wrong LSA checksum. LS UPD: Received less recent LSA LSU packets without the most recent LSA. LS UPD: Unknown LSA type LSU packets with unknown LSA type. display ospf interface Use display ospf interface to display OSPF interface information.
192.168.1.1 PTP P-2-P 1562 1 0.0.0.0 0.0.0.0 IP Address Type State Cost Pri DR BDR 172.16.0.1 Broadcast DR 1 1 172.16.0.1 0.0.0.0 Area: 0.0.0.1 # Display OSPF information about GigabitEthernet 2/1/1. display ospf interface GigabitEthernet 2/1/1 OSPF Process 1 with Router ID 1.1.1.1 Interfaces Interface: 12.1.1.11 (GigabitEthernet 2/1/1) Cost: 1 State: Waiting Type: Broadcast MTU: 1500 Priority: 1 Designated Router: 0.0.0.0 Backup Designated Router: 0.0.0.
Field Description Interval that OSPF advertises the maximum cost in LSAs, in seconds. Max Cost If infinite is displayed for this field, OSPF advertises the maximum cost in LSAs until the LDP session converges. State of LDP and OSPF synchronization: LDP-sync State • Achieved—LDP and OSPF has synchronized. • Hold Down—The interface waits for the LDP session convergence rather than establishing neighbor relationship. • Max Cost—OSPF advertises the maximum cost in LSAs. • Init—Original state.
begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines If no OSPF process is specified, LSDB information of all OSPF processes is displayed. Examples # Display OSPF LSDB information.
Type : Network LS ID : 192.168.0.2 Adv Rtr : 192.168.2.1 LS Age : 922 Len : 32 Options : Seq# : 80000003 Checksum Net Mask E : 0x8d1b : 255.255.255.0 Attached Router 192.168.1.1 Attached Router 192.168.2.1 Area: 0.0.0.1 Link State Database Type : Network LS ID : 192.168.1.2 Adv Rtr : 192.168.1.2 LS Age : 782 Len : 32 Options : Seq# : 80000003 Checksum Net Mask NP : 0x2a77 : 255.255.255.0 Attached Router 192.168.1.1 Attached Router 192.168.1.
display ospf nexthop Use display ospf nexthop to display OSPF next hop information. Syntax display ospf [ process-id ] nexthop [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
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 ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. verbose: Displays detailed neighbor information.
Authentication Sequence: [ 0 ] Neighbor state change count: 6 LDP-sync Adjacency state: Up Table 21 Command output Field Description Neighbor information of the interface in the specified area: • areaID—Area to which the neighbor belongs. • IPAddress—Interface IP address. • InterfaceName—Interface name. Area areaID interface IPAddress(InterfaceName)'s neighbors interface Interface attached with the neighbor. Router ID Neighbor router ID. Address Neighbor router address. GR State GR state.
Field Description LDP adjacency state: • Unknown—The interface has no LDP adjacencies. • Up—The LDP session to the neighbor has converged. • Down—The LDP adjacency to the neighbor is down. LDP-sync Adjacency state # Display brief OSPF neighbor information. display ospf peer OSPF Process 1 with Router ID 1.1.1.1 Neighbor Brief Information Area: 0.0.0.0 Router ID Address Pri Dead-Time Interface 1.1.1.2 1.1.1.
exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines If no OSPF process is specified, OSPF neighbor statistics of all OSPF processes is displayed. Examples # Display OSPF neighbor statistics. display ospf peer statistics OSPF Process 1 with Router ID 10.3.1.
Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. interface-type interface-number: Specifies an interface by its type and number. neighbor-id: Neighbor's router ID. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
Syntax display ospf [ process-id ] retrans-queue [ interface-type interface-number ] [ neighbor-id ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. interface-type interface-number: Specifies an interface by its type and number. neighbor-id: Neighbor's router ID. |: Filters command output by specifying a regular expression.
Field Description AdvRouter Advertising router. Sequence LSA sequence number. Age LSA age. display ospf routing Use display ospf routing to display OSPF routing information. Syntax display ospf [ process-id ] routing [ interface interface-type interface-number ] [ nexthop nexthop-address ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
172.16.0.0/16 1563 Inter 192.168.1.1 192.168.1.1 0.0.0.0 Total Nets: 2 Intra Area: 1 Inter Area: 1 ASE: 0 NSSA: 0 Table 26 Command output Field Description Destination Destination network. Cost Cost to destination. Type Route type: Intra-area, transit, stub, inter-area, Type-1 external, and Type-2 external. NextHop Next hop address. AdvRouter Advertising router. Area Area ID. Total Nets Total networks. Intra Area Total intra-area routes. Inter Area Total inter-area routes.
Examples # Display OSPF virtual link information. display ospf vlink OSPF Process 1 with Router ID 3.3.3.3 Virtual Links Virtual-link Neighbor-ID -> 2.2.2.2, Neighbor-State: Full Interface: 10.1.2.1 (Serial2/2/0) Cost: 1562 State: P-2-P Type: Virtual 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, 1 neighbor(s) left.
begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # Display the global router ID. display router id Configured router ID is 1.1.1.
Default command level 2: System level Parameters config: Enables configuration logging. error: Enables error logging. state: Enables state logging. Usage guidelines If no keyword is specified, all logging is enabled. Examples # Enable OSPF logging. system-view [Sysname] ospf 100 [Sysname-ospf-100] enable log enable out-of-band-resynchronization Use enable out-of-band-resynchronization to enable the OSPF out-of-band resynchronization (OOB-Resynch) capability.
fast-reroute Use fast-reroute to configure OSPF fast reroute (FRR). Use undo fast-reroute to restore the default. Syntax fast-reroute { auto [ abr-only ] | route-policy route-policy-name } undo fast-reroute Default OSPF FRR is not configured. Views OSPF view Default command level 2: System level Parameters auto: Calculates a backup next hop automatically for all routes. abr-only: Selects only the route to the ABR as the backup path.
filter NOTE: This command is only available on an ABR. Use filter to configure incoming/outgoing Type-3 LSAs filtering on an ABR. Use undo filter to disable Type-3 LSA filtering. Syntax filter { acl-number | ip-prefix ip-prefix-name } { export | import } undo filter { export | import } Default Type-3 LSAs filtering is disabled. Views OSPF area view Default command level 2: System level Parameters acl-number: Specifies an ACL by its number in the range of 2000 to 3999.
Default The filtering of redistributed routes is not configured. Views OSPF view Default command level 2: System level Parameters acl-number: Specifies an ACL by its number in the range of 2000 to 3999 to filter redistributed routes. ip-prefix-name: Specifies an IP prefix list by its name, a string of up to 19 characters, to filter redistributed routes. protocol: Specifies a protocol from which to filter redistributed routes. The protocol can be direct, static, rip, ospf, isis, or bgp.
Related commands import-route filter-policy import (OSPF view) Use filter-policy import to configure OSPF to filter routes calculated from received LSAs. Use undo filter-policy import to disable the filtering. Syntax filter-policy { acl-number [ gateway ip-prefix-name ] | gateway ip-prefix-name | ip-prefix ip-prefix-name [ gateway ip-prefix-name ] | route-policy route-policy-name } import undo filter-policy import Default The filtering is not configured.
Examples # Filter received routes using ACL 2000. system-view [Sysname] acl number 2000 [Sysname-acl-basic-2000] rule deny source 192.168.10.0 0.0.0.255 [Sysname-acl-basic-2000] quit [Sysname] ospf 100 [Sysname-ospf-100] filter-policy 2000 import # Configure ACL 3000 to permit only route 113.0.0.0/16 to pass, and reference ACL 3000 to filter received routes. system-view [Sysname] acl number 3000 [Sysname-acl-adv-3000] rule 10 permit ip source 113.0.0.0 0 destination 255.255.0.
Before enabling non-IETF GR capability for OSPF, enable OSPF LLS (link local signaling) with the enable link-local-signaling command and OOB (out of band resynchronization) with the enable out-of-band-resynchronization command. If the keywords nonstandard and ietf are not specified when OSPF GR is enabled, nonstandard is the default. Examples # Enable IETF Graceful Restart for OSPF process 1.
Examples # Enable IETF standard GR for OSPF process 1 and configure the router as a GR helper for OSPF neighbors defined in the ACL 2001. system-view [Sysname] ospf 1 [Sysname-ospf-1] opaque-capability enable [Sysname-ospf-1] graceful-restart help 2001 # Enable non IETF standard GR for OSPF process 1 and configure the router as a GR helper for OSPF neighbors defined in the ACL 2001.
host-advertise Use host-advertise to advertise a host route. Use undo host-advertise to remove a host route. Syntax host-advertise ip-address cost undo host-advertise ip-address Default No host route is advertised. Views OSPF area view Default command level 2: System level Parameters ip-address: IP address of a host cost: Specifies a cost for the route, in the range of 1 to 65535. Examples # Advertise route 1.1.1.1 with a cost of 100.
Parameters protocol: Redistributes routes from the specified protocol, which can be bgp, direct, isis, ospf, rip, or static. process-id: Specifies a process by its ID in the range of 1 to 65535. The default is 1. It is available only when the protocol is rip, ospf, or isis. all-processes: Redistributes routes from all the processes of the specified routing protocol. This keyword takes effect only when the protocol is rip, ospf, or isis. allow-ibgp: Allows IBGP routes redistribution.
Related commands default-route-advertise ispf enable Use ispf enable to enable OSPF ISPF. Use undo ispf enable to disable OSPF ISPF. Syntax ispf enable undo ispf enable Default OSPF ISPF is disabled. Views OSPF view Default command level 2: System level Usage guidelines When a network topology is changed, ISPF recomputes only the affected part of the shortest path tree (SPT), instead of the entire SPT. Examples # Enable OSPF ISPF.
Usage guidelines With this feature enabled, information about neighbor state changes is displayed on the terminal. Examples # Disable the logging of neighbor state changes for OSPF process 100. system-view [Sysname] ospf 100 [Sysname-ospf-100] undo log-peer-change lsa-arrival-interval Use lsa-arrival-interval to specify the LSA arrival interval. Use undo lsa-arrival-interval to restore the default.
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 5000 milliseconds. Views OSPF view Default command level 2: System level Parameters maximum-interval: Specifies the maximum LSA generation interval in seconds, in the range of 1 to 60. The default is 5.
Default External LSAs in the LSDB are not limited. Views OSPF view Default command level 2: System level Parameters number: Specifies the upper limit of external LSAs in the LSDB, in the range of 1 to 1000000. Examples # Specify the upper limit of external LSAs as 400000.
Use undo network to disable OSPF for the interface attached to the specified network in the area. Syntax network ip-address wildcard-mask undo network ip-address wildcard-mask Default An interface neither belongs to any area nor runs OSPF. Views OSPF area view Default command level 2: System level Parameters ip-address: IP address of a network. wildcard-mask: Wildcard mask of the IP address. For example, the wildcard mask of mask 255.0.0.0 is 0.255.255.255.
Default command level 2: System level Parameters default-route-advertise: Usable on an NSSA ABR or an ASBR only. If it is configured on an NSSA ABR, the ABR generates a default route in a Type-7 LSA into the NSSA area regardless of whether a default route is available in the routing table. If it is configured on an ASBR, the ASBR generates a default route in a Type-7 LSA only when the default route is available in the routing table.
Default command level 2: System level Examples # Enable advertising and receiving opaque LSAs. system-view [Sysname] ospf 100 [Sysname-ospf-100] opaque-capability enable ospf Use ospf to enable an OSPF process. Use undo ospf to disable an OSPF process. Syntax ospf [ process-id | router-id router-id | vpn-instance vpn- instance-name ] * undo ospf [ process-id ] Default No OSPF process is enabled.
Syntax For MD5/HMAC-MD5 authentication: ospf authentication-mode { hmac-md5 | md5 } key-id [ cipher | plain ] password undo ospf authentication-mode { hmac-md5 | md5 } key-id For simple authentication: ospf authentication-mode simple [ cipher | plain ] password undo ospf authentication-mode simple Default No authentication is performed on an interface. Views Interface view Default command level 2: System level Parameters hmac-md5: Specifies HMAC-MD5 authentication. md5: Specifies MD5 authentication.
system-view [Sysname] interface GigabitEthernet 2/0/0 [Sysname-GigabitEthernet2/0/0] ospf authentication-mode md5 15 plain abc # Configure the network 131.119.0.0/16 in Area 1 to use simple authentication, and set the interface the plaintext authentication password to abc.
Syntax ospf cost value undo ospf cost Default The default cost depends on the interface type. The cost is 0 for a loopback interface and the costs for other interfaces are computed according to the bandwidth with the formula: Interface OSPF cost = 100 Mbps ÷ Interface bandwidth (Mbps). Views Interface view Default command level 2: System level Parameters value: Specifies an OSPF cost in the range of 0 to 65535 for a loopback interface and 1 to 65535 for other interfaces.
Default command level 2: System level Parameters priority: Specify the DR priority for the interface, in the range of 0 to 255. Usage guidelines The bigger the value, the higher the priority. If a device has a priority of 0, it will not be elected as a DR or BDR. Examples # Set the DR priority on an interface to 8.
Use undo ospf mtu-enable to restore the default. Syntax ospf mtu-enable undo ospf mtu-enable Default An interface adds a MTU of 0 into DD packets, which means no real MTU is added. Views Interface view Default command level 2: System level Usage guidelines After a virtual link is established through a Virtual-Template or Tunnel, two devices on the link from different vendors might have different MTU values. To make them consistent, set the attached interfaces’ MTU to the default value 0.
unicast: Specifies the P2MP interface to unicast OSPF packets. By default, a P2MP interface multicasts OSPF packets. p2p: Specifies the network type as P2P. Usage guidelines • For Ethernet, and FDDI, the default network type is broadcast. • For ATM, FR, and X.25, the default network type is NBMA. • For PPP, LAPB, HDLC, and POS, the default network type is P2P. If a router on a broadcast network does not support multicast, configure the network type for the connected interfaces as NBMA.
Usage guidelines A device that has OSPF NSR enabled cannot act as a GR restarter. The graceful-restart command and the ospf non-stop-routing command are mutually exclusive and cannot be configured on a device at the same time. Examples # Enable OSPF NSR. system-view [Sysname] ospf non-stop-routing ospf packet-process prioritized-treatment Use ospf packet-process prioritized-treatment to enable OSPF to give priority to receiving and processing Hello packets.
Default command level 2: System level Parameters seconds: Specifies the dead interval in seconds, in the range of 1 to 2147483647. 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. Any two routers attached to the same segment must have the same dead interval. Examples # Configure the dead interval on an interface as 60 seconds.
Related commands ospf timer dead 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 value. Syntax ospf timer poll seconds undo ospf timer poll Default The poll interval is 120s. Views Interface view Default command level 2: System level Parameters seconds: Specifies the poll interval in seconds, in the range of 1 to 2147483647.
Views Interface view Default command level 2: System level Parameters interval: Specifies the LSA retransmission interval in seconds, in the range of 1 to 3600. Usage guidelines After an interface sends an LSA, it waits for an acknowledgement packet. If the interface receives no acknowledgement within the retransmission interval, it will retransmit the LSA. The retransmission interval should not be so small to avoid unnecessary retransmissions.
peer Use peer to specify a neighbor, and the DR priority of the neighbor. Use undo peer to remove the configuration. Syntax peer ip-address [ cost value | dr-priority dr-priority ] undo peer ip-address Views OSPF view Default command level 2: System level Parameters ip-address: Neighbor IP address. cost value: Specifies the cost to reach the neighbor, in the range of 1 to 65535. dr-priority dr-priority: Specifies the neighbor DR priority in the range of 0 to 255. The default neighbor DR priority is 1.
Syntax preference [ ase ] [ route-policy route-policy-name ] value undo preference [ ase ] Default The preference of OSPF internal routes defaults to 10, and the preference of OSPF external routes defaults to 150. Views OSPF view Default command level 2: System level Parameters ase: Sets a preference for ASE routes. If the keyword is not specified, using the command sets a preference for OSPF internal routes.
interface-type interface-number: Clears the statistics of the neighbor connected to the specified interface. router-id: Clears the statistics of the specified neighbor. Examples # Clear OSPF statistics. reset ospf counters reset ospf process Use reset ospf process to reset all OSPF processes or a specified process.
Views User view Default command level 2: System level Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. Usage guidelines If no process ID is specified, the command restarts route redistribution for all OSPF processes. Examples # Restart OSPF route redistribution. reset ospf redistribution rfc1583 compatible Use rfc1583 compatible to enable compatibility with RFC 1583. Use undo rfc1583 compatible to disable the function.
Syntax router id router-id undo router id Default No global router ID is configured. Views System view Default command level 2: System level Parameters router-id: Router ID, in the form of a dotted decimal IPv4 address. Usage guidelines Some routing protocols use a router ID to identify a device. You can configure a global router ID, which is used by routing protocols that have no router ID configured.
Default command level 2: System level Parameters interface-type interface-number: Specifies an interface by its type and number. all: Specifies all interfaces. Usage guidelines A disabled interface is a passive interface that cannot send any hello packets. To disable a network from receiving OSPF routes, you can issue this command on the interface connected to the network. Examples # Disable an interface from sending OSPF packets.
lsdbapproachoverflow: Information about cases approaching LSDB overflow. lsdboverflow: LSDB overflow information. maxagelsa: LSA max age information. nbrstatechange: Neighbor state change information. originatelsa: Information about LSAs originated locally. vifauthfail: Virtual interface authentication failure information. vifcfgerror: Virtual interface configuration error information. virifauthfail: Virtual interface authentication failure information.
incremental-interval: Specifies the incremental value in milliseconds, in the range of 10 to 60000. The default is 5000. Usage guidelines Based on the LSDB, an OSPF router uses SPF to calculate a shortest path tree with itself being the root. OSPF uses the shortest path tree to determine the next hop to a destination. By adjusting the SPF calculation interval, you can prevent bandwidth and router resources from being over-consumed due to frequent topology changes.
Examples # Configure Area 1 as a stub area. system-view [Sysname] ospf 100 [Sysname-ospf-100] area 1 [Sysname-ospf-100-area-0.0.0.1] stub Related commands default-cost stub-router Use stub-router to configure the router as a stub router. Use undo stub-router to restore the default. Syntax stub-router undo stub-router Default No router is configured as a stub router.
undo transmit-pacing Default An OSPF interface sends up to three LSU packets every 20 milliseconds. Views OSPF view Default command level 2: System level Parameters interval interval: Specifies an interval at which an interface sends LSU packets. The value range for the interval argument is 10 to 1000 milliseconds. If the router has multiple OSPF interfaces, increase this interval to reduce the total number of LSU packets sent by the router every second.
trans-delay seconds: Specifies the transmission delay interval in seconds, in the range of 1 to 3600. The default is 1. dead seconds: Specifies the dead interval in seconds, in the range of 1 to 32768. The default is 40. It must be identical to that on the virtual link neighbor. The dead interval is at least four times the hello interval. md5: Specifies the MD5 authentication mode. hmac-md5: Specifies the HMAC-MD5 authentication mode. simple: Specifies the simple authentication mode.
IS-IS configuration commands area-authentication-mode Use area-authentication-mode to specify the area authentication mode and a password. Use undo area-authentication-mode to restore the default. Syntax area-authentication-mode { md5 | simple } [ cipher ] password [ ip | osi ] undo area-authentication-mode Default No area authentication is configured. Views IS-IS view Default command level 2: System level Parameters md5: Specifies the MD5 authentication mode.
[Sysname-isis-1] area-authentication-mode simple ivg Related commands • domain-authentication-mode • isis authentication-mode • reset isis all auto-cost enable Use auto-cost enable to enable automatic link cost calculation. Use undo auto-cost enable to disable the function. Syntax auto-cost enable undo auto-cost enable Default This function is disabled.
Related commands • bandwidth-reference • cost-style bandwidth-reference (IS-IS view) Use bandwidth-reference to set the bandwidth reference value for automatic link cost calculation. Use undo bandwidth-reference to restore the default. Syntax bandwidth-reference value undo bandwidth-reference Default The bandwidth reference value is 100 Mbps. Views IS-IS view Default command level 2: System level Parameters value: Specifies the bandwidth reference value in Mbps, in the range of 1 to 2147483648.
Default command level 2: System level Parameters value: Link cost value. The value range varies with cost styles. • For styles narrow, narrow-compatible, and compatible, the cost value is in the range of 0 to 63. • For styles wide and wide-compatible, the cost value is in the range of 0 to 16777215. When the cost value is 16777215, the neighbor TLV generated on the link can only be used to transmit relevant TE information, but cannot be used to calculate routes.
narrow-compatible: Receives both narrow and wide cost style packets, but sends only narrow cost style packets. wide-compatible: Receives both narrow and wide cost style packets, but sends only wide cost style packets. relax-spf-limit: Allows receiving routes with a cost greater than 1023. If this keyword is not specified, any route with a cost higher than 1023 is discarded. This keyword is only available when compatible or narrow-compatible is included.
The Level-1 default route is advertised to other routers in the same area, and the Level-2 default route is advertised to all the Level-2 and Level-1-2 routers. If no topology is specified, the default route is advertised in the base topology. Using the apply isis level-1 command in routing policy view will generate a default route in a Level-1 LSP. Using the apply isis level-2 command in routing policy view will generate a default route in a Level-2 LSP.
network-entity: 10.0000.0000.0001.00 is-level :level-1-2 cost-style: narrow preference : 15 Lsp-length receive : 1497 Lsp-length originate : level-1 1497 level-2 1497 maximum imported routes number : 10000 Timers: lsp-max-age: 1200 lsp-refresh: 900 Interval between SPFs: 10 IPv4-Unicast voice(4000): Enable video(500): Disable IPv6-Unicast: Enable Table 29 Command output Field Description network-entity Network entity name. is-level IS-IS Routing level. cost-style Cost style.
Syntax display isis debug-switches { process-id | vpn-instance vpn-instance-name } [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters process-id: Displays the IS-IS debugging switch state for the IS-IS process. The ID is in the range of 1 to 65535. vpn-instance vpn-instance-name: Displays the IS-IS debugging switch state for the MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the IS-IS Graceful Restart status for the public network is displayed. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
Field Description T3 Timer Status Remaining time of T3 timer. T2 Timer Status Remaining time of T2 Timer. display isis interface Use display isis interface to display IS-IS interface information.
Interface information for ISIS(1) --------------------------------Interface: Id Vlan-interface999 IPV4.State 001 IPV6.State Up MTU Down SNPA Address : 000f-e237-c6e0 IP Address : 192.168.1.
IPv6 Global Address(es) : Csnp Timer Value : Hello Timer Value : 10 Hello Multiplier Value : 3 Lsp Timer Value L1 10 L2 10 : L12 33 Lsp Transmit-Throttle Count : L12 5 Cost : L1 10 L2 10 Priority : L1 64 L2 64 Retransmit Timer Value : L12 5 BFD : Disabled Tunnel L1 State : OFF Tunnel L2 State : ON Tunnel Type : AA Tunnel Metric : 0 Destination Router ID : 5.5.5.
Field Description Lsp Transmit-Throttle Count Number of LSP packets sent each time. Cost Cost of the interface. Priority DIS priority. Retransmit Timer Value LSP retransmission interval over the point-to-point link. BFD Whether BFD is enabled on the interface. MPLS TE Status Whether MPLS TE is enabled on the interface. INTF L1 TE Status Whether level-1 MPLS TE is enabled on the interface. INTF L2 TE Status Whether level-2 MPLS TE is enabled on the interface.
display isis interface statistics Interface Statistics information for ISIS(1) -------------------------------------------Type IPv4 Up/Down IPv6 Up/Down LAN 0/1 -/- P2P 4/0 -/- Table 32 Command output Field Description Network type of the interface: Type • LAN for broadcast network. • P2P for point-to-point network. IPv4 UP Number of IS-IS interfaces in up state. IPv4 DOWN Number of IS-IS interfaces in down state. IPv6 UP Number of IS-ISv6 interfaces in up state.
vpn-instance vpn-instance-name: Displays the LSDB of the MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the LSDB of the public network is displayed. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
MTR ID 10 0/0/0 MTR ID 4000 0/0/0 +NBR ID 1000.0000.0002.01 COST: 63 IPV4 UNICAST NBR ID 1000.0000.0002.01 COST: 63 MTR ID: 10 COST: 63 MTR ID: 2 IPV6 UNICAST NBR ID 1000.0000.0002.01 1000.0000.0001.00-01* 0x0000000b 0xbd7 0 (1188) 27 0/0/0 1000.0000.0001.00-02* 0x0000000f 0x68aa 1129 67 0/0/0 110 0/0/0 67 0/0/0 55 0/0/0 SOURCE 1000.0000.0001.00 +IP-Extended 3.1.1.0 255.255.255.0 COST: 63 255.255.255.0 COST: 63 IPV4 UNICAST 3.1.1.
1000.0000.0001.00 COST: 0 *-Self LSP, +-Self LSP(Extended), ATT-Attached, P-Partition, OL-Overload Table 33 Command output Field Description LSPID Link state packet 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. • OL—Overload bit. ATT/P/OL 1 means the LSP bit is set and 0 means the LSP bit is not set. SOURCE System ID of the originating router.
Field Description IPV4 UNICAST IP-External IPv4 unicast external reachability information of the originating router. IPV6 UNICAST-Ext IPv6 unicast external reachability information of the originating router. display isis mesh-group Use display isis mesh-group to display IS-IS mesh-group configuration information.
Serial2/2/1 100 Table 34 Command output Field Description Interface Interface name. Status Mesh-group to which the interface belongs. display isis name-table Use display isis name-table to display the host name-to-system ID mapping table.
6789.0000.0001 RUTA DYNAMIC 0000.0000.0041 RUTB STATIC Table 35 Command output Field Description System ID System ID. Hostname Host name. Mapping type: • Static. • Dynamic. Type display isis peer Use display isis peer to display IS-IS neighbor information.
Peer information for ISIS(1) ---------------------------System Id: 1111.1111.1111 Interface: Gigabitethernet2/1/1 State: Up HoldTime: 23s Circuit Id: 1111.1111.1112.01 Type: L1(L1L2) PRI: 64 System Id: 1111.1111.1111 Interface: Gigabitethernet2/1/1 State: Up HoldTime: 23s Circuit Id: 1111.1111.1112.01 Type: L2(L1L2) PRI: 64 # Display detailed IS-IS neighbor information. display isis peer verbose Peer information for ISIS(1) ---------------------------System Id: 1111.1111.
Field Description Holdtime. Within the holdtime if no hellos are received from the neighbor, the neighbor is considered down. If a hello is received, the holdtime is reset to the initial value. HoldTime Circuit type: • • • • Type L1—The circuit type is Level-1 and the neighbor is a Level-1 router. L2—The circuit type is Level-2 and the neighbor is a Level-2 router. L1(L1L2)—The circuit type is Level-1 and the neighbor is a Level-1-2 router.
display isis route Use display isis route to display IS-IS IPv4 routing information. Syntax display isis route [ ipv4 ] [ [ level-1 | level-2 ] | verbose ] * [ process-id [ ipv4-unicast topology-name ] | vpn-instance vpn-instance-name ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters ipv4: Displays IS-IS IPv4 routing information (the default). verbose: Displays detailed IS-IS IPv4 routing information.
IPV4 Destination IntCost ExtCost ExitInterface NextHop Flags -------------------------------------------------------------------------1.1.0.0/16 20 NULL GE2/1/1 1.2.1.1 R/L/- 1.2.0.
Field Description ISIS(1) IPv4 MT(voice-4000) Level-1 Forwarding Table IS-IS IPv4 routing information for Level-1 of topology voice. ISIS(1) IPv4 MT(voice-4000) Level-2 Forwarding Table IS-IS IPv4 routing information for Level-2 of topology voice. IPv4 Destination IPv4 destination address. IntCost Interior routing cost. ExtCost Exterior routing cost. ExitInterface Exit interface. NextHop Next hop. Routing state flag: • D—Direct route. • R—The route has been added into the routing table.
IPV4 Dest : 1.2.0.0/16 Int. Cost : 10 Ext. Cost : NULL Admin Tag : - Src Count : 3 Flag NextHop : Interface : ExitIndex : Direct GE2/1/1 : D/L/- 0x00000000 Flags: D-Direct, R-Added to RM, L-Advertised in LSPs, U-Up/Down Bit Set # Display detailed IS-IS IPv4 routing information of topology voice.
Field Description Src Count Count of advertising sources. Route state flag: • R—The route has been installed into the routing table. • L—The route has been flooded in an LSP. • U—Route leaking flag. If it is UP, routes from L2 to L1 cannot be Flag advertised back to L2. Next Hop Next hop. Interface Outgoing interface. ExitIndex Index of the outgoing interface. display isis spf-log Use display isis spf-log to display IS-IS SPF log information.
L2 IS_SPFTRIG_PERIODIC 2 0 13:18:8 L1 IS_SPFTRIG_PERIODIC 2 0 13:32:28 L2 IS_SPFTRIG_PERIODIC 2 0 13:32:28 L1 IS_SPFTRIG_PERIODIC 2 0 13:44:0 L2 IS_SPFTRIG_PERIODIC 2 0 13:44:0 L1 IS_SPFTRIG_PERIODIC 2 0 13:55:43 -->L2 IS_SPFTRIG_PERIODIC 2 0 13:55:43 L1 IS_SPFTRIG_PERIODIC 2 0 11:54:12 L2 IS_SPFTRIG_PERIODIC 2 0 11:54:12 L1 IS_SPFTRIG_PERIODIC 2 0 12:7:24 L2 IS_SPFTRIG_PERIODIC 2 0 12:7:24 L1 IS_SPFTRIG_PERIODIC 2 0 12:21:24 L2 IS_SPFTRIG_PERIODI
process-id: Displays IS-IS statistics for the IS-IS process. The ID is in the range of 1 to 65535. vpn-instance vpn-instance-name: Displays IS-IS statistics for the MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the IS-IS statistics for the public network is displayed. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
Imported routes information: IPv4 Imported Routes: Static: 0 Direct: 0 ISIS: 0 BGP: 0 RIP: 0 OSPF: 0 Total Number: 0 Lsp information: LSP Source ID: No.
Lsp information: LSP Source ID: No. of used LSPs Table 41 Command output Field Description Statistics information for ISIS(processid) Statistics for the IS-IS process. Level-1 Statistics Level-1 statistics. Level-2 Statistics Level-2 statistics. Learnt routes information MTR(Basic-V4) IPv4 Imported Routes. Imported routes information MTR(Basic-V6) IPv6 Imported Routes. MTR(voice) IPv4 Imported Routes. Number of learned IPv4 routes. Number of learned IPv6 routes.
password: Set the password. This argument is case sensitive. It must be a plaintext string of 1 to 16 characters, or a ciphertext string of 33 to 53 characters. ip: Checks IP related fields in LSPs. osi: Checks OSI related fields in LSPs. Usage guidelines The configured password in the specified mode is inserted into all outgoing Level-2 packets (LSP, CSNP and PSNP) and is used for authenticating the incoming Level-2 packets. All the backbone routers must have the same authentication mode and password.
Usage guidelines Do not use FRR and BFD at the same time. Otherwise, FRR might fail to take effect. The automatic backup next hop calculation of FRR and that of TE are mutually exclusive. Example # Enable IS-IS FRR to automatically calculate a backup next hop for all routes. system-view [Sysname] bfd echo-source-ip 1.1.1.1 [Sysname] isis [Sysname-isis-1] fast-reroute auto # Enable IS-IS FRR to designate a backup next hop by using a referenced routing policy named frr.
ip-prefix ip-prefix-name: Specifies the name of an IP prefix list that is used to filter redistributed routes, a case-sensitive string of 1 to 19 characters. For IP prefix list configuration information, see "Routing policy configuration commands." route-policy route-policy-name: Specifies the name of a routing policy that is used to filter redistributed routes, a case-sensitive string of 1 to 63 characters. For routing policy configuration information, see "Routing policy configuration commands.
Syntax [ ipv4-unicast topology-name ] filter-policy { acl-number | ip-prefix ip-prefix-name | route-policy route-policy-name } import undo [ ipv4-unicast topology-name ] filter-policy import Default IS-IS does not filter routes calculated from received LSPs. Views IS-IS view Default command level 2: System level Parameters ipv4-unicast: Specifies an IPv4 unicast topology. If no topology is specified, the routes calculated in the base topology is filtered.
[Sysname] acl number 3000 [Sysname-acl-adv-3000] rule 10 permit ip source 113.0.0.0 0 destination 255.255.0.0 0 [Sysname-acl-adv-3000] rule 100 deny ip [Sysname-acl-adv-3000] quit [Sysname] isis 1 [Sysname-isis 1] filter-policy 3000 import Related commands filter-policy export flash-flood Use flash-flood to enable IS-IS LSP flash flooding. Use undo flash-flood to disable IS-IS LSP flash flooding.
Use undo graceful-restart to disable IS-IS Graceful Restart capability. Syntax graceful-restart undo graceful-restart Default IS-IS Graceful Restart capability is disabled. Views IS-IS view Default command level 2: System level Usage guidelines The IS-IS GR and IS-IS non-stop routing (NSR) features are mutual exclusive. Do not configure the graceful-restart and non-stop-routing commands at the same time. Examples # Enable the Graceful Restart capability for IS-IS process 1.
graceful-restart suppress-sa Use graceful-restart suppress-sa to suppress the SA (Suppress-Advertisement) bit during restart. Use undo graceful-restart suppress-sa to set the SA bit. Syntax graceful-restart suppress-sa undo graceful-restart suppress-sa Default The SA bit is set during restart. Views IS-IS view Default command level 2: System level Usage guidelines Suppressing the SA bit is mainly for avoiding black hole route.
Parameters ipv4-unicast: Specifies an IPv4 unicast topology. topology-name: Specifies a topology by its name, a case-sensitive character string of 1 to 31 characters. protocol: Specifies a process by its ID in the range of 1 to 65535. It is available only when the protocol is IS-IS, OSPF or RIP. process-id: Process ID, in the range of 1 to 65535. It is available only when the protocol is IS-IS, OSPF or RIP. all-processes: Redistributes routes from all the processes of the specified routing protocol.
Related commands import-route isis level-2 into level-1 import-route isis level-2 into level-1 Use import-route isis level-2 into level-1 to enable route leaking from Level-2 to Level-1. Use undo import-route isis level-2 into level-1 to disable routing leaking.
Related commands import-route import-route limit (IS-IS view) Use import-route limit to configure the maximum number of redistributed Level 1/Level 2 IPv4 routes. Use undo import-route limit to restore the default. Syntax import-route limit number undo import-route limit Default The maximum number of redistributed Level 1/Level 2 IPv4 routes is 500000.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the IS-IS process belongs to the public network. Examples # Enable IS-IS routing process 1, with the system ID being 0000.0000.0002, and area ID being 01.0001. system-view [Sysname] isis 1 [Sysname-isis-1] network-entity 01.0001.0000.0000.0002.
Usage guidelines Whether a password should use ip or osi is not affected by the actual network environment. The password in the specified mode is inserted into all outgoing hello packets and is used for authenticating the incoming hello packets. Only the authentication succeeds can the neighbor relationship be formed. For two routers to become neighbors, the same authentication mode and password must be specified at both ends.
[Sysname] interface gigabitethernet 2/1/1 [Sysname-Gigabitethernet2/1/1] isis enable [Sysname-Gigabitethernet2/1/1] isis bfd enable isis circuit-level Use isis circuit-level to set the circuit level for the interface. Use undo isis circuit-level to restore the default. Syntax isis circuit-level [ level-1 | level-1-2 | level-2 ] undo isis circuit-level Default An interface can establish either the Level-1 or Level-2 adjacency.
Use undo isis circuit-type to cancel the configuration. Syntax isis circuit-type p2p undo isis circuit-type Default The network type of an interface depends on the physical media. (The network type of a VLAN interface is broadcast.) Views Interface view Default command level 2: System level Usage guidelines Interfaces with different network types operate differently.
Parameters ipv4-unicast: Specifies an IPv4 unicast topology. topology-name: Topology name, a case-sensitive character string of 1 to 31 characters. ipv6-unicast: Specifies an IPv6 unicast topology. value: Specifies an IS-IS cost for the interface. The cost range differs with cost styles. • For cost styles narrow, narrow-compatible and compatible, the cost is in the range of 1 to 63. • For cost styles wide and wide-compatible, the cost is in the range of 1 to 16777215.
Parameters symbolic-name: Specifies a DIS name, a string of 1 to 64 characters. Usage guidelines This command takes effect only on a router that must have dynamic system ID to host name mapping enabled. Examples # Configure the DIS name as LOCALAREA. system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-Gigabitethernet2/1/1] isis dis-name LOCALAREA isis dis-priority NOTE: This command is not available in loopback interface view.
system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-Gigabitethernet2/1/1] isis dis-priority 127 level-2 isis enable Use isis enable to enable an IS-IS process on the interface. Use undo isis enable to disable IS-IS. Syntax isis enable [ process-id ] undo isis enable Default No IS-IS routing process is enabled on an interface. Views Interface view Default command level 2: System level Parameters process-id: Specifies an IS-IS process by its ID in the range of 1 to 65535.
undo isis mesh-group Default An interface does not belong to any mesh group. Views Interface view Default command level 2: System level Parameters mesh-group-number: Specifies a mesh group by its number in the range of 1 to 4294967295. mesh-blocked: Blocks the interface, which sends LSPs only after receiving LSP requests. Usage guidelines For an interface not in a mesh group, it follows the normal process to flood the received LSPs to other interfaces.
Default command level 2: System level Parameters process-id: Specifies an IS-IS process by its ID in the range of 1 to 65535. Examples # Bind MIBs with IS-IS process 100. system-view [Sysname] isis mib-binding 100 isis multiple-topology ipv4-unicast Use isis multiple-topology ipv4-unicast to enable an IPv4 unicast topology on an IS-IS interface. Use undo isis multiple-topology ipv4-unicast to cancel the configuration.
Use undo isis peer-ip-ignore to restore the default. Syntax isis peer-ip-ignore undo isis peer-ip-ignore Default The PPP interface checks the peer's IP address upon receiving a hello packet. Views Interface view Default command level 2: System level Usage guidelines An IS-IS PPP interface requires the sender of a hello packet must be on the same network segment as it. Otherwise, it discards the hello packet. You can use the isis peer-ip-ignore command to disable this restriction.
[Sysname-GigabitEthernet4/0/1] isis silent isis small-hello NOTE: This command is not available in loopback interface view. Use isis small-hello to configure the interface to send small hello packets without CLVs. Use undo isis small-hello to restore the default. Syntax isis small-hello undo isis small-hello Default An interface sends standard hello packets. Views Interface view Default command level 2: System level Examples # Configure the GigabitEthernet 4/0/1 interface to send small Hello packets.
Default command level 2: System level Parameters seconds: Specifies on the DIS of a broadcast network the interval for sending CSNP packets. The value range is 1 to 600 seconds. level-1: Applies the interval to Level-1. level-2: Applies the interval to Level-2. Usage guidelines This command only applies to the DIS of a broadcast network, which sends CSNP packets periodically for LSDB synchronization. If no level is specified, the CSNP interval applies to both Level-1 and Level-2.
Usage guidelines Level-1 and Level-2 hello packets are sent independently on a broadcast network, so you need to specify an interval for each of the two levels. On a P2P link, Level-1 and Level-2 packets are both sent in P2P hello packets, and you need not specify an interval for each of the two levels. You can configure keywords level-1 and level-2 only on broadcast interfaces. Before you do that, enable IS-IS on the interface.
Usage guidelines With the IS-IS hello multiplier configured, a router can uses hello packets to notify its neighbor router of the adjacency hold time (hello multiplier times hello interval). If the neighbor router receives no hello packets from this router within the hold time, it declares the adjacency down. You can adjust the adjacency hold time by changing the hello multiplier or the hello interval on an interface.
count: Specifies the maximum number of link-state packets to be sent at one time, in the range of 1 to 1000. The default is 5. Examples # Configure the interval as 500 milliseconds for sending LSPs on interface GigabitEthernet 4/0/1. system-view [Sysname] interface GigabitEthernet 4/0/1 [Sysname-GigabitEthernet4/0/1] isis timer lsp 500 Related commands isis timer retransmit isis timer retransmit NOTE: This command is not available in loopback interface view.
Related commands 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 default IS level is level-1-2. Views IS-IS view Default command level 2: System level Parameters level-1: Configures the router to work on Level-1, which means it only calculates routes within the area, and maintains the L1 LSDB.
Syntax is-name sys-name undo is-name Default Dynamic system ID to hostname mapping is not enabled. Views IS-IS view Default command level 2: System level Parameters symbolic-name: Specifies a host name for the local IS, a string of 1 to 64 characters. Examples # Configure a host name for the local IS. system-view [Sysname] isis 1 [Sysname-isis-1] is-name RUTA is-name map Use is-name map to configure a system ID to host name mapping for a remote IS. Use undo is-name map to remove the mapping.
is-snmp-traps enable Use is-snmp-traps enable to enable the SNMP Trap function of IS-IS. Use undo is-snmp-traps to disable this function. Syntax is-snmp-traps enable undo is-snmp-traps Default SNMP Trap is enabled. Views IS-IS view Default command level 2: System level Examples # Enable SNMP Trap. system-view [Sysname] isis 1 [Sysname-isis-1] is-snmp-traps enable log-peer-change (IS-IS view) Use log-peer-change to enable the logging of IS-IS neighbor state changes.
[Sysname-isis-1] log-peer-change lsp-fragments-extend Use lsp-fragments–extend to enable an LSP fragment extension mode for a level. Use undo lsp-fragments–extend to disable LSP fragment extension for a level. Syntax lsp-fragments-extend [ [ level-1 | level-1-2 | level-2 ] | [ mode-1 | mode-2 ] ] * undo lsp-fragments-extend Default LSP fragment extension is disabled. Views IS-IS view Default command level 2: System level Parameters level-1: Applies the fragment extension mode to Level-1 LSPs.
Default The maximum size of generated Level-1 and Level-2 LSPs is 1497 bytes. Views IS-IS view Default command level 2: System level Parameters size: Specifies the maximum size of LSP packets, in the range of 512 to 16384 bytes. level-1: Applies the size to Level-1 LSP packets. level-2: Applies the size to Level-2 LSP packets. Usage guidelines If neither Level-1 nor Level-2 is specified in the command, the configured maximum size applies to the current IS-IS level.
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 maximum load-balancing to restore the default. Syntax [ ipv4-unicast topology-name ] maximum load-balancing number undo [ ipv4-unicast topology-name ] maximum load-balancing Default The maximum number of ECMP routes is 8.
Default command level 2: System level Parameters topology-name: Specifies a topology by its name, a case-sensitive string of 1 to 31 characters. topology-number: Specifies a topology by its number in the range of 6 to 4095. Usage guidelines This command takes effect only after you enable the IPv4 unicast topology for the IPv4 address family and set the cost style to wide, compatible, or wide-compatible for the system. Examples # Enable IPv4 unicast topology voice (4000) for IS-IS process 1.
For example, a NET is ab.cdef.1234.5678.9abc.00, where area ID is ab.cdef, system ID is 1234.5678.9abc, and SEL is 00. Examples # Specify the NET as 10.0001.1010.1020.1030.00, of which 10.0001 is the area ID and 1010.1020.1030 is the system ID. system-view [Sysname] isis 1 [Sysname-isis-1] network-entity 10.0001.1010.1020.1030.00 Related commands • isis • isis enable non-stop-routing Use non-stop-routing to enable IS-IS NSR. Use undo non-stop-routing to disable IS-IS NSR.
undo non-stop-routing interval Default The NSR interval is 0 seconds—no NSR interval is set. Views IS-IS view Default command level 2: System view Parameters interval-value: Specifies the NSR interval in the range of 30 to 1800 seconds. The NSR interval refers to the expected interval of an active/standby main board switchover on a device.
Usage guidelines If a routing policy is specified in this command, the preference (if any) set by the routing policy applies to those matched routes. Other routes use the preference set by the preference command. When a router runs multiple routing protocols at the same time, the system configures a preference to each routing protocol. If several protocols find routes to the same destination, the route of the routing protocol with the highest preference is selected.
Syntax reset isis all [ process-id | vpn-instance vpn-instance-name ] Default No data structure information is cleared. Views User view Default command level 2: System level Parameters process-id: Clears the data structure information of an IS-IS process numbered from 1 to 65535. vpn-instance vpn-instance-name: Clears the data structure information of the MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters.
Usage guidelines This command is used when you need to re-establish an IS-IS neighbor relationship. Examples # Clear the data structure information of the neighbor with the system ID 0000.0c11.1111. reset isis peer 0000.0c11.1111 set-overload Use set-overload to set the overload bit. Use undo set-overload to clear the overload bit.
If the on-startup keyword is specified, IS-IS sets the overload bit upon system startup and keeps it set within the timeout2 interval. Examples # Set overload flag on the current router. system-view [Sysname] isis 1 [Sysname-isis-1] set-overload summary (IS-IS view) Use summary to configure a summary route. Use undo summary to remove a summary route.
You can summarize multiple contiguous networks into a single network to reduce the size of the routing table, as well as that of LSP and LSDB generated by the router. It is allowed to summarize native IS-IS routes and redistributed routes. After summarization, the cost of the summary route is the smallest cost of those summarized routes. The router summarizes only routes in local LSPs. Examples # Configure a summary route of 202.0.0.0/8. system-view [Sysname] isis 1 [Sysname-isis-1] summary 202.
• If the maximum, initial, and second wait intervals are specified: { { { IS-IS waits the initial interval before generating the first LSP. If the network topology is unstable—triggers occur at intervals shorter than the maximum interval, IS-IS waits the second-wait-interval before generating the second LSP and penalty is applied on the wait interval before generating the next LSP.
timer lsp-refresh Use timer lsp-refresh to configure the LSP refresh interval. Use undo timer lsp-refresh to restore the default. Syntax timer lsp-refresh seconds undo timer lsp-refresh Default The default LSP refresh interval is 900 seconds. Views IS-IS view Default command level 2: System level Parameters seconds: Specifies the LSP refresh interval in seconds, in the range of 1 to 65534.
Default command level 2: System level Parameters maximum-interval: Specifies the maximum SPF calculation interval, in the range of 1 to 120 seconds. initial-interval: Specifies the wait interval before the first SPF calculation, in the range of 10 to 60000 milliseconds. second-wait-interval: Specifies the wait interval before the second SPF calculation, in the range of 10 to 60000 milliseconds.
Views IS-IS view Default command level 2: System level Parameters virtual-system-id: Virtual system ID of the IS-IS process. Usage guidelines Up to 50 virtual system IDs can be configured for the IS-IS process. Examples # Set a virtual system ID of 2222.2222.2222 for IS-IS process 1. system-view [Sysname] isis 1 [Sysname-isis-1] virtual-system 2222.2222.
BGP configuration commands For more information about routing policy configuration commands in this document, see "Routing policy configuration commands." aggregate Use aggregate to create a summary route in the BGP routing table. Use undo aggregate to remove a summary route.
Keywords Function detail-suppressed This keyword does not suppress the summary route, but it suppresses the advertisement of all the more specific routes. To summarize only some specific routes, use the peer filter-policy command. suppress-policy Used to create a summary route and suppress the advertisement of some summarized routes. If you want to suppress some routes selectively and leave other routes still advertised, use the if-match clause of the route-policy command.
Usage guidelines During BGP network optimization or upgrade, each change of BGP routing policies triggers route refreshing, which burdens BGP routers and the network. To resolve this issue, use the undo auto-refresh enable command to disable the policies from automatically taking effect. After modifying all policies, execute the refresh bgp or reset bgp command to make the new policies take effect. Examples # Disable BGP routing policies from automatically taking effect.
system-view [Sysname] bgp 100 [Sysname-bgp] balance ibgp 2 # In BGP view, set the number of EBGP ECMP routes to 2. system-view [Sysname] bgp 100 [Sysname-bgp] balance ebgp 2 # In BGP-VPN instance view, set the number of BGP ECMP routes to 2. (The VPN has been created.) system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] balance 2 # In BGP-VPN instance view, set the number of IBGP ECMP routes to 2. (The VPN has been created.
[Sysname] bgp 100 [Sysname-bgp] bestroute as-path-neglect # In BGP-VPN instance view, ignore AS_PATH in route selection. (The VPN has been created.) system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] bestroute as-path-neglect bestroute compare-med (BGP/BGP-VPN instance view) Use bestroute compare-med to enable the comparison of MEDs for routes on a per-AS basis. Use undo bestroute compare-med to disable this comparison.
Default The comparison is not enabled. Views BGP view, BGP-VPN instance view Default command level 2: System level Usage guidelines The system only compares MED values for paths from peers within the confederation. Paths from external ASs are advertised throughout the confederation without MED comparison. Examples # In BGP view, enable the comparison of the MED for paths from peers within the confederation.
[Sysname-bgp] compare-different-as-med (BGP/BGP-VPN instance view) Use compare-different-as-med to enable the comparison of the MED for paths from peers in different ASs. Use undo compare-different-as-med to disable the comparison. Syntax compare-different-as-med undo compare-different-as-med Default The comparison is disabled.
Views BGP view Default command level 2: System level Parameters as-number: Specifies the number of the AS that contains multiple sub-ASs, in the range of 1 to 4294967295. Usage guidelines Configuring a confederation can reduce IBGP connections in a large AS. You can split the AS into several sub-ASs, and each sub-AS remains fully meshed. These sub-ASs form a confederation. Key IGP attributes of a route, such as the next hop, MED, or local preference, are not discarded when crossing each sub-AS.
Views BGP view Default command level 2: System level Usage guidelines All devices should be configured with this command to interact with those nonstandard devices in the confederation. Examples # AS 100 contains routers not compliant with RFC 3065 and comprises two sub-ASs, 64000 and 65000.
If the undo confederation peer-as command without the as-number-list argument is used, all confederation peer sub-ASs are removed. Examples # Specify confederation peer sub ASs 2000 and 2001. system-view [Sysname] bgp 100 [Sysname-bgp] confederation id 10 [Sysname-bgp] confederation peer-as 2000 2001 Related commands • confederation id • confederation nonstandard dampening (BGP/BGP-VPN instance view) Use dampening to enable BGP route dampening, configure dampening parameters, or both.
Usage guidelines The command dampens only EBGP routes rather than IBGP routes. Examples # In BGP view, configure BGP route dampening. system-view [Sysname] bgp 100 [Sysname-bgp] dampening 15 15 1000 2000 10000 # In BGP-VPN instance view, configure BGP route dampening. (The VPN has been created.
Examples # Enable the default use of IPv4 unicast address family for the peers that are established using the peer as-number command. system-view [Sysname] bgp 100 [Sysname-bgp] default ipv4-unicast default local-preference (BGP/BGP-VPN instance view) Use default local-preference to configure the default local preference. Use undo default local-preference to restore the default value.
Syntax default med med-value undo default med Default The default med-value is 0. Views BGP view, BGP-VPN instance view Default command level 2: System level Parameters med-value: Specifies the default MED value in the range of 0 to 4294967295. Usage guidelines Multi-exit discriminator (MED) is an external metric for routes. Different from local preference, MED is exchanged between ASs and stays in the AS once it enters the AS. The route with a lower MED is preferred.
Default command level 2: System level Usage guidelines You must use the default-route imported command together with the import-route command to redistribute default routes from other protocols. Examples # In BGP view, allow default route redistribution from OSPF into BGP. system-view [Sysname] bgp 100 [Sysname-bgp] default-route imported [Sysname-bgp] import-route ospf 1 # In BGP-VPN instance view, enable redistributing default route from OSPF into BGP. (The VPN has been created.
display bgp group aaa BGP peer-group is aaa Remote AS 200 Type : external Maximum allowed prefix number: 4294967295 Threshold: 75% Configured hold timer value: 180 Keepalive timer value: 60 Minimum time between advertisement runs is 30 seconds Peer Preferred Value: 0 No routing policy is configured Members (* - Dynamically created peer): Peer AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State 2.2.2.1 200 0 0 0 0 00:00:35 Active *10.1.1.
Field Description PrefRcv Number of prefixes received. Up/Down Duration of the session/duration of the current state (when no session is established). State State machine state of the peer. display bgp network Use display bgp network to display routing information advertised with the network command.
Field Description Route-policy Routing policy. Short-cut Short-cut route. display bgp non-stop-routing Use display bgp non-stop-routing to display the running status of BGP NSR. Syntax display bgp non-stop-routing [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
Views Any view Default command level 1: Monitor level Parameters as-regular-expression: Specifies an AS path regular expression, a string of 1 to 80 characters. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
Views Any view Default command level 1: Monitor level Parameters ip-address: Specifies an IP address of an peer to be displayed, in dotted decimal notation. group-name: Specifies the name of a peer group to be displayed, a string of 1 to 47 characters. log-info: Displays the log information for the specified peer. verbose: Displays detailed information about the peer/peer group. |: Filters command output by specifying a regular expression.
Negotiated: send Peer Preferred Value: 0 BFD: Enabled Routing policy configured: No routing policy is configured Table 47 Command output Field Description Peer IP address of the peer. Local Local router ID. Type Peer type. BGP version BGP version. remote router ID Router ID of the peer. BGP current state Current state of the peer. BGP current event Current event of the peer. BGP last state Previous state of the peer. Port TCP port numbers of the local router and its peer.
Field Description Negotiated: send Negotiation result: The local BGP router can send Router-refresh messages carrying the ORF information, and the peer can receive Router-refresh messages carrying the ORF information. (This field is not displayed if neither the send nor the receive capability is supported.) Peer Preferred Value Preferred value specified for the routes from the peer. BFD BFD state: Enabled or disabled. Routing policy configured Local routing policy.
display bgp peer received ip-prefix Use display bgp peer received ip-prefix to display the prefix information in the ORF message from the specified BGP peer. Syntax display bgp peer ip-address received ip-prefix [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters ip-address: Specifies a BGP peer by its IP address. |: Filters command output by specifying a regular expression.
display bgp routing-table Use display bgp routing-table to display specified BGP routing information in the BGP routing table. Syntax display bgp routing-table [ ip-address [ { mask | mask-length } [ longer-prefixes ] ] ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters ip-address: Specifies a destination IP address. mask: Specifies a network mask, in dotted decimal notation.
Table 50 Command output Field Description Total Number of Routes Total Number of Routes. BGP Local router ID BGP local router ID. Status codes: Status codes • • • • • • • • * – valid—Valid route. ^ - VPNv4 best—Best VPNv4 route. > – best—Best route. d – damped—Dampened route. h – history—History route. i – internal—Internal route. s – suppressed—Suppressed route. S – Stale—Stale route. Origin attributes: Origin • i – IGP—Originated in the AS. • e – EGP—Learned through EGP.
Default command level 1: Monitor level Parameters as-path-acl-number: Displays routing information permitted by the AS path ACL, which is specifies with a number in the range of 1 to 256. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # Display BGP CIDR routing information. display bgp routing-table cidr Total Number of Routes: 1 BGP Local router ID is 20.20.20.1 Status codes: * - valid, ^ - VPNv4 best, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? – incomplete *> Network NextHop MED 40.40.40.0/24 30.30.30.
include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # Display BGP routing information with the specified BGP community. display bgp routing-table community 11:22 BGP Local router ID is 10.10.10.
display bgp routing-table community-list 100 BGP Local router ID is 1.2.3.4 Status codes: * - valid, ^ - VPNv4 best, > - best, d - damped, h - history, i - internal, s - suppressed, Origin codes: i - IGP, e - EGP, ? – incomplete Network NextHop Metric LocPrf PrefVal Path *> 3.3.3.0/30 1.2.3.4 0 ? *> 4.4.0.0/20 1.2.3.4 0 ? *> 4.5.6.0/26 1.2.3.4 0 ? For description of the fields, see Table 50.
Table 51 Command output Field Description From IP address from which the route was received. Reuse Reuse time of the route. For description of the other fields, see Table 50. display bgp routing-table dampening parameter Use display bgp routing-table dampening parameter to display BGP route dampening parameters.
Field Description Suppress-Limit Limit for a route to be suppressed. Related commands dampening display bgp routing-table different-origin-as Use display bgp routing-table different-origin-as to display BGP routes originating from different autonomous systems. Syntax display bgp routing-table different-origin-as [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression.
Syntax display bgp routing-table flap-info [ regular-expression as-regular-expression | [ as-path-acl as-path-acl-number | ip-address [ { mask | mask-length } [ longer-match ] ] ] [ | { begin | exclude | include } regular-expression ] ] Views Any view Default command level 1: Monitor level Parameters as-regular-expression: Displays route flap information that matches the AS path regular expression, which is a string of 1 to 80 characters.
Field Description Reuse Reuse time of the route. For description of the other fields, see Table 50. display bgp routing-table label Use display bgp routing-table label to display labeled BGP routing information. Syntax display bgp routing-table label [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression.
display bgp routing-table peer Use display bgp routing-table peer to display BGP routing information advertised to or received from the specified BGP peer. Syntax display bgp routing-table peer ip-address { advertised-routes | received-routes } [ network-address [ mask | mask-length ] | statistic ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters ip-address: Specifies an IP address of a peer.
Related commands display bgp peer display bgp routing-table regular-expression Use display bgp routing-table regular-expression to display BGP routing information matching the specified AS path regular expression. Syntax display bgp routing-table regular-expression as-regular-expression Views Any view Default command level 1: Monitor level Parameters as-regular-expression: AS path regular expression, a string of 1 to 80 characters.
begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # Display BGP routing statistics.
Default This function is enabled. Views BGP view, BGP-VPN instance view Default command level 2: System level Usage guidelines When the link to a directly connected EBGP peer is down, the router, with quick EBGP session reestablishment enabled, tears down the session to the peer, and then immediately reestablishes a session. If the function is not enabled, the router does not tear down the session until the holdtime times out.
ip-prefix-name: Name of an IP prefix list used to filter outgoing routing information, a string of 1 to 19 characters. direct: Filters direct routes. isis process-id: Filters outgoing routes redistributed from an ISIS process. The ID is in the range of 1 to 65535. ospf process-id: Filters outgoing routes redistributed from the OSPF process with an ID in the range of 1 to 65535. rip process-id: Filters outgoing routes redistributed from a RIP process. The ID is in the range of 1 to 65535.
Use undo filter-policy import to disable the filtering. Syntax filter-policy { acl-number | ip-prefix ip-prefix-name } import undo filter-policy import Default Incoming routing information is not filtered. Views BGP view, BGP-VPN instance view Default command level 2: System level Parameters acl-number: Specifies the number of an ACL used to filter incoming routing information, in the range of 2000 to 3999.
[Sysname] bgp 100 [Sysname-bgp] filter-policy 3000 import graceful-restart (BGP view) Use graceful-restart to enable BGP Graceful Restart capability. Use undo graceful-restart to disable BGP Graceful Restart capability. Syntax graceful-restart undo graceful-restart Default BGP Graceful Restart capability is disabled. Views BGP view Default command level 2: System level Usage guidelines During active/standby switchover, a GR-capable BGP speaker can maintain the packet forwarding table.
Parameters timer: Maximum time for a peer to reestablish a BGP session, in the range of 3 to 600 seconds. Usage guidelines Before you configure this command, you must enable the BGP Graceful Restart capability. Examples # Configure the maximum time for a peer to reestablish a BGP session as 300 seconds.
group (BGP/BGP-VPN instance view) Use group to create a peer group. Use undo group to delete a peer group. Syntax group group-name [ external | internal ] undo group group-name Views BGP view, BGP-VPN instance view Default command level 2: System level Parameters group-name: Name of a peer group, a string of 1 to 47 characters. external: Creates an EBGP peer group, which can be the group of another sub AS in a confederation. internal: Creates an IBGP peer group.
Syntax ignore-first-as undo ignore-first-as Default BGP checks the first AS number of a received EBGP route update. If the first AS number is not that of the BGP peer, the BGP router discards the route update. Views BGP view Examples # Configure BGP to ignore the first AS number of EBGP route updates. system-view [Sysname] bgp 100 [Sysname-bgp] ignore-first-as import-route (BGP/BGP-VPN instance view) Use import-route to configure BGP to redistribute routes from the specified IGP protocol.
med-value: Specifies a MED value for redistributed routes, in the range of 0 to 4294967295. If the argument is not specified, the cost of the redistributed route is used as its MED in the BGP routing domain. route-policy-name: Name of a routing policy used to filter redistributed routes, a case-sensitive string of 1 to 63 characters. Usage guidelines Only active routes can be redistributed. You can use the display ip routing-table protocol command to display route state information.
[Sysname-bgp] ipv4-family vpn-instance vpn1 listen-range (BGP/BGP-VPN instance view) Use listen-range to enable BGP to accept connection requests from the specified subnet and to add dynamic peers into the specified peer group. Use undo listen-range to remove the IP address range.
log-peer-change Use log-peer-change to enable the global BGP logging on peers going up and down. Use undo log-peer-change to disable the function. Syntax log-peer-change undo log-peer-change Default The function is enabled. Views BGP view Default command level 2: System level Examples # Enable BGP logging on peers going up and down. system-view [Sysname] bgp 100 [Sysname-bgp] log-peer-change network (BGP/BGP-VPN instance view) Use network to inject a network to the local BGP routing table.
Usage guidelines The network route to be injected must exist in the local IP routing table, and using a routing policy makes route management more flexible. The ORIGIN attribute of the network route injected with the network command is IGP. Examples # In BGP view, inject the network segment 10.0.0.0/16 to the BGP routing table. system-view [Sysname] bgp 100 [Sysname-bgp] network 10.0.0.0 255.255.0.0 # In BGP-VPN instance view, advertise the network segment 10.0.0.0/16 to the BGP routing table.
[Sysname-bgp] network 10.0.0.0 255.255.0.0 short-cut # In BGP-VPN instance view, increase the preference of EBGP route 10.0.0.0/16. (The VPN has been created.) system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] network 10.0.0.0 255.255.0.0 short-cut non-stop-routing Use non-stop-routing to enable BGP NSR. Use undo non-stop-routing to disable BGP NSR. Syntax non-stop-routing undo non-stop-routing Default BGP NSR is disabled.
Views BGP view, BGP-VPN instance view Default command level 2: System level Parameters group-name: Name of a peer group, a string of 1 to 47 characters. ip-address: IP address of a peer. Examples # In BGP view, advertise the community attribute to peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] peer test advertise-community # In BGP-VPN instance view, advertise the community attribute to peer group test. (The VPN has been created.
Parameters group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ip-address: Specifies an IP address of a peer. Examples # In BGP view, advertise the extended community attribute to the peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] peer test advertise-ext-community # In BGP-VPN view, advertise the extended community attribute to the peer group test. (The VPN has been created.
Examples # In BGP view, configure the number of times the local AS number can appear in AS-path attribute of routes from peer 1.1.1.1 as 2. system-view [Sysname] bgp 100 [Sysname-bgp] peer 1.1.1.1 allow-as-loop 2 # In BGP-VPN instance view, configure the number of times for which the local AS number can appear in AS-path attribute of routes from peer 1.1.1.1 as 2. (The VPN has been created.
• Specify the AS number of the peer when adding it to the specified peer group by using the peer ip-address group group-name as-number as-number command. As an alternative, use the peer as-number command to specify the AS number of a peer group so that a newly added peer belongs to the AS. The AS number of a peer/peer group cannot be modified directly. To do so, you have to delete the peer/peer group and configure it again. Examples # In BGP view, specify peer group test in AS 100.
[Sysname-bgp] peer test as-path-acl 1 export # In BGP-VPN instance view, reference the AS path ACL 1 to filter routes outgoing to the peer group test. (The VPN has been created.) system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] peer test as-path-acl 1 export Related commands • apply as-path • if-match as-path • ip as-path peer bfd Use peer bfd to enable BFD for a BGP peer. Use undo peer bfd to disable BFD for a BGP peer.
Use undo peer capability-advertise conventional to enable BGP multi-protocol extension and route refresh for a peer/peer group. Syntax peer { group-name | ip-address } capability-advertise conventional undo peer { group-name | ip-address } capability-advertise conventional Default BGP multi-protocol extension and route refresh are enabled.
receive: Supports receiving route-refresh messages carrying the ORF information. send: Supports sending route-refresh messages carrying the ORF information. Usage guidelines • After you enable the ORF capability, the local BGP router negotiates the ORF capability with the BGP peer through Open messages. After that, the BGP router can exchange ORF information in route-refresh messages with the peer.
Syntax peer { group-name | ip-address } capability-advertise orf non-standard undo peer { group-name | ip-address } capability-advertise orf non-standard Default The non-standard ORF capability is not enabled for a BGP peer or peer group. Views BGP view, BGP-VPN instance view Default command level 2: System level Parameters group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ip-address: Specifies the IP address of a peer.
Default The capability is enabled. Views BGP view, BGP-VPN instance view Default command level 2: System level Parameters group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ip-address: Specifies the IP address of a peer. Examples # In BGP view, enable BGP route refresh for peer 160.89.2.33. system-view [Sysname] bgp 100 [Sysname-bgp] peer 160.89.2.33 as-number 100 [Sysname-bgp] peer 160.89.2.
Usage guidelines The device supports 4-byte AS numbers by default. If the peer device supports only 2-byte AS numbers, you must enable the 4-byte AS number suppression function on the local device. If the peer device supports 4-byte AS numbers, do not enable the suppression function. Otherwise, the BGP peer relationship cannot be established. Examples # In BGP view, enable 4-byte AS number suppression for peer 160.89.2.33. system-view [Sysname] bgp 100 [Sysname-bgp] peer 160.89.2.
interface B, you need to execute the peer connect-interface command on the peer to specify the source interface (the owner of IP address x.x.x.x) for establishing TCP connections. To establish multiple BGP connections to another BGP router, you need to specify on the local router the respective source interfaces for establishing TCP connections to the peers on the peering BGP router.
[Sysname] bgp 100 [Sysname-bgp] peer test default-route-advertise # In BGP-VPN instance view, advertise a default route to peer group test. (The VPN has been created.) system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] peer test default-route-advertise peer description (BGP/BGP-VPN instance view) Use peer description to configure the description information for a peer/peer group.
peer ebgp-max-hop (BGP/BGP-VPN instance view) Use peer ebgp-max-hop to allow establishing an EBGP session with a peer or peer group that is on an indirectly connected network. Use undo peer ebgp-max-hop to restore the default. Syntax peer { group-name | ip-address } ebgp-max-hop [ hop-count ] undo peer { group-name | ip-address } ebgp-max-hop Default This feature is disabled.
Default The BGP peer is enabled. Views BGP view, BGP VPN instance view Default command level 2: System level Parameters ip-address: Specifies the IP address of a peer. Usage guidelines If a peer is disabled, the router does not exchange routing information with the peer. Execution of the undo peer enable command also deletes BGP IPv4 address family configuration. Examples # Disable peer 18.10.0.9. system-view [Sysname] bgp 100 [Sysname-bgp] peer 18.10.0.
Examples # In BGP view, configure a fake AS number of 200 for the peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] peer test fake-as 200 # In BGP-VPN instance view, configure a fake AS number of 200 for the peer group test. (The VPN has been created.
[Sysname-bgp-ipv4-vpn1] peer test filter-policy 2000 export Related commands peer as-path-acl peer group (BGP/BGP-VPN instance view) Use peer group to add a peer to a peer group. Use undo peer group to delete a specified peer from a peer group. Syntax peer ip-address group group-name [ as-number as-number ] undo peer ip-address group group-name Default No peer exists in a peer group.
peer ignore (BGP/BGP-VPN instance view) Use peer ignore to disable session establishment with a peer or peer group. Use undo peer ignore to remove the configuration. Syntax peer { group-name | ip-address } ignore undo peer { group-name | ip-address } ignore Default Session establishment with a peer or peer group is allowed. Views BGP view, BGP-VPN instance view Default command level 2: System level Parameters group-name: Specifies the name of a peer group, a string of 1 to 47 characters.
Default No IP prefix list based filtering is configured. Views BGP view, BGP-VPN instance view Default command level 2: System level Parameters group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ip-address: Specifies the IP address of a peer. ip-prefix-name: Specifies the IP prefix list name, a string of 1 to 19 characters. export: Applies the filter to routes advertised to the specified peer/peer group.
Parameters group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ip-address: Specifies the IP address of a peer. Examples # In BGP view, save routing information from peer 131.100.1.1. system-view [Sysname] bgp 100 [Sysname-bgp] peer 131.100.1.1 as-number 200 [Sysname-bgp] peer 131.100.1.1 keep-all-routes # In BGP-VPN instance view, save routing information from peer 131.100.1.1. (The VPN has been created.
[Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] peer test log-change peer next-hop-local (BGP/BGP-VPN instance view) Use peer next-hop-local to specify the router as the next hop for routes sent to a peer/peer group. Use undo peer next-hop-local to remove the configuration.
Default No MD5 authentication is performed. Views BGP view, BGP-VPN instance view Default command level 2: System level Parameters group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ip-address: Specifies the IP address of a peer. cipher: Specifies a ciphertext password. simple: Specifies a plaintext password. password: Password, a case-sensitive string of 1 to 137 characters in cipher text, or 1 to 80 characters in plain text.
peer preferred-value (BGP/BGP-VPN instance view) Use peer preferred-value to assign a preferred value to routes received from a peer or peer group. Use undo peer preferred-value to restore the default value. Syntax peer { group-name | ip-address } preferred-value value undo peer { group-name | ip-address } preferred-value Default The default preferred value is 0.
peer public-as-only (BGP/BGP-VPN instance view) Use peer public-as-only to not keep private AS numbers in BGP updates sent to a peer/peer group. Use undo peer public-as-only to keep private AS numbers in BGP updates sent to a peer/peer group. Syntax peer { group-name | ip-address } public-as-only undo peer { group-name | ip-address } public-as-only Default BGP updates carry private AS numbers.
Default Neither the route reflector nor the client is configured. Views BGP view, BGP-VPN instance view Default command level 2: System level Parameters group-name: Name of a peer group, a string of 1 to 47 characters. ip-address: IP address of a peer. Usage guidelines The peer reflect-client command can be configured in both BGP view and BGP-VPNv4 subaddress family view.
Default The number of routes that can be received from a peer or peer group is not limited. Views BGP view, BGP-VPN instance view Default command level 2: System level Parameters group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ip-address: Specifies the IP address of a peer. prefix-number: Specifies the number of prefixes that can be received from the peer or peer group.
undo peer { group-name | ip-address } route-policy route-policy-name { export | import } Default No routing policy is applied to routes from/to the peer/peer group. Views BGP view, BGP-VPN instance view Default command level 2: System level Parameters group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ip-address: Specifies the IP address of a peer. route-policy-name: Specifies the routing policy name, a case-sensitive string of 1 to 63 characters.
Default command level 2: System level Parameters group-name: Specifies the name of a peer group, a sting of 1 to 47 characters. ip-address: Specifies the IP address of a peer. interval: Specifies the minimum interval for sending the same update message. The range is 0 to 600 seconds. A value of 0 means to send the update message immediately. Examples # In BGP view, specify the interval for sending the same update to peer group test as 10 seconds.
system-view [Sysname] bgp 100 [Sysname-bgp] peer 1.1.1.1 substitute-as # In BGP-VPN instance view, substitute local AS number for AS number of peer 1.1.1.1. (The VPN has been created.) system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] peer 1.1.1.1 substitute-as peer timer (BGP/BGP-VPN instance view) Use peer timer to configure the keepalive interval and holdtime for a peer or peer group. Use undo peer timer to restore the default.
[Sysname-bgp] peer test timer keepalive 60 hold 180 # In BGP-VPN instance view, configure the keepalive interval and holdtime for peer group test as 60s and 180s. (The VPN has been created.) system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] peer test timer keepalive 60 hold 180 # In BGP view, configure both the keepalive interval and holdtime for peer group test as 0 seconds, indicating the peer group never times out.
Usage guidelines With the peer ttl-security hops command configured, the device checks whether the TTL in the BGP packets received from the peer falls into the valid TTL range—255-hop-count+1 to 255. If yes, the packet is delivered to the CPU. Otherwise, the packet is discarded. Thus, GTSM prevents CPU utilization based attacks, and enhances system security. In addition, with GTSM configured, the device sends packets with TTL 255.
[Sysname-bgp] peer 1.1.1.1 update-no-advertise Related commands display bgp routing-table preference (BGP/BGP-VPN instance view) Use preference to configure preferences for external, internal, and local routes. Use undo preference to restore the default.
Syntax reflect between-clients undo reflect between-clients Default Route reflection between clients is enabled. Views BGP view, BGP-VPN instance view Default command level 2: System level Usage guidelines After a route reflector is configured, it reflects the routes of a client to other clients. If the clients of a route reflector are fully meshed, disable route reflection between clients to reduce routing costs. Examples # Disable route reflection between clients.
Parameters cluster-id: Specifies the cluster ID in the format of an integer in the range of 1 to 4294967295. ip-address: Specifies the cluster ID in the format of an IPv4 address in dotted decimal notation. Usage guidelines Typically, a cluster has only one route reflector. The router ID of the route reflector is the ID of the cluster. You can configure multiple route reflectors to improve network stability.
Usage guidelines Using this function can refresh the BGP routing table without tearing down BGP sessions and apply a newly configured routing policy. To perform BGP soft reset, all routers in the network must support route-refresh. If a router not supporting route-refresh exists in the network, you need to configure the peer keep-all-routes command to save all route updates before performing soft reset. Examples # Perform inbound BGP soft reset.
Parameters ip-address: Specifies the destination IP address of a route. mask: Specifies the mask, in dotted decimal notation. mask-length: Specifies the mask length in the range of 0 to 32. Examples # Clear damping information for route 20.1.0.0/16 and release the suppressed route. reset bgp dampening 20.1.0.0 255.255.0.
Views User view Default command level 2: System level Examples # Reset all the BGP sessions of IPv4 unicast address family. reset bgp ipv4 all router id (system view) Use router id to configure a global router ID. Use undo router id to remove the global router ID. Syntax router id router-id undo router id Default No global router ID is configured. Views System view Default command level 2: System level Parameters router-id: Router ID, in the form of a dotted decimal IPv4 address.
router-id (BGP view) Use router-id to specify a router ID. Use undo router-id to remove the router ID. Syntax router-id router-id undo router-id Default A BGP router uses the global router ID. You can execute the router id command in system view to configure the global router ID. Views BGP view Default command level 2: System level Parameters router-id: Router ID in IP address format.
Views BGP view, BGP-VPN instance view Default command level 2: System level Usage guidelines Neither the default route nor the routes imported using the network command can be summarized automatically. The summary automatic command helps BGP limit the number of routes redistributed from IGP to reduce the size of the routing table. Examples # In BGP view, enable automatic route summarization.
Examples # Enable the synchronization between BGP and IGP routes. system-view [Sysname] bgp 100 [Sysname-bgp] synchronization timer (BGP/BGP-VPN instance view) Use timer to configure the global keepalive interval and holdtime. Use undo timer to restore the default. Syntax timer keepalive keepalive hold holdtime undo timer Default The BGP keepalive interval and the holdtime are 60 seconds and 180 seconds, respectively.
system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] timer keepalive 60 hold 180 # In BGP view, configure both the BGP keepalive interval and holdtime as 0 seconds, indicating no peer connection will time out. system-view [Sysname] bgp 100 [Sysname-bgp] timer keepalive 0 hold 0 # In BGP-VPN instance view, configure both the keepalive interval and holdtime for all BGP sessions in vpn1 as 0 seconds, indicating no peer connection will time out.
Policy-based routing configuration commands apply access-vpn vpn-instance Use apply access-vpn vpn-instance to set one or multiple VPN instances. Use undo apply access-vpn vpn-instance to remove one or multiple specified VPN instances. Syntax apply access-vpn vpn-instance vpn-instance-name&<1-6> undo apply access-vpn vpn-instance [ vpn-instance-name ]&<1-6> Views Policy node view Default command level 2: System level Parameters vpn-instance-name&<1-6>: Specifies an MPLS L3VPN.
undo apply default interface-number ] ] output-interface [ interface-type interface-number [ interface-type Views Policy node view Default command level 2: System level Parameters interface-type interface-number: Specifies an interface by its type and number. track track-entry-number: Specifies a track entry by its number in the range of 1 to 1024. Usage guidelines You can specify up to two default output interfaces by performing this command once or twice.
system-view [Sysname] policy-based-route aa permit node 11 [Sysname-pbr-aa-11] apply fail-action continue apply ip-address default next-hop ip-address Use apply ip-address default next-hop to set the default next hops. Use undo apply ip-address default next-hop to remove the configuration.
Syntax apply ip-address default next-hop standby undo apply ip-address default next-hop [ standby ] Default Both default next hops take effect to achieve load sharing. Views Policy node view Default command level 2: System level Usage guidelines When two default next hops are specified, only the active default next hop takes effect. When the active default next hop is not available, the standby default next hop takes effect.
Parameters ip-address: Specifies the next hop IP address. direct: Specifies that the next hop must be directly connected to take effect. track track-entry-number: Specifies a track entry by its number in the range of 1 to 1024. standby: Specifies the active/standby load sharing mode. Without this keyword, round robin load sharing is implemented. Usage guidelines You can specify up to two next hops in one command line or by performing this command twice.
system-view [Sysname] policy-based-route aa permit node 11 [Sysname-pbr-aa-11] apply ip-address next-hop 1.1.1.1 direct 2.2.2.2 [Sysname-pbr-aa-11] apply ip-address next-hop standby Related commands apply ip-address next-hop ip-address apply ip-df zero Use apply ip-df zero to set the Don't Fragment (DF) bit in the IP header of matching packets to 0, which means the packet can be fragmented. Use undo apply ip-df to remove the configuration.
Table 55 IP precedences and the corresponding types Precedence value Precedence type 0 routine 1 priority 2 immediate 3 flash 4 flash-override 5 critical 6 internet 7 network Examples # Set the precedence to 5 (critical) for packets. system-view [Sysname] policy-based-route aa permit node 11 [Sysname-pbr-aa-11] apply ip-precedence critical apply output-interface Use apply output-interface to set output interfaces for packets.
Without any interface specified, the undo apply output-interface command removes all output interfaces. Non-broadcast multi-access (NBMA) networks adopt the unicast mode to send packets. Examples # Specify the interface Serial 2/2/0 as the output interface for IP packets.
display ip policy-based-route setup Use display ip policy-based-route setup to display PBR configuration.
if-match acl 3101 apply output-interface Serial2/2/0 # Display local PBR configuration. display ip policy-based-route setup local Local policy based routing configuration information: policy-based-route: pr01 permit node 1: if-match acl 3101 apply output-interface Serial2/2/0 Table 57 Command output Field Description policy Name Policy name. interface Interface where the policy is applied. Local means the policy is applied locally.
slot slot-number: Specifies a card by its slot number. (In standalone mode.) chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the ID of the IRF member device, and the slot-number argument represents the number of the slot that holds the card. (In IRF mode.) |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
Views Any view Default command level 1: Monitor level Parameters policy-name: Displays information about the specified policy. A policy name is a string of 1 to 19 characters. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
Default command level 2: System level Parameters acl-number: Specifies an ACL by its number in the range of 2000 to 3999. The number of a basic ACL is in the range of 2000 to 2999 and the number of an advanced ACL is in the range of 3000 to 3999. Examples # Permit the packets matching ACL 2010. system-view [Sysname] policy-based-route aa permit node 11 [Sysname-pbr-aa-11] if-match acl 2010 if-match packet-length Use if-match packet-length to define a packet length match criterion.
Views Policy node view Default command level 2: System level Parameters interface-type interface-number: Specifies a reverse input interface. Usage guidelines If the specified reverse input interface (such as a VLAN interface) is removed, the interface is displayed in the output and no packets can match the criterion. Examples # Define a criterion to match reverse input interface GigabitEthernet 2/1/1.
ip policy-based-route Use ip policy-based-route to configure PBR by applying a policy on the interface. Use undo ip policy-based-route to remove the configuration. Syntax ip policy-based-route policy-name undo ip policy-based-route policy-name Default No policy is applied on an interface. Views Interface view Default command level 2: System level Parameters policy-name: Specifies a policy by its name, a string of 1 to 19 characters. Usage guidelines You can apply only one policy on an interface PBR.
permit: Specifies the match mode of the policy node as permit. node node-number: Specifies the number of a policy node, in the range of 0 to 65535. A smaller number has a higher priority. Examples # Create permit-mode of Node 10 for policy 1, and enter policy node view. system-view [Sysname] policy-based-route policy1 permit node 10 [Sysname-pbr-policy1-10] reset policy-based-route statistics Use reset policy-based-route statistics to clear PBR statistics.
IPv6 static routing configuration 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 command level 2: System level Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, all IPv6 static routes of the public network are deleted.
undo ipv6 route-static ipv6-address prefix-length [ interface-type interface-number [ next-hop-address ] | next-hop-address | vpn-instance d-vpn-instance-name nexthop-address ] [ preference preference-value ] ipv6 route-static vpn-instance s-vpn-instance-name&<1-6> ipv6-address prefix-length { interface-type interface-number [ next-hop-address ] | nexthop-address [ public ] | vpn-instance d-vpn-instance-name nexthop-address } [ preference preference-value ] undo ipv6 route-static vpn-instance s-vpn-instance
Examples # Configure an IPv6 static route, with the destination address being 1:1:2::/64 and next hop being 1:1:3::1.
RIPng configuration 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 is enabled. Views RIPng view Default command level 2: System level Usage guidelines Some fields in RIPng packet headers must be zero. These fields are called "zero fields." You can enable the zero field check on RIPng packet headers.
Default command level 2: System level Parameters cost: Specifies a default metric for redistributed routes, in the range of 0 to 16. Usage guidelines The specified default metric applies to the routes redistributed by the import-route command with no metric specified. Examples # Set the default metric of redistributed routes to 2.
Examples # Display the running status and configuration information of all configured RIPng processes.
Default command level 1: Monitor level Parameters process-id: Specifies a RIPng process by its ID in the range of 1 to 65535. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
Field Description Imported Route redistributed from another routing protocol. RIPng-interface Route learned from the interface. display ripng interface Use display ripng interface to display the interface information of the RIPng process.
Table 62 Command output Field Description Interface-name Name of an interface running RIPng. Link Local Address Link-local address of an interface running RIPng. Indicates whether the split horizon function is enabled: • on—Enabled. • off—Disabled. Split-horizon Indicates whether the poison reverse function is enabled: Poison-reverse • on—Enabled. • off—Disabled. MetricIn/MetricOut Additional metric to incoming and outgoing routes.
begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # Display the routing information of RIPng process 100.
Field Description "G" The route is in Garbage-collect state. enable ipsec-policy (RIPng view) Use enable ipsec-policy to apply an IPsec policy in a RIPng process. Use undo enable ipsec-policy to remove the IPsec policy from the RIPng process. Syntax enable ipsec-policy policy-name undo enable ipsec-policy Default No IPsec policy is configured for the RIPng process. Views RIPng view Default command level 2: System level Parameters policy-name: IPsec policy name, a string of 1 to 15 characters.
Default command level 2: System level Parameters acl6-number: Specifies an IPv6 ACL by its number in the range of 2000 to 3999 to filter advertised routing information. ipv6-prefix ipv6-prefix-name: Specifies an IPv6 prefix list by its name, a string of 1 to 19 characters, to filter routing information. protocol: Filters routes redistributed from a routing protocol, including bgp4+, direct, isisv6, ospfv3, ripng, and static.
Syntax filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } import undo filter-policy import Default RIPng does not filter incoming routing information. Views RIPng view Default command level 2: System level Parameters acl6-number: Specifies an IPv6 ACL by its number in the range of 2000 to 3999 to filter incoming routing information. ipv6-prefix ipv6-prefix-name: Specifies an IPv6 prefix list by its name, a string of 1 to 19 characters, to filter incoming routes.
Use undo import-route to disable redistributing routes from another routing protocol. Syntax import-route protocol [ process-id ] [ allow-ibgp ] [ cost cost | route-policy route-policy-name ] * undo import-route protocol [ process-id ] Default RIPng does not redistribute routes from other routing protocols. Views RIPng view Default command level 2: System level Parameters protocol: Specifies a routing protocol from which to redistribute routes. It can be bgp4+, direct, isisv6, ospfv3, ripng, or static.
Views RIPng view Default command level 2: System level Parameters number: Specifies the maximum number of ECMP routes, in the range of 1 to 8. The default is 8. Usage guidelines Configure the maximum number of ECMP routes according to the memory size. Examples # Set the maximum number of ECMP routes to 2. system-view [Sysname] ripng 100 [Sysname-ripng-100] maximum load-balancing 2 preference Use preference to specify the preference for RIPng routes. Use undo preference to restore the default.
system-view [Sysname] ripng 100 [Sysname-ripng-100] preference 120 # Restore the default RIPng route preference. [Sysname-ripng-100] undo preference reset ripng process Use reset ripng process to reset the specified RIPng process. Syntax reset ripng process-id process Views User view Default command level 2: System level Parameters process-id: Specifies a RIPng process by its ID in the range of 1 to 65535.
ripng Use ripng to create a RIPng process and enter RIPng view. Use undo ripng to disable a RIPng process. Syntax ripng [ process-id ] [ vpn-instance vpn-instance-name ] undo ripng [ process-id ] [ vpn-instance vpn-instance-name ] Default No RIPng process is enabled. Views System view Default command level 2: System level 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.
Syntax ripng default-route { only | originate } [ cost cost ] undo ripng default-route Default A RIPng process does not advertise any default route. Views Interface view Default command level 2: System level Parameters only: Indicates that only the IPv6 default route (::/0) is advertised through the interface. originate: Indicates that the IPv6 default route (::/0) is advertised without suppressing other routes. cost: Specifies a metric for the advertised default route, in the range of 1 to 15.
Default command level 2: System level Parameters process-id: Specifies a RIPng process by its ID in the range of 1 to 65535. Examples # Enable RIPng 100 on GigabitEthernet 2/1/1. system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] ripng 100 enable ripng ipsec-policy Use ripng ipsec-policy to apply an IPsec policy on a RIPng interface. Use undo ripng ipsec-policy to remove the IPsec policy from the RIPng interface.
undo ripng metricin Default The additional metric to received routes is 0. Views Interface view Default command level 2: System level Parameters value: Adds an additional metric to received routes, in the range of 0 to 16. Examples # Specify the additional routing metric as 12 for RIPng routes received by GigabitEthernet2/1/1.
ripng poison-reverse Use ripng poison-reverse to enable the poison reverse function. Use undo ripng poison-reverse to disable the poison reverse function. Syntax ripng poison-reverse undo ripng poison-reverse Default The poison reverse function is disabled. Views Interface view Default command level 2: System level Examples # Enable the poison reverse function for RIPng update messages on GigabitEthernet 2/1/1.
On frame relay and other non-broadcast multi-access (NBMA) links, split horizon should be disabled if multiple VCs are configured on the primary interface and secondary interfaces to ensure route advertisement. For detailed information, see Layer 2—WAN Configuration Guide. Examples # Enable the split horizon function on GigabitEthernet 2/1/1.
Syntax timers { garbage-collect garbage-collect-value | suppress suppress-value | timeout timeout-value | update update-value } * undo timers { garbage-collect | suppress | timeout | update } * Default The garbage-collect timer is 120 seconds, the suppress timer 120 seconds, the timeout timer 180 seconds, and the update timer 30 seconds. Views RIPng view Default command level 2: System level Parameters garbage-collect-value: Specifies the garbage-collect timer in seconds, in the range of 1 to 86400.
OSPFv3 configuration commands abr-summary (OSPFv3 area view) Use abr-summary to configure an IPv6 summary route on an area border router. Use undo abr-summary to remove an IPv6 summary route. Then the summarized routes are advertised. Syntax abr-summary ipv6-address prefix-length [ not-advertise ] undo abr-summary ipv6-address prefix-length Default No route summarization is available on an ABR.
Views OSPFv3 view Default command level 2: System level Parameters area-id: Specifies an area by its ID, a decimal integer (in the range of 0 to 4294967295 and changed to IPv4 address format by the system) or an IPv4 address. Usage guidelines The undo form of the command is not available. An area is removed automatically if no configuration is made and no interface is up in the area. Examples # Enter OSPFv3 Area 0 view.
Examples # Specify the reference bandwidth value as 1000 Mbps. system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] bandwidth-reference 1000 default cost Use default cost to configure a default cost for redistributed routes. Use undo default cost to restore the default. Syntax default cost value undo default cost Default The default cost is 1.
Default command level 2: System level Parameters value: Specifies a cost for the default route advertised to the stub area or NSSA area. The value range is 0 to 16777214. Usage guidelines Use of this command is only available on the ABR that is connected to a stub area. By default, the cost specified by the default cost command applies for the default route to be advertised to a stub area or an NSSA area. For a stub area, the command specifies the cost of a default route.
cost value: Specifies a cost for the default route, in the range of 0 to 16777214. Without this option, the cost specified by the default cost command applies. route-policy route-policy-name: Specifies a routing policy, the name of which is a case-sensitive string of 1 to 63 characters. type type: Specifies a type for the ASE LSA: 1 or 2. The default is 2. Usage guidelines Using the import-route command cannot redistribute a default route. To do so, use the default-route-advertise command.
begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines If no process ID is specified, OSPFv3 brief information about all processes will be displayed.
Field Description Hold time between SPFs Hold time between SPF calculations. Minimum LSA interval Minimum interval for generating LSAs. Minimum LSA arrival Minimum LSA repeat arrival interval. Number of external LSA Number of ASE LSAs. These external LSAs' checksum Sum Sum of all the ASE LSAs' checksum. Number of AS-Scoped Unknown LSA Number of LSAs with unknown flooding scope. Number of LSA originated Number of LSAs originated. Number of LSA received Number of LSAs received.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
display ospfv3 interface Use display ospfv3 interface to display OSPFv3 interface information. Syntax display ospfv3 interface [ interface-type interface-number | statistic ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters interface-type interface-number: Specifies an interface by its type and number. statistic: Displays the interface statistics. |: Filters command output by specifying a regular expression.
Field Description OSPFv3 Process OSPFv3 Process. Area Area ID. Instance ID Instance ID. Router ID Router ID. Network Type Network type of the interface. Cost Cost value of the interface. Transmit Delay Transmission delay of the interface. State Interface state. Priority DR priority of the interface. No designated router on this link No designated router on this link. No backup designated router on this link No backup designated router on this link.
grace: Displays information about Grace-LSAs. inter-prefix: Displays information about Inter-area-prefix LSAs. inter-router: Displays information about Inter-area-router LSAs. intra-prefix: Displays information about Intra-area-prefix LSAs. link: Displays information about Link-LSAs. network: Displays information about Network-LSAs. nssa: Displays information about NSSA-external-LSAs. router: Displays information about Router-LSAs. link-state-id: Link state ID, an IPv4 address.
Table 67 Command output Field Description Link State ID Link state ID. Origin Router Originating router. Age Age of LSAs. Seq# LSA sequence number. CkSum LSA checksum. Prefix Number of prefixes. Link Number of links. Reference Type of referenced LSA. # Display Link-local LSA information in the LSDB. display ospfv3 lsdb link OSPFv3 Router with ID (2.2.2.2) (Process 1) Link-LSA (Interface Serial2/2/0) LS age: 11 LS Type: Link-LSA Link State ID: 0.0.2.6 Originating Router: 2.2.2.
OSPFv3 Router with ID (1.1.1.1) (Process 1) Grace-LSA (Interface Serial2/2/0) LS age : 15 LS Type : Grace-LSA Link State ID : 0.0.2.6 Originating Router : 1.1.1.1 LS Seq Number : 0x80000014 Checksum : 0XBA1F Length : 44 Graceful Restart Period: Restart Reason 120 : 3 - switch-over Table 69 Command output Field Description LS age Age of the LSA. LS Type Type of the LSA. LS Seq Number LSA sequence number. Checksum LSA checksum. Length LSA length.
Field Description LS Type Type of the LSA. LS Seq Number LSA sequence number. Checksum LSA checksum. Length LSA length. Prefix Address prefix. Prefix Options Prefix options. The P-bit indicates that NSSA-external-LSA-to-AS-external-LSA translation can be performed. # Display LSA statistics in the LSDB.
Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
Syntax display ospfv3 [ process-id ] next-hop [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
Default command level 1: Monitor level Parameters process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. area: Specifies to display neighbor information of the specified area. area-id: Specifies an area by its ID, a decimal integer that is translated into IPv4 address format by the system (in the range of 0 to 4294967295) or an IPv4 address. interface-type interface-number: Specifies an interface by its type and number. verbose: Displays detailed neighbor information.
OSPFv3 Process (1) Neighbor 1.1.1.1 is Full, interface address FE80::20F:E2FF:FE49:8050 In the area 0.0.0.1 via interface Serial2/2/0 DR is 1.1.1.1 BDR is 2.2.2.2 Options is 0x000013 (-|R|-|x|E|V6) Dead timer due in 00:00:39 Neighbor is up for 00:25:31 Database Summary List 0 Link State Request List 0 Link State Retransmission List 0 Graceful restart state: Normal Table 75 Command output Field Description Neighbor Neighbor ID. interface address Interface address. In the area 0.0.0.
Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
Views Any view Default command level 1: Monitor level Parameters process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. external: Displays the AS-external LSA information of the OSPFv3 link state request list. grace: Displays the Grace-LSA information of the OSPFv3 link state request list. inter-prefix: Displays the Inter-area-prefix LSA information of the OSPFv3 link state request list.
Field Description Area-ID Area ID. Nbr-ID Neighbor router ID. LS-Type Type of LSA. LS-ID Link state ID. AdvRouter Advertising router. SeqNum LSA sequence number. Age Age of LSA. CkSum Checksum. # Display the statistics of OSPFv3 link state request list. display ospfv3 request-list statistics OSPFv3 Router with ID (11.1.1.1) (Process 1) Interface GE2/1/1 Neighbor 10.1.1.1 LSA-Count 0 Table 78 Command output Field Description Interface Interface name.
intra-prefix: Displays the Intra-area-prefix LSA information of the OSPFv3 link state retransmission list. link: Displays the Link LSA information of the OSPFv3 link state retransmission list. network: Displays the Network-LSA information of the OSPFv3 link state retransmission list. nssa: Displays the NSSA-external-LSA information of the OSPFv3 link state retransmission list. router: Displays the Router-LSA information of the OSPFv3 link state retransmission list.
# Display the statistics of OSPFv3 link state retransmission list. display ospfv3 retrans-list statistics OSPFv3 Router with ID (11.1.1.1) (Process 1) Interface GE2/1/1 Neighbor LSA-Count 12.1.1.1 2 Table 80 Command output Field Description Interface Interface name. Neighbor Neighbor ID. LSA-Count Number of LSAs in the retransmission request list. display ospfv3 routing Use display ospfv3 routing to display OSPFv3 routing table information.
Examples # Display OSPFv3 routing table information. display ospfv3 routing I - Intra area route, E1 - Type 1 external route, IA - Inter area route, * N1 – Type 1 NSSA route E2 – Type 2 external route, N2 – Type 2 NSSA route - Selected route OSPFv3 Router with ID (1.1.1.
Syntax display ospfv3 statistics [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
display ospfv3 topology Use display ospfv3 topology to display OSPFv3 topology information. Syntax display ospfv3 [ process-id ] topology [ area area-id ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters process-id: Displays the topology information of an OSPFv3 process. The process ID is in the range of 1 to 65535. area: Displays the topology information of the specified area.
Field Description Bits Flag bit. Metric Cost value. Next-Hop Next hop. Interface Outbound interface. display ospfv3 vlink Use display ospfv3 vlink to display OSPFv3 virtual link information. Syntax display ospfv3 [ process-id ] vlink [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. |: Filters command output by specifying a regular expression.
Table 85 Command output Field Description Virtual Link VLINK1 to router 1.1.1.1 is up The virtual link VLINK1 to router 1.1.1.1 is up. Transit area 0.0.0.1 via interface Serial2/2/0 Interface Serial 2/2/0 in transit area 0.0.0.1. instance ID Instance ID. Local address Local IPv6 address. Remote address Remote IPv6 address. Transmit Delay Transmit delay of sending LSAs. State Interface state.
Examples # Apply IPsec policy policy001 to OSPFv3 area 0. system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] area 0 [Sysname-ospfv3-1-area-0.0.0.0] enable ipsec-policy policy001 filter-policy export (OSPFv3 view) Use filter-policy export to filter redistributed routes. Use undo filter-policy export to remove the configuration.
• 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. (The prefix must be valid; otherwise, the configuration is ineffective.) Using the filter-policy export command filters only routes redistributed by the import-route command.
Usage guidelines To reference an advanced ACL (with a number from 3000 to 3999) in the command, configure the ACL in one of the following ways: • To deny/permit a route with the specified destination, use rule [ rule-id ] { deny | permit } ipv6 source sour sour-prefix. • 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.
Usage guidelines You cannot enable the GR capability for an area of the current process already configured with the vlink-peer command. Examples # Enable the GR capability for OSPFv3 process 1. system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] graceful-restart enable graceful-restart helper enable Use graceful-restart helper enable to enable the GR helper capability for OSPFv3. Use undo graceful-restart helper enable to disable the GR helper capability for OSPFv3.
Default command level 2: System level Usage guidelines When an LSA change on the GR helper is detected, the GR helper device exits the GR helper mode. Examples # Enable strict LSA checking for the GR helper in OSPFv3 process 1. system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] graceful-restart helper strict-lsa-checking graceful-restart interval Use graceful-restart interval to configure the GR restart interval. Use undo graceful-restart interval to restore the default.
Syntax import-route protocol [ process-id | allow-ibgp ] [ cost value | route-policy route-policy-name | type type ] * undo import-route protocol [ process-id ] Default OSPFv3 does not redistribute routes from other protocols. Views OSPFv3 view Default command level 2: System level Parameters protocol: Redistributes routes from a specified routing protocol, which can be bgp4+, direct, isisv6, ospf v3, ripng, or static.
Views OSPFv3 view Default command level 2: System level Usage guidelines With this feature enabled, information about neighbor state changes of the current OSPFv3 process will display on the configuration terminal. Examples # Disable the logging on neighbor state changes of OSPFv3 process 100. system-view [Sysname] ospfv3 100 [Sysname-ospfv3-100] undo log-peer-change nssa (OSPFv3 area view) Use nssa to configure an area as an NSSA area. Use undo nssa to restore the default.
suppress-fa: Suppresses the forwarding address in the NSSA-external-LSAs from being placed in the AS-external LSAs. translate-always: Always translates NSSA-external-LSAs to AS-external LSAs. This keyword takes effect only on an NSSA ABR. translate-never: Never translates NSSA-external-LSAs to AS-external LSAs. This keyword takes effect only on an NSSA ABR.
[Sysname] ospfv3 1 [Sysname-ospfv3-1] maximum load-balancing 6 ospfv3 Use ospfv3 to enable an OSPFv3 process and enter OSPFv3 view. Use undo ospfv3 to disable an OSPFv3 process. Syntax ospfv3 [ process-id ] [ vpn-instance vpn-instance-name ] undo ospfv3 [ process-id ] Default The system runs no OSPFv3 process. Views System view Default command level 2: System level Parameters process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. The default is 1.
Views Interface view Default command level 2: System level Parameters process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. area-id: Specifies an area by its ID, a decimal integer (in the range of 0 to 4294967295) that is translated into IPv4 address format by the system or an IPv4 address. instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.
Use undo ospfv3 cost to restore the default OSPFv3 cost of the interface in an instance. Syntax ospfv3 cost value [ instance instance-id ] undo ospfv3 cost [ value ] [ instance instance-id ] Default The default cost depends on the interface type: 1 for a VLAN interface; 0 for a loopback interface; computed according to the bandwidth for other interfaces with the formula: Interface OSPF cost = Bandwidth reference value (100 Mbps) ÷ Interface bandwidth (Mbps).
Parameters priority: Specifies a DR priority in the range of 0 to 255. instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0. Usage guidelines An interface's DR priority determines its privilege in DR/BDR selection, and the interface with the highest priority is preferred. Examples # Set the DR priority for an interface in instance 1 to 8.
Syntax ospfv3 mtu-ignore [ instance instance-id ] undo ospfv3 mtu-ignore [ instance instance-id ] Default An interface performs MTU check during DD packet exchange. A neighbor relationship can be established only if the interface's MTU is the same as that of the peer. Views Interface view Default command level 2: System level Parameters instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.
non-broadcast: Specifies the interface to send packets in unicast mode. By default, an OSPFv3 interface whose network type is P2MP sends packets in multicast mode. instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0. Examples # Configure the interface's network type as NBMA.
undo ospfv3 timer dead [ seconds ] [ instance instance-id ] Default The OSPFv3 neighbor dead time is 40 seconds for P2P and Broadcast interfaces, and is not supported on P2MP and NBMA interfaces. Views Interface view Default command level 2: System level Parameters seconds: Specifies the dead time in seconds, in the range of 1 to 65535. instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.
Parameters seconds: Specifies the interval between hello packets, in the range of 1 to 65535 seconds. instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0. Examples # Configure the hello interval as 20 seconds for an interface in instance 1.
Use undo ospfv3 timer poll to restore the default value. Syntax ospfv3 timer poll seconds [ instance instance-id ] undo ospfv3 timer poll [ seconds ] [ instance instance-id ] Default The poll interval is 120 seconds. Views Interface view Default command level 2: System level Parameters seconds: Specifies the poll interval in seconds, in the range of 1 to 65535. instance-id: Specifies an interface instance by its ID in the range of 0 to 255. The default is 0.
Usage guidelines As LSAs are aged in the LSDB (incremented by 1 every second) but not aged on transmission, it is necessary to add a delay time to the age time before sending a LSA. This configuration is important for low-speed networks. Examples # Configure the transmission delay as 3 seconds for an interface in instance 1.
router-id Use router-id to configure the OSPFv3 router ID. Use undo router-id to remove a configured router ID. Syntax router-id router-id undo router-id Views OSPFv3 view Default command level 2: System level Parameters router-id: Specifies a 32-bit router ID in IPv4 address format. Usage guidelines Router ID is the unique identifier of a device running an OSPFv3 process in the AS. The OSPFv3 process cannot run without a Router ID. Make sure that different processes have different Router IDs.
Default command level 2: System level Parameters interface-type interface-number: Specifies an interface by its type and number. all: Specifies all interfaces. Usage guidelines Multiple processes can disable the same interface from receiving and sending OSPFv3 packets, but use of the silent-interface command takes effect only on interfaces enabled with the current process. Examples # Disable an interface from receiving and sending OSPFv3 packets in OSPFv3 processes 100 and 200.
Setting both the delay-interval and hold-interval to 0 triggers an SPF calculation at once, improving the network convergence speed. Examples # Configure the delay interval and hold interval as 6 seconds for SPF calculation. system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] spf timers 6 6 stub (OSPFv3 area view) Use stub to configure an area as a stub area. Use undo stub to remove the configuration. Syntax stub [ no-summary ] undo stub Default No area is configured as a stub area.
Use undo vlink-peer to remove a virtual link. Syntax vlink-peer router-id [ hello seconds | retransmit seconds | trans-delay seconds | dead seconds | instance instance-id | ipsec-policy policy-name ] * undo vlink-peer router-id [ hello | retransmit | trans-delay | dead | ipsec-policy ] * Views OSPFv3 area view Default command level 2: System level Parameters router-id: Specifies the router ID for a virtual link neighbor.
IPv6 IS-IS configuration commands IPv6 IS-IS supports all the features of IPv4 IS-IS except that it advertises IPv6 routing information. This document describes only IPv6 IS-IS exclusive commands. See "IS-IS configuration commands" for other IS-IS configuration commands. display isis route ipv6 Use display isis route ipv6 to display IPv6 IS-IS routing information.
Destination: 2001:1:: PrefixLen: 64 Flag : R/L/- Cost Next Hop : FE80::200:5EFF:FE64:8905 Interface: GE2/1/1 : 20 Destination: 2001:2:: PrefixLen: 64 Flag : D/L/- Cost Next Hop : Direct Interface: GE2/1/1 : 10 Flags: D-Direct, R-Added to RM, L-Advertised in LSPs, U-Up/Down Bit Set ISIS(1) IPv6 Level-2 Forwarding Table ------------------------------------Destination: 2001:1:: PrefixLen: 64 Flag Cost : -/-/- : 20 Destination: 2001:2:: PrefixLen: 64 Flag : D/L/- Cost Next Hop : D
Admin Tag : - Src Count : 1 NextHop : Interface : FE80::200:5EFF:FE64:8905 ExitIndex : GE2/1/1 IPV6 Dest : 2001:2::/64 Admin Tag : - Src Count : 2 NextHop : Interface : 0x00000003 Cost : 10 Direct Flag : D/L/ExitIndex : GE2/1/1 0x00000000 Flags: D-Direct, R-Added to RM, L-Advertised in LSPs, U-Up/Down Bit Set ISIS(1) IPv6 Level-2 Forwarding Table ------------------------------------IPV6 Dest : 2001:1::/64 Admin Tag : - Cost : 20 IPV6 Dest : 2001:2::/64 Admin Tag : - Src Coun
Syntax ipv6 default-route-advertise [ [ level-1 | level-1-2 | level-2 ] | route-policy route-policy-name ] * undo ipv6 default-route-advertise [ route-policy route-policy-name ] Default No IPv6 IS-IS default route is generated. Views IS-IS view Default command level 2: System level 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.
Views IS-IS view Default command level 2: System level Examples # Create IS-IS process 1, and enable IPv6 for the process. system-view [Sysname] ipv6 [Sysname] isis 1 [Sysname-isis-1] network-entity 10.0001.1010.1020.1030.00 [Sysname-isis-1] ipv6 enable ipv6 filter-policy export Use ipv6 filter-policy export to configure IPv6 IS-IS to filter redistributed routes before advertisement. Use undo ipv6 filter-policy export to disable the filtering.
Usage guidelines In some cases, only routes meeting certain conditions are advertised. You can configure the filtering conditions using the ipv6 filter-policy command. You can use the ipv6 filter-policy export command, which filters redistributed routes only when they are advertised to other routers, in combination with the ipv6 import-route command. • If no protocol is specified, routes redistributed from all protocols are filtered before advertisement.
Views IS-IS view Default command level 2: System level Parameters acl6-number: Specifies an IPv6 ACL by its number in the range of 2000 to 3999 to filter received routes. ipv6-prefix-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 19 characters, to filter received routes. route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to filter received routes.
Use undo ipv6 import-route to disable route redistribution. Syntax ipv6 import-route protocol [ process-id ] [ allow-ibgp ] [ cost cost | [ level-1 | level-1-2 | level-2 ] | route-policy route-policy-name | tag tag ] * undo ipv6 import-route protocol [ process-id ] Default Route redistribution is disabled. Views IS-IS view Default command level 2: System level Parameters protocol: Redistributes routes from the specified routing protocol, which can be direct, static, ripng, isisv6, bgp4+, or ospfv3.
Use undo ipv6 import-route isisv6 level-2 into level-1 to disable the leaking. Syntax ipv6 import-route isisv6 level-2 into level-1 [ filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name | route-policy route-policy-name } | tag tag ] * undo ipv6 import-route isisv6 level-2 into level-1 Default The leaking is disabled.
Default command level 2: System level Parameters number: Specifies the maximum number of redistributed Level 1/Level 2 IPv6 routes, in the range of 1 to 300000. Examples # Configure IS-IS process 1 to redistribute up to 1000 Level 1/Level 2 IPv6 routes. system-view [Sysname] isis 1 [Sysname-isis-1] ipv6 import-route limit 1000 ipv6 maximum load-balancing Use ipv6 maximum load-balancing to configure the maximum number of equal-cost multi-path (ECMP) routes for load balancing.
Syntax ipv6 preference { preference | route-policy route-policy-name } * undo ipv6 preference Default The default preference for IPv6 IS-IS protocol is 15. Views IS-IS view Default command level 2: System level Parameters preference: Specifies a preference for IPv6 IS-IS, in the range of 1 to 255. route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.
avoid-feedback: Avoids learning summary routes by routing calculation. generate_null0_route: Generates the NULL 0 route to avoid routing loops. level-1: Summarizes only the routes redistributed to Level-1 area. level-1-2: Summarizes all the routes redistributed to Level-1 and Level-2 areas. level-2: Summarizes only the routes redistributed to Level-2 area. tag: Specifies an administrative tag in the range of 1 to 4294967295.
Syntax isis ipv6 enable [ process-id ] undo isis ipv6 enable Default IPv6 is disabled for an IS-IS process. Views Interface view Default command level 2: System level Parameters process-id: Specifies an IS-IS process by its ID in the range of 1 to 65535. The default is 1. Examples # Enable global IPv6, create IS-IS routing process 1, enable IPv6 for the process, and enable IPv6 for the process on interface Serial 2/2/0.
Usage guidelines Before you configure this command, enable IPv6 for the IS-IS process, and set the cost style to wide, wide-compatible, or compatible for the system. Examples # Enable IPv6 IS-IS MTR.
IPv6 BGP configuration commands For more information about routing policy configuration commands in this document, see "Routing policy configuration commands." aggregate (IPv6 address family view) Use aggregate to create an IPv6 summary route in the IPv6 BGP routing table. Use undo aggregate to remove an IPv6 summary route.
Keywords Function detail-suppressed This keyword does not suppress the summary route, but it suppresses the advertisement of all the more specific routes. To summarize only some specific routes, use the peer filter-policy command. suppress-policy Used to create a summary route and suppress the advertisement of some summarized routes. If you want to suppress some routes selectively and leave other routes still advertised, use the if-match clause of the route-policy command.
If you do not specify the ibgp or the ebgp keyword, this command enables load sharing for all IPv6 BGP routes. You cannot execute the balance number command after you specify the ibgp or the ebgp keyword. To execute the balance number command, use the undo command to remove the previous configuration, and vice versa. Examples # Set the number of IPv6 BGP ECMP routes to 2.
[Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] bestroute as-path-neglect bestroute compare-med (IPv6 address family view) Use bestroute compare-med to enable the comparison of the MED for paths from each AS. Use undo bestroute compare-med to disable this comparison. Syntax bestroute compare-med undo bestroute compare-med Default This comparison is not enabled.
Usage guidelines With this feature enabled, the system can only compare the MED for paths from peers within the confederation. Paths from external ASs are advertised throughout the confederation without MED comparison. Examples # Compare the MED for paths from peers within the confederation.
Syntax dampening [ half-life-reachable half-life-unreachable reuse suppress ceiling | route-policy route-policy-name ] * undo dampening Default No route dampening is configured. Views IPv6 address family view Default command level 2: System level Parameters half-life-reachable: Half-life for reachable routes, in the range of 1 to 45 minutes. By default, the value is 15 minutes. half-life-unreachable: Half-life for unreachable routes, in the range of 1 to 45 minutes. By default, the value is 15 minutes.
default local-preference (IPv6 address family view/IPv6 BGP-VPN instance view) Use default local-preference to configure the default local preference. Use undo default local-preference to restore the default value. Syntax default local-preference value undo default local-preference Default The default local preference is 100. Views IPv6 address family view, IPv6 BGP-VPN instance view Default command level 2: System level Parameters value: Default local preference in the range of 0 to 4294967295.
Views IPv6 address family view, IPv6 BGP-VPN instance view Default command level 2: System level Parameters med-value: MED value in the range of 0 to 4294967295. Usage guidelines The multi-exit discriminator (MED) is an external metric of a route. Different from local preference, MED is exchanged between ASs and will stay in the AS once it enters the AS. The route with a lower MED is preferred.
[Sysname-bgp-af-ipv6] import-route ospfv3 1 display bgp ipv6 group Use display bgp ipv6 group to display IPv6 peer group information. Syntax display bgp ipv6 group [ ipv6-group-name ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters ipv6-group-name: Peer group name, a string of 1 to 47 characters. |: Filters command output by specifying a regular expression.
Table 89 Command output Field Description BGP peer-group Name of the peer group. AS number of the peer group. Remote AS If the peer group AS number has been specified with the peer ipv6-address as-number as-number command, the specified AS number is displayed in this field. Otherwise, a "Remote AS number not specified" prompt is displayed. Types of the peer group: Type • internal—IBGP peer group. • external—EBGP peer group. Maximum allowed prefix number Maximum allowed prefix number.
Field Description Up/Down Lasting time of a session/lasting time of present state (when no session is established). State State machine state of peer. display bgp ipv6 network Use display bgp ipv6 network to display IPv6 routes advertised with the network command. Syntax display bgp ipv6 network [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression.
display bgp ipv6 paths Use display bgp ipv6 paths to display IPv6 BGP path information. Syntax display bgp ipv6 paths [ as-regular-expression | | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters as-regular-expression: AS path regular expression, a string of 1 to 80 characters. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
Field Description Origin attribute of the route, which can take on one of the following values: • i—The route is interior to the AS. Summary routes and routes defined using the network command are considered IGP routes. Origin • e—The route is learned from the exterior gateway protocol (EGP). • ?—Short for INCOMPLETE. It indicates that the origin of a route is unknown and the route is learned by other means. BGP sets Origin attribute of routes learned from other IGP protocols to INCOMPLETE.
Total number of peers : 1 Peer 2001::1 Peers in established state : 0 AS MsgRcvd 100 0 MsgSent OutQ PrefRcv Up/Down 0 0 State 0 00:02:02 Active Table 92 Command output Field Description BGP local router ID Local router ID. Local AS number Local AS number. Total number of peers Total number of BGP peers. Peers in established state Number of established BGP peers. Peer IPv6 address of the peer. AS AS number. MsgRcvd Messages received. MsgSent Messages sent.
Sent: Total 6 messages, Update messages 3 Maximum allowed prefix number: 4294967295 Threshold: 75% Minimum time between advertisement runs is 30 seconds Optional capabilities: Route refresh capability has been enabled Peer Preferred Value: 0 Routing policy configured: No routing policy is configured BFD: Enabled # Display detailed information about IPv6 BGP peers. display bgp ipv6 peer verbose BGP Peer is 2::4, remote AS 1, Type: IBGP link BGP version 4, remote router ID 1.1.1.
Field Description Peer optional capabilities: Optional capabilities supported by the BGP peer: Peer support bgp multi-protocol extended • Multi-protocol extension for BGP. • Route-refresh feature. • 4-byte AS number.
Message Header Error/Connection Not Synchronized 10-Jul-2008 09:23:00 Up 10-Jul-2008 07:46:17 Down Receive Notification with Error 3/2 UPDATE Message Error/Unsupported optional Parameter 10-Jul-2008 06:23:00 Up 10-Jul-2008 05:46:17 Down Send Notification with Error 6/4 Administrative Reset Table 94 Command output Field Description Peer IPv6 address of the peer. Date Date on which the Notification was sent or received. Time Time at which the Notification was sent or received.
Examples # Display the prefix information in the ORF packet from the BGP peer 4::4. display bgp ipv6 peer 4::4 received ipv6-prefix ORF ipv6-prefix entries: 2 ge: greater-equal index rule le: less-equal prefix ge le 10 permit 1::/64 80 128 20 deny 80 128 100::/64 Table 95 Command output Field Description ORF ipv6-prefix entries Number of ORF prefix entries. index Index of a prefix entry. rule Matching rule of the prefix. prefix Prefix information.
Examples # Display the IPv6 BGP routing table. display bgp ipv6 routing-table Total Number of Routes: 2 BGP Local router ID is 30.30.30.
Field Description PrefVal Preferred value. Origin attribute of the route: • i—The route is interior to the AS. Summary routes and the routes configured using the network command are considered IGP routes. Ogn • e—The route is learned from the exterior gateway protocol (EGP). • ?—Short for INCOMPLETE. It indicates that the origin of a route is unknown and the route is learned by other means. BGP sets Origin attribute of routes learned from other IGP protocols to INCOMPLETE.
MED : 0 Path/Ogn: i For description of the fields, see Table 96. display bgp ipv6 routing-table community Use display bgp ipv6 routing-table community to display the routing information with the specified community attribute. Syntax display bgp ipv6 routing-table community [ aa:nn&<1-13> ] [ no-advertise | no-export | no-export-subconfed ] * [ whole-match ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters aa:nn: Community number.
PrefVal : 0 MED Label : NULL : 0 Path/Ogn: i For description of the fields, see Table 96. display bgp ipv6 routing-table community-list Use display bgp ipv6 routing-table community-list to view the routing information matching the specified IPv6 BGP community list.
display bgp ipv6 routing-table dampened Use display bgp ipv6 routing-table dampened to display the IPv6 BGP dampened routes. Syntax display bgp ipv6 routing-table dampened [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
Syntax display bgp ipv6 routing-table dampening parameter [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
Syntax display bgp ipv6 routing-table different-origin-as [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
Parameters as-regular-expression: AS path regular expression to be matched, a string of 1 to 80 characters. as-path-acl-number: Number of the specified AS path ACL to be matched, in the range of 1 to 256. ipv6-address: IPv6 address of a route to be displayed. prefix-length: Prefix length of the IPv6 address, in the range of 0 to 128. longer-match: Matches the longest prefix. |: Filters command output by specifying a regular expression.
Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
advertised-routes: Routing information advertised to the specified peer. received-routes: Routing information received from the specified peer. network-address prefix-length: IPv6 address and prefix length. The value range for the prefix length is 0 to 128. statistic: Displays route statistics. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
Default command level 1: Monitor level Parameters as-regular-expression: AS regular expression, a string of 1 to 80 characters. Examples # Display routing information matching the specified AS regular expression. display bgp ipv6 routing-table regular-expression ^100 BGP Local router ID is 20.20.20.
filter-policy export (IPv6 address family view/IPv6 BGP-VPN instance view) Use filter-policy export to filter outbound routes using a specified filter. Use undo filter-policy export to cancel filtering outbound routes. Syntax filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } export [ protocol process-id ] undo filter-policy export [ protocol process-id ] Default No outbound routing information is filtered.
# Configure ACL6 3000 to permit only route 2001::1/128 to pass, and reference ACL6 3000 to filter outbound routes.
Examples # Reference ACL6 2001 to filter all inbound routes. system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] filter-policy 2001 import # Configure ACL6 3000 to permit only route 2001::1/128 to pass, and reference ACL6 3000 to filter inbound routes.
import-route (IPv6 address family view/IPv6 BGP-VPN instance view) Use import-route to redistribute routes from another routing protocol. Use undo import-route to remove the configuration. Syntax import-route protocol [ process-id [ med med-value | route-policy route-policy-name ] * ] undo import-route protocol [ process-id ] Default IPv6 BGP does not redistribute routes from any routing protocol.
Syntax ipv6-family [ vpn-instance vpn-instance-name ] undo ipv6-family [ vpn-instance vpn-instance-name ] Views BGP view Default command level 2: System level Parameters vpn-instance vpn-instance-name: Enters IPv6 BGP-VPN instance view. vpn-instance-name is a string of 1 to 31 case-sensitive characters. Usage guidelines Before entering IPv6 BGP-VPN instance view, you must create the VPN instance. Examples # Enter IPv6 address family view.
Parameters ipv6-address: IPv6 address. prefix-length: Prefix length of the address, in the range of 0 to 128. route-policy-name: Name of a routing policy, a string of 1 to 63 characters. short-cut: If the keyword is specified for an EBGP route, the route will use the local routing management value rather than that of EBGP routes, so the preference of the route is reduced.
peer advertise-ext-community (IPv6 address family view) Use peer advertise-ext-community to advertise the extended community attribute to a peer/peer group. Use undo peer advertise-ext-community to remove the configuration. Syntax peer { group-name | ipv4-address | ipv6-address } advertise-ext-community undo peer { group-name | ipv4-address | ipv6-address } advertise-ext-community Default No extended community attribute is advertised to a peer/peer group.
Parameters group-name: Name of an IPv4 or IPv6 peer group, a string of 1 to 47 characters. ipv4-address: IPv4 address of a peer. ipv6-address: IPv6 address of a peer. number: Specifies the number of times for which the local AS number can appear in routes from the peer/peer group, in the range of 1 to 10. The default number is 1. Examples # Configure the number of times for which the local AS number can appear in the AS PATH of routes from peer 1::1 as 2.
peer as-number (IPv6 BGP-VPN instance view) Use peer as-number to configure an IPv6 peer/peer group. Use undo peer ipv6-address to delete a peer. Syntax peer ipv6-address as-number as-number undo peer ipv6-address Views IPv6 BGP-VPN instance view Default command level 2: System level Parameters ipv6-address: IPv6 address of a peer. as-number: AS number of the peer/peer group, in the range of 1 to 4294967295. Examples # Configure peer 2001::1 in AS 200.
ipv6-address: IPv6 address of a peer. as-path-acl-number: Number of an AS path ACL, in the range of 1 to 256. import: Filters incoming routes. export: Filters outgoing routes. Examples # Specify the AS path ACL 3 to filter routes outgoing to the peer 1:2::3:4.
peer capability-advertise orf Use peer capability-advertise orf to enable the ORF capability for a BGP peer or peer group. Use undo peer capability-advertise orf to disable the ORF capability for the BGP peer or peer group.
Local parameter Peer parameter Negotiation result both both Both the ORF sending and receiving capabilities are enabled locally and on the peer. Examples # Enable the ORF capability for the BGP peer 1:2::3:4. Then, after negotiation, the local router can exchange ORF information with the peer 1:2::3:4.
[Sysname-bgp-af-ipv6] peer 1:2::3:4 as-number 100 [Sysname-bgp-af-ipv6] peer 1:2::3:4 capability-advertise orf non-standard [Sysname-bgp-af-ipv6] peer 1:2::3:4 capability-advertise orf ip-prefix both Related commands peer capability-advertise orf peer capability-advertise route-refresh Use peer capability-advertise route-refresh to enable IPv6 BGP route-refresh. Use undo peer capability-advertise route-refresh to disable the function.
Default The 4-byte AS number suppression function is disabled. Views IPv6 address family view Default command level 2: System level Parameters group-name: Name of a peer group, a string of 1 to 47 characters. ipv6-address: IPv6 address of a peer. Usage guidelines If the peer device supports 4-byte AS numbers, do not enable the suppression function. Otherwise, the BGP peer relationship cannot be established. Examples # In IPv6 address family view, enable 4-byte AS number suppression for peer 2001::1.
Usage guidelines The device supports 4-byte AS numbers and uses 4-byte AS numbers by default. If the peer devices support only 2-byte AS numbers, you must enable the 4-byte AS number suppression function on the device. If the peer device supports 4-byte AS numbers, do not enable the suppression function. Otherwise, the BGP peer relationship cannot be established. Examples # In IPv6 BGP-VPN instance view, enable 4-byte AS number suppression for peer 2001::1.
Examples # Specify loopback 0 as the source interface for routing updates to peer 1:2::3:4. system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] peer 1:2::3:4 connect-interface loopback 0 peer default-route-advertise Use peer default-route-advertise to advertise a default route to a peer/peer group. Use undo peer default-route-advertise to disable advertising a default route.
Syntax peer { ipv6-group-name | ipv6-address } description description-text undo peer { ipv6-group-name | ipv6-address } description Default No description information is configured for a peer (group). Views IPv6 address family view Default command level 2: System level Parameters ipv6-group-name: Name of a peer group, a string of 1 to 47 characters. ipv6-address: IPv6 address of a peer. description-text: Description information for the peer/peer group, a string of 1 to 79 characters.
Parameters ipv6-group-name: Name of a peer group, a string of 1 to 47 characters. ipv6-address: IPv6 address of a peer. hop-count: Maximum hop count in the range of 1 to 255. Usage guidelines You can use the argument hop-count to specify the maximum router hops of the EBGP connection. Examples # Allow establishing the EBGP connection with the peer group test on an indirectly connected network.
# Enable peer 1::1. system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] peer 1::1 group group1 [Sysname-bgp-af-ipv6] peer 1::1 enable peer fake-as (IPv6 address family view) Use peer fake-as to configure a fake local AS number for a peer or peer group. Use undo peer fake-as to remove the configuration.
Default No ACL-based filter policy is configured for a peer or peer group. Views IPv6 address family view Default command level 2: System level Parameters group-name: Name of an IPv4 or IPv6 peer group, a string of 1 to 47 characters. ipv4-address: IPv4 address of a peer. ipv6-address: IPv6 address of a peer. acl6-number: IPv6 ACL number in the range of 2000 to 3999. import: Applies the filter-policy to routes received from the peer/peer group.
ipv6-address: IPv6 address of a peer. as-number: Specifies the AS number of the peer/peer group, in the range of 1 to 4294967295. Examples # Create a peer group named test and add the peer 1:2::3:4 to the peer group.
peer ipv6-prefix Use peer ipv6-prefix to specify an IPv6 prefix list to filter routes incoming from or outgoing to a peer or peer group. Use undo peer ipv6-prefix to remove the configuration. Syntax peer { group-name | ipv4-address | ipv6-address } ipv6-prefix ipv6-prefix-name { import | export } undo peer { group-name | ipv4-address | ipv6-address } ipv6-prefix { import | export } Default No IPv6 prefix list is specified for filtering.
Views IPv6 address family view Default command level 2: System level Parameters group-name: Name of an IPv6 peer group, a string of 1 to 47 characters. ipv6-address: IPv6 address of a peer. policy-name: IPsec policy name, a string of 1 to 15 characters. Usage guidelines The IPsec policy to be applied must have been configured. Otherwise, the configuration fails. You also need to make IPsec policy configuration on the peer or peer group.
system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] peer 1:2::3:4 keep-all-routes peer label-route-capability (IPv6 address family view) Use peer label-route-capability to enable exchange of labeled IPv6 routes with the peer/peer group. Use undo peer label-route-capability to disable exchange of labeled IPv6 routes with the peer/peer group.
Views IPv6 address family view Default command level 2: System level Parameters ipv6-group-name: Name of a peer group, a string of 1 to 47 characters. ipv6-address: IPv6 address of a peer. Examples # Enable the logging of session state and event information for peer 1:2::3:4.
peer password Use peer password to configure BGP to perform MD5 authentication when a TCP connection is being established with a peer/peer group. Use undo peer password to restore the default. Syntax peer { group-name | ipv6-address } password { cipher | simple } password undo peer { group-name | ipv6-address } password Default No MD5 authentication is performed for TCP connection establishment.
peer preferred-value (IPv6 address family view) Use peer preferred-value to assign a preferred value to routes received from a peer or peer group. Use undo peer preferred-value to restore the default. Syntax peer { ipv6-group-name | ipv6-address } preferred-value value undo peer { ipv6-group-name | ipv6-address } preferred-value Default Routes received from a peer or peer group have a preferred value of 0.
undo peer ipv6-address [ preferred-value ] Default Routes received from a peer or peer group have a preferred value of 0. Views IPv6 BGP-VPN instance view Default command level 2: System level Parameters ipv6-address: IPv6 address of a peer. value: Preferred value in the range of 0 to 65535. Usage guidelines Routes learned from peers each have an initial preferred value. Among multiple routes to the same destination, the route with the biggest value is selected.
Default command level 2: System level Parameters ipv6-group-name: Name of a peer group, a string of 1 to 47 characters. ipv6-address: IPv6 address of a peer. Usage guidelines The command does not take effect if the BGP update has both the public AS number and private AS number. The range of private AS number is from 64512 to 65535. Examples # Configure BGP updates sent to the peer 1:2::3:4 to not carry private AS numbers.
Related commands • reflect between-clients • reflector cluster-id peer route-limit (IPv6 address family view) Use peer route-limit to set the maximum number of prefixes that can be received from a peer/peer group. Use undo peer route-limit to restore the default.
[Sysname-bgp-af-ipv6] peer 1:2::3:4 route-limit 100 peer route-policy (IPv6 address family view) Use peer route-policy to apply a routing policy to routes incoming from or outgoing to a peer or peer group. Use undo peer route-policy to remove the configuration.
peer route-policy (IPv6 BGP-VPN instance view) Use peer route-policy to apply a routing policy to routes incoming from or outgoing to a peer or peer group. Use undo peer route-policy to remove the configuration. Syntax peer ipv6-address route-policy route-policy-name { export | import } undo peer ipv6-address [ route-policy route-policy-name { export | import } ] Default No routing policy is specified for the peer (group).
undo peer { ipv6-group-name | ipv6-address } route-update-interval Default The interval is 15 seconds for the IBGP peer, and 30 seconds for the EBGP peer. Views IPv6 address family view Default command level 2: System level Parameters ipv6-group-name: Name of a peer group, a string of 1 to 47 characters. ipv6-address: IPv6 address of a peer. interval: Specifies the minimum interval for sending the same update to a peer (group) from 0 to 600 seconds.
system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] peer 1:2::3:4 substitute-as peer timer (IPv6 address family view) Use peer timer to configure the keepalive interval and the holdtime interval for a peer or peer group. Use undo peer timer to restore the default.
# Configure both the keepalive interval and holdtime interval for peer group test as 0 seconds, indicating the peer group will never time out.
[Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] peer test ttl-security hops 1 preference (IPv6 address family view/IPv6 BGP-VPN instance view) Use preference to configure preferences for EBGP, IBGP, and local routes. Use undo preference to restore the default.
undo reflect between-clients Default Route reflection between clients is enabled. Views IPv6 address family view Default command level 2: System level Usage guidelines After a route reflector is configured, it reflects routes between clients. If the clients are fully meshed, HP recommends that you disable route reflection on the route reflector to reduce costs. Examples # Enable route reflection between clients.
Usage guidelines Typically, a cluster has only one route reflector, so the router ID of the route reflector identifies the cluster. If multiple route reflectors are configured to improve the stability of the network, use this command to configure the identical cluster ID for all the reflectors to avoid routing loops. Examples # Set 50 as the cluster ID for the route reflector, which is one of multiple route reflectors in the cluster.
Examples # Soft reset inbound IPv6 BGP connections. refresh bgp ipv6 all import reset bgp ipv6 Use reset bgp ipv6 to reset specified IPv4/IPv6 BGP connections. Syntax reset bgp ipv6 { as-number | ipv4-address | ipv6-address | all | external | group group-name | internal } Views User view Default command level 2: System level Parameters as-number: Resets the IPv6 BGP connections to peers in the specified AS. The AS number is in the range of 1 to 4294967295.
prefix-length: Prefix length of the address, in the range of 0 to 128. Usage guidelines If no ipv6-address prefix-length is specified, all dampened IPv6 BGP route information is cleared. Examples # Clear the dampened information for routes to 2345::/64 and release suppressed routes. reset bgp ipv6 dampening 2345:: 64 reset bgp ipv6 flap-info Use reset bgp ipv6 flap-info to clear IPv6 routing flap statistics.
Syntax router-id router-id undo router-id Views BGP view Default command level 2: System level Parameters router-id: Router ID in IP address format. Usage guidelines To run IPv6 BGP protocol, a router must have a router ID, an unsigned 32-bit integer and the unique ID of the router in the AS. Specify a router ID manually, or the system selects the highest IPv4 address among loopback interface addresses as the router ID.
Parameters None Usage guidelines With this feature enabled and when a non-BGP router is responsible for forwarding packets in an AS, IPv6 BGP speakers in the AS cannot advertise routing information to other ASs unless all routers in the AS know the latest routing information. Examples # Enable the route synchronization between IPv6 BGP and IGP.
If neither the holdtime interval nor the keepalive interval is configured as 0, the holdtime interval must be at least three times the keepalive interval. The configured timers apply to all IPv6 BGP peers, but they become valid for an IPv6 BGP peer only after the relevant IPv6 BGP connection is reset. After this command is executed, no peer connection is closed at once. The configured hold time is used for negotiation when a peer relationship is reestablished.
IPv6 policy-based routing configuration commands apply default output-interface Use apply default output-interface to set a default output interface. Use undo apply default output-interface to remove the configuration.
Views IPv6 policy node view Default command level 2: System level Usage guidelines This command can be used only when the match mode of the policy node is permit. Examples # Match packets against the next policy node upon match failure on the current node. system-view [Sysname] ipv6 policy-based-route aa permit node 11 [Sysname-pbr6-aa-11] apply fail-action continue apply ipv6-address default next-hop Use apply ipv6-address default next-hop to set a default next hop.
apply ipv6-address next-hop Use apply ipv6-address next-hop to set a next hop. Use undo apply ipv6-address next-hop to remove the next hop. Syntax apply ipv6-address next-hop ipv6-address undo apply ipv6-address next-hop [ ipv6-address ] Views IPv6 policy node view Default command level 2: System level Parameters ipv6-address: Specifies the next-hop IPv6 address. Usage guidelines The next hop must be adjacent to the device. You can specify up to five next hops for per-flow load balancing.
value: Sets a preference value from 0 to 7 (inclusive). Each value corresponds to a preference type, as shown in Table 102. Table 102 IPv6 preferences and the corresponding types Preference value Preference type 0 routine 1 priority 2 immediate 3 flash 4 flash-override 5 critical 6 internet 7 network Examples # Set a preference of 5 (critical).
Without any interface specified, the undo apply output-interface command removes all output interfaces. Examples # Specify the interface Serial 2/2/0 as the output interface for IPv6 packets. system-view [Sysname] ipv6 policy-based-route aa permit node 11 [Sysname-pbr6-aa-11] apply output-interface serial 2/2/0 display ipv6 config policy-based-route Use display ipv6 config policy-based-route to display the IPv6 PBR policy information.
of the specified card. If the apply output-interface clause or the apply default output-interface clause is configured, the clause is displayed only when the link of the output interface is up. (In standalone mode.) If no chassis number or slot number is specified, this command displays the IPv6 PBR policy information on the active MPU of the master device, as long as the policies are defined.
Examples # Display information about IPv6 local PBR and IPv6 interface PBR. display ipv6 policy-based-route Policy Name interface pr02 local pr01 GigabitEthernet 2//1 Table 104 Command output Field Description Policy Name Routing policy name. Local Local PBR. GigabitEthernet 2//1 The policy is applied to GigabitEthernet 2//1 to implement IPv6 PBR. display ipv6 policy-based-route setup Use display ipv6 policy-based-route setup to display PBR configuration.
include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # Display IPv6 PBR configuration for policy test. display ipv6 policy-based-route setup test policy Name interface test local # Display IPv6 PBR configuration on GigabitEthernet 2/1/1.
display ipv6 policy-based-route statistics { interface interface-type interface-number | local } [ slot slot-number ] [ | { begin | exclude | include } regular-expression ] In IRF mode: display ipv6 policy-based-route statistics { interface interface-type interface-number | local } [ chassis chassis-number slot slot-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters interface interface-type interface-number: Displays IPv6 PBR s
Field Description permit node The match mode of the node is permit. if-match acl6 Match IPv6 packets against IPv6 ACL. apply output-interface Output interface specified for matching packets. matched Matching packets on the node. Total matched Total matching packets on all nodes. if-match acl6 Use if-match acl6 to configure an ACL match criterion. Use undo if-match acl6 to remove the ACL match criterion.
Default command level 2: System level Parameters min-len: Specifies the minimum IPv6 packet length in bytes, in the range of 0 to 65535. max-len: Specifies the maximum IPv6 packet length in bytes, in the range of 1 to 65535. The value of max-len cannot be smaller than that of min-len. Examples # Match the IPv6 packets with a length from 100 to 200 bytes.
Use undo ipv6 policy-based-route to remove the configuration. Syntax ipv6 policy-based-route policy-name undo ipv6 policy-based-route Default No IPv6 policy is applied on an interface. Views Interface view Default command level 2: System level Parameters policy-name: Specifies the policy name, a string of 1 to 19 characters. Usage guidelines You can apply only one policy on an interface. If you perform this command multiple times, only the last specified policy takes effect.
node node-number: Specifies the number of the IPv6 policy node, in the range of 0 to 65535. Packets are matched against the node with a smaller node-number first. Examples # Create permit-mode of Node 10 for IPv6 policy aaa, and enter IPv6 policy node view. system-view [Sysname] ipv6 policy-based-route aaa permit node 10 [Sysname-pbr6-aaa-10] reset ipv6 policy-based-route statistics Use reset ipv6 policy-based-route statistics to clear IPv6 PBR statistics.
Routing policy configuration commands The common routing policy configuration commands are applicable to both IPv4 and IPv6. Common routing policy configuration commands apply as-path Use apply as-path to apply the specified AS numbers to BGP routes. Use undo apply as-path to remove the clause configuration. Syntax apply as-path as-number&<1-10> [ replace ] undo apply as-path Default No AS_PATH attribute is set.
apply comm-list delete Use apply comm-list delete to delete the community attributes specified by a community list from BGP routes. Use undo apply comm-list to remove the clause configuration. Syntax apply comm-list comm-list-number delete undo apply comm-list Default No community attributes are removed from BGP routes.
Parameters none: Removes the community attributes of BGP routes. community-number: Specifies a community sequence number, in the range of 1 to 4294967295. aa:nn: Specifies a community number. Both aa and nn are in the range of 0 to 65535. &<1-16>: Indicates that the argument before it can be entered up to 16 times. internet: Sets the internet community attribute for BGP routes. Routes with this attribute can be advertised to all BGP peers.
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 of routing policy policy1. Set a cost of 120 for routing information whose outbound interface is Serial 2/2/0.
Examples # Create node 10 in permit mode of routing policy policy1. If a route has a tag of 8, set the cost type for the route to IS-IS internal route. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy] if-match tag 8 [Sysname-route-policy] apply cost-type internal apply extcommunity Use apply extcommunity to apply the specified RT extended community attribute to BGP routes. Use undo apply extcommunity to remove the clause configuration.
# Configure node 10 in permit mode of routing policy policy2. If a BGP route matches AS path list 2, add the SoO extended community attribute 100:3 to the route. system-view [Sysname] route-policy policy2 permit node 10 [Sysname-route-policy] if-match as-path 2 [Sysname-route-policy] apply extcommunity soo 100:3 additive apply ip-precedence Use apply ip-precedence to set an IP precedence for matching routes. Use undo apply ip-precedence to remove the configuration.
Views Routing policy view Default command level 2: System level Parameters level-1: Redistributes routes into IS-IS level-1. level-1-2: Redistributes routes into both IS-IS level-1 and level-2. level-2: Redistributes routes into IS-IS level-2. Examples # Configure node 10 in permit mode of routing policy policy1. If a route has a tag of 8, redistribute the route to IS-IS level-2.
apply mpls-label Use apply mpls-label to set MPLS labels for routing information. Use undo apply mpls-label to remove the clause configuration. Syntax apply mpls-label undo apply mpls-label Default No MPLS label is set for routing information. Views Routing policy view Default command level 2: System level Usage guidelines If this command fails to assign an MPLS label to a route, the route cannot be advertised. Examples # Configure node 10 in permit mode of routing policy policy1.
as-number: Specifies an autonomous system number for EGP routes, in the range of 1 to 4294967295. igp: Sets the origin attribute of BGP routing information to IGP. incomplete: Sets the origin attribute of BGP routing information to unknown. Examples # Configure node 10 in permit mode of routing policy policy1. If BGP routing information matches AS path list 1, set the origin attribute of the routing information to IGP.
apply preferred-value Use apply preferred-value to set a preferred value for BGP routes. Use undo apply preferred-value to remove the clause configuration. Syntax apply preferred-value preferred-value undo apply preferred-value Default No preferred value is set for BGP routes. Views Routing policy view Default command level 2: System level Parameters preferred-value: Specifies a preferred value in the range of 0 to 65535. Examples # Configure node 10 in permit mode of routing policy policy1.
Examples # Configure node 10 in permit mode of routing policy policy1. Set QoS-local ID 200 for routes matching the prefix list abc. system-view [Sysname] ip ip-prefix abc index 10 permit 100.1.1.0 24 [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy] if-match ip-prefix abc [Sysname-route-policy] apply qos-local-id 200 apply tag Use apply tag to set a specified tag for RIP, OSPF, or IS-IS routing information. Use undo apply tag to remove the clause configuration.
Views Routing policy view Default command level 2: System level Parameters node-number: Specifies a routing policy node by its number in the range of 0 to 65535. Usage guidelines The specified next node must have a larger number than the current node number. Example # Specify the next node 20 for node 10 of routing policy policy1.
Table 107 Command output Field Description ListID AS path list ID. Mode Match mode: permit or deny. Expression Regular expression for matching. Related commands • apply as-path • if-match as-path • ip as-path display ip community-list Use display ip community-list to display BGP community list information.
Related commands • apply community • if-match community • ip community-list display ip extcommunity-list Use display ip extcommunity-list to display BGP extended community list information. Syntax display ip extcommunity-list [ ext-comm-list-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters ext-comm-list-number: Specifies an extended community list by its number in the range of 1 to 199.
Syntax display route-policy [ route-policy-name ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
Syntax if-match as-path as-path-number&<1-16> undo if-match as-path [ as-path-number&<1-16> ] Default No match criterion is configured. Views Routing policy view Default command level 2: System level Parameters as-path-number: Specifies an AS path list by its number in the range of 1 to 256. &<1-16>: Indicates that the argument before it can be entered up to 16 times. Examples # Define AS path list 2, allowing BGP routing information containing AS number 200 or 300 to pass.
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. whole-match: Exactly matches the specified community lists. &<1-16>: Indicates that the argument before it can be entered up to 16 times.
if-match extcommunity Use if-match extcommunity to specify extended community lists for matching against the extended community attribute of BGP routing information. Use undo if-match extcommunity to remove the match criterion. Syntax if-match extcommunity ext-comm-list-number&<1-16> undo if-match extcommunity [ ext-comm-list-number&<1-16> ] Default No match criterion is configured.
Parameters interface-type interface-number: Specifies an interface by its type and number. &<1-16>: Indicates that the argument before it can be entered up to 16 times. Usage guidelines BGP does not support criteria for matching against the outbound interface of routing information. Examples # Configure node 10 in permit mode of routing policy policy1 to permit routing information with the outbound interface as GigabitEthernet 2/1/1.
Default No match criterion is configured. Views Routing policy view Default command level 2: System level Parameters external-type1: Matches OSPF Type 1 external routes. external-type1or2: Matches OSPF Type 1 or 2 external routes. external-type2: Matches OSPF Type 2 external routes. internal: Matches internal routes (OSPF intra-area and inter-area routes). is-is-level-1: Matches IS-IS Level-1 routes. is-is-level-2: Matches IS-IS Level-2 routes.
Examples # Configure node 10 in permit mode of routing policy policy1 to match RIP, OSPF and IS-IS routing information having a tag of 8. 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. Use undo ip as-path to remove an AS path list. Syntax ip as-path as-path-number { deny | permit } regular-expression undo ip as-path as-path-number Default No AS path list is created.
Syntax ip community-list basic-comm-list-num { deny | permit } [ community-number-list ] [ internet | no-advertise | no-export | no-export-subconfed ] * undo ip community-list basic-comm-list-num [ deny | permit ] [ community-number-list ] [ internet | no-advertise | no-export | no-export-subconfed ] * ip community-list adv-comm-list-num { deny | permit } regular-expression undo ip community-list adv-comm-list-num [ deny | permit ] [ regular-expression ] Default No community list is configured.
ip extcommunity-list Use ip extcommunity-list to define an extended community list entry. Use undo ip extcommunity-list to remove an extended community list. Syntax ip extcommunity-list ext-comm-list-number { deny | permit } { rt route-target | soo site-of-origin }&<1-16> undo ip extcommunity-list ext-comm-list-number Default No extended community list is defined.
Syntax route-policy route-policy-name { deny | permit } node node-number undo route-policy route-policy-name [ deny | permit ] [ node node-number ] Default No routing policy is created. Views System view Default command level 2: System level Parameters route-policy-name: Specifies a name for the routing policy, a case-sensitive string of 1 to 63 characters. deny: Specifies the deny match mode for the routing policy node.
Default No backup link for FRR is configured. Views Routing policy view Default command level 2: System level Parameters backup-interface interface-type interface-number: Specifies a backup outbound interface by its type and number. If the specified backup outbound interface is a non-P2P interface (including NBMA and broadcast interfaces, such as an Ethernet interface, virtual template interface or VLAN interface), you must also specify a backup next hop. ip-address: Backup next hop address.
Parameters ip-address: Specifies the IP address of the next hop. Usage guidelines This command cannot set a next hop for redistributed routes. Examples # Configure node 10 in permit mode of routing policy policy1 to set next hop 193.1.1.8 for routes matching AS path list 1. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy] if-match as-path 1 [Sysname-route-policy] apply ip-address next-hop 193.1.1.
Table 109 Command output. Field Description Prefix-list Name of the IPv4 prefix list. Permitted Number of routes matching the criterion. Denied Number of routes not matching the criterion. index Index of an item. permit Match mode of the item: permit or deny. 1.0.0.0/11 IP address and mask. ge Greater-equal, the lower limit. le Less-equal, the higher limit. Related commands ip ip-prefix if-match acl Use if-match acl to configure an ACL match criterion.
Use undo if-match ip to remove the match criterion. Syntax if-match ip { next-hop | route-source } { acl acl-number | ip-prefix ip-prefix-name } undo if-match ip { next-hop | route-source } [ acl | ip-prefix ] Default No match criterion is configured. Views Routing policy view Default command level 2: System level Parameters next-hop: Matches the next hop of IPv4 routes. route-source: Matches the source address of IPv4 route information. acl acl-number: Matches an ACL with a number from 2000 to 2999.
Examples # Configure node 10 of routing policy policy2 to permit routes whose destination address matches IP prefix list p1. system-view [Sysname] route-policy policy2 permit node 10 [Sysname-route-policy] if-match ip-prefix p1 ip ip-prefix Use ip ip-prefix to configure an IPv4 prefix list or an item for the list. Use undo ip ip-prefix to remove an IPv4 prefix list or an item of it.
Usage guidelines An IPv4 prefix list is used to filter IPv4 addresses. It can contain multiple items, each of which specifies a range of IPv4 prefixes. The relation between the items is logic OR. If an item is passed, the IPv4 prefix list is passed. If no item is passed, the IP prefix list cannot be passed. The IP prefix range is determined by mask-length and [ min-mask-length, max-mask-length ].
Syntax apply ipv6 next-hop ipv6-address undo apply ipv6 next-hop Default No next hop address is configured for IPv6 routing information. Views Routing policy view Default command level 2: System level Parameters ipv6-address: Specifies the next hop IPv6 address. Usage guidelines This command cannot set a next hop for redistributed routes. Examples # Configure node 10 of routing policy policy1 to configure next hop 3ffe:506::1 for IPv6 routes matching AS path list 1.
Usage guidelines If no IPv6 prefix list is specified, this command displays the statistics for all IPv6 prefix lists. Examples # Display the statistics for all IPv6 prefix lists. display ip ipv6-prefix Prefix-list6 abc Permitted 0 Denied 0 index: 10 permit ::/0 index: 20 permit ::/1 ge 1 le 128 Table 110 Command output Field Description Prefix-list6 Name of the IPv6 prefix list. Permitted Number of routes matching the criterion.
route-source: Matches the source address of IPv6 routing information. 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. prefix-list ipv6-prefix-name: Specifies an IPv6 prefix list for filtering by its name, a string of 1 to 19 characters. Examples # Configure node 10 of routing policy policy1 to permit routing information whose next hop matches IPv6 prefix list p1.
The length relation is mask-length <= min-mask-length <= max-mask-length <= 128. If only the min-prefix-length is specified, the prefix length range is [ min-prefix-length, 128 ]. If only the max-prefix-length is specified, the prefix length range is [ prefix-length, max-prefix-length ]. If both the min-prefix-length and max-prefix-length are specified, the prefix length range is [ min-prefix-length, max-prefix-length ].
MTR configuration commands acl Use acl to specify an ACL for the topology. Use undo acl to remove the configuration. Syntax acl acl-number undo acl Views Topology view Default command level 2: System level Parameters acl-number: Specifies an ACL by its number in the range of 3000 to 3999. Examples # Specify ACL 3001 for topology voice.
Examples # Enter IPv4 address family view. system-view [Sysname] address-family ipv4 [Sysname-address-family ipv4] # Enter IPv4 address family view when the address family is being deleted. system-view [Sysname] address-family ipv4 The global IPv4 address family is being deleted. Please try later. display multiple-topology Use display multiple-topology to display the information of the specified topology.
Field Description Address Familiy Address family. Create Time Time when the topology was created. multiple-topology Use multiple-topology to create a topology and enter topology view. Use undo multiple-topology to remove the specified topology. Syntax multiple-topology topology-name undo multiple-topology topology-name Default No topology is created.
multiple-topology enable Use multiple-topology enable to enable a topology on the interface. Use undo multiple-topology enable to remove the configuration. Syntax multiple-topology topology-name enable undo multiple-topology topology-name enable Default The interface is not enabled with any topology. Views Interface view Default command level 2: System level Parameters topology-name: Specifies a topology by its name, a case-sensitive string of 1 to 31 characters.
warn-threshold: Specifies the warning threshold in percentage, in the range of 1 to 100. If the warning threshold is exceeded, an alarm message is generated, but routes can still be learned. If the maximum number is reached, no more routes are received. simply-alert: Enables the topology to add new routes and generate a syslog message when the maximum number is exceeded.
Support and other resources Contacting HP For worldwide technical support information, see the HP support website: http://www.hp.
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. { x | y | ... } Braces enclose a set of required syntax choices separated by vertical bars, from which you select one.
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. Represents an access controller, a unified wired-WLAN module, or the switching engine on a unified wired-WLAN switch. Represents an access point.
Index ABCDEFGHILMNOPRSTVW apply preferred-value,493 A apply qos-local-id,493 abr-summary (OSPF area view),64 apply tag,494 abr-summary (OSPFv3 area view),335 area (OSPF view),65 acl,518 area (OSPFv3 view),335 address-family ipv4,518 area-authentication-mode,135 aggregate,209 asbr-summary,65 aggregate (IPv6 address family view),399 authentication-mode,66 apply access-vpn vpn-instance,296 auto-cost enable,136 apply as-path,484 auto-refresh enable,210 apply comm-list delete,485 apply communi
display bgp ipv6 routing-table different-origin-as,422 confederation nonstandard,216 confederation peer-as,217 display bgp ipv6 routing-table flap-info,423 continue,494 display bgp ipv6 routing-table label,424 cost-style,138 display bgp ipv6 routing-table peer,425 D display bgp ipv6 routing-table regular-expression,426 display bgp ipv6 routing-table statistic,427 dampening (BGP/BGP-VPN instance view),218 display bgp network,224 dampening (IPv6 address family view),403 display bgp non-stop-routin
display rip,34 display ipv6 routing-table ipv6-prefix,21 display ipv6 routing-table protocol,22 display rip database,36 display ipv6 routing-table statistics,23 display rip interface,37 display isis brief,140 display rip route,38 display isis debug-switches,141 display ripng,316 display isis graceful-restart status,142 display ripng database,317 display isis interface,144 display ripng interface,319 display isis lsdb,148 display ripng route,320 display isis mesh-group,152 display route-polic
graceful-restart (BGP view),247 import-route (RIP view),44 graceful-restart (IS-IS view),170 import-route isis level-2 into level-1,174 graceful-restart (OSPF view),102 import-route limit (IS-IS view),175 graceful-restart enable,365 ip as-path,504 graceful-restart help,103 ip community-list,504 graceful-restart helper enable,366 ip extcommunity-list,506 graceful-restart helper strict-lsa-checking,366 ip ip-prefix,512 graceful-restart interval,367 ip ipv6-prefix,516 graceful-restart interval
non-stop-routing interval,198 isis small-hello,186 isis timer csnp,186 nssa,111 isis timer hello,187 nssa (OSPFv3 area view),369 isis timer holding-multiplier,188 O isis timer lsp,189 opaque-capability enable,112 isis timer retransmit,190 ospf,113 is-level,191 ospf authentication-mode,113 is-name,191 ospf bfd enable,115 is-name map,192 ospf cost,115 ispf enable,107 ospf dr-priority,116 is-snmp-traps enable,193 ospf mib-binding,117 L ospf mtu-enable,117 listen-range (BGP/BGP-VPN instan
peer advertise-ext-community (IPv6 address family view),434 peer ip-prefix,272 peer allow-as-loop (BGP/BGP-VPN instance view),257 peer ipv6-prefix,449 peer allow-as-loop (IPv6 address family view),434 peer as-number (BGP/BGP-VPN instance view),258 peer keep-all-routes (BGP/BGP-VPN instance view),273 peer as-number (IPv6 address family view),435 peer keep-all-routes (IPv6 address family view),450 peer as-number (IPv6 BGP-VPN instance view),436 peer label-route-capability (IPv6 address family view),4
rip metricout,55 preference,380 preference (BGP/BGP-VPN instance view),286 rip mib-binding,56 preference (IPv6 address family view/IPv6 BGP-VPN instance view),463 rip output,56 preference (IS-IS view),199 rip split-horizon,57 rip poison-reverse,57 priority high,200 rip summary-address,58 R rip version,59 ripng,328 reflect between-clients (BGP view/BGP-VPN instance view),286 ripng default-route,328 ripng enable,329 reflect between-clients (IPv6 address family view),463 ripng ipsec-policy,330
timer lsp-max-age,205 validate-source-address,62 timer lsp-refresh,206 version,63 timer spf,206 virtual-system,207 timers,61 vlink-peer (OSPF area view),133 timers,333 vlink-peer (OSPFv3 area view),383 transmit-pacing,132 W V Websites,523 533