HP 6600/HSR6600 Routers Layer 3 - IP Routing Command Reference Part number: 5998-1504 Software version: A6602-CMW520-R3303P05 A6600-CMW520-R3303P05-RPE A6600-CMW520-R3303P05-RSE HSR6602_MCP-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 ····························································································································································· 171 graceful-restart (IS-IS view) ································································································································· 171 graceful-restart interval (IS-IS view) ···················································································································· 172 graceful-resta
balance (BGP/BGP-VPN instance view) ··········································································································· 212 bestroute as-path-neglect (BGP/BGP-VPN instance view) ··············································································· 213 bestroute compare-med (BGP/BGP-VPN instance view) ················································································· 214 bestroute med-confederation (BGP/BGP-VPN instance view) ··································
peer bfd ································································································································································ 261 peer capability-advertise conventional ············································································································· 262 peer capability-advertise orf ······························································································································ 262 peer capability-advertis
display ip policy-based-route ····························································································································· 305 display ip policy-based-route setup ··················································································································· 306 display ip policy-based-route statistics ·············································································································· 307 display policy-based-route ·············
display ospfv3 peer statistics ····························································································································· 354 display ospfv3 request-list ··································································································································· 355 display ospfv3 retrans-list ··································································································································· 357 display ospfv3 routing
IPv6 BGP configuration commands ······················································································································· 402 aggregate (IPv6 address family view)··············································································································· 402 balance (IPv6 address family view/IPv6 BGP-VPN instance view)································································ 403 bestroute as-path-neglect (IPv6 address family view) ·····················
peer ignore (IPv6 address family view) ············································································································ 451 peer ipv6-prefix ··················································································································································· 452 peer ipsec-policy (IPv6 address family view)···································································································· 452 peer keep-all-routes (IPv6 address family
apply extcommunity ············································································································································ 491 apply ip-precedence ··········································································································································· 492 apply isis ······························································································································································ 492 apply loca
Documents ···························································································································································· 526 Websites······························································································································································· 526 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.
Summary Count: 6 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.
Tag: 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.
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. statistics: Displays the route statistics, including total number of routes and number of routes of each neighbor. |: Filters command output by specifying a regular expression.
Field Description 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.
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.0 24 [Sysname] route-policy frr permit node 10 [Sysname-route-policy] if-match ip-prefix abc [Sysname-route-policy] apply fast-reroute backup-interface gigabitethernet 2/1/1 backup-nexthop 193.1.1.
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 the rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard command • To deny/permit a route with the specified destination and mask, use the rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard destination dest-addr dest-wildcard command.
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. ip-prefix ip-prefix-name: Specifies an IP prefix list by its name, a string of 1 to 19 characters, to filter received routes. gateway ip-prefix-name: Specifies an IP prefix list by its name, a string of 1 to 19 characters, to filter routes from the gateway. interface-type interface-number: Specifies an interface by its type and number.
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. These routes are not helpful for routing and occupy a large amount of network resources. Use undo host-route to disable receiving of host routes.
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. This keyword takes effect only when the protocol is rip, ospf, or isis.
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. Use undo network to disable RIP on the interface attached to the specified network.
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. Syntax output-delay time count count undo output-delay Default An interface sends up to three RIP packets every 20 milliseconds. Views RIP view Default command level 2: System level Parameters time: Specifies the RIP packet sending interval in the range of 10 to 100 milliseconds.
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. system-view [Sysname] rip 1 [Sysname-rip-1] peer 202.38.165.1 preference Use preference to specify the preference for RIP routes. Use undo preference to restore the default.
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. Usage guidelines After you execute the command, the system prompts you to confirm a reset of the RIP process. Examples # Reset RIP process 100.
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. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the RIP process will run under the public network.
rfc2082: Uses the message format defined in RFC 2082. cipher: Sets a ciphertext authentication key or password. If this keyword is not specified, you set a plaintext authentication key or password. key-string: Specifies the MD5 key string. This argument is case sensitive. It must be a plaintext string of 1 to 16 characters, or a ciphertext string of 33 to 53 characters. key-id: Specifies the MD5 key number in the range of 1 to 255. rfc2453: Uses the message format defined in RFC 2453 (IETF standard).
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 RIP interface GigabitEthernet 2/1/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 default-route { { only | originate } [ cost cost ] | no-originate } undo rip default-route Default A RIP interface can advertise a default route if the RIP process is configured with default route advertisement.
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.
Examples # Configure GigabitEthernet 2 /1/1 to add a metric of 6 for the incoming route 1.0.0.0/8 and to add a metric of 2 for other incoming routes. system-view [Sysname] ip ip-prefix 123 permit 1.0.0.0 8 [Sysname] route-policy abc permit node 0 [Sysname-route-policy] if-match ip-prefix 123 [Sysname-route-policy] apply cost 6 [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] rip metricin route-policy abc 2 rip metricout Use rip metricout to add a metric to sent routes.
[Sysname] ip ip-prefix 123 permit 1.0.0.0 8 [Sysname] route-policy abc permit node 0 [Sysname-route-policy] if-match ip-prefix 123 [Sysname-route-policy] apply cost 6 [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] rip metricout route-policy abc 2 rip mib-binding Use rip mib-binding to bind MIB operations with a specified RIP process, so that the RIP process can receive SNMP requests. Use undo rip mib-binding to restore the default.
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 poison-reverse undo rip poison-reverse Default The poison reverse function is disabled.
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.25 and other non-broadcast multi-access (NBMA) networks, split horizon should be disabled if multiple VCs are configured on the primary and secondary interfaces to ensure route advertisement. For detailed information, see Layer 2—WAN Configuration Guide.
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. Syntax rip version { 1 | 2 [ broadcast | multicast ] } undo rip version Default No RIP version is configured for an interface, which uses the global RIP version. If the global RIP version is not configured, the interface can only send RIPv1 broadcasts and can receive RIPv1 broadcasts and unicasts, and RIPv2 broadcasts, multicasts, and unicasts.
[Sysname-GigabitEthernet2/1/1] rip version 2 broadcast silent-interface (RIP view) Use silent-interface to disable an interface or all interfaces from sending routing updates. The interface only receives but does not send RIP messages. Use undo silent-interface to restore the default. Syntax silent-interface { interface-type interface-number | all } undo silent-interface { interface-type interface-number | all } Default All interfaces are allowed to send routing updates.
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. By adjusting RIP timers, you can improve network performance. Use undo timers to restore the default.
same neighbor and whose metric is less than 16 are received by the router to replace unreachable routes. • Garbage-collect timer—Defines the interval from when the metric of a route becomes 16 to when it is deleted from the routing table. During the Garbage-Collect timer length, RIP advertises the route with the routing metric set to 16. If no routing update is announced for that route after the Garbage-Collect timer expires, the route is deleted from the routing table.
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. 2: Specifies the RIP version as RIPv2. RIPv2 messages are multicast.
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: Area areaID interface IPAddress(InterfaceName)'s neighbors • areaID—Area to which the neighbor belongs. • IPAddress—Interface IP address. • InterfaceName—Interface name. 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. The following matrix shows the command and router compatibility: Command 6602 HSR6602 6604/6608/6616 • Yes when using the RPE-X1 or RSE-X1 ospf non-stop-routing No No MPU • No when using the MCP MPU Examples # Enable OSPF NSR.
undo ospf timer dead Default The dead interval is four times the hello interval. Views Interface view 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.
Usage guidelines The shorter the hello interval is, the faster the topology converges and the more resources are consumed. Make sure the hello interval on two neighboring interfaces is the same. Examples # Configure the hello interval on an interface as 20 seconds. system-view [Sysname] interface GigabitEthernet 2/0/0 [Sysname-GigabitEthernet2/0/0] ospf timer hello 20 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 retransmit to restore the default. Syntax ospf timer retransmit interval undo ospf timer retransmit Default The interval defaults to 5s. 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.
Usage guidelines Each LSA in the LSDB has an age that is incremented by 1 every second, but the age does not change during transmission. It is necessary to add a transmission delay into its age time, which is important for low speed networks. Examples # Set the LSA transmission delay to 3 seconds on an interface. system-view [Sysname] interface GigabitEthernet 2/0/0 [Sysname-GigabitEthernet2/0/0] ospf trans-delay 3 peer Use peer to specify a neighbor, and the DR priority of the neighbor.
[Sysname] ospf 100 [Sysname-ospf-100] peer 1.1.1.1 Related commands ospf dr-priority preference Use preference to set the preference of OSPF routes. Use undo preference to restore the default. 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.
Syntax reset ospf [ process-id ] counters [ neighbor [ interface-type interface-number ] [ router-id ] ] Views User view Default command level 1: Monitor level Parameters process-id: Clears the statistics of an OSPF process specified by its ID in the range of 1 to 65535. neighbor: Clears neighbor statistics. interface-type interface-number: Clears the statistics of the neighbor connected to the specified interface. router-id: Clears the statistics of the specified neighbor.
• Does not remove previous OSPF configurations. The system prompts you to select whether to reset OSPF process upon execution of this command. Examples # Reset all OSPF processes. reset ospf process Warning : Reset OSPF process? [Y/N]:Y # Reset all OSPF processes using GR. reset ospf process graceful-restart Warning : Reset OSPF process? [Y/N]:Y reset ospf redistribution Use reset ospf redistribution to restart route redistribution.
Default command level 2: System level Usage guidelines RFC 1583 and RFC 2328 use different rules for selecting the best route among multiple AS external routes destined for the same network. Using this command can make them compatible. If RFC 2328 is compatible with RFC 1583, the intra-area route in the backbone area is preferred, if not, the intra-area route in the non-backbone area is preferred to reduce the burden of the backbone area. Examples # Disable compatibility with RFC 1583.
Examples # Configure a global router ID. system-view [Sysname] router id 1.1.1.1 silent-interface (OSPF view) Use silent-interface to disable an interface or all interfaces from r sending OSPF packets. Use undo silent-interface to restore the default. Syntax silent-interface { interface-type interface-number | all } undo silent-interface { interface-type interface-number | all } Default An interface can send OSPF packets.
undo snmp-agent trap enable ospf [ process-id ] [ ifauthfail | ifcfgerror | ifrxbadpkt | ifstatechange | iftxretransmit | lsdbapproachoverflow | lsdboverflow | maxagelsa | nbrstatechange | originatelsa | vifcfgerror | virifauthfail | virifrxbadpkt | virifstatechange | viriftxretransmit | virnbrstatechange ] * Default This feature is enabled. Views System view Default command level 3: Manage level Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
Use undo spf-schedule-interval to restore the default. Syntax spf-schedule-interval maximum-interval [ minimum-interval [ incremental-interval ] ] undo spf-schedule-interval Default The interval defaults to 5 seconds. Views OSPF view Default command level 2: System level Parameters maximum-interval: Specifies the maximum OSPF route calculation interval in seconds, in the range of 1 to 60.
Default No area is stub area. Views OSPF area view Default command level 2: System level Parameters default-route-advertise-always: Usable only on a stub ABR. With this keyword, the ABR advertises a default route in a Type-3 LSA into the stub area regardless of whether FULL-state neighbors exist in the backbone area. Without this keyword, the ABR advertises a default route in a Type-3 LSA into the stub area only when at least one FULL-state neighbor exists in the backbone area.
Usage guidelines The router LSAs sent by the stub router over different links contain different link type values. A value of 3 represents a link to a stub network, and the cost of the link is not changed. A value of 1, 2 or 4 represents a point-to-point link, a link to a transit network, or a virtual link, and the cost of such links is set to 65535. Neighbors on such links will not send packets to the stub router as long as they have a route with a smaller cost.
vlink-peer (OSPF area view) Use vlink-peer to configure a virtual link. Use undo vlink-peer to remove a virtual link.
• A so small retransmission interval will lead to unnecessary retransmissions. A big value is appropriate for a low speed link. • You need to specify an appropriate transmission delay with the trans-delay keyword. • You can specify either MD5/HMAC-MD5 authentication or simple authentication for a virtual link. For MD5/HMAC-MD5 authentication, you can configure multiple keys by executing this command multiple times, and each command must have a unique key ID and key string.
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.
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. If no VPN is specified, the IS-IS debugging switch state for the public network is displayed. |: Filters command output by specifying a regular expression.
|: 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 isis interface Use display isis interface to display IS-IS interface information. Syntax display isis interface [ statistics | [ interface-type interface-number ] [ verbose ] ] [ process-id | vpn-instance vpn-instance-name ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters statistics: Displays IS-IS interface statistics. interface-type interface-number: Displays statistics of the specified IS-IS interface.
001 Up Down 1497 L1/L2 No/No SNPA Address : 000f-e237-c6e0 IP Address : 192.168.1.
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 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. TE Cost MPLS TE cost configured on the interface. TE Admin Group TE link administration group. TE Max Bandwidth TE link maximum bandwidth. TE Max Res Bandwidth TE link maximum reserved bandwidth.
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. If IPv6 is not enabled, this field displays a hyphen (-). IPv6 DOWN Number of IS-ISv6 interfaces in down state. If IPv6 is not enabled, this field displays a hyphen (-).
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 level is specified, the command displays both Level-1 and Level-2 LSDB.
1000.0000.0002.01 COST: 63 MTR ID: 2 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 MTR ID: 10 COST: 63 MTR ID: 2 IPV4 UNICAST 3.1.1.0 IPV6 UNICAST 3::/64 1000.0000.0002.00-00 0x00000008 SOURCE 1000.0000.0002.00 NLPID IPV4 NLPID IPV6 AREA ADDR 10 INTF ADDR 3.1.1.
Field Description 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. NLPID Network layer protocol the originating router runs. AREA ADDR Area address of the originating router. INTF ADDR IP address of the originating router's IS-IS interface.
display isis mesh-group Use display isis mesh-group to display IS-IS mesh-group configuration information. Syntax display isis mesh-group [ 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 IS-IS mesh-group configuration information for the IS-IS process. The ID is in the range of 1 to 65535.
Field Description 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. Syntax display isis name-table [ 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 host name-to-system ID mapping table for the IS-IS process. The ID is in the range of 1 to 65535.
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. Syntax display isis peer [ statistics | verbose ] [ process-id | vpn-instance vpn-instance-name ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters statistics: Displays IS-IS neighbor statistics.
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 Level-2 Forwarding Table IS-IS IPv4 routing information for Level-2. 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.
Admin Tag : - Src Count : 2 Flag 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 Admin Tag Tag. Src Count Count of advertising sources. 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 Route state 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.
L1 IS_SPFTRIG_PERIODIC 2 0 13:18:8 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
level-2: Displays IS-IS Level-2 statistics. 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.
Total IPv4 Learnt Routes in IPv4 Routing Table: 0 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.
RIP: 0 OSPF: Total Number: 0 0 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.
cipher: Sets a ciphertext password. If this keyword is not specified, you set a plaintext password. 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 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.
non-stop-routing interval Use non-stop-routing interval to set the NSR interval. Use undo non-stop-routing interval to restore the default. Syntax non-stop-routing interval interval-value 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.
Syntax preference { preference | route-policy route-policy-name } * undo preference Default IS-IS preference is 15. Views IS-IS view Default command level 2: System level Parameters preference: Specifies the preference for IS-IS protocol, in the range of 1 to 255. route-policy route-policy-name: Routing policy name, a case-sensitive string of 1 to 63 characters. The preference applies to routes passing the routing policy.
Parameters ip-prefix ip-prefix-name: Specifies the name of an IP prefix list, a case-sensitive string of 1 to 19 characters. tag tag-value: Specifies a tag value in the range of 1 to 4294967295. Usage guidelines If no IS-IS route is assigned a high priority, IS-IS host routes are processed first in network convergence because they have higher priority than other types of IS-IS routes. Examples # Assign a high priority to the IS-IS routes matching IP prefix list standtest.
reset isis peer Use reset isis peer to clear the data structure information of a specified IS-IS neighbor. Syntax reset isis peer system-id [ process-id | vpn-instance vpn-instance-name ] Views User view Default command level 2: System level Parameters system-id: Specifies the system ID of an IS-IS neighbor. process-id: Clears the data structure information of an IS-IS process with an ID from 1 to 65535. vpn-instance vpn-instance-name: Clears the data structure information of the MPLS L3VPN.
is formed within the nbr-timeout interval, IS-IS keeps the overload bit set; if not, the bit is cleared. IS-IS keeps the overload bit set within the timeout1 interval after the neighbor relationship is formed within the nbr-timeout interval. • system-id: Specifies the neighbor. • timeout1: The timeout1 interval is in the range of 5 to 86400 seconds and defaults to 600 seconds. • nbr-timeout: The timer has an interval from 5 to 86400 seconds. The default is 1200 seconds.
Parameters ipv4-unicast topology-name: Specifies an IPv4 unicast topology. topology-name is a case-sensitive string of 1 to 31 characters. ip-address: Specifies the destination IP address of the summary route. mask: Specifies the mask of the destination IP address, in dotted decimal format. mask-length: Specifies the mask length in the range of 0 to 32. avoid-feedback: Avoids learning summary routes by route calculation. generate_null0_route: Generate the Null 0 route to avoid routing loops.
Parameters maximum-interval: Specifies the maximum wait interval for generating IS-IS LSPs, in the range of 1 to 120 seconds. initial-interval: Specifies the initial wait interval before generating the first IS-IS LSP, in the range of 10 to 60000 milliseconds. The default is 0. second-wait-interval: Specifies the wait interval before generating the second LSP, in the range of 10 to 60000 milliseconds. The default is 0. level-1: Applies the intervals to Level-1. level-2: Applies the intervals to Level-2 .
Views IS-IS view Default command level 2: System level Parameters seconds: Specifies the LSP maximum aging time in seconds, in the range of 1 to 65535. Examples # Set the maximum LSP age to 1500 seconds. system-view [Sysname] isis 1 [Sysname-isis-1] timer lsp-max-age 1500 Related commands timer lsp-refresh timer lsp-refresh Use timer lsp-refresh to configure the LSP refresh interval. Use undo timer lsp-refresh to restore the default.
timer spf Use timer spf to set the SPF calculation interval. Use undo timer spf to restore the default. Syntax timer spf maximum-interval [initial-interval [second-wait-interval ] ] undo timer spf Default The IS-IS SPF calculation interval is 10 seconds. Views IS-IS view Default command level 2: System level Parameters maximum-interval: Specifies the maximum SPF calculation interval, in the range of 1 to 120 seconds.
[Sysname] isis 1 [Sysname-isis-1] timer spf 10 100 200 virtual-system Use virtual-system to configure a virtual system ID for the IS-IS process. Use undo virtual-system to remove a virtual system ID. Syntax virtual-system virtual-system-id undo virtual-system virtual-system-id Default No virtual system ID is configured. Views IS-IS view Default command level 2: System level Parameters virtual-system-id: Virtual system ID of the IS-IS process.
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.
[Sysname-bgp] balance 2 # In BGP view, set the number of IBGP ECMP routes to 2. 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.
Examples # In BGP view, ignore AS_PATH in route selection. system-view [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.
Syntax bestroute med-confederation undo bestroute med-confederation 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.
Examples # Enable BGP and set local AS number to 100. system-view [Sysname] bgp 100 [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.
Syntax confederation id as-number undo confederation id Default No confederation ID is configured. 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.
Syntax confederation nonstandard undo confederation nonstandard Default All routers in the confederation comply with RFC 3065. 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.
Parameters as-number-list: Specifies the sub-AS number list. Up to 32 sub-ASs can be configured in one command line. The expression is as-number-list = as-number &<1-32>, in which as-number specifies a sub-AS number, and &<1-32> indicates that up to 32 numbers can be specified. Usage guidelines Before this configuration, you must use the confederation id command to specify the confederation for the sub-ASs.
suppress: Specifies a suppression threshold in the range of 1 to 20000. The route with a penalty value higher than the threshold is suppressed. The default value is 2000. ceiling: Specifies a ceiling penalty value in the range of 1001 to 20000. The value must be bigger than the suppress value. The default value is 16000. route-policy-name: Specifies routing policy name, a case-sensitive string of 1 to 63 characters.
Usage guidelines The default ipv4-unicast or undo default ipv4-unicast command applies to only BGP peers that are established after it is executed. The default ipv4-unicast or undo default ipv4-unicast command applies to only BGP peers that are established using the peer as-number command. After executing the undo default ipv4-unicast command, you can use the peer enable command to enable the use of IPv4 address family for a peer.
[Sysname-bgp-ipv4-vpn1] default local-preference 180 default med (BGP/BGP-VPN instance view) Use default med to specify a default MED value. Use undo default med to restore the default. Syntax default med med-value undo default med Default The default med-value is 0. Views BGP 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.
undo default-route imported Default Default route redistribution is not allowed. Views BGP view, BGP-VPN instance view 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.
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 information about the peer group aaa.
Field Description AS AS number of the peer. MsgRcvd Number of messages received. MsgSent Number of messages sent. OutQ Number of messages to be sent. 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.
Table 44 Command output Field Description BGP Local Router ID BGP Local Router ID. Local AS Number Local AS Number. Network Network address. Mask Mask. 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.
Table 45 Command output Field Description BGP NSR backup status: • Ready—BGP NSR completes IPv4 routing and neighbor information backup, and enters the Ready state. If an active/standby switchover occurs, the existing routes are still effective, and the current services are not affected. BGP NSR status • Not ready—BGP NSR is backing up IPv4 routing and neighbor information in batches, and does not function.
Field Description Path AS_PATH attribute of the path, recording the ASs it has passed to avoid routing loops. Origin attribute of the path: • 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.
Port: Local - 1029 Remote - 179 Configured: Active Hold Time: 180 sec Received Keepalive Time: 60 sec : Active Hold Time: 180 sec Negotiated: Active Hold Time: 180 sec Keepalive Time: 60 sec Peer optional capabilities: Peer support bgp multi-protocol extended Peer support bgp route refresh capability Address family IPv4 Unicast: advertised and received Received: Total 5 messages, Update messages 1 Sent: Total 4 messages, Update messages 0 Maximum allowed prefix number: 4294967295 Threshold: 75% Mini
Field Description Received Total numbers of received messages and updates. Sent Total numbers of sent messages and updates. Maximum allowed prefix number Maximum allowed prefix number. Threshold Percentage of received prefixes from the peer group to maximum prefixes allowed to receive from the peer group; If the percentage is reached, the system generates alarm messages. Minimum time between advertisement runs Minimum route advertisement interval.
Table 48 Command output Field Description Peer IP address of the peer. Date Date on which the Notification was sent or received. Time Time at which the Notification was sent or received. State • Up—The BGP session is up. • Down—The BGP session is down. Notification Error code and subcode of the Notification message. BGP session state: Error refers to the error code, which identifies the type of the Notification.
20 deny 2.1.1.0/24 26 32 Table 49 Command output Field Description ORF ip-prefix entries Number of ORF prefix entries. index Index of a prefix entry. rule Matching rule of the prefix. prefix Prefix information. ge Greater-equal, indicating that the mask length must be greater than or equal to the specific value. le Less-equal, indicating that the mask length must be less than or equal to the specific value.
Examples # Display BGP routing table information. display bgp routing-table Total Number of Routes: 1 BGP Local router ID is 10.10.10.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 40.40.40.0/24 MED 20.20.20.1 LocPrf 0 PrefVal Path/Ogn 0 200 300i Table 50 Command output Field Description Total Number of Routes Total Number of Routes.
Field Description Origin attribute of the route: • i—The route is interior to the AS. Summary routes and the routes injected with 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 the route is unknown and the route is learned by other means. display bgp routing-table as-path-acl Use display bgp routing-table as-path-acl to display BGP routes permitted by an as-path ACL.
display bgp routing-table cidr Use display bgp routing-table cidr to display BGP CIDR (Classless Inter-Domain Routing) routing information. Syntax display bgp routing-table cidr [ | { 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 aa:nn: Specifies a community by its number. Both aa and nn are in the range of 0 to 65535. &<1-13>: Indicates that you can enter the preceding argument up to 13 times. no-advertise: Displays BGP routes that cannot be advertised to any peer. no-export: Displays BGP routes that cannot be advertised out of the AS.
Syntax display bgp routing-table community-list { { basic-community-list-number | comm-list-name } [ whole-match ] | adv-community-list-number } [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters basic-community-list-number: Specifies a basic community-list number in the range of 1 to 99. adv-community-list-number: Specifies an advanced community-list number in the range of 100 to 199.
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.
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 route dampening parameters.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # Display BGP routes originating from different ASs. display bgp routing-table different-origin-as BGP Local router ID is 2.2.2.2 Status codes: * - valid, ^ - VPNv4 best, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? – incomplete *> Network NextHop 55.0.0.0 12.1.1.1 0 0 100? 14.1.1.
Examples # Display BGP route flap statistics. display bgp routing-table flap-info BGP Local router ID is 2.2.2.2 Status codes: * - valid, ^ - VPNv4 best, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? – incomplete Network From Flaps Duration *> 55.0.0.0 12.1.1.1 2 00:00:16 *d 77.0.0.0 12.1.1.
BGP Local router ID is 6.6.6.7 Status codes: * - valid, ^ - VPNv4 best, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? - incomplete Total Number of Routes: 2 Network NextHop In/Out Label *> 4.4.4.4/32 127.0.0.1 3/NULL *> 5.5.5.5/32 1.1.1.1 NULL/1024 The In/Out Label field refers to the inbound/outbound label. For the description of other fields, see Table 50.
Examples # Display BGP routing information advertised to BGP peer 20.20.20.1. display bgp routing-table peer 20.20.20.1 advertised-routes Total Number of Routes: 2 BGP Local router ID is 30.30.30.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 LocPrf PrefVal Path/Ogn *> 30.30.30.0/24 0.0.0.0 0 0 i *> 40.40.40.0/24 0.0.0.
display bgp routing-table statistic Use display bgp routing-table statistic to display BGP routing statistics. Syntax display bgp routing-table statistic [ | { 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.
Examples # Display the global router ID. display router id Configured router ID is 1.1.1.1 ebgp-interface-sensitive Use ebgp-interface-sensitive to enable quick reestablishment of direct EBGP session. Use undo ebgp-interface-sensitive to disable the function. Syntax ebgp-interface-sensitive undo ebgp-interface-sensitive Default This function is enabled.
Syntax filter-policy { acl-number | ip-prefix ip-prefix-name } export [ direct | isis process-id | ospf process-id | rip process-id | static ] undo filter-policy export [ direct | isis process-id | ospf process-id | rip process-id | static ] Default No route filtering is configured. Views BGP view, BGP-VPN instance view Default command level 2: System level Parameters acl-number: Number of an ACL used to filter outgoing routing information, in the range of 2000 to 3999.
[Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] filter-policy 2000 export # Configure ACL 3000 to permit only route 113.0.0.0/16 to pass, and reference ACL 3000 to filter outgoing 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.
[Sysname] bgp 100 [Sysname-bgp] filter-policy 2000 import # In BGP-VPN instance view, reference ACL 2000 to filter incoming routing information. (The VPN has been created.) system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] filter-policy 2000 import # Configure ACL 3000 to permit only route 113.0.0.0/16 to pass, and reference ACL 3000 to filter incoming route information.
graceful-restart timer restart Use graceful-restart timer restart to configure the maximum time for a peer to reestablish a BGP session. Use undo graceful-restart timer restart to restore the default. Syntax graceful-restart timer restart timer undo graceful-restart timer restart Default The maximum time for a peer to reestablish a BGP session is 150 seconds.
Parameters timer: Time to wait for the End-of-RIB marker, in the range of 3 to 300 seconds. Usage guidelines After a BGP session has been successfully (re)established, the End-of-RIB marker must be received within the time specified with this command. Using this command can speed up route convergence. Before configuring this command, you must enable the BGP Graceful Restart capability. Examples # Set the time to wait for the End-of-RIB marker on the local end to 100 seconds.
[Sysname-bgp] peer 10.1.2.1 group test # In BGP-VPN instance view, create an EBGP peer group test with AS number 200, and add EBGP peers 10.1.1.1 and 10.1.2.1 into the group. (The VPN has been created.) system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] group test external [Sysname-bgp-ipv4-vpn1] peer test as-number 200 [Sysname-bgp-ipv4-vpn1] peer 10.1.1.1 group test [Sysname-bgp-ipv4-vpn1] peer 10.1.2.
Default command level 2: System level Parameters protocol: Redistributes routes from the specified routing protocol, which can be direct, isis, ospf, rip or static. process-id: Process ID in the range of 1 to 65535. The default is 1. It is available only when the protocol is isis, ospf, or rip. all-processes: Redistributes routes from all the processes of the specified protocol. This keyword takes effect only when the protocol is rip, ospf, or isis.
Views BGP view Default command level 2: System level Parameters vpn-instance-name: VPN instance name, a case-sensitive string of 1 to 31 characters. Usage guidelines Before you enter BGP-VPN instance view, the VPN instance must have been created. Examples # Associate the specified VPN instance with the IPv4 address family, and enter BGP-VPN instance view.
Examples # In BGP view, specify subnet 25.1.1.0/24 and the peer group in for BGP dynamic peers. system-view [Sysname] bgp 100 [Sysname-bgp] group in internal [Sysname-bgp] listen-range 25.1.1.0 24 group in # In BGP-VPN instance view, specify subnet 26.1.1.0/24 and the peer group test for BGP dynamic peers.
Default No network route is injected. Views BGP view, BGP-VPN instance view Default command level 2: System level Parameters ip-address: Specifies a destination IP address. mask: Specifies a mask of the network address, in dotted decimal notation. mask-length: Specifies a mask length in the range of 0 to 32. route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.
Default command level 2: System level Parameters ip-address: Specifies a destination IP address. mask: Specifies a mask of the network address, in dotted decimal notation. mask-length: Specifies a mask length in the range of 0 to 32. Usage guidelines The preference of an EBGP route is lower than a local route. The network short-cut command allows you configure an EBGP route as a shortcut route that has the same preference as a local route and is more likely to become the optimal route.
Command 6602 HSR6602 non-stop-routing No No 6604/6608/6616 • Yes when using the RPE-X1 or RSE-X1 MPU • No when using the MCP MPU Examples # Enable BGP NSR. system-view [Sysname] bgp 100 [Sysname-bgp] non-stop-routing peer advertise-community (BGP/BGP-VPN instance view) Use peer advertise-community to advertise the community attribute to a peer/peer group. Use undo peer advertise-community to disable the community attribute advertisement to a peer/peer group.
• if-match community • ip community-list peer advertise-ext-community (BGP/BGP-VPN instance view) Use peer advertise-ext-community to advertise the extended community attribute to a peer/peer group. Use undo peer advertise-ext-community to disable the extended community attribute advertisement to a peer/peer group.
Syntax peer { group-name | ip-address } allow-as-loop [ number ] undo peer { group-name | ip-address } allow-as-loop Default The local AS number is not allowed in routes from a 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 an IP address of a peer.
Default No peer or peer group is specified. 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 an IP address of a peer. as-number: Specifies the AS number of the peer or peer group, in the range of 1 to 4294967295. Usage guidelines You can specify the AS number of a peer in either of the following ways: • Use the peer ip-address as-number as-number command.
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 an IP address of a peer. as-path-acl-number: Specifies an AS path ACL number in the range of 1 to 256. export: Filters outgoing routes. import: Filters incoming routes. Examples # In BGP view, reference the AS path ACL 1 to filter routes outgoing to the peer group test.
Parameters ip-address: IP address of a peer. Usage guidelines After the link to the BGP peer fails, BFD can detect the failure before the system performs GR, causing GR to fail. If GR capability is enabled for BGP, use BFD with caution. If GR and BFD are both enabled, do not disable BFD during a GR process. Otherwise, GR might fail. Examples # Enable BFD for BGP peer 1.1.1.1. system-view [Sysname] bgp 100 [Sysname-bgp] peer 1.1.1.
Syntax peer { group-name | ip-address } capability-advertise orf ip-prefix { both | receive | send } undo peer { group-name | ip-address } capability-advertise orf ip-prefix { both | receive | send } Default The 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 IP address of a peer.
# In BGP-VPN instance view, enable the ORF capability for the BGP peer 18.10.0.9. Then, after negotiation, the local router can exchange ORF information with the peer 18.10.0.9. (vpn1 must have been created.) system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] peer 18.10.0.9 as-number 200 [Sysname-bgp-ipv4-vpn1] peer 18.10.0.9 capability-advertise orf ip-prefix both The related configuration needs to be made on the peer.
[Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] peer 18.10.0.9 as-number 200 [Sysname-bgp-ipv4-vpn1] peer 18.10.0.9 capability-advertise orf non-standard [Sysname-bgp-ipv4-vpn1] peer 18.10.0.9 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 the BGP route refresh capability.
Use undo peer capability-advertise suppress-4-byte-as to disable the function. Syntax peer { group-name | ip-address } capability-advertise suppress-4-byte-as undo peer { group-name | ip-address } capability-advertise suppress-4-byte-as Default The 4-byte AS number suppression function is disabled. 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 BGP uses the outbound interface of the best route to the BGP peer/peer group as the source interface for establishing a TCP connection 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 1 to 47 characters. ip-address: IP address of a peer. interface-type interface-number: Specifies an interface by its type and number.
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.
description-text: Specifies the description information for the peer/peer group, a string of 1 to 79 characters. Usage guidelines Create a peer/peer group before configuring a description for it. Examples # In BGP view, configure the description information for the peer group test as ISP1. system-view [Sysname] bgp 100 [Sysname-bgp] peer test description ISP1 # In BGP-VPN instance view, configure the description information for the peer group test as ISP1. (The VPN has been created.
Examples # In BGP view, allow establishing the EBGP session with the peer group test that is on an indirectly connected network. system-view [Sysname] bgp 100 [Sysname-bgp] peer test ebgp-max-hop # In BGP-VPN instance view, allow establishing the EBGP session with the peer group test that is on an indirectly connected network. (The VPN has been created.
Use undo peer fake-as to restore the default. Syntax peer { group-name | ip-address } fake-as as-number undo peer { group-name | ip-address } fake-as Default No fake local AS number is configured for a 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 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. acl-number: Specifies the ACL number in the range of 2000 to 3999. export: Applies the filter-policy to routes advertised to the peer/peer group. import: Applies the filter-policy to routes received from the peer/peer group. Examples # In BGP view, apply the ACL 2000 to filter routes advertised to the peer group test.
Usage guidelines If you have specified an AS number for the peer to be added, make sure that the as-number argument is consistent with the specified peer AS number. If you have not created the peer to be added, the system automatically creates the peer when you execute the command. Examples # In BGP view, add the peer 10.1.1.1 to the EBGP peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] group test external [Sysname-bgp] peer test as-number 2004 [Sysname-bgp] peer 10.1.1.
Examples # In BGP view, disable session establishment with peer 10.10.10.10. system-view [Sysname] bgp 100 [Sysname-bgp] peer 10.10.10.10 ignore # In BGP-VPN instance view, disable session establishment with peer 10.10.10.10. (The VPN has been created.) system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] peer 10.10.10.
[Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] peer test ip-prefix list1 export peer keep-all-routes (BGP/BGP-VPN instance view) Use peer keep-all-routes to save original routing information from a peer or peer group, regardless of whether the routes have passed the configured routing policy. Use undo peer keep-all-routes to disable this function.
Default The logging 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 the logging of session state and event information for peer group test.
Examples # In BGP view, set the next hop of routes advertised to peer group test to the router itself. system-view [Sysname] bgp 100 [Sysname-bgp] peer test next-hop-local # In BGP-VPN instance view, set the next hop of routes advertised to peer group test to the router itself.
Examples # In BGP view, perform MD5 authentication on the TCP connection set up between the local router 10.1.100.1 and the peer router 10.1.100.2. system-view [Sysname] bgp 100 [Sysname-bgp] peer 10.1.100.2 password simple aabbcc # Perform the similar configuration on the peer. system-view [Sysname] bgp 100 [Sysname-bgp] peer 10.1.100.1 password simple aabbcc # In BGP-VPN instance view, perform MD5 authentication on the TCP connection set up between the local router 10.1.100.
Usage guidelines Routes learned from a peer have an initial preferred value. Among multiple routes that have the same destination/mask and are learned from different peers, the one with the greatest preferred value is selected as the route to the destination. If you both reference a routing policy and use the peer { group-name | ip-address } preferred-value value command to set a preferred value for routes from a peer, the routing policy sets the specified preferred value for routes matching it.
Usage guidelines The command does not take effect if the BGP update has both public and private AS numbers. The value range for the private AS number is 64512 to 65535. Examples # In BGP view, carry no private AS number in BGP updates sent to the peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] peer test public-as-only # In BGP-VPN instance view, carry no private AS number in BGP updates sent to the peer group test. (The VPN has been created.
[Sysname] bgp 100 [Sysname-bgp] peer test reflect-client # In BGP-VPN instance view, configure the local device as a route reflector and specify the IBGP peer group test as a client. (vpn1 must have been created.
6602 HSR6602 6604/6608/6616 • 1 GB memory: 1 to • HSR6602-G: 1 to • 2 GB memory: 1 to • HSR6602-XG: 1 to • RPE-X1 MPU: 1 to 500000 • RSE-X1 MPU: 1 to 2000000 • MCP MPU: 1 to 100000 500000 1000000 1000000 4000000 Examples # In BGP view, specify the maximum number of routes that can be received from peer 129.140.6.6 to 10000, and configure the router to tear down the connection to the peer if the number is exceeded. system-view [Sysname] bgp 109 [Sysname-bgp] peer 129.140.6.
Usage guidelines The peer route-policy command does not apply the if-match interface clause in the referenced routing policy. For related commands, see "Routing policy configuration commands". Examples # In BGP view, apply routing policy test-policy to routes outgoing to the peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] peer test route-policy test-policy export # In BGP-VPN instance view, apply the routing policy test-policy to routes outgoing to the peer group test.
# In BGP-VPN instance view, specify the interval for sending the same update to peer group test as 10 seconds. (The VPN has been created.) system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] peer test as-number 100 [Sysname-bgp-ipv4-vpn1] peer test route-update-interval 10 peer substitute-as (BGP/BGP-VPN instance view) Use peer substitute-as to replace the AS number of a peer/peer group in the AS_PATH attribute with the local AS number.
Syntax peer { group-name | ip-address } timer keepalive keepalive hold holdtime undo peer { group-name | ip-address } timer Default The keepalive and holdtime are 60s and 180s, respectively. Views BGP view, BGP-VPN instance view 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. keepalive: Specifies the keepalive interval in seconds, in the range of 0 to 21845.
system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] peer test timer keepalive 0 hold 0 Related commands timer peer ttl-security hops (BGP/BGP-VPN instance view) Use peer ttl-security hops to configure Generalized TTL Security Mechanism (GTSM) to check BGP packets from the specified peer or peer group. Use undo peer ttl-security hops to restore the default.
[Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] peer test ttl-security hops 1 peer update-no-advertise (BGP view) Use peer update-no-advertise to disable BGP from sending routing updates to the specified peer or peer group, except for the default route sent by the peer default-route-advertise command. Use undo peer update-no-advertise to restore the default.
Default command level 2: System level Parameters external-preference: Preference of EBGP routes, in the range of 1 to 255. internal-preference: Preference of IBGP routes, in the range of 1 to 255. local-preference: Preference of local routes, in the range of 1 to 255. route-policy-name: Routing policy name, a case-sensitive string of 1 to 63 characters. Using the routing policy can set a preference for routes matching it. The default value applies to routes not matching the routing policy.
Examples # Disable route reflection between clients. system-view [Sysname] bgp 100 [Sysname-bgp] undo reflect between-clients # In BGP-VPN instance view, disable route reflection between clients. (vpn1 must have been created.
[Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] reflector cluster-id 80 Related commands • peer reflect-client • reflect between-clients refresh bgp Use refresh bgp to perform soft reset on specified BGP sessions. Syntax refresh bgp { ip-address | all | group group-name | external | internal } { export | import } Views User view Default command level 1: Monitor level Parameters ip-address: Soft-resets the BGP session to a peer.
Views User view Default command level 2: System level Parameters as-number: Resets BGP sessions to peers in the AS. ip-address: Specifies the IP address of a peer with which to reset the session. all: Resets all BGP sessions. external: Resets all the EBGP sessions. group group-name: Resets sessions with the specified BGP peer group. internal: Resets all the IBGP sessions. Examples # Reset all the BGP sessions.
Syntax reset bgp flap-info [ ip-address [ mask-length | mask ] | as-path-acl as-path-acl-number | regexp as-path-regular-expression ] reset bgp ip-address flap-info Views User view Default command level 1: Monitor level Parameters ip-address: Clears the flap statistics of a route. mask-length: Specifies the mask length in the range of 0 to 32. mask: Specifies the network mask, in dotted decimal notation.
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. If no global router ID is configured, the highest loopback interface IP address, if any, is used as the router ID.
Parameters router-id: Router ID in IP address format. Usage guidelines To run BGP protocol, a router must have a router ID, which is an unsigned 32-bit integer, the unique ID of the router in the AS. To enhance network reliability, you can specify the IP address of a local loopback interface as the router ID. Examples # Specifies the router ID as 10.18.4.221. system-view [Sysname] bgp 100 [Sysname-bgp] router-id 10.18.4.
[Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] summary automatic synchronization (BGP view) Use synchronization to enable the synchronization between the BGP and IGP routes. Use undo synchronization to disable the synchronization. Syntax synchronization undo synchronization Default The feature is disabled.
Views BGP view, BGP-VPN instance view Default command level 2: System level Parameters keepalive: Keepalive interval in seconds, in the range of 0 to 21845. holdtime: Holdtime in seconds, whose value is 0 or in the range of 3 to 65535. Usage guidelines The timers configured with the peer timer command are preferred to the timers configured with this command. If the holdtime is configured as 0, no keepalive message is sent to the peer, and the peer connection never times out.
Related commands peer timer 297
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. Syntax display ip policy-based-route setup { policy-name | interface interface-type interface-number [ slot slot-number ] | local [ slot slot-number ] } [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters policy-name: Displays the PBR configuration of the specified policy by its name, a string of 1 to 19 characters.
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. Interface GigabitEthernet2/1/1 policy based routing configuration information PBR configuration on GigabitEthernet 2/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 Packets matching a deny-mode node are forwarded according to the routing table. Therefore, no statistics are available for such packets. Examples # Display the statistics of PBR on GigabitEthernet 2/1/1.
|: 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.
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. Use undo if-match packet-length to remove the match criterion. Syntax if-match packet-length min-len max-len undo if-match packet-length Views Policy node view Default command level 2: System level Parameters min-len: Specifies the minimum IP packet length in bytes, in the range of 0 to 65535.
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.
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. If you perform this command multiple times, only the last specified policy takes effect. Examples # Apply policy aaa on GigabitEthernet 2/1/1.
reset policy-based-route statistics Use reset policy-based-route statistics to clear PBR statistics. Syntax reset policy-based-route statistics [ policy-name ] Views User view Default command level 1: Monitor level Parameters policy-name: Specifies a policy by its name, a string of 1 to 19 characters. Usage guidelines If no policy is specified, this command clears all the PBR statistics. Examples # Clear all 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. The following matrix shows the command and router compatibility: Command 6602 HSR6602 graceful-restart enable No No 6604/6608/6616 • Yes when using the RPE-X1 or RSE-X1 MPU • No when using the MCP MPU Examples # Enable the GR capability for OSPFv3 process 1.
undo graceful-restart helper strict-lsa-checking Default Strict LSA checking for the GR helper is disabled. Views OSPFv3 view 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.
Examples # Configure the GR restart interval for OSPFv3 process 1 as 100 seconds. system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] graceful-restart interval 100 Related commands ospfv3 timer dead import-route (OSPFv3 view) Use import-route to redistribute routes. Use undo import-route to disable routes redistribution.
# Configure OSPFv3 process 100 to redistribute the routes found by OSPFv3 process 160. system-view [Sysname] ospfv3 100 [Sysname-ospfv3-100] import-route ospfv3 160 log-peer-change Use log-peer-change to enable the logging on neighbor state changes. Use undo log-peer-change to disable the logging.
Parameters default-route-advertise: Used on an NSSA ABR or an ASBR only. If it is configured on an NSSA ABR, the ABR generates a default route in an NSSA-external-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 an NSSA-external-LSA only when the default route is available in the routing table.
undo maximum load-balancing Default The maximum number of ECMP routes is 8. Views OSPFv3 view Default command level 2: System level Parameters maximum: Specifies the aximum number of ECMP routes, in the range of 1 to 8. Examples # Configure the maximum number of ECMP routes as 6. system-view [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.
Related commands router-id ospfv3 area Use ospfv3 area to enable an OSPFv3 process on the interface and specify the area for the interface. Use undo ospfv3 area to disable an OSPFv3 process. Syntax ospfv3 process-id area area-id [ instance instance-id ] undo ospfv3 process-id area area-id [ instance instance-id ] Default OSPFv3 is not enabled on an interface.
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. Examples # Enable BFD on Gigabitethernet 2/1/1 in instance 1. system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-Gigabitethernet2/1/1] ospfv3 bfd enable instance 1 ospfv3 cost Use ospfv3 cost to configure the OSPFv3 cost of the interface in an instance. Use undo ospfv3 cost to restore the default OSPFv3 cost of the interface in an instance.
Use undo ospfv3 dr-priority to restore the default value. Syntax ospfv3 dr-priority priority [ instance instance-id ] undo ospfv3 dr-priority [ priority ] [ instance instance-id ] Default The DR priority on an interface defaults to 1. Views Interface view Default command level 2: System level 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 The IPsec policy to be applied must have been configured. Examples # Apply IPsec policy policy001 to OSPFv3 interface Serial2/2/0. system-view [Sysname] interface serial 2/2/0 [Sysname-Serial2/2/0] ospfv3 ipsec-policy policy001 instance 1 ospfv3 mtu-ignore Use ospfv3 mtu-ignore to configure an interface to ignore MTU check during DD packet exchange. Use undo ospfv3 mtu-ignore to restore the default.
• For Ethernet, the default network type is broadcast. Views Interface view Default Command level 2: System level Parameters broadcast: Specifies the network type as Broadcast. nbma: Specifies the network type as NBMA. p2mp: Specifies the network type as P2MP. p2p: Specifies the network type as P2P. 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.
Examples # Specify the neighbor fe80::1111. system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-Gigabitethernet2/1/1] ospfv3 peer fe80::1111 ospfv3 timer dead Use ospfv3 timer dead to configure the OSPFv3 neighbor dead time for an interface that belongs to a specified instance. Use undo ospfv3 timer dead to restore the default.
Syntax ospfv3 timer hello seconds [ instance instance-id ] undo ospfv3 timer hello [ seconds ] [ instance instance-id ] Default The hello interval is 10 seconds for P2P and Broadcast interfaces and is not supported on the P2MP or NBMA interfaces. Views Interface view Default command level 2: System level 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.
Usage guidelines After sending a LSA to its neighbor, the device waits for an acknowledgement. If receiving no acknowledgement after the LSA retransmission interval elapses, it retransmits the LSA. The LSA retransmission interval should not be too small for avoidance of unnecessary retransmissions. Examples # Configure the LSA retransmission interval on an interface in instance 1 as 12 seconds.
Default The transmission delay is 1s. Views Interface view Default command level 2: System level Parameters seconds: Specifies the transmission delay in seconds, in the range of 1 to 3600. instance-id: Specifies an 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.
Usage guidelines The smaller the value is, the higher the preference is. A router might run multiple routing protocols. Each protocol has a preference. When several routing protocols find multiple routes to the same destination, the route found by the protocol with the highest preference is selected. Examples # Set a preference of 150 for OSPFv3 routes. system-view [Sysname] ospfv3 1 [Sysname-OSPFv3-1] preference 150 router-id Use router-id to configure the OSPFv3 router ID.
Use undo silent-interface to restore the default. Syntax silent-interface { interface-type interface-number | all } undo silent-interface { interface-type interface-number | all } Default An interface is able to receive and send OSPFv3 packets. Views OSPFv3 view Default command level 2: System level Parameters interface-type interface-number: Specifies an interface by its type and number. all: Specifies all interfaces.
Default command level 2: System level Parameters delay-interval: Specifies the interval between when OSPFv3 receives a topology change and when it starts SPF calculation. The value range is 0 to 65535 seconds. hold-interval: Specifies the hold interval between two consecutive SPF calculations. The value range is 0 to 65535 seconds. Usage guidelines An OSPFv3 router works out a shortest path tree with itself as root based on the LSDB and decides on the next hop to a destination network according the tree.
Examples # Configure OSPFv3 area 1 as a stub area. system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] area 1 [Sysname-ospfv3-1-area-0.0.0.1] stub Related commands default-cost vlink-peer (OSPFv3 area view) Use vlink-peer to create and configure a virtual link. Use undo vlink-peer to remove a virtual link.
If you have enabled the GR capability for the current process, you cannot execute the vlink-peer command for the process. Examples # Create a virtual link to 10.110.0.3. system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] area 10.0.0.0 [Sysname-ospfv3-1-area-10.0.0.0] vlink-peer 10.110.0.
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.
Examples # Display all IPv6 policy information. display ipv6 config policy-based-route IPv6 Policy based routing configuration information: policy-based-route : abc Node 1 permit : apply output-interface Serial2/2/0 Table 103 Command output Field Description IPv6 Policy based routing configuration information IPv6 policy information. policy-based-route Name of the referenced policy. Node 1 permit : The match mode of Node 1 is permit.
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.
Interface GigabitEthernet2/1/1 policy based routing configuration information: policy-based-route: test permit node 6: if-match acl6 2000 apply ipv6-address next-hop 1::1 # Display IPv6 local PBR configuration. display ipv6 policy-based-route setup local Local policy based routing configuration information: policy-based-route: test permit node 6: if-match acl6 2000 apply ipv6-address next-hop 1::1 Table 105 Command output Field Description policy Name Policy name.
slot slot-number: Specifies a card by its slot number. The following matrix shows the option and router compatibility: Option 6602 HSR6602 6604/6608/6616 slot slot-number No Yes Yes |: 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 if-match acl6 acl6-number undo if-match acl6 Views IPv6 policy node view Default command level 2: System level Parameters acl6-number: Specifies the IPv6 ACL number in the range of 2000 to 3999. The number of a basic IPv6 ACL is in the range of 2000 to 2999 and the number of an advanced IPv6 ACL is in the range of 3000 to 3999. Examples # Permit the packets matching ACL 2000.
ipv6 local policy-based-route Use ipv6 local policy-based-route to configure IPv6 local PBR based on a policy. Use undo ipv6 local policy-based-route to remove the configuration. Syntax ipv6 local policy-based-route policy-name undo ipv6 local policy-based-route [ policy-name ] IPv6 local PBR is not configured by default. Default IPv6 local PBR is not configured. Views System view Default command level 2: System level Parameters policy-name: Specifies the policy name, a string of 1 to 19 characters.
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. Examples # Apply IPv6 policy AAA on GigabitEthernet 2/1/1.
Views User view Default command level 1: Monitor level Parameters policy-name: Specifies a policy name, a string of 1 to 19 characters. Usage guidelines If no policy is specified, this command clears all IPv6 PBR statistics. Examples # Clear all 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.
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.
[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. Syntax apply ip-precedence ip-precedence-value undo apply ip-precedence Default No IP precedence is set for matching routes.
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.
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. Set MPLS labels for routes matching AS path list 1.
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. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy] if-match as-path 1 [Sysname-route-policy] apply origin igp apply preference Use apply preference to set a preference for a routing protocol. Use undo apply preference to remove the clause configuration.
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. Set a preferred value of 66 for BGP routing information matching AS path list 1.
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. Syntax apply tag value undo apply tag Default No routing tag is set for RIP, OSPF, or IS-IS routing information. Views Routing policy view Default command level 2: System level Parameters value: Specifies a tag value in the range of 0 to 4294967295. Examples # Configure node 10 in permit mode of routing policy policy1.
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. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy] continue 20 display ip as-path Use display ip as-path to display BGP AS path list information.
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. Syntax display ip community-list [ basic-community-list-number | adv-community-list-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters basic-community-list-number: Specifies a basic community list by its number in the range of 1 to 99.
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. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
|: 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.
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. Configure node 10 in permit mode of routing policy test to match AS path list. system-view [Sysname] ip as-path 2 permit _*200.
[Sysname-route-policy] if-match community 1 Related commands ip community-list if-match cost Use if-match cost to match routing information having the specified cost. Use undo if-match cost to remove the match criterion. Syntax if-match cost value undo if-match cost Default No cost match criterion is configured. Views Routing policy view Default command level 2: System level Parameters value: Specifies a cost in the range of 0 to 4294967295.
Default command level 2: System level Parameters ext-comm-list-number: Specifies an extended community list by its number in the range of 1 to 199. &<1-16>: Indicates that the argument before it can be entered up to 16 times. Examples # Configure node 10 in permit mode of routing policy policy1 to match BGP routing information to extended community lists 100 and 150.
if-match mpls-label Use if-match mpls-label to specify the MPLS label match criterion. Use undo if-match mpls-label to remove the match criterion. Syntax if-match mpls-label undo if-match mpls-label Default No MPLS label match criterion is configured. Views Routing policy view Default command level 2: System level Examples # Configure node 10 in permit mode of routing policy policy1 to match routes having MPLS labels.
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. nssa-external-type1: Matches OSPF NSSA Type 1 external routes. nssa-external-type1or2: Matches OSPF NSSA Type 1 or 2 external routes. nssa-external-type2: Matches OSPF NSSA Type 2 external routes. Examples # Configure node 10 in permit mode of routing policy policy1 to match OSPF internal routes.
undo ip as-path as-path-number Default No AS path list is created. Views System 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. deny: Specifies the match mode for the AS path list as deny. permit: Specifies the match mode for the AS path list as permit. regular-expression: Specifies the AS-PATH regular expression, a string of 1 to 50 characters.
Parameters basic-comm-list-num: Specifies a number for the basic community list, in the range of 1 to 99. adv-comm-list-num: Advanced community list number in the range of 100 to 199. regular-expression: Specifies a regular expression for the advanced community list, a string of 1 to 50 characters. For more information about regular expressions, see Fundamentals Configuration Guide. deny: Specifies the match mode for the community list as deny.
Parameters ext-comm-list-number: Specifies an extended community list by its number in the range of 1 to 199. deny: Specifies the match mode for the extended community list as deny. permit: Specifies the match mode for the extended community list as permit. rt route-target: Specifies the RT extended community attribute, a string of 3 to 21 characters. soo site-of-origin: Sets the SoO extended community attribute, a string of 3 to 21 characters.
permit: Specifies the permit match mode for the routing policy node. If a route matches all the if-match clauses of the node, it is handled by the apply clauses of the node. If not, it matches against the next node. node node-number: Specifies a number for the node, in the range of 0 to 65535. A node with a smaller number is matched first. Usage guidelines Use a routing policy to filter routing information.
Using the routing policy, a routing protocol can designate a backup link for specific routes to implement FRR. When the primary link fails, FRR immediately directs packets to the backup link to minimize interruption time. Examples # Configure node 10 of routing policy policy1 to set the backup output interface GigabitEthernet 2/1/1 and backup next hop 193.1.1.8 for the route destined to 100.1.1.0/24. system-view [Sysname] ip ip-prefix abc index 10 permit 100.1.1.
Syntax display ip ip-prefix [ ip-prefix-name ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters ip-prefix-name: Specifies an IP prefix list by its name, 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.
if-match acl Use if-match acl to configure an ACL match criterion. Use undo if-match acl to remove the match criterion. Syntax if-match acl acl-number undo if-match acl Default No ACL match criterion is configured. Views Routing policy view Default command level 2: System level Parameters acl-number: Specifies an ACL by its number in the range of 2000 to 3999. Examples # Configure node 10 of routing policy policy1 to permit routes matching ACL 2000.
ip-prefix ip-prefix-name: Matches an IP prefix list with a name being a string of 1 to 19 characters. Examples # Configure node 10 of routing policy policy1 to match IPv4 routing information whose next hop address matches IP prefix list p1. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy] if-match ip next-hop ip-prefix p1 if-match ip-prefix Use if-match ip-prefix to configure an IP prefix list-based match criterion.
Views System view Default command level 2: System level Parameters ip-prefix-name: Specifies a name for the IPv4 prefix list, a string of 1 to 19 characters. index-number: Specifies a number for the item, in the range of 1 to 65535, for uniquely specifying an item of the IPv4 prefix list. An index with a smaller number is matched first. deny: Specifies the deny mode.
Views User view Default command level 2: System level Parameters ip-prefix-name: Specifies an IP prefix list by its name, a string of 1 to 19 characters. Usage guidelines If no ip prefix list is specified, this command clears the statistics for all IPv4 prefix lists. Examples # Clear the statistics for IPv4 prefix list abc. reset ip ip-prefix abc IPv6 routing policy configuration commands apply ipv6 next-hop Use apply ipv6 next-hop to configure a next hop for IPv6 routes.
display ip ipv6-prefix Use display ip ipv6-prefix to display IPv6 prefix list statistics. Syntax display ip ipv6-prefix [ ipv6-prefix-name ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters ipv6-prefix-name: Specifies an IPv6 prefix list by its name, 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.
if-match ipv6 Use if-match ipv6 to match IPv6 routes whose destination, next hop, or source address matches the specified IPv6 prefix list. Use undo if-match ipv6 to remove the match criterion. Syntax if-match ipv6 { address | next-hop | route-source } { acl acl6-number | prefix-list ipv6-prefix-name } undo if-match ipv6 { address | next-hop | route-source } [ acl | prefix-list ] Default No IPv6 prefix list match criterion is configured.
Views System view Default command level 2: System level Parameters ipv6-prefix-name: Specifies a name for IPv6 prefix list, a string of 1 to 19 characters. index-number: Specifies an index number for the item, in the range of 1 to 65535. An item with a smaller index-number will be matched first. deny: Specifies the deny mode. If a route matches the item, the route is denied without matching against the next item.
Syntax reset ip ipv6-prefix [ ipv6-prefix-name ] Views User view Default command level 2: System level Parameters ipv6-prefix-name: Specifies an IPv6 prefix list by its name, a string of 1 to 19 characters. Usage guidelines If no name is specified, this command clears the statistics for all IPv6 prefix lists. Examples # Clear the statistics for IPv6 prefix list abc.
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.
6602 HSR6602 6604/6608/6616 1 to 100000 1 to 1000100 • 1 to 100100 when using the RPE-X1 MPU • 1 to 500100 when using the RSE-X1 MPU • 1 to 500100 when using the MCP MPU 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.
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,495 A apply qos-local-id,496 abr-summary (OSPF area view),64 apply tag,497 abr-summary (OSPFv3 area view),337 area (OSPF view),65 acl,521 area (OSPFv3 view),337 address-family ipv4,521 area-authentication-mode,136 aggregate,210 asbr-summary,65 aggregate (IPv6 address family view),402 authentication-mode,66 apply access-vpn vpn-instance,298 auto-cost enable,137 apply as-path,487 auto-refresh enable,211 apply comm-list delete,488 apply communi
confederation id,216 display bgp ipv6 routing-table dampening parameter,424 confederation nonstandard,217 display bgp ipv6 routing-table different-origin-as,425 confederation peer-as,218 display bgp ipv6 routing-table flap-info,426 continue,497 display bgp ipv6 routing-table label,427 cost-style,139 display bgp ipv6 routing-table peer,428 D display bgp ipv6 routing-table regular-expression,429 dampening (BGP/BGP-VPN instance view),219 display bgp ipv6 routing-table statistic,430 dampening (IPv
display ospfv3 vlink,363 display ipv6 routing-table acl,17 display ipv6 routing-table ipv6-address,18 display policy-based-route,308 display ipv6 routing-table ipv6-prefix,21 display rip,34 display ipv6 routing-table protocol,22 display rip database,36 display ipv6 routing-table statistics,23 display rip interface,37 display isis brief,141 display rip route,38 display isis debug-switches,142 display ripng,318 display isis graceful-restart status,143 display ripng database,319 display isis int
import-route (OSPFv3 view),370 G import-route (RIP view),44 graceful-restart (BGP view),248 import-route isis level-2 into level-1,175 graceful-restart (IS-IS view),171 import-route limit (IS-IS view),176 graceful-restart (OSPF view),102 ip as-path,506 graceful-restart enable,367 ip community-list,507 graceful-restart help,103 ip extcommunity-list,508 graceful-restart helper enable,368 ip ip-prefix,514 graceful-restart helper strict-lsa-checking,368 ip ipv6-prefix,518 graceful-restart inter
isis silent,186 non-stop-routing,256 isis small-hello,187 non-stop-routing interval,200 isis timer csnp,187 nssa,111 isis timer hello,188 nssa (OSPFv3 area view),371 isis timer holding-multiplier,189 O isis timer lsp,190 opaque-capability enable,112 isis timer retransmit,191 ospf,113 is-level,192 ospf authentication-mode,113 is-name,192 ospf bfd enable,115 is-name map,193 ospf cost,115 ispf enable,107 ospf dr-priority,116 is-snmp-traps enable,194 ospf mib-binding,117 L ospf mtu-enab
peer advertise-ext-community (BGP/BGP-VPN instance view),258 peer ignore (BGP/BGP-VPN instance view),273 peer advertise-ext-community (IPv6 address family view),437 peer ip-prefix,274 peer ignore (IPv6 address family view),451 peer ipsec-policy (IPv6 address family view),452 peer allow-as-loop (BGP/BGP-VPN instance view),258 peer ipv6-prefix,452 peer allow-as-loop (IPv6 address family view),437 peer as-number (BGP/BGP-VPN instance view),259 peer keep-all-routes (BGP/BGP-VPN instance view),275 peer
preference,328 rip input,53 preference,48 rip metricin,54 preference,382 rip metricout,55 preference (BGP/BGP-VPN instance view),287 rip mib-binding,56 preference (IPv6 address family view/IPv6 BGP-VPN instance view),466 rip output,56 preference (IS-IS view),200 rip split-horizon,57 rip poison-reverse,57 priority high,201 rip summary-address,58 rip version,59 R ripng,330 reflect between-clients (BGP view/BGP-VPN instance view),288 ripng default-route,330 reflect between-clients (IPv6 addr
validate-source-address,62 timer (IPv6 address family view),472 timer lsp-generation,205 version,62 timer lsp-max-age,206 virtual-system,209 timer lsp-refresh,207 vlink-peer (OSPF area view),134 timer spf,208 vlink-peer (OSPFv3 area view),386 timers,61 W timers,335 Websites,526 transmit-pacing,133 V 536