HP MSR Router Series Layer 3 - IP Routing Command Reference(V5) Part number: 5998-2042 Software version: CMW520-R2511 Document version: 6PW103-20140128
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 bandwidth-based-sharing ········································································································································ 1 display ip routing-table ············································································································································ 1 displa
rip bfd enable ························································································································································ 51 rip bfd enable destination ···································································································································· 52 rip default-route······················································································································································ 53 rip inp
ispf enable···························································································································································· 105 log-peer-change ··················································································································································· 106 lsa-arrival-interval················································································································································· 106 ls
display isis statistics············································································································································· 157 domain-authentication-mode ······························································································································ 160 filter-policy export (IS-IS view) ···························································································································· 161 filter-policy import (
bestroute as-path-neglect (BGP/BGP-VPN instance view) ··············································································· 201 bestroute compare-med (BGP/BGP-VPN instance view) ················································································· 202 bestroute med-confederation (BGP/BGP-VPN instance view) ········································································ 202 bgp······································································································
peer capability-advertise route-refresh ·············································································································· 250 peer capability-advertise suppress-4-byte-as ···································································································· 250 peer connect-interface (BGP/BGP-VPN instance view) ··················································································· 251 peer default-route-advertise (BGP/BGP-VPN instance view)············
display ip community-list ····································································································································· 290 display ip extcommunity-list ································································································································ 291 display route-policy ············································································································································· 292 if-match as-path ··
default cost (RIPng view) ····································································································································· 329 display ripng ························································································································································ 330 display ripng database······································································································································· 331 display ripng i
ospfv3 bfd enable ··············································································································································· 382 ospfv3 cost ··························································································································································· 383 ospfv3 dr-priority ················································································································································· 384 ospfv
display bgp ipv6 routing-table dampened ······································································································· 431 display bgp ipv6 routing-table dampening parameter ··················································································· 432 display bgp ipv6 routing-table different-origin-as ···························································································· 433 display bgp ipv6 routing-table flap-info ····································
reflector cluster-id (IPv6 address family view)··································································································· 474 refresh bgp ipv6 ·················································································································································· 475 reset bgp ipv6······················································································································································ 476 reset bgp ipv6 dampening
Basic IP routing commands bandwidth-based-sharing Use bandwidth-based-sharing to enable bandwidth-based load sharing. Use undo bandwidth-based-sharing to disable bandwidth-based load sharing. Syntax display ipv6 routing-table [ vpn-instance vpn-instance-name ] acl acl6-number [ verbose ] [ | { begin | exclude | include } regular-expression ] Default Bandwidth-based load sharing is disabled.
Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public network is displayed. verbose: Displays detailed routing table information about both active and inactive routes. With this keyword absent, the command displays only brief information about active routes. |: Filters command output by specifying a regular expression.
Field Description Interface Outgoing interface for packets to be forwarded along the route. # Display detailed information about all routes in the routing table. display ip routing-table verbose Routing Tables: Public Destinations : 7 Routes : 7 Destination: 1.1.2.0/24 Protocol: Direct Preference: 0 IpPrecedence: NextHop: 1.1.2.1 BkNextHop: 0.0.0.0 RelyNextHop: 0.0.0.0 Tunnel ID: 0x0 State: Active Adv Process ID: 0 Cost: 0 QosLcId: Interface: Ethernet1/1 BkInterface: Neighbor : 0.0.0.
Tunnel ID: 0x0 Label: NULL State: Active NoAdv Age: 06h46m36s Tag: 0 Destination: 127.0.0.1/32 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 IpPrecedence: QosLcId: NextHop: 127.0.0.1 BkNextHop: 0.0.0.0 RelyNextHop: 0.0.0.0 Interface: InLoopBack0 BkInterface: Neighbor : 0.0.0.0 Tunnel ID: 0x0 Label: NULL State: Active NoAdv Age: 06h46m37s Tag: 0 Destination: 192.168.0.0/24 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 IpPrecedence: QosLcId: NextHop: 192.168.0.
Field Description IpPrecedence IP precedence. QosLcId QoS-local ID. NextHop Address of the next hop on the route. Interface Outgoing interface for packets to be forwarded along the route. BkNextHop Backup next hop. BkInterface Backup outgoing interface. RelyNextHop Next hop address obtained through routing recursion. Neighbor Neighboring address determined by the routing protocol. Tunnel ID Tunnel ID. Label Label. Route status: • • • • • • Active—This is an active unicast route.
display ip routing-table acl Use display ip routing-table acl to display information about routes permitted by a specified basic ACL. Syntax display ip routing-table [ vpn-instance vpn-instance-name ] acl acl-number [ 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.
10.1.2.0/24 Direct 0 0 10.1.2.1 Eth1/2 10.1.2.1/32 Direct 0 0 127.0.0.1 InLoop0 10.1.3.0/24 Direct 0 0 10.1.3.1 Eth1/1 10.1.3.1/32 Direct 0 0 127.0.0.1 InLoop0 For descriptions of the output, see Table 1. # Display detailed information about both active and inactive routes permitted by basic ACL 2000. display ip routing-table acl 2000 verbose Routes Matched by Access list : 2000 Summary Count: 6 Destination: 10.1.1.0/24 Protocol: Direct Preference: 0 IpPrecedence: NextHop: 10.
BkNextHop: 0.0.0.0 RelyNextHop: 0.0.0.0 BkInterface: Neighbor: 0.0.0.0 Tunnel ID: 0x0 Label: NULL State: Active NoAdv Age: 1d00h05m42s Tag: 0 Destination: 10.1.3.0/24 Protocol: Direct Process ID: 0 Preference: 0 IpPrecedence: NextHop: 10.1.3.1 BkNextHop: 0.0.0.0 RelyNextHop: 0.0.0.0 Cost: 0 QosLcId: Interface: Ethernet1/1 BkInterface: Neighbor: 0.0.0.0 Tunnel ID: 0x0 Label: NULL State: Active Adv Age: 1d00h05m31s Tag: 0 Destination: 10.1.3.
Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public network is displayed. ip-address: Specifies a destination IP address in dotted decimal notation. mask: Specifies the IP address mask in dotted decimal notation. mask-length: Specifies the mask length, an integer in the range of 0 to 32. longer-match: Displays the route with the longest mask.
Routing Table : Public Summary Count : 4 Destination/Mask Proto 0.0.0.0/0 Pre Cost NextHop Interface Static 60 0 0.0.0.0 NULL0 11.0.0.0/8 Static 60 0 0.0.0.0 NULL0 11.1.0.0/16 Static 60 0 0.0.0.0 NULL0 11.1.1.0/24 Static 60 0 0.0.0.0 NULL0 For descriptions of the output, see Table 1. # Display route entries by specifying a destination IP address and the longer-match keyword. [Sysname] display ip routing-table 11.1.1.
3.3.3.0/24 Direct 0 0 3.3.3.1 Eth1/2 3.3.3.1/32 Direct 0 0 127.0.0.1 InLoop0 4.4.4.0/24 Direct 0 0 4.4.4.1 Eth1/1 4.4.4.1/32 Direct 0 0 127.0.0.1 InLoop0 display ip routing-table ip-prefix Use display ip routing-table ip-prefix to display information about routes permitted by a specified prefix list.
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 descriptions of the output, see Table 1. # Display detailed information about both active and inactive routes permitted by IP prefix list test. [Sysname] display ip routing-table ip-prefix test verbose Routes Matched by Prefix list test : Summary Count : 2 Destination: 2.2.2.0/24 Protocol: Direct Process ID: 0 Preference: 0 IpPrecedence: NextHop: 2.2.2.1 BkNextHop: 0.0.0.0 RelyNextHop: 0.0.0.
inactive: Displays information about only inactive routes. With this argument absent, the command displays information about both active and inactive routes. verbose: Displays detailed routing table information. With this argument absent, the command displays brief routing table information. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
display ip routing-table statistics Use display ip routing-table statistics to display the route statistics of the routing table. Syntax display ip 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. vpn-instance-name is a case-sensitive string of 1 to 31 characters.
display ipv6 routing-table Use display ipv6 routing-table to display brief IPv6 routing information, including destination IP address and prefix, protocol type, priority, metric, next hop and outgoing interface. Syntax display ipv6 routing-table [ vpn-instance vpn-instance-name ] [ | { 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 Protocol Routing protocol. Cost Route cost. display ipv6 routing-table acl Use display ipv6 routing-table acl to display routing information permitted by the IPv6 ACL. Syntax display ipv6 routing-table [ vpn-instance vpn-instance-name ] acl acl6-number [ 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.
For descriptions of the output, see Table 4. display ipv6 routing-table ipv6-address Use display ipv6 routing-table ipv6-address to display routing information about the route to the specified destination IPv6 address.
Examples # Display brief information about the routes with the specified destination IPv6 address.
|: 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.
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 brief active routing information permitted by the IPv6 prefix list test2.
Examples # Display brief information about all direct routes. display ipv6 routing-table protocol direct Public Routing Table : Direct Summary Count : 1 Direct Routing Table Status : Summary Count : 1 Destination: ::1/128 Protocol : Direct NextHop : ::1 Preference: 0 Interface : InLoop0 Cost : 0 Direct Routing Table Status : Summary Count : 0 For descriptions of the output, see Table 4.
RIPng 0 0 0 0 0 OSPFv3 0 0 0 0 0 IS-ISv6 0 0 0 0 0 BGP4+ 0 0 0 0 0 Total 4 1 4 0 0 Table 5 Command output Field Description Protocol Routing protocol. route Route number of the protocol. active Number of active routes. added Routes added after the last startup of the router. deleted Deleted routes, which are released after a specified time. freed Released (totally removed from the routing table) route number. Total Total number of routes.
Destination : ::1 PrefixLength : 128 NextHop : ::1 Preference : 0 IpPrecedence : QosLcId : RelayNextHop : :: Tag : 0H Neighbor : :: ProcessID : 0 Interface : InLoopBack0 Protocol : Direct State : Active NoAdv Cost : 0 Tunnel ID : 0x0 Label : NULL Age : 22161sec Table 6 Command output Field Description Destination Destination IPv6 address PrefixLength Prefix length of the address NextHop Next hop Preference Route priority IpPrecedence IP precedence QosLcId QoS-loca
Default command level 2: System level Parameters ip-address: Specifies a destination IP address in dotted decimal notation. mask: Specifies the IP address mask in dotted decimal notation. mask-length: Specifies the IP address mask length in the range of 0 to 32. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
Views System view Default command level 2: System level Examples # Enable user-based load sharing. system-view [Sysname] ip user-based-sharing enable ip user-based-sharing enable (interface view) Use ip user-based-sharing enable to enable user-based load sharing on the interface. Use undo ip user-based-sharing enable to restore the default. Syntax ip user-based-sharing enable undo ip user-based-sharing enable Default User-based load sharing is disabled.
Default The load sharing bandwidth of an interface is the physical bandwidth of the interface. Views Layer 3 Ethernet interface view, Layer 3 Ethernet subinterface view, VLAN interface view Default command level 2: System view Examples # Configure the load sharing bandwidth of the interface.
Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the routing statistics of the public network is cleared. protocol: Clears route statistics for the IPv6 routing protocol, which can be bgp4+, direct, isisv6, ospfv3, ripng, or static. all: Clears route statistics for all IPv6 routing protocols. Examples # Clear route statistics for all IPv6 routing protocols.
10.1.3.
Static routing configuration commands delete static-routes all Use delete static-routes all to delete all static routes. Syntax delete [ vpn-instance vpn-instance-name ] static-routes all Views System view 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 static routes on the public network are deleted.
undo ip route-static dest-address { mask | mask-length } [ next-hop-address | interface-type interface-number [ next-hop-address ] | vpn-instance d-vpn-instance-name next-hop-address ] [ preference preference-value ] ip route-static vpn-instance s-vpn-instance-name&<1-6> dest-address { mask | mask-length } { next-hop-address [ public ] [ bfd control-packet [ bfd-source ip-address ] | track track-entry-number ] | interface-type interface-number [ next-hop-address ] [ bfd { control-packet [ bfd-source ip-addr
description description-text: Configures a description for the static route, which consists of 1 to 60 characters, including special characters like space, but excluding the question mark (?). bfd: Enables the bidirectional forwarding detection (BFD) function to detect reachability of the static route's next hop. Once the next hop is unreachable, the system will switch to a backup route. control-packet: Implements BFD in the control packet mode. echo-packet: Implements BFD in the echo packet mode.
Examples # Configure a static route, whose destination address is 1.1.1.1/24, next hop address is 2.2.2.2, tag value is 45, and description information is for internet & intranet. system-view [Sysname] ip route-static 1.1.1.1 24 2.2.2.2 tag 45 description for internet & intranet # Configure a static route for a VPN instance named vpn1: the destination address is 1.1.1.1/16 and the next hop address is 1.1.1.2, which is the address of this VPN instance.
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.
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.
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. If no process ID is specified, information about all configured RIP processes is displayed.
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 8 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. RIP process RIP process ID. RIP version RIP version 1 or 2. Preference RIP route priority.
Field Description Networks Networks enabled with RIP. Configured peers Configured neighbors. Triggered updates sent Number of sent triggered updates. Number of routes changes Number of changed routes in the database. Number of replies to queries Number of RIP responses. display rip database Use display rip database to display active routes in the database of the specified RIP process, which are sent in normal RIP routing updates.
Field Description 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.
Field Description 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. MetricIn route policy Name of the routing policy used to add the additional routing metric for the incoming routes. If no routing policy is referenced, the field displays Not designated. MetricOut Additional routing metric added to the outgoing routes.
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.
Peer Aging Permanent Garbage 111.1.1.2 1 0 0 Total 1 0 0 Table 12 Command output Field Description Peer IP address of a neighbor. Aging Total number of aging routes learned from the specified neighbor. Permanent Total number of permanent routes learned from the specified neighbor. Garbage Total number of routes in the Garbage-collection state learned from the specified neighbor. Total Total number of routes learned from all RIP neighbors.
If interface-type interface-number is specified, RIP filters only the routes advertised by the specified interface. Otherwise, RIP filters routes advertised by all RIP interfaces.
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 case-sensitive string of 1 to 19 characters , to filter routes from the gateway.
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. It is available only when the protocol is isis, rip, or ospf. all-processes: Enables route redistribution from all the processes of a protocol. This keyword takes effect only when the protocol is rip, ospf, or isis. allow-ibgp: Allows redistribution of IBGP routes.
Default The maximum number of ECMP routes is 8. Views RIP view Default command level 2: System level Parameters number: Specifies the maximum number of ECMP routes, in the range of 1 to 8. Examples # Specify the maximum number of ECMP routes as 2. system-view [Sysname] rip [Sysname-rip-1] maximum load-balancing 2 network Use network to enable RIP on the interface attached to the specified network. Use undo network to disable RIP on the interface attached to the specified network.
system-view [Sysname] rip 100 [Sysname-rip-100] network 129.102.0.0 output-delay Use output-delay to configure the maximum RIP packets that can be sent at the specified interval for all interfaces under the RIP process. Use undo output-delay to restore the default. Syntax output-delay time count count undo output-delay Default An interface sends up to three RIP packets every 20 milliseconds.
Default command level 2: System level Parameters ip-address: Specifies the IP address of a RIP neighbor, in dotted decimal notation. Usage guidelines You need not use the peer ip-address command when the neighbor is directly connected; otherwise the neighbor might receive both the unicast and multicast (or broadcast) of the same routing information. Examples # Specify to send unicast updates to peer 202.38.165.1. system-view [Sysname] rip 1 [Sysname-rip-1] peer 202.38.165.
[Sysname] rip 1 [Sysname-rip-1] preference 120 reset rip process Use reset rip process to reset the specified RIP process. Syntax reset rip process-id process Views User view Default command level 1: Monitor level Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535. 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 Ethernet 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 Ethernet 1/1 to receive RIP messages. system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] rip input rip metricin Use rip metricin to configure an interface to add a metric to inbound routes. Use undo rip metricin to restore the default. Syntax rip metricin [ route-policy route-policy-name ] value undo rip metricin Default The additional metric of an inbound route is 0.
Examples # Configure Ethernet 1/1 to add a metric of 6 for the inbound route 1.0.0.0/8 and to add a metric of 2 for other inbound 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 ethernet 1/1 [Sysname-Ethernet1/1] rip metricin route-policy abc 2 rip metricout Use rip metricout to configure an interface to add a metric to outbound routes.
[Sysname-route-policy] if-match ip-prefix 123 [Sysname-route-policy] apply cost 6 [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/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. Syntax rip mib-binding process-id undo rip mib-binding Default MIB operations are bound to RIP process 1.
Default command level 2: System level Examples # Enable Ethernet 1/1 to receive RIP messages. system-view [Sysname] interface ethernet1/1 [Sysname-Ethernet1/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.
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.
rip triggered Use rip triggered to enable triggered RIP. Use undo rip triggered to disable triggered RIP. Syntax rip triggered undo rip triggered Default The triggered RIP is disabled. Views Interface view Default command level 2: System level Usage guidelines Triggered RIP can only run on link layer protocols PPP, Frame Relay, and X.25. Examples # Enable triggered RIP.
broadcast: Sends RIPv2 messages in broadcast mode. multicast: Sends RIPv2 messages in multicast mode. Usage guidelines If RIPv2 is specified with no sending mode configured, RIPv2 messages are sent in multicast mode. When RIPv1 runs on an interface, the interface can perform the following operations: • Sends RIPv1 broadcast messages. • Receives RIPv1 broadcast and unicast messages.
system-view [Sysname] rip 100 [Sysname-rip-100] silent-interface all [Sysname-rip-100] undo silent-interface ethernet 1/1 [Sysname-rip-100] network 131.108.0.0 summary Use summary to enable automatic RIPv2 summarization. Natural masks are used to advertise summary routes so as to reduce the size of routing tables. Use undo summary to disable automatic RIPv2 summarization so that all subnet routes can be broadcast. Syntax summary undo summary Default Automatic RIPv2 summarization is enabled.
Views RIP view Default command level 2: System level Parameters garbage-collect-value: Specifies the garbage-collect timer in seconds, in the range of 1 to 3600. suppress-value: Specifies the suppress timer in seconds, in the range of 0 to 3600. timeout-value: Specifies the timeout timer in seconds, in the range of 1 to 3600. update-value: Specifies the update timer in seconds, in the range of 1 to 3600.
Views RIP view Default command level 2: System level Parameters retransmit-count-value: Specifies an upper limit for retransmitting an Update Request or Update Response, in the range of 1 to 3600. Examples # Configure an upper limit of 20 for retransmitting an Update Request or Update Response.
validate-source-address Use validate-source-address to enable the source IP address validation on incoming RIP routing updates. Use undo validate-source-address to disable the source IP address validation. Syntax validate-source-address undo validate-source-address Default The source IP address validation is enabled. Views RIP view Default command level 2: System level Usage guidelines Typically HP recommends not disabling the validation.
Usage guidelines If an interface has an RIP version specified, the RIP version takes precedence over the global RIP version. If no RIP version is specified for the interface and the global version is RIPv1, the interface inherits RIPv1 and can send RIPv1 broadcasts and receive RIPv1 broadcasts and unicasts.
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 default cost is the largest cost among routes that are summarized. For Type-2 external routes, the default cost is 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 the key ID in the range of 0 to 255. cipher: Sets a ciphertext password. plain: Sets a plaintext password. password: Sets a password. This argument is case sensitive. In simple authentication mode, it is a plaintext string of 1 to 8 characters, or a ciphertext string of 33 to 41 characters.
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 14 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 15 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.
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 16 Command output Field Description IO statistics Statistics about input/output packets and LSAs. Type OSPF packet type.
Field Description 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 bad area ID 0 : OSPF drop on unnumber interface 0 : OSPF bad virtual link 0 : OSPF bad authentication type 0 : OSPF bad authentication key 0 : OSPF packet too small 0 : OSPF Neighbor state low 0 : OSPF transmit error 0 : OSPF interface down 0 : OSPF unknown neighbor 0 : HELLO: Netmask mismatch 0 : HELLO: Hello timer mismatch 0 : HELLO: Dead timer mismatch 0 : HELLO: Extern option mismatch 0 : HELLO: Neighbor unknown 0 : DD: MTU option mismatch 0 : DD: Unknown LSA ty
Field Description LS REQ: Empty request LSR packets with no request information. LS REQ: Bad request Bad LSR packets. LS UPD: LSA checksum bad LSU packets with wrong LSA checksum. LS UPD: Received less recent LSA LSU packets without latest LSA. LS UPD: Unknown LSA type LSU packets with unknown LSA type. display ospf interface Use display ospf interface to display OSPF interface information.
Area: 0.0.0.1 IP Address Type State Cost Pri DR BDR 172.16.0.1 Broadcast DR 1 1 172.16.0.1 0.0.0.0 Table 18 Command output Field Description Area Area ID of the interface. IP address Interface IP address (regardless of whether TE is enabled or not). Type Interface network type: PTP, PTMP, Broadcast, or NBMA. Interface state defined by interface state machine: • Down—No protocol traffic is sent or received on the interface. • Loopback—The interface is in loopback state.
ase: Displays Type-5 LSA (AS External LSA) information in the LSDB. network: Displays Type-2 LSA (Network LSA) information in the LSDB. nssa: Displays Type-7 LSA (NSSA External LSA) information in the LSDB. opaque-area: Displays Type-10 LSA (Opaque-area LSA) information in the LSDB. opaque-as: Displays Type-11 LSA (Opaque-AS LSA) information in the LSDB. opaque-link: Displays Type-9 LSA (Opaque-link LSA) information in the LSDB. router: Displays Type-1 LSA (Router LSA) information in the LSDB.
Field Description Type LSA type. LinkState ID Link state ID. AdvRouter Advertising router. Age Age of the LSA. Len Length of the LSA. Sequence Sequence number of the LSA. Metric Cost of the LSA. # Display Type-2 LSA (Network LSA) information in the LSDB. display ospf 1 lsdb network OSPF Process 1 with Router ID 192.168.1.1 Area: 0.0.0.0 Link State Database Type : Network LS ID : 192.168.0.2 Adv Rtr : 192.168.2.
Field Description Adv Rtr Router that advertised the LSA. LS Age LSA age time. Len LSA length. LSA options: • • • • • • Options O—Opaque LSA advertisement capability. E—AS External LSA reception capability. EA—External extended LSA reception capability. DC—On-demand link support. N—NSSA external LSA support. P—Capability of an NSSA ABR to translate Type-7 LSAs into Type-5 LSAs. Seq# LSA sequence number. Checksum LSA checksum. Net Mask Network mask.
Routing Nexthop Information Next Hops: Address Refcount IntfAddr Intf Name ---------------------------------------------------------------192.168.0.1 1 192.168.0.1 Ethernet1/1 192.168.0.2 1 192.168.0.1 Ethernet1/1 192.168.1.1 1 192.168.1.1 Ethernet1/2 Table 21 Command output Field Description Next Hops Information about Next hops. Address Next hop address. Refcount Reference count (routes that reference the next hop) IntfAddr Outbound interface address.
If an interface is specified, the neighbor on the interface is displayed. If a neighbor ID is specified, detailed information about the neighbor is displayed, If neither interface nor neighbor ID is specified, brief information about neighbors of the specified OSPF process or all OSPF processes is displayed. Examples # Display detailed OSPF neighbor information. display ospf peer verbose OSPF Process 1 with Router ID 1.1.1.1 Neighbors Area 0.0.0.0 interface 1.1.1.
Field Description Neighbor state: • Down—Initial state of a neighbor conversation. • Init—The router has seen a Hello packet from the neighbor. However, the router has not established. bidirectional communication with the neighbor (the router itself did not appear in the neighbor's hello packet).
Table 23 Command output Field Description Area Neighbor area. Router ID Neighbor router ID. Address Neighbor interface address. Pri Neighboring router priority. Dead-Time Dead interval remained. Interface Interface connected to the neighbor. State Neighbor state: Down, Init, Attempt, 2-Way, Exstart, Exchange, Loading, Full. display ospf peer statistics Use display ospf peer statistics to display OSPF neighbor statistics.
Table 24 Command output Field Description Area ID The state statistics of all the routers in the area to which the router belongs is displayed. Down Number of neighboring routers in Down state in the same area. Attempt Number of neighboring routers in Attempt state in the same area. Init Number of neighboring routers in Init state in the same area. 2-Way Number of neighboring routers in 2-Way state in the same area. ExStart Number of neighboring routers in ExStart state in the same area.
display ospf request-queue The Router's Neighbor is Router ID 2.2.2.2 Interface 10.1.1.1 Address 10.1.1.2 Area 0.0.0.0 Request list: Type LinkState ID AdvRouter Sequence Age Router 2.2.2.2 1.1.1.1 80000004 1 Network 192.168.0.1 1.1.1.1 Sum-Net 192.168.1.0 1.1.1.1 80000003 80000002 1 2 Table 25 Command output Field Description The Router's Neighbor is Router ID Neighbor router ID. Address Neighbor interface IP address. Interface Local interface IP address.
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, the retransmission queue information of all OSPF processes is displayed. Examples # Display OSPF retransmission queue information. display ospf retrans-queue The Router's Neighbor is Router ID 2.
Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. interface interface-type interface-number: Displays OSPF routing information advertised through the specified interface. nexthop nexthop-address: Displays OSPF routing information with the specified next hop. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
display ospf vlink Use display ospf vlink to display OSPF virtual link information. Syntax display ospf [ process-id ] vlink [ | { 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.
Field Description State Interface state. Type Type: virtual link. Transit Area Transit area ID. Timers Timers: Hello, dead, retransmit, and interface transmission delay. MD5 authentication enabled Authentication mode of the virtual link. The last key Most recent MD5 authentication key ID. neighbor(s) left Number of neighbors that have not completed MD5 key rollover. display router id Use display router id to display the global router ID.
Views OSPF view Default command level 2: System level Examples # Enable link-local signaling for OSPF process 1. system-view [Sysname] ospf 1 [Sysname-ospf-1] enable link-local-signaling enable log Use enable log to enable specified OSPF logging. Use undo enable log to disable specified OSPF logging. Syntax enable log [ config | error | state ] undo enable log [ config | error | state ] Default OSPF logging is disabled.
Syntax enable out-of-band-resynchronization undo enable out-of-band-resynchronization Default The capability is disabled. Views OSPF view Default command level 2: System level Usage guidelines Before you configure this command, you must enable the link-local signaling capability. Examples # Enable the out-of-band resynchronization capability for OSPF process 1.
export: Filters Type-3 LSAs advertised to other areas. import: Filters Type-3 LSAs advertised into the area. Examples # Apply IP prefix list my-prefix-list to filter inbound Type-3 LSAs, and apply ACL 2000 to filter outbound Type-3 LSAs in OSPF Area 1. system-view [Sysname] ospf 100 [Sysname-ospf-100] area 1 [Sysname-ospf-100-area-0.0.0.1] filter ip-prefix my-prefix-list import [Sysname-ospf-100-area-0.0.0.
The source keyword specifies the destination address of a route and the destination keyword specifies the subnet mask of the route. (The subnet mask must be valid; otherwise, the configuration is ineffective.) Examples # Filter redistributed routes using ACL 2000. system-view [Sysname] acl number 2000 [Sysname-acl-basic-2000] rule deny source 192.168.10.0 0.0.0.
ip-prefix ip-prefix-name: Specifies an IP address prefix list by its name, a string of 1 to 19 characters, to filter received routes by destination. For more information about IP prefix lists, see Layer 3—IP Routing Configuration Guide. route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to filter received routes. For more information about routing policy, see Layer 3—IP Routing Configuration Guide.
Default The router can serve as a GR helper for any OSPF neighbor. Views OSPF view Default command level 2: System level Parameters acl-number: Specifies a basic or advanced ACL by its number in the range of 2000 to 3999. prefix-list: Specifies an IP prefix list by its name, a string of 1 to 19 characters. 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.
Examples # Advertise route 1.1.1.1 with a cost of 100. system-view [Sysname] ospf 100 [Sysname-ospf-100] area 0 [Sysname-ospf-100-area-0.0.0.0] host-advertise 1.1.1.1 100 import-route (OSPF view) Use import-route to redistribute routes from another protocol. Use undo import-route to disable route redistribution from a protocol.
An intra-area route is a route in an OSPF area. An inter-area route is between any two OSPF areas. Both of them are internal routes. An external route is a route to a destination outside the OSPF AS. A Type-1 external route has high reliability. Its cost is comparable with the cost of OSPF internal routes. The cost from an OSPF router to a Type-1 external route's destination equals the cost from the router to the ASBR plus the cost from the ASBR to the external route's destination.
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. system-view [Sysname] ospf 100 [Sysname-ospf-100] ispf enable log-peer-change Use log-peer-change to enable the logging of OSPF neighbor state changes. Use undo log-peer-change to disable the logging. Syntax log-peer-change undo log-peer-change Default The logging is enabled.
Views OSPF view Default command level 2: System level Parameters interval: Specifies the LSA arrival interval in milliseconds, in the range of 0 to 60000. Usage guidelines If an LSA that has the same LSA type, LS ID, originating router ID with the previous LSA is received within the interval, the LSA is discarded. This feature helps protect routers and bandwidth from being over-consumed due to frequent network changes.
incremental-interval: Specifies the LSA generation incremental interval in milliseconds, in the range of 10 to 60000. The default is 5000. Usage guidelines When network changes are not frequent, LSAs are generated at the minimum-interval. If network changes become frequent, the LSA generation interval is incremented by incremental-interval × 2n-2 (n is the number of generation times) each time a LSA generation occurs until the maximum-interval is reached.
Syntax maximum load-balancing maximum undo maximum load-balancing Default The maximum number of ECMP routes is 8. Views OSPF view Default command level 2: System level Parameters maximum: Specifies the maximum number of ECMP routes, in the range of 1 to 8. No ECMP load balancing is available when the number is set to 1. Examples # Specify the maximum number of ECMP routes as 2.
Examples # Specify the interface whose primary IP address is on 131.108.20.0/24 to run OSPF in Area 2. system-view [Sysname] ospf 100 [Sysname-ospf-100] area 2 [Sysname-ospf-100-area-0.0.0.2] network 131.108.20.0 0.0.0.255 Related commands ospf nssa Use nssa to configure the current area as an NSSA area. Use undo nssa to restore the default.
Examples # Configure Area 1 as an NSSA area. system-view [Sysname] ospf 100 [Sysname-ospf-100] area 1 [Sysname-ospf-100-area-0.0.0.1] nssa Related commands default-cost opaque-capability enable Use opaque-capability enable to enable opaque LSA advertisement and reception. With the command configured, the OSPF device can receive and advertise the Type-9, Type-10 and Type-11 opaque LSAs. Use undo opaque-capability to restore the default.
Default command level 2: System level Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. router-id router-id: Specifies an OSPF Router ID in dotted decimal notation. vpn-instance vpn-instance-name: Specifies an MPLS L3VPN that the OSPF process belongs to. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the OSPF process belongs to the public network.
cipher: Specifies a ciphertext password. plain: Specifies a plaintext password. password: Specifies a password. In simple authentication mode, a plaintext password is a case-sensitive string of 1 to 8 characters, and a ciphertext password is a case-sensitive string of 1 to 41 characters. In MD5/HMAC-MD5 authentication mode, a plaintext password is a case-sensitive string of 1 to 16 characters, and a ciphertext password is a case-sensitive string of 1 to 53 characters.
Default command level 2: System level Parameters echo: Configures BFD echo packet single-hop detection. If this keyword is not specified, BFD control packet bidirectional detection is enabled. Examples # Enable OSPF and BFD on Ethernet 1/1. system-view [Sysname] ospf [Sysname-ospf-1] area 0 [Sysname-ospf-1-area-0.0.0.0] network 192.168.0.0 0.0.255.255 [Sysname-ospf-1-area-0.0.0.
ospf dr-priority Use ospf dr-priority to set the priority for DR/BDR election on an interface. Use undo ospf dr-priority to restore the default value. Syntax ospf dr-priority priority undo ospf dr-priority Default The priority is 1. Views Interface view Default command level 2: System level Parameters priority: Specify the DR priority of the interface, in the range of 0 to 255. Usage guidelines The bigger the value, the higher the priority.
Examples # Bind OSPF process 100 to MIB operation. system-view [Sysname] ospf mib-binding 100 # Restore the default, which means binding the OSPF process with the smallest process ID to MIB operation. system-view [Sysname] undo ospf mib-binding ospf mtu-enable Use ospf mtu-enable to enable an interface to add the real MTU into DD packets. Use undo ospf mtu-enable to restore the default.
Default The network type of an interface depends on its link layer protocol. 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. unicast: Specifies the P2MP interface to unicast OSPF packets. By default, a P2MP interface multicasts OSPF packets. p2p: Specifies the network type as P2P.
Syntax ospf packet-process prioritized-treatment undo ospf packet-process prioritized-treatment Default This function is not enabled. Views System view Default command level 2: System level Examples # Enable OSPF to give priority to receiving and processing Hello packets. system-view [Sysname] ospf packet-process prioritized-treatment ospf timer dead Use ospf timer dead to set the dead interval. Use undo ospf timer dead to restore the default.
Related commands ospf timer hello ospf timer hello Use ospf timer hello to set the hello interval on an interface. Use undo ospf timer hello to restore the default. Syntax ospf timer hello seconds undo ospf timer hello Default The hello interval is 10 seconds for P2P and Broadcast interfaces, and 30 seconds for P2MP and NBMA interfaces. Views Interface view Default command level 2: System level Parameters seconds: Specifies the hello interval in seconds, in the range of 1 to 65535.
Views Interface view Default command level 2: System level Parameters seconds: Specifies the poll interval in seconds, in the range of 1 to 2147483647. Usage guidelines When an NBMA interface finds its neighbor is down, it will send hello packets at the poll interval. The poll interval must be at least four times the hello interval. Examples # Set the poll timer interval on an interface to 130 seconds.
[Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] ospf timer retransmit 8 ospf trans-delay Use ospf trans-delay to set the LSA transmission delay on an interface. Use undo ospf trans-delay to restore the default. Syntax ospf trans-delay seconds undo ospf trans-delay Default The LSA transmission delay is 1 second. Views Interface view Default command level 2: System level Parameters seconds: Specifies the LSA transmission delay in seconds, in the range of 1 to 3600.
Parameters ip-address: Specifies a neighbor IP address. cost value: Specifies the cost to reach the neighbor, in the range of 1 to 65535. dr-priority dr-priority: Specifies the neighbor DR priority in the range of 0 to 255. The default neighbor DR priority is 1. Usage guidelines On an X.25 or Frame Relay network, you can configure mappings to make the network fully meshed (any two routers have a direct link in between), so OSPF can handle DR/BDR election as it does on a broadcast network.
route-policy route-policy-name: References a routing policy to set priorities for specified routes. A route-policy-name is a string of 1 to 63 case-sensitive characters. value: Specifies the preference value in the range of 1 to 255. A smaller value represents a higher preference. Usage guidelines If a routing policy is specified, priorities defined by the routing policy will apply to matching routes, and the priorities set with the preference command apply to OSPF routes not matching the routing policy.
Default command level 2: System level Parameters process-id: Specifies an OSPF process ID in the range of 1 to 65535. graceful-restart: Resets the OSPF process by using GR. Usage guidelines The reset ospf process command: • Clears all invalid LSAs without waiting for their timeouts. • Makes a newly configured Router ID take effect. • Starts a new round of DR/BDR election. • Does not remove previous OSPF configurations.
Use undo rfc1583 compatible to disable the function. Syntax rfc1583 compatible undo rfc1583 compatible Default Compatibility with RFC 1583 is enabled. Views OSPF view 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 no global router ID is configured, the highest loopback interface IP address, if any, is used as the router ID. If no loopback interface IP address is available, the highest physical interface IP address is used, regardless of the interface status. During an active/standby switchover, the standby main board checks whether the previous router ID that is backed up before switchover is valid. If not, it selects a new router ID.
snmp-agent trap enable ospf Use snmp-agent trap enable ospf to enable the sending of SNMP traps for a specified OSPF process. If no process is specified, the feature is enabled for all processes. Use undo snmp-agent trap enable ospf to disable the feature.
Usage guidelines For related information, see Network Management and Monitoring Command Reference. Examples # Enable the sending of SNMP traps for OSPF process 1. system-view [Sysname] snmp-agent trap enable ospf 1 spf-schedule-interval Use spf-schedule-interval to set the OSPF SPF calculation interval. Use undo spf-schedule-interval to restore the default.
stub (OSPF area view) Use stub to configure an area as a stub area. Use undo stub to remove the configuration. Syntax stub [ default-route-advertise-always | no-summary ] * undo stub Default No area is stub area. Views OSPF area view Default command level 2: System level Parameters default-route-advertise-always: Applies only to 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.
Default No router is configured as a stub router. Views OSPF view Default command level 2: System level 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.
Examples # Configure all the interfaces running OSPF process 1 to send up to 10 LSU packets every 30 milliseconds. system-view [Sysname] ospf 1 [Sysname-ospf-1] transmit-pacing interval 30 count 10 vlink-peer (OSPF area view) Use vlink-peer to configure a virtual link. Use undo vlink-peer to remove a virtual link.
Usage guidelines As defined in RFC 2328, all non-backbone areas must maintain connectivity to the backbone. You can use the vlink-peer command to configure a virtual link to connect an area to the backbone. Considerations on parameters: • The smaller the hello interval is, the faster the network converges and the more network resources are consumed. • A so small retransmission interval will lead to unnecessary retransmissions. A big value is appropriate for a low speed link.
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.
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.
• 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 the range of 1 to 2147483648 Mbps.
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. level-1: Applies the link cost to Level-1.
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. Examples # Configure the router to send only narrow cost style packets, but receive both narrow and wide cost style packets.
Examples # Advertise a Level-2 default route. system-view [Sysname] isis 1 [Sysname-isis-1] default-route-advertise display isis brief Use display isis brief to view IS-IS brief configuration information. Syntax display isis brief [ 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 brief configuration information for the IS-IS process.
maximum imported routes number : 10000 Timers: lsp-max-age: 1200 lsp-refresh: 900 Interval between SPFs: 10 Table 30 Command output Field Description network-entity Network entity name. is-level IS-IS Routing level. cost-style Cost style. preference Preference. Lsp-length receive Maximum LSP that can be received. Lsp-length originate Maximum LSP that can be generated. maximum imported routes number Maximum number of redistributed Level-1/Level-2 IPv4 routes.
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 debugging switch state of IS-IS process 1. display isis debug-switches 1 IS-IS - Debug settings.
Restart Status: RESTARTING Number of LSPs Awaited: 3 T3 Timer Status: Remaining Time: 140 T2 Timer Status: Remaining Time: 59 IS-IS(1) Level-2 Restart Status Restart Interval: 150 SA Bit Supported Total Number of Interfaces = 1 Restart Status: RESTARTING Number of LSPs Awaited: 3 T3 Timer Status: Remaining Time: 140 T2 Timer Status: Remaining Time: 59 Table 31 Command output Field Description Restart Interval Graceful Restart interval. SA Bit Supported SA bit is set.
verbose: Displays detailed IS-IS interface information. process-id: Displays the IS-IS interface information of the IS-IS process. The ID is in the range of 1 to 65535. vpn-instance vpn-instance-name: Displays the IS-IS interface information of the MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the IS-IS interface information of the public network is displayed. |: Filters command output by specifying a regular expression.
TE Cost : 0 TE Admin Group : 0 TE Max Bandwidth : 0 TE Max Res Bandwidth : 0 LDP-sync : Enabled Hold Down Time : L12 Max Cost Time : L12 LDP-sync State : L1 33 22 Init L2 Init # Displays detailed information of the specified IS-IS interface. display isis interface tunnel 1 verbose Interface information for ISIS(1) --------------------------------- Interface: Id Tunnel1 IPv4.State 005 IPv6.
Field Description MTU Interface MTU. Type Interface link adjacency type. DIS Whether the interface is elected as the DIS or not. SNPA Address Subnet access point address. IP Address Primary IP address. Secondary IP Address(es) Secondary IP addresses. IPV6 Link Local Address IPv6 link local address. IPV6 Global Address(es) IPv6 global address. Csnp Timer Value Interval for sending CSNP packets. Hello Timer Value Interval for sending Hello packets.
Field Description Status of LDP and IS-IS synchronization: • Achieved—LDP and IS-IS have synchronized. • Hold Down—The interface waits for the LDP session convergence rather than establishing neighbor relationship. LDP-sync State • Max Cost—IS-IS advertises the maximum cost in LSAs. • Init—Original state. "L12" indicates that the of Level-1 and Level-2 routes have the same LDP synchronization state on a non-broadcast interface. # Display IS-IS interface statistics.
lspid: LSP ID, in the form of sysID.Pseudo ID-fragment num, where sysID represents the originating node or pseudo node, and Pseudo ID is separated by a dot from sysID and by a hyphen from fragment num. lspname: LSP name, in the form of Symbolic name.Pseudo ID-fragment num, where Pseudo ID is separated by a dot from Symbolic name and by a hyphen from fragment num. If the Pseudo ID is 0, specify the LSP name in the form Symbolic name-fragment num. local: Displays LSP information generated locally.
1000.0000.0001.00-00* 0x00000016 SOURCE 1000.0000.0001.00 NLPID IPV4 NLPID IPV6 AREA ADDR 10 INTF ADDR 3.1.1.20 0x314e 1130 112 0/0/0 INTF ADDR V6 3::20 +NBR ID 1000.0000.0002.01 SOURCE COST: 63 1000.0000.0001.00 +IP-Extended 3.1.1.0 SOURCE 255.255.255.0 COST: 63 1000.0000.0002.00 NLPID IPV4 NLPID IPV6 AREA ADDR 10 INTF ADDR 3.1.1.21 INTF ADDR V6 3::21 +NBR ID 1000.0000.0002.01 SOURCE COST: 10 1000.0000.0002.00 +IP-Extended 3.1.1.0 SOURCE 255.255.255.
Field Description AREA ADDR Area address of the originating router. INTF ADDR IP address of the originating router's IS-IS interface. INTF ADDR V6 IPv6 address of the originating router's IS-ISv6 interface. NBR ID Neighbor ID of the originating router. IP-Internal Internal IP address and mask of the originating router. IP-External External IP address and mask of the originating router. IP-Extended Extended IP address and mask of the originating router. COST Cost.
Examples # Add the Serial 2/0 interface and Serial 2/1 interface to mesh-group 100. system-view [Sysname] interface serial 2/0 [Sysname-Serial2/0] isis mesh-group 100 [Sysname-Serial2/0] quit [Sysname] interface serial 2/1 [Sysname-Serial2/1] isis mesh-group 100 # Display the configuration information of IS-IS mesh-group.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # Configure a name for the local IS system. system-view [Sysname] isis 1 [Sysname-isis-1] is-name RUTA # Configure a static mapping for the remote IS system (system ID 0000.0000.0041, host name RUTB). [Sysname-isis-1] is-name map 0000.0000.0041 RUTB # Display the IS-IS host name-to-system ID mapping table.
vpn-instance vpn-instance-name: Displays the IS-IS neighbor information of the MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the IS-IS neighbor information of the public network is displayed. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
Table 37 Command output Field Description System Id System ID of the neighbor. Interface Interface connecting to the neighbor. Circuit Id Circuit ID. State Circuit state. 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.
Field Description IPv4 Init Number of IPv4 neighbors in init state. IPv6 Up Number of IPv6 neighbors in up state. IPv6 Init Number of IPv6 neighbors in init state. display isis route Use display isis route to display IS-IS IPv4 routing information.
----------------------------- ISIS(1) IPv4 Level-1 Forwarding Table ------------------------------------- IPV4 Destination IntCost ExtCost ExitInterface NextHop Flags -------------------------------------------------------------------------1.1.0.0/16 20 NULL Eth1/1 1.2.1.1 R/L/- 1.2.0.
ISIS(1) IPv4 Level-1 Forwarding Table ------------------------------------- IPV4 Dest : 1.1.0.0/16 Int. Cost : 20 Ext. Cost : NULL Admin Tag : - Src Count : 2 Flag NextHop : Interface : ExitIndex : 1.2.1.1 Eth1/1 : R/L/- 0x00000008 IPV4 Dest : 1.2.0.0/16 Int. Cost : 10 Ext.
Field Description 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. Syntax display isis spf-log [ 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 SPF log information for the IS-IS process. The ID is in the range of 1 to 65535.
L1 IS_SPFTRIG_PERIODIC 2 0 11:54:12 L2 IS_SPFTRIG_PERIODIC 2 0 11:54:12 L1 IS_SPFTRIG_PERIODIC 2 0 12:7:24 L2 IS_SPFTRIG_PERIODIC 2 0 12:7:24 L1 IS_SPFTRIG_PERIODIC 2 0 12:21:24 L2 IS_SPFTRIG_PERIODIC 2 0 12:21:24 L1 IS_SPFTRIG_PERIODIC 2 0 12:35:24 L2 IS_SPFTRIG_PERIODIC 2 0 12:35:24 L1 IS_SPFTRIG_PERIODIC 2 0 12:49:24 L2 IS_SPFTRIG_PERIODIC 2 0 12:49:24 L1 IS_SPFTRIG_PERIODIC 2 0 13:3:24 Table 41 Command output Field Description SPF Log information
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 IS-IS statistics.
Lsp information: LSP Source ID: No.
Table 42 Command output Field Description Statistics information for ISIS(processid) Statistics for the IS-IS process. Level-1 Statistics Level-1 statistics. Level-2 Statistics Level-2 statistics. Learnt routes information MTR(Basic-V4) IPv4 Imported Routes. Imported routes information MTR(Basic-V6) IPv6 Imported Routes. MTR(voice) IPv4 Imported Routes. Number of learned IPv4 routes. Number of learned IPv6 routes.
Usage guidelines The configured password in the specified mode is inserted into all outgoing Level-2 packets (LSP, CSNP and PSNP) and is used for authenticating the incoming Level-2 packets. All the backbone routers must have the same authentication mode and password. If neither ip nor osi is specified, the OSI related fields in LSPs are checked. Whether a password should use ip or osi is not affected by the actual network environment.
protocol: Filters routes redistributed from the routing protocol, which can be BGP, direct, IS-IS, OSPF, RIP, or static. process-id: 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.
Views IS-IS 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 routes calculated from received LSPs. For ACL configuration information, see ACL and QoS Command Reference. ip-prefix ip-prefix-name: Specifies an IPv4 prefix list by its name, a case-sensitive string of 1 to 19 characters, to filter routes calculated from received LSPs. For IP prefix list configuration information, see "Routing policy configuration commands.
flash-flood Use flash-flood to enable IS-IS LSP flash flooding. Use undo flash-flood to disable IS-IS LSP flash flooding. Syntax flash-flood [ flood-count flooding-count | max-timer-interval flooding-interval | [ level-1 | level-2 ] ] * undo flash-flood [ level-1 | level-2 ] Default IS-IS LSP flash flooding is disabled. Views IS-IS view Default command level 2: System level Parameters flood-count flooding-count: Specifies the maximum number of LSPs to be flooded before the next SPF calculation.
Views IS-IS view Default command level 2: System level Examples # Enable the Graceful Restart capability for IS-IS process 1. system-view [Sysname] isis 1 [Sysname-isis-1] graceful-restart graceful-restart interval (IS-IS view) Use graceful-restart interval to configure the Graceful Restart interval. Use undo graceful-restart interval to restore the default Graceful Restart interval.
Views IS-IS view Default command level 2: System level Usage guidelines Suppressing the SA bit is mainly for avoiding black hole route. If a router starts or reboots without keeping the local forwarding table, sending packets to the router might result in a severe packet loss. To avoid this, you can set the SA bit of the hello packet sent by the GR restarter to 1. Upon receiving such hello packets, the GR helpers do not advertise the GR restarter through LSP.
• For the styles of wide, wide-compatible, the cost is in the range of 0 to 16777215. cost-type { external | internal }: Specifies the cost type. The internal type indicates internal routes, and the external type indicates external routes. If external is specified, the cost of a redistributed route to be advertised is added by 64 to make internal routes take priority over external routes. The type is external by default.
Default No route leaking is configured. Views IS-IS 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 routes from Level-2 to Level-1. For ACL configuration information, see ACL and QoS Command Reference. ip-prefix ip-prefix-name: Specifies an IP prefix list by its name, a case-sensitive string of 1 to 19 characters, to filter routes from Level-2 to Level-1.
Default command level 2: System level Parameters number: Maximum number of redistributed Level 1/Level 2 IPv4 routes.
[Sysname] isis 1 [Sysname-isis-1] network-entity 01.0001.0000.0000.0002.00 Related commands • isis enable • network-entity isis authentication-mode Use isis authentication-mode to set the IS-IS authentication mode and password for an interface. Use undo isis authentication-mode to restore the default.
If neither ip nor osi is specified, the OSI related fields in LSPs are checked. The level-1 and level-2 keywords are configurable on an interface that has had IS-IS enabled with the isis enable command. Examples # On Ethernet 1/1, configure the Level-1 adjacency authentication mode as simple, and set the plaintext password to 123456.
Default An interface can establish either the Level-1 or Level-2 adjacency. Views Interface view Default command level 2: System level Parameters level-1: Sets the circuit level to Level-1. level-1-2: Sets the circuit level to Level-1-2. level-2: Sets the circuit level to Level-2. Usage guidelines For a Level-1 (Level-2) router, the circuit level can only be Level-1 (Level-2).
Usage guidelines Interfaces with different network types operate differently. For example, broadcast interfaces on a network need to elect a DIS and flood CSNP packets to synchronize the LSDBs, and P2P interfaces on a network need not elect a DIS and have a different LSDB synchronization mechanism. If only two routers exist on a broadcast network, configure the network type of attached interfaces as P2P to avoid DIS election and CSNP flooding, saving network bandwidth, and speeding up network convergence.
Examples # Configure the Level-2 IS-IS cost as 5 for Serial 2/0. system-view [Sysname] interface serial 2/0 [Sysname-Serial2/0] isis cost 5 level-2 Relate commands circuit-cost isis dis-name NOTE: • This command is not supported on a point-to-point interface. • This command is not available in loopback interface view. Use isis dis-name to configure a name for a DIS to represent the pseudo node on a broadcast network. Use undo isis dis-name to remove the configuration.
Use undo isis dis-priority to restore the default priority of 64 for Level-1 and Level-2. Syntax isis dis-priority value [ level-1 | level-2 ] undo isis dis-priority [ value ] [ level-1 | level-2 ] Views Interface view Default command level 2: System level Parameters value: Specifies a DIS priority for the interface, in the range of 0 to 127. level-1: Applies the DIS priority to Level-1. level-2: Applies the DIS priority to Level-2.
Parameters process-id: Specifies an IS-IS process by its ID in the range of 1 to 65535. The default is 1. Examples # Create IS-IS routing process 1, and enable it on the Serial 2/0 interface. system-view [Sysname] isis 1 [Sysname-isis-1] network-entity 10.0001.1010.1020.1030.00 [Sysname-isis-1] quit [Sysname] interface serial 2/0 [Sysname-serial2/0] isis enable 1 Related commands • isis • network-entity isis mesh-group NOTE: This command is not available in loopback interface view.
Examples # Add the frame relay subinterface Serial2/1.1 to mesh-group 3. system-view [Sysname] interface serial 2/1 [Sysname-Serial2/1] link-protocol fr [Sysname-Serial2/1] quit [Sysname] interface serial 2/1.1 [Sysname-Serial2/1.1] isis mesh-group 3 isis mib-binding Use isis mib-binding to bind MIBs with an IS-IS process. Use undo isis mib-binding to restore the default. Syntax isis mib-binding process-id undo isis mib-binding Default MIBs are bound with IS-IS process 1.
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. Examples # Configure Serial2/0 not to check the peer's IP address in the received Hello packets.
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 Serial 2/0 interface to send small Hello packets. system-view [Sysname] interface serial 2/0 [Sysname-Serial2/0] isis small-hello isis timer csnp NOTE: This command is not supported in loopback interface view. Use isis timer csnp to specify on the DIS of a broadcast network the interval for sending CSNP packets.
Examples # Configure Level-2 CSNP packets to be sent every 15 seconds over Serial 2/0. system-view [Sysname] interface serial 2/0 [Sysname-Serial2/0] isis timer csnp 15 level-2 isis timer hello NOTE: This command is not supported in loopback interface view. Use isis timer hello to specify the interval for sending hello packets. Use undo isis timer hello to restore the default.
Related commands isis timer holding-multiplier isis timer holding-multiplier NOTE: This command is not available in loopback interface view. Use isis timer holding-multiplier to specify the IS-IS hello multiplier. Use undo isis timer holding-multiplier to restore the default. Syntax isis timer holding-multiplier value [ level-1 | level-2 ] undo isis timer holding-multiplier [ value ] [ level-1 | level-2 ] Default The default IS-IS hello multiplier is 3.
isis timer lsp NOTE: This command is not available in loopback interface view. Use isis timer lsp to configure the minimum interval for sending LSPs on the interface and specify the maximum LSPs that can be sent per time. Use undo isis timer lsp to restore the default of 33 milliseconds. Syntax isis timer lsp time [ count count ] undo isis timer lsp Default The minimum interval for sending LSPs on the interface is 33 milliseconds.
Default The retransmission interval is 5 seconds. Views Interface view Default command level 2: System level Parameters seconds: Specifies the interval in seconds for retransmitting LSP packets, in the range of 1 to 300. Usage guidelines A P2P link requires a response to a sent LSP. If no response is received within the retransmission interval, the LSP is retransmitted. You do not need to use this command over a broadcast link where CSNPs are broadcast periodically.
level-1-2: Configures the router to work on Level-1-2, which means it calculates routes and maintains the LSDBs for both L1 and L2. level-2: Configures the router to work on Level-2, which means it calculates routes and maintains the LSDB for L2 only. Usage guidelines Configure all the routers as either Level-1 or Level-2 if only one area is present, because the routers do not need to maintain two identical databases at the same time.
Syntax is-name map sys-id map-sys-name undo is-name map sys-id Views IS-IS view Default command level 2: System level Parameters sys-id: System ID or pseudonode ID of a remote IS. map-sys-name: Specifies a host name for the remote IS, a string of 1 to 64 characters. Usage guidelines Each remote IS system ID corresponds to only one name. Examples # Map the host name RUTB to the system ID 0000.0000.0041 of the remote IS. system-view [Sysname] isis 1 [Sysname-isis-1] is-name map 0000.0000.
Use undo log-peer-change to disable the logging. Syntax log-peer-change undo log-peer-change Default The logging is enabled. Views IS-IS view Default command level 2: System level Usage guidelines After the logging is enabled, information about IS-IS adjacency state changes is sent to the configuration terminal. Examples # Enable logging on the IS-IS adjacency state changes.
mode-2: Specifies the fragment extension mode 2, used on a network where all routers support LSP fragment extension. Usage guidelines If no mode is specified, LSP fragment extension mode 1 is enabled. If no level is specified, the LSP fragment extension mode is enabled for both Level-1 and Level-2. Examples # Enable LSP fragment extension mode 1 for Level-2.
Syntax lsp-length receive size undo lsp-length receive Default The maximum size of received LSPs is 1497 bytes. Views IS-IS view Default command level 2: System level Parameters size: Specifies the maximum size of received LSPs, in the range of 512 to 16384 bytes. Examples # Configure the maximum size of received LSPs.
Use undo network-entity to delete a NET. Syntax network-entity net undo network-entity net Default No NET is configured. Views IS-IS view Default command level 2: System level Parameters net: Network Entity Title (NET) in the format of X…X.XXXX....XXXX.00 in hexadecimal notation, with the first part X…X being the area address, the middle part XXXX....XXXX (a total of 12 "X") being the router's system ID, and the last part 00 being SEL.
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. Usage guidelines If a routing policy is specified in this command, the preference (if any) set by the routing policy applies to those matched routes.
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. system-view [Sysname] isis 1 [Sysname-isis-1] priority high ip-prefix standtest reset isis all Use reset isis all to clear all IS-IS data structure information.
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. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the data structure information of the public network is cleared.
• nbr-timeout: The timer has an interval from 5 to 86400 seconds. The default is 1200 seconds. timeout2: Sets the overload bit within the timeout2 interval after system startup. The interval is in the range of 5 to 86400 seconds and the default is 600 seconds. allow: Allows advertising address prefixes. By default, no address prefixes are allowed to be advertised when the overload bit is set.
level-1: Summarize only the routes redistributed to Level-1. level-1-2: Summarizes the routes redistributed to both Level-1 and Level-2. level-2: Summarizes only the routes redistributed to Level-2. tag tag: Specifies a management tag, in the range of 1 to 4294967295. Usage guidelines If no level is specified, only the level-2 routes are summarized by default. If no topology is specified, routes of the base topology are summarized.
level-2: Applies the intervals to Level-2 .If no level is specified, the specified intervals apply to both Level-1 and Level-2. Usage guidelines • If only the maximum interval is specified, IS-IS waits the maximum interval before generating an LSP. • If both the maximum and initial intervals are specified: { { • IS-IS waits the initial interval before generating the first LSP.
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. Syntax timer lsp-refresh seconds undo timer lsp-refresh Default The default LSP refresh interval is 900 seconds.
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. initial-interval: Specifies the wait interval before the first SPF calculation, in the range of 10 to 60000 milliseconds. second-wait-interval: Specifies the wait interval before the second SPF calculation, in the range of 10 to 60000 milliseconds.
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. Usage guidelines Up to 50 virtual system IDs can be configured for the IS-IS process. Examples # Set a virtual system ID of 2222.2222.2222 for IS-IS process 1. system-view [Sysname] isis 1 [Sysname-isis-1] virtual-system 2222.2222.
BGP configuration commands For more information about routing policy configuration commands in this document, see "Routing policy configuration commands." aggregate Use aggregate to create a summary route in the BGP routing table. Use undo aggregate to remove a summary route.
Keywords Function detail-suppressed This keyword does not suppress the summary route, but it suppresses the advertisement of all the more specific routes. To summarize only some specific routes, use the peer filter-policy command. suppress-policy Used to create a summary route and suppress the advertisement of some summarized routes. If you want to suppress some routes selectively and leave other routes still advertised, use the if-match clause of the route-policy command.
Parameters number: Specifies the number of BGP routes for load balancing, in the range of 1 to 8. When it is set to 1, load balancing is disabled. Usage guidelines Unlike IGP, BGP has no explicit metric for making load balancing decision. Instead, it implements load balancing by using route selection rules. Examples # In BGP view, set the number of routes participating in BGP load balancing to 2.
[Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] bestroute as-path-neglect bestroute compare-med (BGP/BGP-VPN instance view) Use bestroute compare-med to enable the comparison of MEDs for routes on a per-AS basis. Use undo bestroute compare-med to disable this comparison. Syntax bestroute compare-med undo bestroute compare-med Default This comparison is not enabled.
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.
Use undo compare-different-as-med to disable the comparison. Syntax compare-different-as-med undo compare-different-as-med Default The comparison is disabled. Views BGP view, BGP-VPN instance view Default command level 2: System level Usage guidelines If several paths to one destination are available, the path with the smallest MED is selected. Do not use this command unless associated ASs adopt the same IGP protocol and routing selection method.
Parameters as-number: Specifies the number of the AS that contains multiple sub-ASs, in the range of 1 to 4294967295. Usage guidelines Configuring a confederation can reduce IBGP connections in a large AS. You can split the AS into several sub-ASs, and each sub-AS remains fully meshed. These sub-ASs form a confederation. Key IGP attributes of a route, such as the next hop, MED, or local preference, are not discarded when crossing each sub-AS.
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 includes two sub-ASs, 64000 and 65000.
[Sysname-bgp] confederation peer-as 2000 2001 Related commands • confederation id • confederation nonstandard dampening (BGP/BGP-VPN instance view) Use dampening to enable BGP route dampening, configure dampening parameters, or both. Use undo dampening to disable route dampening. Syntax dampening [ half-life-reachable half-life-unreachable reuse suppress ceiling | route-policy route-policy-name ] * undo dampening Default No route dampening is configured.
# In BGP-VPN instance view, configure BGP route dampening. (The VPN has been created.
default local-preference (BGP/BGP-VPN instance view) Use default local-preference to configure the default local preference. Use undo default local-preference to restore the default value. Syntax default local-preference value undo default local-preference Default The default local preference is 100. Views BGP view, BGP-VPN instance view Default command level 2: System level Parameters value: Specifies the default local preference in the range of 0 to 4294967295.
Default command level 2: System level Parameters med-value: Specifies the default MED value in the range of 0 to 4294967295. Usage guidelines Multi-exit discriminator (MED) is an external metric for routes. Different from local preference, MED is exchanged between ASs and stays in the AS once it enters the AS. The route with a lower MED is preferred.
[Sysname-bgp] default-route imported [Sysname-bgp] import-route ospf 1 # In BGP-VPN instance view, enable redistributing default route from OSPF into BGP. (The VPN has been created.) system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] default-route imported [Sysname-bgp-ipv4-vpn1] import-route ospf 1 Related commands import-route display bgp group Use display bgp group to display peer group information.
Members: Peer AS 2.2.2.1 200 MsgRcvd MsgSent 0 OutQ PrefRcv Up/Down 0 0 State 0 00:00:35 Active Table 44 Command output Field Description BGP peer-group Name of the BGP peer group. Remote AS AS number of peer group. Type of the BGP peer group: type • IBGP. • EBGP. Maximum allowed prefix number Maximum prefixes allowed to receive from the peer group.
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. include: Displays all lines that match the specified regular expression.
Parameters as-regular-expression: Specifies an AS path regular expression, a string of 1 to 80 characters. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
Parameters ip-address: Specifies an IP address of an peer to be displayed, in dotted decimal notation. group-name: Specifies the name of a peer group to be displayed, a string of 1 to 47 characters. log-info: Displays the log information for the specified peer. verbose: Displays detailed information about the peer or peer group. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
Table 47 Command output Field Description Peer IP address of the peer. Local Local router ID. Type Peer type. BGP version BGP version. remote router ID Router ID of the peer. BGP current state Current state of the peer. BGP current event Current event of the peer. BGP last state Previous state of the peer. Port TCP port numbers of the local router and its peer. Configured: Active Hold Time Local holdtime interval. Keepalive Time Local keepalive interval.
Field Description Routing policy configured Local routing policy. # Display the log information for the peer 10.110.25.20. display bgp peer 10.110.25.20 log-info Peer : 10.110.25.
Default command level 1: Monitor level Parameters ip-address: Specifies a BGP peer by its IP address. |: Filters command output by specifying a regular expression. 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.
Parameters ip-address: Specifies a destination IP address. mask: Specifies a network mask, in dotted decimal notation. mask-length: Specifies a mask length in the range of 0 to 32. longer-prefixes: Displays the routing entries selected through the following steps: 1. AND the specified destination IP address with the specified mask. 2. AND the destination IP address of each route with the specified mask. 3.
Field Description Status codes: Status codes • • • • • • • • * – valid—Valid route. ^ - VPNv4 best—Best VPNv4 route. > – best—Best route. d – damped—Dampened route. h – history—History route. i – internal—Internal route. s – suppressed—Suppressed route. S – Stale—Stale route. Origin attributes: Origin • i – IGP—Originated in the AS. • e – EGP—Learned through EGP. • ? – incomplete—Learned by some other means. Network Destination network address. Next Hop Next hop IP address.
|: 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.
Total Number of Routes: 1 BGP Local router ID is 20.20.20.1 Status codes: * - valid, ^ - VPNv4 best, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? – incomplete *> Network NextHop MED 40.40.40.0/24 30.30.30.1 0 LocPrf PrefVal Path/Ogn 0 300i For description of the fields, see Table 50.
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 MED LocPrf PrefVal Path/Ogn *> 10.10.10.0/24 0.0.0.0 0 0 i *> 40.40.40.0/24 20.20.20.1 0 0 200 300i For description of the fields, see Table 50.
Network NextHop Metric LocPrf PrefVal Path *> 3.3.3.0/30 1.2.3.4 0 ? *> 4.4.0.0/20 1.2.3.4 0 ? *> 4.5.6.0/26 1.2.3.4 0 ? For description of the fields, see Table 50. display bgp routing-table dampened Use display bgp routing-table dampened to display dampened BGP routes.
display bgp routing-table dampening parameter Use display bgp routing-table dampening parameter to display BGP route dampening parameters. Syntax display bgp 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.
display bgp routing-table different-origin-as Use display bgp routing-table different-origin-as to display BGP routes originating from different autonomous systems. Syntax display bgp routing-table different-origin-as [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
Default command level 1: Monitor level Parameters as-regular-expression: Displays route flap information that matches the AS path regular expression, which is a string of 1 to 80 characters. as-path-acl-number: Displays route flap information matching the AS path ACL in the range of 1 to 256. ip-address: Specifies a destination IP address. mask: Specifies a mask, in dotted decimal notation. mask-length: Specifies the mask length, in the range of 0 to 32. longer-match: Matches the longest prefix.
Syntax display bgp routing-table label [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. 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 ip-address: Specifies an IP address of a peer. advertised-routes: Displays routing information advertised to the specified peer. received-routes: Displays routing information received from the specified peer. network-address: Specifies the IP address of the destination network. mask: Specifies the mask of the destination network, in dotted decimal notation. mask-length: Specifies a mask length in the range of 0 to 32. statistic: Displays route statistics.
Default command level 1: Monitor level Parameters as-regular-expression: Specifies the AS path regular expression, a string of 1 to 80 characters. Examples # Display BGP routing information with AS number ended with 300. display bgp routing-table regular-expression 300$ BGP Local router ID is 20.20.20.1 Status codes: * - valid, ^ - VPNv4 best, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? – incomplete *> Network NextHop MED 40.40.
display router id Use display router id to display the global router ID. Syntax display router id [ | { 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.
Examples # In BGP view, enable quick reestablishment of direct EBGP session. system-view [Sysname] bgp 100 [Sysname-bgp] ebgp-interface-sensitive # In BGP-VPN instance view, enable quick reestablishment of direct EBGP session (the VPN has been created).
Usage guidelines If no routing protocol is specified, all outgoing routes are filtered. 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 } ip source sour-addr sour-wildcard.
Default command level 2: System level Parameters acl-number: Specifies the number of an ACL used to filter incoming routing information, in the range of 2000 to 3999. ip-prefix-name: Specifies the number of an IP prefix list used to filter incoming routing information, a string of 1 to 19 characters.
undo graceful-restart Default BGP Graceful Restart capability is disabled. Views BGP view Default command level 2: System level Usage guidelines During active/standby switchover, a GR-capable BGP speaker can maintain the packet forwarding table. During restart, it might not maintain the forwarding table. Examples # Enable the Graceful Restart capability for BGP process 100.
Related commands graceful-restart graceful-restart timer wait-for-rib Use graceful-restart timer wait-for-rib to configure the time to wait for the End-of-RIB marker on the local end. Use undo graceful-restart timer wait-for-rib to restore the default. Syntax graceful-restart timer wait-for-rib timer undo graceful-restart timer wait-for-rib Default The time to wait for the End-of-RIB marker is 180 seconds.
Views BGP view, 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. external: Creates an EBGP peer group, which can be the group of another sub AS in a confederation. internal: Creates an IBGP peer group. Usage guidelines An IBGP peer group is created if neither internal nor external is specified. Examples # In BGP view, create an EBGP peer group test with AS number 200, and add EBGP peers 10.1.1.1 and 10.
Examples # Configure BGP to ignore the first AS number of EBGP route updates. system-view [Sysname] bgp 100 [Sysname-bgp] ignore-first-as import-route (BGP/BGP-VPN instance view) Use import-route to configure BGP to redistribute routes from the specified IGP protocol. Use undo import-route to disable route redistribution from a routing protocol.
The undo import-route protocol all-processes command removes only the configuration made by the import-route protocol all-processes command, instead of the configuration made by the import-route protocol process-id command. Examples # In BGP view, redistribute routes from RIP process 1. system-view [Sysname] bgp 100 [Sysname-bgp] import-route rip # In BGP-VPN instance view, redistribute routes from RIP process 1. (The VPN has been created.
Syntax log-peer-change undo log-peer-change Default The function is enabled. Views BGP view Default command level 2: System level Examples # Enable BGP logging on peers going up and down. system-view [Sysname] bgp 100 [Sysname-bgp] log-peer-change network (BGP/BGP-VPN instance view) Use network to inject a network to the local BGP routing table. Use undo network to remove the configuration.
Examples # In BGP view, inject the network segment 10.0.0.0/16 to the BGP routing table. system-view [Sysname] bgp 100 [Sysname-bgp] network 10.0.0.0 255.255.0.0 # In BGP-VPN instance view, advertise the network segment 10.0.0.0/16 to the BGP routing table. (The VPN has been created.) system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] network 10.0.0.0 255.255.0.
[Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] network 10.0.0.0 255.255.0.0 short-cut peer advertise-community (BGP/BGP-VPN instance view) Use peer advertise-community to advertise the community attribute to a peer or peer group. Use undo peer advertise-community to disable the community attribute advertisement to a peer or peer group.
Syntax peer { group-name | ip-address } advertise-ext-community undo peer { group-name | ip-address } advertise-ext-community Default No extended community attribute is advertised to 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 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. number: Specifies the number of times for which the local AS number can appear in routes from the peer or peer group, in the range of 1 to 10. The default number is 1. Examples # In BGP view, configure the number of times the local AS number can appear in AS-path attribute of routes from peer 1.1.1.1 as 2.
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. After that, the system creates the specified peer by default. • Specify the AS number of the peer when adding it to the specified peer group by using the peer ip-address group group-name as-number as-number command.
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. system-view [Sysname] bgp 100 [Sysname-bgp] peer test as-path-acl 1 export # In BGP-VPN instance view, reference the AS path ACL 1 to filter routes outgoing to the peer group test. (The VPN has been created.
[Sysname-bgp] peer 1.1.1.1 bfd peer capability-advertise conventional Use peer capability-advertise conventional to disable BGP multi-protocol extension and route refresh for a peer or peer group. Use undo peer capability-advertise conventional to enable BGP multi-protocol extension and route refresh for a peer or peer group.
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. both: Supports sending and receiving route-refresh messages carrying the ORF information. receive: Supports receiving route-refresh messages carrying the ORF information. send: Supports sending route-refresh messages carrying the ORF information.
peer capability-advertise orf non-standard Use peer capability-advertise orf non-standard to enable the non-standard ORF capability (the early implementation of ORF is different from that defined in RFC) for a BGP peer or peer group. Use undo peer capability-advertise orf non-standard to disable the non-standard ORF capability for the BGP peer or peer group.
peer capability-advertise route-refresh Use peer capability-advertise route-refresh to enable the BGP route refresh capability. Use undo peer capability-advertise route-refresh to disable the capability. Syntax peer { group-name | ip-address } capability-advertise route-refresh undo peer { group-name | ip-address } capability-advertise route-refresh Default The capability is enabled.
Views BGP view, BGP-VPN instance view Default command level 2: System level Parameters group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ip-address: Specifies the IP address of a peer. 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 BGP view, enable 4-byte AS number suppression for peer 160.89.2.33.
ip-address: Specifies the IP address of a peer. interface-type interface-number: Specifies an interface by its type and number. Usage guidelines Suppose interface A on the local device is connected to interface B on the peer device. When using the peer x.x.x.x as-number as-number command on the local device but x.x.x.x is not the IP address of interface B, you need to execute the peer connect-interface command on the peer to specify the source interface (the owner of IP address x.x.x.
Usage guidelines With this command used, the router unconditionally sends a default route with the next hop being itself to the peer or peer group regardless of whether the default route is available in the routing table. Examples # In BGP view, advertise a default route to peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] peer test default-route-advertise # In BGP-VPN instance view, advertise a default route to peer group test. (The VPN has been created.
system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] peer test description ISP1 Related commands display bgp peer peer ebgp-max-hop (BGP/BGP-VPN instance view) Use peer ebgp-max-hop to allow establishing an EBGP session with a peer or peer group that is on an indirectly connected network. Use undo peer ebgp-max-hop to restore the default.
peer enable (BGP/BGP-VPN instance view) Use peer enable to enable the specified peer. Use undo peer enable to disable the specified peer. Syntax peer ip-address enable undo peer ip-address enable Default The BGP peer is enabled. Views BGP view, BGP VPN instance view Default command level 2: System level Parameters ip-address: Specifies the IP address of a peer. Usage guidelines If a peer is disabled, the router does not exchange routing information with the peer. Examples # Disable peer 18.10.0.9.
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. as-number: Specifies the local autonomous system number in the range of 1 to 4294967295. Examples # In BGP view, configure a fake AS number of 200 for the peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] peer test fake-as 200 # In BGP-VPN instance view, configure a fake AS number of 200 for the peer group test. (The VPN has been created.
# In BGP-VPN instance view, apply the ACL 2000 to filter routes advertised to the peer group test. (The VPN has been created.) system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] peer test filter-policy 2000 export Related commands peer as-path-acl peer group (BGP/BGP-VPN instance view) Use peer group to add a peer to a peer group. Use undo peer group to delete a specified peer from a peer group.
[Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] group test external [Sysname-bgp-ipv4-vpn1] peer test as-number 2004 [Sysname-bgp-ipv4-vpn1] peer 10.1.1.1 group test peer ignore (BGP/BGP-VPN instance view) Use peer ignore to disable session establishment with a peer or peer group. Use undo peer ignore to remove the configuration.
Syntax peer { group-name | ip-address } ip-prefix ip-prefix-name { export | import } undo peer { group-name | ip-address } ip-prefix { export | import } Default No IP prefix list based filtering is configured. Views BGP view, BGP-VPN instance view Default command level 2: System level Parameters group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ip-address: Specifies the IP address of a peer. ip-prefix-name: Specifies the IP prefix list name, a string of 1 to 19 characters.
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, save all route updates from peer 131.100.1.1. system-view [Sysname] bgp 100 [Sysname-bgp] peer 131.100.1.1 as-number 200 [Sysname-bgp] peer 131.100.1.1 keep-all-routes # In BGP-VPN instance view, save all route updates from peer 131.100.1.1. (The VPN has been created.
# In BGP-VPN instance view, enable the logging of session state and event information for peer group test. (The VPN has been created.) system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] peer test log-change peer next-hop-local (BGP/BGP-VPN instance view) Use peer next-hop-local to specify the router as the next hop for routes sent to a peer or peer group. Use undo peer next-hop-local to remove the configuration.
undo peer { group-name | ip-address } password Default No MD5 authentication is performed. Views BGP view, BGP-VPN instance view Default command level 2: System level Parameters group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ip-address: Specifies the IP address of a peer. cipher: Specifies a ciphertext password. simple: Specifies a plaintext password.
[Sysname] bgp 200 [Sysname-bgp-ipv4-vpn1] peer 10.1.100.1 password simple aabbcc peer preferred-value (BGP/BGP-VPN instance view) Use peer preferred-value to assign a preferred value to routes received from a peer or peer group. Use undo peer preferred-value to restore the default value. Syntax peer { group-name | ip-address } preferred-value value undo peer { group-name | ip-address } preferred-value Default The default preferred value is 0.
[Sysname-bgp-ipv4-vpn1] peer 131.108.1.1 preferred-value 50 peer public-as-only (BGP/BGP-VPN instance view) Use peer public-as-only to not keep private AS numbers in BGP updates sent to a peer or peer group. Use undo peer public-as-only to keep private AS numbers in BGP updates sent to a peer or peer group. Syntax peer { group-name | ip-address } public-as-only undo peer { group-name | ip-address } public-as-only Default BGP updates carry private AS numbers.
Default Neither the route reflector nor the client is configured. Views BGP view, BGP-VPN instance view Default command level 2: System level Parameters group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ip-address: Specifies the IP address of a peer. Usage guidelines The peer reflect-client command can be configured in both BGP view and BGP-VPNv4 subaddress family view.
Views BGP view, BGP-VPN instance view Default command level 2: System level Parameters group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ip-address: Specifies the IP address of a peer. prefix-number: Specifies the number of prefixes that can be received from the peer or peer group. If the number of prefixes received from the peer or peer group reaches the prefix-number, the router will tear down the connection to the peer or peer group.
peer route-policy (BGP/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 { group-name | ip-address } route-policy route-policy-name { export | import } undo peer { group-name | ip-address } route-policy route-policy-name { export | import } Default No routing policy is applied to routes from/to the peer or peer group.
Syntax peer { group-name | ip-address } route-update-interval interval undo peer { group-name | ip-address } route-update-interval Default The interval is 15 seconds for IBGP peers, and 30 seconds for EBGP peers. 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.
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. Examples # In BGP view, substitute local AS number for AS number of peer 1.1.1.1. system-view [Sysname] bgp 100 [Sysname-bgp] peer 1.1.1.1 substitute-as # In BGP-VPN instance view, substitute local AS number for AS number of peer 1.1.1.1. (The VPN has been created.
If neither the holdtime nor the keepalive interval is configured as 0, the holdtime must be at least three times the keepalive interval. After this command is executed, the peer connection is closed at once, and a new connection to the peer is negotiated using the configured hold time. Examples # In BGP view, configure the keepalive interval and holdtime for peer group test as 60s and 180s.
internal-preference: Specifies the preference of IBGP routes, in the range of 1 to 255. local-preference: Specifies the preference of local routes, in the range of 1 to 255. route-policy-name: Specifies the 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.
# In BGP-VPN instance view, disable route reflection between clients. (vpn1 must have been created.) system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-ipv4-vpn1] undo reflect between-clients Related commands • peer reflect-client • reflector cluster-id reflector cluster-id (BGP view/BGP-VPN instance view) Use reflector cluster-id to configure the cluster ID of the route reflector. Use undo reflector cluster-id to remove the configured cluster ID.
• 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. all: Soft-resets all BGP sessions. group-name: Soft-resets sessions to a peer group, name of which is a sting of 1 to 47 characters. external: Specifies an EBGP session.
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. reset bgp all reset bgp dampening Use reset bgp dampening to clear route dampening information and release suppressed routes.
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. as-path-acl-number: Clears the flap statistics of routes matching an AS path ACL, number of which is in the range of 1 to 256. as-path-regular-expression: Clears the flap statistics of routes matching the AS path regular expression, which is a string of 1 to 80 characters.
Default command level 2: System level Parameters router-id: Specifies a 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.
You can specify a router ID manually. Otherwise, the system selects the highest IP address among loopback interface addresses as the router ID. If no loopback interface addresses are available, the system selects the highest IP address among physical interface IP addresses as the router ID. Specify a loopback interface address as the router ID to enhance network reliability.
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.
Parameters keepalive: Specifies the keepalive interval in seconds, in the range of 0 to 21845. holdtime: Specifies the 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.
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.
Use undo apply comm-list to remove the clause configuration. Syntax apply comm-list { comm-list-number | comm-list-name } delete undo apply comm-list Default No community attributes are removed from BGP routes. Views Routing policy view Default command level 2: System level Parameters comm-list-number: Specifies a basic community list by its number in the range of 1 to 99 or an advanced community list by its number in the range of 100 to 199.
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. no-advertise: Sets the no-advertise community attribute for BGP routes. Routes with this attribute cannot be advertised to any peers. no-export: Sets the no-export community attribute for BGP routes.
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/0. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy] if-match interface serial 2/0 [Sysname-route-policy] apply cost 120 apply cost-type Use apply cost-type to set a cost type for routing information. Use undo apply cost-type to remove the clause configuration.
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. Syntax apply extcommunity { { rt route-target }&<1-16> [ additive ] | soo site-of-origin additive } undo apply extcommunity Default No RT extended community attribute is set for BGP routing information.
apply isis Use apply isis to redistribute routes into a specified ISIS level. Use undo apply isis to remove the clause configuration. Syntax apply isis { level-1 | level-1-2 | level-2 } undo apply isis Default No IS-IS level is set. Views Routing policy view Default command level 2: System level Parameters level-1: Redistributes routes into IS-IS level-1. level-1-2: Redistributes routes into both IS-IS level-1 and level-2. level-2: Redistributes routes into IS-IS level-2.
Parameters preference: Specifies a local preference for BGP routes in the range of 0 to 4294967295. Examples # Configure node 10 in permit mode of routing policy policy1. If a route matches AS path list 1, configure a local preference of 130 for the route. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy] if-match as-path 1 [Sysname-route-policy] apply local-preference 130 apply mpls-label Use apply mpls-label to set MPLS labels for routing information.
Default No origin attribute is set for BGP routing information. Views Routing policy view Default command level 2: System level Parameters egp: Sets the origin attribute of BGP routing information to EGP. as-number: Specifies an autonomous system number for EGP routes, in the range of 1 to 4294967295. igp: Sets the origin attribute of BGP routing information to IGP. incomplete: Sets the origin attribute of BGP routing information to unknown.
Examples # Configure node 10 in permit mode of routing policy policy1. Set the preference for OSPF external routes to 90. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy] if-match route-type external-type1or2 [Sysname-route-policy] apply preference 90 apply preferred-value Use apply preferred-value to set a preferred value for BGP routes. Use undo apply preferred-value to remove the clause configuration.
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. Set a tag of 100 for OSPF external routes. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy] if-match route-type external-type1 [Sysname-route-policy] apply tag 100 continue Use continue to specify the next node to be matched.
Syntax display ip as-path [ as-path-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters as-path-number: Specifies an AS path list by its number in the range of 1 to 256. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
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. adv-community-list-number: Specifies an advanced community list by its number in the range of 100 to 199. comm-list-name: Specifies a community list by its name, a string of 1 to 31 characters, which can contain letters, numbers, and signs. |: Filters command output by specifying a regular expression.
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. 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.
Usage guidelines If no routing policy is specified, this command displays information about all routing policies. Examples # Display the information of routing policy 1. display route-policy policy1 Route-policy : policy1 permit : 10 if-match ip-prefix abc apply cost 120 Table 56 Command output. Field Description Route-policy Routing policy name. Permit Match mode: permit or deny. if-match ip-prefix abc Match criterion.
[Sysname] ip as-path 2 permit _*200.*300 [Sysname] route-policy test permit node 10 [Sysname-route-policy] if-match as-path 2 Related commands ip as-path-acl if-match community Use if-match community to match BGP routes whose community attributes matches a specified community list. Use undo if-match community to remove the match criterion.
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. Examples # Configure node 10 in permit mode of routing policy policy1 to permit routing information with a cost of 8.
Examples # Configure node 10 in permit mode of routing policy policy1 to match BGP routing information to extended community lists 100 and 150. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy] if-match extcommunity 100 150 if-match interface Use if-match interface to specify interfaces for matching against the outbound interface of routing information. Use undo if-match interface to remove the match criterion.
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. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy] if-match mpls-label if-match route-type Use if-match route-type to configure a route type match criterion. Use undo if-match route-type to remove the match criterion.
system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy] if-match route-type internal if-match tag Use if-match tag to match routing information having the specified tag. Use undo if-match tag to remove the match criterion. Syntax if-match tag value undo if-match tag Default No tag match criterion is configured. Views Routing policy view Default command level 2: System level Parameters value: Specifies a tag in the range of 0 to 4294967295.
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. BGP routing updates contain the AS path attribute field that identifies the autonomous systems through which the routing information has passed. An AS-PATH regular expression, for example, ^200.
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. permit: Specifies the match mode for the community list as permit. community-number-list: Specifies a list of community numbers in the community number or aa:nn format. A community number is in the range of 1 to 4294967295.
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. A route-target or site-of-origin has three forms: • A 16-bit AS number—a 32-bit self-defined number, for example, 101:3; • A 32-bit IP address—a 16-bit self-defined number, for example, 192.168.122.15:1. • A 32-bit AS number—16-bit self-defined number, for example, 70000:3. The AS number must be no less than 65536.
Usage guidelines Use a routing policy to filter routing information. A routing policy can contain several nodes and each node comprises a set of if-match and apply clauses. The if-match clauses define the match criteria of the node and the apply clauses define the actions to be taken on packets matching the criteria. The relation between the if-match clauses of a node is logic AND, meaning all the if-match clauses must be satisfied.
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: ACL number from 2000 to 3999. Examples # Configure node 10 of routing policy policy1 to permit routes matching ACL 2000.
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. Use undo if-match ip-prefix to remove the match criterion.
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.
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.
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.
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 Routing policy view Default command level 2: System level Parameters address: Matches the destination address of IPv6 routing information. next-hop: Matches the next hop of IPv6 routing information.
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. If not, the route matches against the next item (suppose the IPv6 prefix list has multiple items). permit: Specifies the permit mode.
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.
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.
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 next hops by performing this command once or twice. With a next hop specified, the undo apply ip-address default next-hop command removes the specified default next hop. Without any next hop specified, the undo apply ip-address default next-hop command removes all default next hops. Examples # Set the default next hop of 1.1.1.1.
[Sysname-pbr-aa-11] apply ip-address next-hop 1.1.1.1 direct 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. Syntax apply ip-df zero undo apply ip-df Views Policy node view Default command level 2: System level Examples # Set the DF bit in the IP header of matching packets to 0.
Precedence value Precedence type 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. Use undo apply output-interface to remove the configuration.
system-view [Sysname] policy-based-route aa permit node 11 [Sysname-pbr-aa-11] apply output-interface serial 2/0 track 1 apply output-interface ip-address next-hop Use apply output-interface ip-address next-hop dhcpc to specify the output interface and next hop. The next hop is the gateway address learned through DHCP. Use undo apply output-interface to remove the configuration.
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 local PBR and interface PBR. display ip policy-based-route Policy Name interface pr02 local pr02 Virtual-Template0 pr01 Ethernet 1/1 Table 60 Command output Field Description Policy Name Policy name.
Examples # Display PBR configuration for policy pr01. display ip policy-based-route setup pr01 policy Name interface pr01 Ethernet1/1 # Display PBR configuration on Ethernet 1/1. display ip policy-based-route setup interface ethernet 1/1 Interface Ethernet1/1 policy based routing configuration information: policy-based-route: pr01 permit node 1 if-match acl 3101 apply output-interface Serial2/0 # Display local PBR configuration.
Default command level 1: Monitor level Parameters interface interface-type interface-number: Displays the statistics of PBR on the specified interface. local: Displays the statistics of local PBR. |: 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.
Views Any view Default command level 1: Monitor level Parameters policy-name: Displays information about the specified policy. A policy name is a string of 1 to 19 characters. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
Default command level 2: System level Parameters acl-number: Specifies an ACL by its number in the range of 2000 to 2999 for a basic ACL, and in the range of 3000 to 3999 for an advanced ACL. Examples # Permit the packets matching ACL 2010. system-view [Sysname] policy-based-route aa permit node 11 [Sysname-pbr-aa-11] if-match acl 2010 if-match packet-length Use if-match packet-length to define a packet length match criterion. Use undo if-match packet-length to remove the match criterion.
Views System view Default command level 2: System level Parameters policy-name: Policy name, a string of 1 to 19 characters. Usage guidelines You can configure only one policy for local PBR. If you perform this command multiple times, only the last specified policy takes effect. Local PBR is used to route locally generated packets. Do not configure local PBR unless required. Examples # Configure local PBR based on policy aaa.
policy-based-route Use policy-based-route to create a policy node, and enter policy node view. If the specified policy node already exists, the command directly places you into policy node view. Use undo policy-based-route to remove a created policy or policy node. Syntax policy-based-route policy-name [ deny | permit ] node node-number undo policy-based-route policy-name [ deny | node node-number | permit ] Default No policy or policy node is created.
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.
ipv6 route-static vpn-instance s-vpn-instance-name&<1-6> ipv6-address prefix-length { interface-type interface-number [ next-hop-address ] | next-hop-address [ public ] | vpn-instance d-vpn-instance-name next-hop-address } [ preference preference-value ] undo ipv6 route-static vpn-instance s-vpn-instance-name&<1-6> ipv6-address prefix-length [ interface-type interface-number [ next-hop-address ] | next-hop-address [ public ] | vpn-instance d-vpn-instance-name next-hop-address ] [ preference preference-value
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.
display ripng Public VPN-instance name : RIPng process : 1 Preference : 100 Checkzero : Enabled Default Cost : 0 Maximum number of balanced paths : 8 Update time : 30 sec(s) Suppress time : 120 sec(s) Timeout time : 180 sec(s) Garbage-Collect time : 120 sec(s) Number of periodic updates sent : 0 Number of trigger updates sent : 0 IPsec policy name: policy001, SPI: 300 Table 64 Command output Field Description Public VPN-instance name Public VPN instance name.
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. include: Displays all lines that match the specified regular expression.
display ripng interface Use display ripng interface to display the interface information of the RIPng process. Syntax display ripng process-id interface [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters process-id: Specifies a RIPng process by its ID in the range of 1 to 65535. interface-type interface-number: Specifies an interface by its type and number.
Field Description Indicates whether the poison reverse function is enabled: Poison-reverse • on—Enabled. • off—Disabled. MetricIn/MetricOut Additional metric to incoming and outgoing routes. • Only/Originate—Only means that the interface advertises only the default route. Originate means that the default route and other RIPng routes are advertised. • Off—No default route is advertised or the garbage-collect time expires after the default route advertisement was disabled.
Examples # Display the routing information of RIPng process 100.
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. Usage guidelines The IPsec policy to be applied must have been configured. Examples # Apply IPsec policy policy001 to RIPng process 1.
protocol: Filters routes redistributed from a routing protocol, including bgp4+, direct, isisv6, ospfv3, ripng, and static. process-id: Specifies the process number of the specified routing protocol, in the range of 1 to 65535. This argument is available only when the routing protocol is ripng, ospfv3, or isisv6. Usage guidelines With the protocol argument specified, RIPng filters only routes redistributed from the specified routing protocol. Otherwise, RIPng filters all redistributed routes.
Default command level 2: System level Parameters acl6-number: Specifies an ACL by its number in the range of 2000 to 3999 to filter received routes.. ipv6-prefix ipv6-prefix-name: Specifies an IPv6 prefix list by its name, a string of 1 to 19 characters, to filter received routes.
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. 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 isisv6, ospfv3, or ripng. cost: Specifies a routing metric for redistributed routes, in the range of 0 to 16.
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. Syntax preference [ route-policy route-policy-name ] preference undo preference [ route-policy ] Default The preference of RIPng routes is 100.
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. Usage guidelines After executing the command, you are prompted whether you want to reset the RIPng process. Examples # Reset RIPng process 100.
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. vpn-instance-name is a case-sensitive string of 1 to 31 characters. Usage guidelines If no VPN is specified, the RIPng process is enabled for the public network. The specified VPN instance must have been created with the ip vpn-instance command.
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. The default is 1. Usage guidelines After you execute this command, the generated RIPng default route is advertised in a route update over the specified interface.
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. Syntax ripng ipsec-policy policy-name undo ripng ipsec-policy Default No IPsec policy is configured for the RIPng interface. Views Interface view Default command level 2: System level Parameters policy-name: IPsec policy name, a string of 1 to 15 characters. Usage guidelines The IPsec policy to be applied must have been configured.
Examples # Specify the additional routing metric as 12 for RIPng routes received by Ethernet 1/1. system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] ripng metricin 12 Related commands ripng metricout ripng metricout Use ripng metricout to configure an additional metric for RIPng routes advertised by an interface. Use undo ripng metricout to restore the default. Syntax ripng metricout value undo ripng metricout Default The default additional routing metric is 1.
Views Interface view Default command level 2: System level Examples # Enable the poison reverse function for RIPng update messages on Ethernet 1/1. system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] ripng poison-reverse ripng split-horizon Use ripng split-horizon to enable the split horizon function. Use undo ripng split-horizon to disable the split horizon function. Syntax ripng split-horizon undo ripng split-horizon Default The split horizon function is enabled.
Syntax ripng summary-address ipv6-address prefix-length undo ripng summary-address ipv6-address prefix-length Views Interface view Default command level 2: System level Parameters ipv6-address: Specifies the destination IPv6 address of the summary route. prefix-length: Specifies the prefix length of the destination IPv6 address of the summary route, in the range of 0 to 128. It indicates the number of consecutive 1s of the prefix, which defines the network ID.
timeout-value: Specifies the timeout timer in seconds, in the range of 1 to 86400. update-value: Specifies the update timer in seconds, in the range of 1 to 86400. Usage guidelines RIPng is controlled by the following timers: • Update timer—Defines the interval between update messages. • Timeout timer—Defines the route aging time. If no update message related to a route is received within the aging time, the metric of the route is set to 16 in the routing table.
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.
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. system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] area 0 [Sysname-ospfv3-1-area-0.0.0.
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. Views OSPFv3 view Default command level 2: System level Parameters value: Specifies a default cost for redistributed routes, in the range of 1 to 16777214.
Parameters value: Specifies a cost for the default route advertised to the stub area, in the range of 0 to 65535. The default is 1. Usage guidelines Use of this command is only available on the ABR that is connected to a stub area. You have two commands to configure a stub area: stub, defaulted-cost. Use the stub command on routers connected to a stub area to configure the area as stub. If multiple OSPFv3 processes are running, use of this command takes effect only for the current process.
Usage guidelines Using the import-route command cannot redistribute a default route. To do so, use the default-route-advertise command. If no default route exists in the routing table, use the default-route-advertise always command to generate a default route in a Type-5 LSA.
Usage guidelines If no process ID is specified, OSPFv3 brief information about all processes will be displayed. Examples # Display brief information about all OSPFv3 processes. display ospfv3 Routing Process "OSPFv3 (1)" with ID 1.1.1.
Field Description Area Area ID. Number of interfaces in this area Number of interfaces attached to this area. SPF algorithm executed 1 times SPF algorithm is executed 1 time. Number of LSA Number of LSAs. These LSAs' checksum Sum Sum of all LSAs' checksum. Number of Unknown LSA Number of unknown LSAs. IPsec policy name IPsec policy used. SPI SPI defined in the IPsec policy.
OSPFv3 Router with ID (1.1.1.1) (Process 1) graceful restart information GR status: Helper Neighbor ID Interface Instance ID Remaining time 1.1.1.1 Eth1/1 1 100 2.2.2.2 S2/0 2 200 Table 69 Command output Field Description OSPFv3 Router with ID (1.1.1.1) (Process 1) The GR status of OSPFv3 process 1 with router ID 1.1.1.1 is displayed. graceful restart information GR status: • • • • • GR status GR in progress—GR is in process. Calculating routes—Route calculation is in process.
Examples # Display OSPFv3 interface information on Serial 2/0. display ospfv3 interface serial 2/0 Serial2/0 is up, line protocol is up Interface ID 518 IPv6 Prefixes FE80::1441:0:E213:1 (Link-Local Address) 2000:1::1 OSPFv3 Process (1), Area 0.0.0.1, Instance ID 0 Router ID 2.2.2.
Field Description Adjacent neighbor count Number of Adjacencies on the interface. IPsec policy name IPsec policy used on the interface. SPI SPI defined in the IPsec policy. BFD BFD status on the interface (enabled or disabled). display ospfv3 lsdb Use display ospfv3 lsdb to display OSPFv3 LSDB information.
Examples # Display OSPFv3 LSDB information. display ospfv3 lsdb OSPFv3 Router with ID (2.2.2.2) (Process 1) Link-LSA (Interface Serial1/0) Link State ID Origin Router Age Seq# CkSum Prefix 0.0.2.6 1.1.1.1 0055 0x80000001 0x4642 0 0.0.2.6 2.2.2.2 0053 0x80000001 0xf267 0 Grace-LSA (Interface Serial1/0) Link State ID Origin Router Age SeqNum CkSum 0.0.2.6 1.1.1.1 100 0x8000004 0xba1f Router-LSA (Area 0.0.0.1) Link State ID Origin Router Age Seq# 0.0.0.0 1.1.1.
LS age: 11 LS Type: Link-LSA Link State ID: 0.0.2.6 Originating Router: 2.2.2.2 LS Seq Number: 0x80000002 Checksum: 0xEFFA Length: 56 Priority: 1 Options: 0x000013 (-|R|-|-|E|V6) Link-Local Address: FE80::1441:0:E213:1 Number of Prefixes: 1 Prefix: 2000:1::/64 Prefix Options: 0 (-|-|-|-) Table 72 Command output Field Description LS age Age of LSA. LS Type Type of LSA. LS Seq Number LSA sequence number. Checksum LSA checksum. Length LSA length. Priority Router priority. Prefix Address prefix.
Field Description Checksum LSA checksum. Length LSA length. Graceful Restart Period GR restart interval. Restart Reason Cause of the GR restart. # Display LSA statistics in the LSDB.
Syntax display ospfv3 lsdb 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. 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 next-hop Use display ospfv3 next-hop to display OSPFv3 next hop information. 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.
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. area: Displays 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.
# Display detailed neighbor information of OSPFv3 process 100 of an interface. display ospfv3 1 peer serial 2/0 verbose 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/0 DR is 1.1.1.1 BDR is 2.2.2.
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 ] request-list [ { external | grace | inter-prefix | inter-router | intra-prefix | link | network | router } [ link-state-id ] [ originate-router ip-address ] | statistics ] [ | { 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. external: Displays the AS-external LSA information of the OSPFv3 link state request list.
Table 80 Command output Field Description Interface Interface name. 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 Neighbor LSA-Count Eth1/1 10.1.1.
inter-router: Displays the Inter-area-router LSA information of the OSPFv3 link state retransmission list. 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. 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 Neighbor LSA-Count Eth1/1 12.1.1.1 2 Table 83 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 E1 - Type 1 external route, IA - Inter area route, E2 - Type 2 external route, * I - Intra area route - Selected route OSPFv3 Router with ID (1.1.1.1) (Process 1) -----------------------------------------------------------------------*Destination: 2001::/64 Type : I Cost NextHop : directly-connected Interface: Eth1/1 : 1 Table 84 Command output Field Description Destination Destination network segment.
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 ] topology [ area area-id ] [ | { 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. area: Displays the topology information of the specified area. area-id: Specifies an OSPFv3 area by its ID, a decimal integer (in the range of 0 to 4294967295) that is translated into IPv4 address format by the system or an IPv4 address.
Field Description 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.
Field Description Local address Local IPv6 address. Remote address Remote IPv6 address. Transmit Delay Transmit delay of sending LSAs. State Interface state. Timer intervals in seconds: Timer intervals configured, Hello: 10, Dead: 40, Wait: 40, Retransmit: 5 • • • • Hello—10. Dead—40. Wait—40. Retransmit—5. Hello due in 00:00:02 Send hello packets in 2 seconds. Adjacency state Adjacency state. IPsec policy name IPsec policy used on the virtual link. SPI SPI defined in the IPsec policy.
filter-policy export (OSPFv3 view) Use filter-policy export to filter redistributed routes. Use undo filter-policy export to remove the configuration. Syntax filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } export [ bgp4+ | direct | isisv6 process-id | ospfv3 process-id | ripng process-id | static ] undo filter-policy export [ bgp4+ | direct | isisv6 process-id | ospfv3 process-id | ripng process-id | static ] Default IPv6 OSPFv3 does not filter redistributed routes.
system-view [Sysname] acl ipv6 number 2001 [Sysname-acl6-basic-2001] rule permit source 2002:1:: 64 [Sysname-acl6-basic-2001] quit [Sysname] ospfv3 [Sysname-ospfv3-1] filter-policy 2001 export # Configure ACL6 3000 to permit only route 2001::1/128 to pass, and reference ACL6 3000 to filter redistributed routes.
Using the filter-policy import command only filters routes computed by OSPFv3. The routes that fail to pass are not added to the routing table. Examples # Filter received routes using the IPv6 prefix list abc. system-view [Sysname] ip ipv6-prefix abc permit 2002:1:: 64 [Sysname] ospfv3 1 [Sysname-ospfv3-1] filter-policy ipv6-prefix abc import # Configure ACL6 3000 to permit only route 2001::1/128 to pass, and reference ACL6 3000 to filter received routes.
Syntax graceful-restart helper strict-lsa-checking 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.
route-policy route-policy-name: Redistributes only the routes that match the specified routing policy. route-policy-name is a case-sensitive string of 1 to 63 characters. type type: Specifies the type for redistributed routes, 1 or 2. The default is 2. Usage guidelines The import-route bgp4+ command redistributes only EBGP routes. The import-route bgp4+ allow-ibgp command redistributes both EBGP and IBGP routes.
Syntax maximum load-balancing maximum undo maximum load-balancing Views OSPFv3 view Default command level 2: System level Parameters maximum: Specifies the maximum number of ECMP routes. 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.
[Sysname] ospfv3 120 [Sysname-ospfv3-120] router-id 1.1.1.1 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.
Views Interface view Default command level 2: System level Parameters instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0. Examples # Enable BFD on Ethernet 1/1 in instance 1. system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/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.
ospfv3 dr-priority Use ospfv3 dr-priority to set the DR priority for an 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 is 1. Views Interface view Default command level 2: System level Parameters priority: Specifies a DR priority in the range of 0 to 255.
Parameters policy-name: Specifies an IPsec policy by its name, a string of 1 to 15 characters. 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 Serial 2/0.
Default The network type of an interface depends on its link layer protocol. For example: • For PPP, the default network type is P2P. • 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.
Usage guidelines A router uses the priority set with the ospfv3 peer command to determine whether to send a hello packet to the neighbor rather than use it for DR election. Examples # Specify the neighbor fe80::1111. system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/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.
ospfv3 timer hello Use ospfv3 timer hello to configure the hello interval for an interface that belongs to an instance. Use undo ospfv3 timer hello 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.
Parameters interval: Specifies the LSA retransmission interval 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.
Syntax ospfv3 trans-delay seconds [ instance instance-id ] undo ospfv3 trans-delay [ seconds ] [ instance instance-id ] Default The transmission delay is 1s. Views Interface view Default command level 2: System level Parameters seconds: Specifies the transmission delay in the range of 1 to 3600 seconds. instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.
route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to set preference for specific routes. preference: Specifies the preference of OSPFv3, in the range of 1 to 255. Usage guidelines The smaller the value is, the higher the preference is. A router might run multiple routing protocols. Each protocol has a preference.
silent-interface(OSPFv3 view) Use silent-interface to disable the specified interface from receiving and sending OSPFv3 packets. Use undo silent-interface to restore the default. Syntax silent-interface { interface-type interface-number | all } undo silent-interface { interface-type interface-number | all } Default An interface is able to receive and send OSPFv3 packets.
Views OSPFv3 view Default command level 2: System level Parameters delay-interval: Specifies the interval in seconds between when OSPFv3 receives a topology change and when it starts SPF calculation. The value range is 0 to 65535. hold-interval: Specifies the hold interval in seconds between two consecutive SPF calculations, in the range of 0 to 65535.
Usage guidelines When an area is configured as a stub area, all the routers attached to the area must be configured with the stub command. 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.
can be considered as an interface with OSPFv3 enabled, because parameters such as hello, dead, retransmit and trans-delay are configured in the similar way. Both ends of a virtual link are ABRs that are configured with the vlink-peer command. 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.
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.
ISIS(1) IPv6 Level-1 Forwarding Table ------------------------------------Destination: 2001:1:: PrefixLen: 64 Flag : R/L/- Cost Next Hop : FE80::200:5EFF:FE64:8905 Interface: Eth1/1 : 20 Destination: 2001:2:: PrefixLen: 64 Flag : D/L/- Cost Next Hop : Direct Interface: Eth1/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
------------------------------------IPV6 Dest : 2001:1::/64 Cost : 20 Admin Tag : - Src Count : 1 NextHop : Interface : FE80::200:5EFF:FE64:8905 Flag : R/L/ExitIndex : Eth1/1 IPV6 Dest : 2001:2::/64 Admin Tag : - Src Count : 2 NextHop : Interface : 0x00000003 Cost : 10 Direct Flag : D/L/- ExitIndex : Eth1/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:
Use undo ipv6 default-route-advertise to disable generating a default route. 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.
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 satisfying 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 a basic or advanced 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.
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.
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. Views IS-IS view Default command level 2: System level Parameters acl6-number: Specifies a basic or advanced IPv6 ACL by its number in the range of 2000 to 3999 to filter routes when they are leaking from Level-2 to Level-1.
Parameters number: Specifies the maximum number of redistributed Level 1/Level 2 IPv6 routes.
[Sysname] isis 100 [Sysname-isis-100] ipv6 maximum load-balancing 2 ipv6 preference Use ipv6 preference to configure the preference for IPv6 IS-IS. Use undo ipv6 preference to restore the default. 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.
Views IS-IS view Default command level 2: System level Parameters ipv6-prefix: Specifies an IPv6 prefix of the summary route. prefix-length: Specifies the length of the IPv6 prefix, in the range of 0 to 128. 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.
system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] isis ipv6 bfd enable isis ipv6 enable Use isis ipv6 enable to enable IPv6 for an IS-IS process on an interface. Use undo isis ipv6 enable to disable the configuration. 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.
Views IS-IS view Default command level 2: System level 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.
system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] balance 2 Related commands display bgp ipv6 routing-table bestroute as-path-neglect (IPv6 address family view) Use bestroute as-path-neglect to configure the IPv6 BGP router to not evaluate the AS_PATH during best route selection. Use undo bestroute as-path-neglect to configure the IPv6 BGP router to use the AS_PATH during best route selection.
Default command level 2: System level Usage guidelines After the bestroute compare-med command is executed, the balance command does not take effect. Examples # Compare the MED for paths from an AS for selecting the best route.
Syntax compare-different-as-med undo compare-different-as-med Default The comparison is disabled. Views IPv6 address family view Default command level 2: System level Usage guidelines If several paths are available for one destination, the path with the smallest MED value is selected. Do not use this command unless associated ASs adopt the same IGP protocol and routing selection method. Examples # Enable to compare the MED for paths from peers in different ASs.
reuse: Specifies the reuse threshold value for suppressed routes, in the range of 1 to 20000. Penalty value of a suppressed route decreasing under the value is reused. By default, its value is 750. suppress: Specifies the suppression threshold in the range of 1 to 20000, which should be bigger than the reuse value. Routes with a penalty value bigger than the threshold are suppressed. By default, it is 2000. ceiling: Specifies the ceiling penalty value in the range of 1001 to 20000.
Usage guidelines Use this command to affect IPv6 BGP route selection. Examples # Two devices A and B in the same AS are connected to another AS. Change the local preference of B from default value 100 to 180, making the route passing B preferred. system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] default local-preference 180 default med (IPv6 address family view/IPv6 BGP-VPN instance view) Use default med to specify the default MED value.
default-route imported (IPv6 address family view/IPv6 BGP-VPN instance view) Use default-route imported to enable the redistribution of default route into the IPv6 BGP routing table. Use undo default-route imported to disable the redistribution. Syntax default-route imported undo default-route imported Default The redistribution is not enabled.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines If no ipv6-group-name is specified, information about all peer groups is displayed. Examples # Display information about the IPv6 peer group aaa.
Field Description Negotiated: send Negotiation result: The local BGP router can send Router-refresh messages carrying the ORF information, and the peer can receive Router-refresh messages carrying the ORF information. If receive is displayed, the local BGP router can receive Router-refresh messages carrying the ORF information, and the peer can send Router-refresh messages carrying the ORF information. This field is not displayed if neither the send nor the receive capability is supported.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # Display IPv6 routes advertised with the network command. display bgp ipv6 network BGP Local Router ID is 1.1.1.2. Local AS Number is 200. Network Prefix 2002:: 64 2001:: 64 Route-policy Short-cut Short-cut Table 93 Command output Field Description Network Network address. Prefix Prefix length. Route-policy Routing policy.
Examples # Display IPv6 BGP path information. display bgp ipv6 paths Address Hash Refcount 0x5917098 1 1 MED 0 Path/Origin i 0x59171D0 9 2 0 100i Table 94 Command output Field Description Address Route destination address in local database, in dotted hexadecimal notation. Hash Hash index. Refcount Count of routes that used the path. MED MED of the path. Path AS_PATH attribute of the path, recording the ASs it has passed, for avoiding routing loops.
|: 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.
BGP version 4, remote router ID 45.1.1.
Local: both Negotiated: send Peer Preferred Value: 0 IPsec policy name: policy001, SPI: 300 Routing policy configured: No routing policy is configured Table 96 Command output Field Description BGP connection type: Type • EBGP. • IBGP. Up for Lasting time of a BGP connection. Peer optional capabilities: Peer support bgp multi-protocol extended Peer support bgp route refresh capability Optional capabilities supported by the BGP peer: • Multi-protocol extension for BGP. • Route-refresh feature.
Field Description Peer Preferred Value Preferred value assigned to routes received from the peer. IPsec policy name: policy001, SPI: 300 IPsec policy applied to the peer and SPI of the IPsec policy. BFD Indicates whether BFD is enabled over the link to the IPv6 BGP peer. # Display the log information for the IPv6 peer 20::21.
Views Any view Default command level 1: Monitor level Parameters ip-address: Specifies the IP address of a BGP peer. ipv6-address: Specifies the IPv6 address of a BGP peer. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
Views Any view Default command level 1: Monitor level Parameters ipv6-address: Specifies the destination IPv6 address. prefix-length: Specifies the prefix length of the IPv6 address, in the range of 0 to 128. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
Field Description Status codes: Status codes • • • • • • • • * – valid—Valid route. ^ - VPNv4 best—Best VPNv4 route. > – best—Best route. d – damped—Dampened route. h – history—History route. i – internal—Internal route. s –suppressed—Suppressed route. S – Stale—Stale route. Origin attributes: Origin • i – IGP—Originated in the AS. • e – EGP—Learned through EGP. • ? – incomplete—Learned by other means. Network Destination network address. PrefixLen Prefix length. NextHop Next hop.
Parameters as-path-acl-number: Specifies the number of an AS path ACL permitted by which to display routing information, in the range of 1 to 256. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
no-export: Displays IPv6 BGP routes that cannot be advertised out of the AS; if a confederation exists, it displays IPv6 BGP routes that cannot be advertised out of the confederation, but can be advertised to other sub ASs in the confederation. no-export-subconfed: Displays IPv6 BGP routes that cannot be advertised out of the AS or to other sub ASs if a confederation is configured. whole-match: Displays the IPv6 BGP routes exactly matching the specified community attribute.
comm-list-name: Specifies a community list name, a string of 1 to 31 characters (not all are numbers). whole-match: Displays routes exactly matching the specified basic-community-list-number. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
Examples # Display IPv6 BGP dampened routes. display bgp ipv6 routing-table dampened BGP Local router ID is 1.1.1.1 Status codes: * - valid, ^ - VPNv4 best, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? - incomplete *d Network : 111:: PrefixLen : 64 From Reuse : 122::1 : 00:29:34 Path/Ogn: 200? Table 100 Command output Field Description From Source IP address of a route. Reuse Time for reuse.
Maximum Suppress Time(in second) : 950 Ceiling Value : 3000 Reuse Value : 1000 Reach HalfLife Time(in second) : 600 Unreach HalfLife Time(in second) : 600 Suppress-Limit : 2000 Table 101 Command output Field Description Maximum Suppress Time Maximum suppress time. Ceiling Value Upper limit of penalty value. Reuse Value Reuse value. Reach HalfLife Time(in second) Half-life time of active routes. Unreach HalfLife Time(in second) Half-life time of inactive routes.
Status codes: * - valid, ^ - VPNv4 best, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? - incomplete *> Network : 222:: PrefixLen : 64 NextHop : 122::2 LocPrf : PrefVal : 0 Label : NULL MED : 0 Path/Ogn: 100 ? For description of the fields, see Table 99. display bgp ipv6 routing-table flap-info Use display bgp ipv6 routing-table flap-info to display IPv6 BGP route flap statistics.
Status codes: * - valid, ^ - VPNv4 best, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? - incomplete *d Network : 111:: PrefixLen : 64 From : 122::1 Flaps : 3 Reuse : 00:16:36 Duration : 00:13:47 Path/Ogn : 200? Table 102 Command output Field Description Flaps Number of flaps. Duration Flap duration. Reuse Reuse time of the route. For description of the fields, see Table 99.
Table 103 Command output Field Description Network Network address. Prefix Prefix length. NextHop Next hop. In/Out Label MPLS incoming/outgoing label information. display bgp ipv6 routing-table peer Use display bgp ipv6 routing-table peer to display the routing information advertised to or received from the specified IPv4 or IPv6 BGP peer.
BGP Local router ID is 20.20.20.1 Status codes: * - valid, ^ - VPNv4 best, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? - incomplete *> Network : 20:20:: PrefixLen : 64 NextHop : 20:20::20:1 LocPrf : PrefVal : 0 Label : NULL MED : 0 Path/Ogn: i *> Network : 40:40:: PrefixLen : 64 NextHop : 30:30::30:1 LocPrf : PrefVal : 0 Label : NULL MED : 0 Path/Ogn: 300 i For description of the fields, see Table 99.
For description of the fields, see Table 99. display bgp ipv6 routing-table statistic Use display bgp ipv6 routing-table statistic to display IPv6 BGP routing statistics. Syntax display bgp ipv6 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.
Parameters acl6-number: Specifies the number of an ACL6 used to match against the destination of routing information. The number is in the range of 2000 to 3999. ipv6-prefix-name: Specifies the name of an IPv6 prefix list used to match against the destination of routing information. The name is a string of 1 to 19 characters. protocol: Filters routes redistributed from the routing protocol. It can be direct, isisv6, ospfv3, ripng, or static.
Syntax filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } import undo filter-policy import Default No inbound routing information is filtered. Views IPv6 address family view, IPv6 BGP-VPN instance view Default command level 2: System level Parameters acl6-number: Specifies the number of an IPv6 ACL used to match against the destination address field of routing information, in the range of 2000 to 3999.
group (IPv6 address family view) Use group to create a peer group. Use undo group to delete a peer group. Syntax group ipv6-group-name [ internal | external ] undo group ipv6-group-name Views IPv6 address family view Default command level 2: System level Parameters ipv6-group-name: Specifies the name of an IPv6 peer group, a string of 1 to 47 characters. internal: Creates an IBGP peer group. external: Creates an EBGP peer group, which can be a group of another sub AS in the confederation.
Default command level 2: System level Parameters protocol: Redistributes routes from the specified protocol, which can be direct, isisv6, ospfv3, ripng and static. process-id: Specifies the process ID in the range of 1 to 65535. The default is 1. It is available only when the protocol is isisv6, ospfv3 or ripng. med-value: Applies the MED value to redistributed routes. The value is in the range of 0 to 4294967295.
Examples # Enter IPv6 address family view. system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] # Enter IPv6 BGP-VPN instance view. system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family vpn-instance vpn1 [Sysname-bgp-ipv6-vpn1] network (IPv6 address family view/IPv6 BGP-VPN instance view) Use network to advertise a network to the IPv6 BGP routing table. Use undo network to remove an entry from the IPv6 BGP routing table.
[Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] network 2002:: 16 peer advertise-community (IPv6 address family view) Use peer advertise-community to advertise the community attribute to a peer or peer group. Use undo peer advertise-community to remove the configuration. Syntax peer { group-name | ipv4-address | ipv6-address } advertise-community undo peer { group-name | ipv4-address | ipv6-address } advertise-community Default No community attribute is advertised to any peer group/peer.
Default command level 2: System level Parameters group-name: Specifies the name of an IPv4 or IPv6 peer group, a string of 1 to 47 characters. ipv4-address: Specifies the IPv4 address of a peer. ipv6-address: Specifies the IPv6 address of a peer. Examples # Advertise the extended community attribute to the peer 1:2::3:4.
peer as-number (IPv6 address family view) Use peer as-number to configure an IPv6 peer or peer group. Use undo peer ipv6-group-name as-number to delete an IPv6 peer group. Use undo peer ipv6-address to delete a peer. Syntax peer { ipv6-group-name | ipv6-address } as-number as-number undo peer ipv6-group-name as-number undo peer ipv6-address Views IPv6 address family view Default command level 2: System level Parameters ipv6-group-name: Specifies the name of a peer group, a string of 1 to 47 characters.
as-number: Specifies the AS number of the peer or peer group, in the range of 1 to 4294967295. Examples # Configure peer 2001::1 in AS 200. system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family vpn-instance vpn1 [Sysname-bgp-ipv6-vpn1] peer 2001::1 as-number 200 peer as-path-acl (IPv6 address family view) Use peer as-path-acl to specify an AS path ACL to filter routes incoming from or outgoing to a peer or peer group. Use undo peer as-path-acl to remove the configuration.
peer bfd (IPv6 address family view/IPv6 BGP-VPN instance view) Use peer bfd to enable BFD over the link to a BGP peer. Use undo peer bfd to restore the default. Syntax peer ipv6-address bfd undo peer ipv6-address bfd Default BFD is not enabled for any BGP peer. Views IPv6 address family view, IPv6 BGP-VPN instance view Default command level 2: System level Parameters ipv6-address: Specifies the IPv6 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. ipv6-address: Specifies the IPv6 address of a peer. both: Supports sending and receiving route-refresh messages carrying the ORF information. receive: Supports receiving route-refresh messages carrying the ORF information. send: Supports sending route-refresh messages carrying the ORF information.
peer capability-advertise orf non-standard (IPv6 address family view) Use peer capability-advertise orf non-standard to enable the non-standard ORF capability (the early implementation of ORF is different from that defined in RFC) for a BGP peer or peer group. Use undo peer capability-advertise orf non-standard to disable the non-standard ORF capability for the BGP peer or peer group.
undo peer { ipv6-group-name | ipv6-address } capability-advertise route-refresh Default Route-refresh is enabled. Views IPv6 address family view Default command level 2: System level Parameters ipv6-group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ipv6-address: Specifies the IPv6 address of a peer. Examples # Disable route-refresh of peer 1:2::3:4.
Examples # In IPv6 address family view, enable 4-byte AS number suppression for peer 2001::1. system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] peer 2001::1 as-number 200 [Sysname-bgp-af-ipv6] peer 2001::1 capability-advertise suppress-4-byte-as peer capability-advertise suppress-4-byte-as (IPv6 BGP-VPN instance view) Use peer capability-advertise suppress-4-byte-as to enable 4-byte AS number suppression.
peer connect-interface (IPv6 address family view) Use peer connect-interface to specify the source interface for establishing TCP connections to an IPv6 BGP peer or peer group. Use undo peer connect-interface to restore the default.
undo peer { group-name | ipv4-address | ipv6-address } default-route-advertise Default No default route is advertised to a peer or peer group. Views IPv6 address family view Default command level 2: System level Parameters group-name: Specifies the name of an IPv4 or IPv6 peer group, a string of 1 to 47 characters. ipv4-address: Specifies the IPv4 address of a peer. ipv6-address: Specifies the IPv6 address of a peer.
ipv6-address: Specifies the IPv6 address of a peer. description-text: Specifies the description information for the peer or peer group, a string of 1 to 79 characters. Usage guidelines You need create a peer or peer group before configuring a description for it. Examples # Configure the description for the peer group test as ISP1.
[Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] group test external [Sysname-bgp-af-ipv6] peer test ebgp-max-hop peer enable (IPv6 address family view) Use peer enable to enable an IPv4 peer or peer group. Use undo peer enable to disable an IPv4 peer or peer group. Syntax peer { ipv4-group-name | ipv4-address | ipv6-address } enable undo peer { ipv4-group-name | ipv4-address | ipv6-address } enable Default No IPv4 peer or peer group is enabled.
Syntax peer { ipv6-group-name | ipv6-address } fake-as as-number undo peer { ipv6-group-name | ipv6-address } fake-as Default No fake local AS number is configured for a peer or peer group. Views IPv6 address family view Default command level 2: System level Parameters ipv6-group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ipv6-address: Specifies the IPv6 address of a peer. as-number: Specifies the local AS number in the range of 1 to 4294967295.
acl6-number: Specifies the IPv6 ACL number in the range of 2000 to 3999. import: Applies the filter-policy to routes received from the peer or peer group. export: Applies the filter-policy to routes advertised to the peer or peer group. Examples # Apply the ACL6 2000 to filter routes advertised to the peer 1:2::3:4.
peer ignore (IPv6 address family view) Use peer ignore to terminate the session to a peer or peer group. Use undo peer ignore to remove the configuration. Syntax peer { ipv6-group-name | ipv6-address } ignore undo peer { ipv6-group-name | ipv6-address } ignore Default A router can establish sessions with a peer or peer group. Views IPv6 address family view Default command level 2: System level Parameters ipv6-group-name: Specifies the name of a peer group, a string of 1 to 47 characters.
Default command level 2: System level Parameters group-name: Specifies the name of an IPv4 or IPv6 peer group, a string of 1 to 47 characters. ipv4-address: Specifies the IPv4 address of a peer. ipv6-address: Specifies the IPv6 address of a peer. ipv6-prefix-name: Specifies the IPv6 prefix list name, a string of 1 to 19 characters. import: Applies the filtering policy to routes received from the specified peer or peer group.
Examples # Apply IPsec policy policy001 to IPv6 BGP peer 1212::1111.
Default The feature is disabled. Views IPv6 address family view Default command level 2: System level Parameters ipv4-group-name: Specifies the name of an IPv4 peer group, a string of 1 to 47 characters. An IPv4 peer group must be created successfully in BGP view before being activated here. ipv4-address: Specifies the IPv4 address of a peer. Examples # Enable exchange of labeled IPv6 routes with peer 2.2.2.2.
[Sysname-bgp-af-ipv6] peer 1:2::3:4 log-change peer next-hop-local (IPv6 address family view) Use peer next-hop-local to configure the next hop of routes advertised to a peer or peer group as the local router. Use undo peer next-hop-local to restore the default.
Default command level 2: System view Parameters group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ipv6-address: Specifies the IPv6 address of a peer. cipher: Specifies a ciphertext password. simple: Specifies a plaintext password. password: Specifies a password, a case-sensitive string of 1 to 137 characters in cipher text, or 1 to 80 characters in plain text.
Default command level 2: System level Parameters ipv6-group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ipv6-address: Specifies the IPv6 address of a peer. value: Specifies the 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.
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. If you both reference a routing policy and use the command peer ipv6-address preferred-value value to set a preferred value for routes from a peer, the routing policy sets the specific preferred value for routes matching it.
[Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] peer 1:2::3:4 public-as-only peer reflect-client (IPv6 address family view) Use peer reflect-client to configure the router as a route reflector and to specify a peer or peer group as a client. Use undo peer reflect-client to remove the configuration.
undo peer { group-name | ipv4-address | ipv6-address } route-limit Default The router has no limit on prefixes from a peer or peer group. Views IPv6 address family view Default command level 2: System level Parameters group-name: Specifies the name of an IPv4 or IPv6 peer group, a string of 1 to 47 characters. ipv4-address: Specifies the IPv4 address of a peer. ipv6-address: Specifies the IPv6 address of a peer.
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. Syntax peer { group-name | ipv4-address | ipv6-address } route-policy route-policy-name { import | export } undo peer { group-name | ipv4-address | ipv6-address } route-policy route-policy-name { import | export } Default No routing policy is specified for the 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 or the peer group. Views IPv6 BGP-VPN instance view Default command level 2: System level Parameters ipv6-address: Specifies the IPv6 address of a peer. route-policy-name: Specifies the name of a routing policy, a string of 1 to 63 characters.
Views IPv6 address family view Default command level 2: System level Parameters ipv6-group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ipv6-address: Specifies the IPv6 address of a peer. interval: Specifies the minimum interval for sending the same update to a peer or a peer group, in the range of 0 to 600 seconds. Examples # Specify the interval for sending the same update to the peer 1:2::3:4 as 10 seconds.
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. Syntax peer { ipv6-group-name | ipv6-address } timer keepalive keepalive hold holdtime undo peer { ipv6-group-name | ipv6-address } timer Default keepalive interval defaults to 60 seconds, and holdtime interval defaults to 180 seconds.
[Sysname-bgp-af-ipv6] group test external [Sysname-bgp-af-ipv6] peer test timer keepalive 0 hold 0 Related commands timer 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.
Use undo reflect between-clients to disable this function. Syntax reflect between-clients 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: Specifies the 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: Specifies a 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 Parameters ipv6-address: Specifies the default next hop IPv6 address. Usage guidelines This command only applies to packets not finding a match in the routing table. You can specify up to five default next hops for per-flow load balancing. With a next hop specified, the undo apply ipv6-address default next-hop command removes the specified default next hop.
Examples # Set a next hop of 1::1 for IPv6 packets. system-view [Sysname] ipv6 policy-based-route aa permit node 11 [Sysname-pbr6-aa-11] apply ipv6-address next-hop 1::1 apply ipv6-precedence Use apply ipv6-precedence to set a preference or preference type for IPv6 packets. Use undo apply ipv6-precedence to remove the configuration.
Use undo apply output-interface to remove the configuration. Syntax apply output-interface interface-type interface-number undo apply output-interface [ interface-type interface-number ] Views IPv6 policy node view Default command level 2: System level Parameters interface-type interface-number: Specifies an interface by its type and number. Usage guidelines Five output interfaces at most can be specified for per-flow load sharing. A specified output interface must be P2P type.
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 policy name is specified, this command displays information about all policies. If a policy name is specified, this command displays information about the specified policy. Examples # Display all IPv6 policy information.
include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # Display IPv6 PBR configuration for policy test. display ipv6 policy-based-route setup test policy Name interface test local # Display IPv6 PBR configuration on Ethernet 1/1.
Syntax display ipv6 policy-based-route statistics { interface interface-type interface-number | local } [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters interface interface-type interface-number: Displays IPv6 PBR statistics on the specified interface. local: Displays IPv6 local PBR statistics. |: Filters command output by specifying a regular expression.
if-match acl6 Use if-match acl6 to configure an ACL match criterion. Use undo if-match acl6 to remove the ACL match criterion. 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 that of an advanced IPv6 ACL is 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 Ethernet 1/1.
Syntax reset ipv6 policy-based-route statistics [ policy-name ] 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.
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 A auto-cost enable,134 abr-summary (OSPF area view),66 B abr-summary (OSPFv3 area view),349 balance (BGP/BGP-VPN instance view),200 aggregate,199 balance (IPv6 address family view/IPv6 BGP-VPN instance view),411 aggregate (IPv6 address family view),410 bandwidth-based-sharing,1 apply access-vpn vpn-instance,312 bandwidth-reference,350 apply as-path,280 bandwidth-reference (IS-IS view),135 apply comm-list delete,280 apply community,281 bandwidth-reference (OSPF view),
default cost,351 display bgp peer received ip-prefix,217 default cost (RIP view),33 display bgp routing-table,218 default cost (RIPng view),329 display bgp routing-table as-path-acl,220 default ipv4-unicast,208 display bgp routing-table cidr,221 default local-preference (BGP/BGP-VPN instance view),209 display bgp routing-table community,222 display bgp routing-table community-list,223 default local-preference (IPv6 address family view/IPv6 BGP-VPN instance view),415 display bgp routing-table damp
display route-policy,292 display isis mesh-group,148 display isis name-table,149 display router id,231 display isis peer,150 display router id,97 display isis route,153 Documents,492 display isis route ipv6,396 domain-authentication-mode,160 display isis spf-log,156 E display isis statistics,157 ebgp-interface-sensitive,231 display load-sharing ip address,23 enable ipsec-policy (OSPFv3 area view),375 display ospf abr-asbr,74 enable ipsec-policy (RIPng view),335 display ospf asbr-summary,75
H ipv6 enable,399 host-advertise,103 ipv6 filter-policy export,400 ipv6 filter-policy import,401 host-route,44 ipv6 import-route,402 I ipv6 import-route isisv6 level-2 into level-1,403 if-match acl,304 ipv6 import-route limit,404 if-match acl,321 ipv6 local policy-based-route,489 if-match acl6,488 ipv6 maximum load-balancing,405 if-match as-path,293 ipv6 policy-based-route (interface view),489 if-match community,294 ipv6 policy-based-route (system view),490 if-match cost,295 ipv6 preferen
ospfv3 cost,383 log-peer-change,380 log-peer-change (IS-IS view),185 ospfv3 dr-priority,384 lsa-arrival-interval,106 ospfv3 ipsec-policy,384 lsa-generation-interval,107 ospfv3 mtu-ignore,385 lsdb-overflow-limit,108 ospfv3 network-type,385 lsp-fragments-extend,186 ospfv3 peer,386 lsp-length originate,187 ospfv3 timer dead,387 lsp-length receive,187 ospfv3 timer hello,388 M ospfv3 timer poll,389 ospfv3 timer retransmit,388 maximum load-balancing (IS-IS view),188 ospfv3 trans-delay,389 maxim
peer reflect-client (BGP/BGP-VPN instance view),264 peer capability-advertise suppress-4-byte-as (IPv6 BGP-VPN instance view),452 peer reflect-client (IPv6 address family view),467 peer connect-interface (BGP/BGP-VPN instance view),251 peer route-limit (BGP/BGP-VPN instance view),265 peer route-limit (IPv6 address family view),467 peer connect-interface (IPv6 address family view),453 peer route-policy (BGP/BGP-VPN instance view),267 peer default-route-advertise,453 peer route-policy (IPv6 address fa
reset ipv6 routing-table statistics,26 router-id,276 reset isis all,191 router-id,391 reset isis peer,191 S reset load-sharing statistics,27 set-overload,192 reset ospf counters,123 silent-interface (OSPF view),126 reset ospf process,123 silent-interface (RIP view),60 reset ospf redistribution,124 silent-interface(OSPFv3 view),392 reset policy-based-route statistics,324 snmp-agent trap enable ospf,127 reset rip process,49 spf timers,392 reset rip statistics,49 spf-schedule-interval,128 r