Page 2
SecPro, SecPoint, SecEngine, SecPath, Comware, Secware, Storware, NQA, VVG, V G, V G, PSPT, XGbus, N-Bus, TiGem, InnoVision and HUASAN are trademarks of Hangzhou H3C Technologies Co., Ltd. All other trademarks that may be mentioned in this manual are the property of their respective owners Notice The information in this document is subject to change without notice.
Page 3
Preface The H3C S5800&S5820X documentation set includes 12 command references, which describe the commands and command syntax options for the S5800&S5820X Release1211. The Layer 3—IP Routing Command Reference describes routing configuration commands. This preface includes: Audience • Added and modified commands •...
Page 4
Command reference Added and modified commands Modified commands: ospfv3—added the vpn-instance keyword Added commands: isis ipv6 bfd enable IPv6 IS-IS configuration Modified commands: display isis route ipv6—added the vpn-instance commands keyword Added commands: • Added support for the IPv6 BGP-VPN instance view •...
Page 5
An alert that calls attention to essential information. IMPORTANT An alert that contains additional or supplementary information. NOTE An alert that provides helpful information. About the H3C S5800&S5820X documentation set The H3C S5800&S5820X documentation set includes: Category Documents Purposes Describe product specifications and benefits.
Page 6
Interface Cards User available for the products. Manual Describes the benefits, features, hardware H3C OAP Cards User specifications, installation, and removal of the OAP Manual cards available for the products. H3C Low End Series...
Obtaining documentation You can access the most up-to-date H3C product documentation on the World Wide Web at http://www.h3c.com. Click the links on the top navigation bar to obtain different categories of product documentation:...
– Provides information about products and technologies, as well as solutions. [Technical Support & Documents > Software Download] – Provides the documentation released with the software version. Technical support customer_service@h3c.com http://www.h3c.com Documentation feedback You can e-mail your comments about product documentation to info@h3c.com. We appreciate your comments.
IP routing basics configuration commands NOTE: router The term in this document refers to both routers and Layer 3 switches. • The interfaces in routing refer to Layer 3 interfaces, including VLAN interfaces and Layer 3 Ethernet • interfaces. Layer 3 Ethernet interfaces refer to Ethernet interfaces operating in route mode. For more Layer 2—LAN Switching information about the operating mode of the Ethernet interface, see the Configuration Guide.
Page 20
This command displays detailed information about all active and inactive routes, including the statistics of the entire routing table and information for each route. Examples # Display brief information about active routes in the routing table. <Sysname> display ip routing-table Routing Tables: Public Destinations : 7 Routes : 7...
Page 22
Destination: 192.168.0.1/32 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 NextHop: 127.0.0.1 Interface: InLoopBack0 BkNextHop: 0.0.0.0 BkInterface: RelyNextHop: 0.0.0.0 Neighbor : 0.0.0.0 Tunnel ID: 0x0 Label: NULL State: Active NoAdv Age: 06h46m35s Tag: 0 Displayed first are statistics for the whole routing table, followed by detailed description of each route (in sequence).
Field Description The route is not advertised when the router advertises routes based NoAdv on policies. Among routes to a destination, the route with the highest priority is installed into the core routing table and advertised. A NotInstall NotInstall route cannot be installed into the core routing table but can be advertised.
Page 24
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, which is a case sensitive string of 1 to 256 characters. Description Use the display ip routing-table acl command to display information about routes permitted by a specified basic ACL.
Page 25
Destination: 10.1.1.2/32 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 NextHop: 127.0.0.1 Interface: InLoopBack0 RelyNextHop: 0.0.0.0 Neighbour: 0.0.0.0 Tunnel ID: 0x0 Label: NULL State: Active NoAdv Age: 1d00h41m34s Tag: 0 Destination: 10.1.2.0/24 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 NextHop: 10.1.2.1 Interface: Vlan-interface12...
display ip routing-table ip-address Syntax display ip routing-table ip-address [ mask | mask-length ] [ longer-match ] [ verbose ] [ | { begin | exclude | include } regular-expression ] display ip routing-table ip-address1 { mask | mask-length } ip-address2 { mask | mask-length } [ verbose ] [ | { begin | exclude | include } regular-expression ] View Any view...
Page 27
The system ANDs the input destination IP address with the subnet mask in each route entry; and ANDs the destination IP address in each route entry with its own subnet mask. If the two operations yield the same result for multiple entries that are active, the one with longest mask length is displayed.
Summary Count : 1 Destination/Mask Proto Cost NextHop Interface 11.1.1.0/24 Static 60 0.0.0.0 NULL0 For detailed description of the output, see Table # Display route entries for destination addresses in the range 1.1.1.0 to 5.5.5.0. <Sysname> display ip routing-table 1.1.1.0 24 5.5.5.0 24 Routing Table : Public Destination/Mask Proto...
Examples # Configure a prefix list named test, permitting routes with a prefix of 2.2.2.0 and a mask length between 24 and 32. <Sysname> system-view [Sysname] ip ip-prefix test permit 2.2.2.0 24 less-equal 32 # Display brief information about active routes permitted by the prefix list test. [Sysname] display ip routing-table ip-prefix test Routes Matched by Prefix list : test Summary Count : 2...
Page 30
Default level 1: Monitor level Parameters protocol: Routing protocol. It can be bgp, direct, isis, ospf, rip, static. 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.
Table 3 Output description Field Description Proto Origin of the routes. route Number of routes from the origin active Number of active routes from the origin Number of routes added into the routing table since the router started up or the routing added table was last cleared deleted...
The system ANDs the input destination IPv6 address with the input prefix length, and ANDs the destination IPv6 address in each route entry with the input prefix length. If the two operations yield the same result for an entry and the entry is active with a prefix length less than or equal to the input prefix length, the entry is displayed.
Default level 1: Monitor level Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public network is displayed. ipv6-address1/ipv6-address2: An IPv6 address range from IPv6 address1 to IPv6 address2. prefix-length1/prefix-length2: Prefix length, in the range 0 to 128.
View Any view Default level 1: Monitor level Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public network is displayed. ipv6-prefix-name: Name of the IPv6 prefix list, in the range 1 to 19 characters. verbose: Displays both active and inactive verbose routing information.
Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public network is displayed. protocol: Displays routes of a routing protocol, which can be bgp4+, direct, isisv6, ospfv3, ripng and static.
Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public network is displayed. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.
Page 40
Default level 1: Monitor level Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters. If no VPN is specified, the information of the public network is displayed. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.
Field Description State of the route, Active, Inactive, Adv (advertised), or NoAdv (not State advertised) Cost Cost of the route Tunnel ID Tunnel ID Label Label Time that has elapsed since the route was generated display router id Syntax display router id [ | { begin | exclude | include } regular-expression ] View Any view Default level...
Parameters router-id: Router ID, expressed as an IPv4 address. Description Use the router id command to configure a router ID. Use the undo router id command to remove the router ID. By default, no router ID is configured. Some routing protocols use a router ID to identify a routing device. A route ID is selected in the following sequence: •...
Description Use the reset ip routing-table statistics protocol command to clear routing statistics for the routing table or VPN routing table. Examples # Clear routing statistics for the VPN instance Sysname1. <Sysname> reset ip routing-table statistics protocol vpn-instance Sysname1 all reset ipv6 routing-table statistics Syntax reset ipv6 routing-table statistics protocol [ vpn-instance vpn-instance-name ] { protocol | all }...
Static routing configuration commands NOTE: router The term in this document refers to both routers and Layer 3 switches. delete static-routes all Syntax delete [ vpn-instance vpn-instance-name ] static-routes all View System view Default level 2: System level Parameters vpn-instance-name: Name of a VPN instance, a string of 1 to 31 case-sensitive characters. Description Use the delete static-routes all command to delete all static routes.
Page 46
track track-entry-number: Associates the static route with a track entry. Use the track-entry-number argument to specify a track entry number, in the range 1 to 1024. Description Use the ip route-static command to configure a unicast static route. Use the undo ip route-static command to delete a unicast static route. When configuring a unicast static route, follow these guidelines: If the destination IP address and the mask are both 0.0.0.0 (or 0), the configured route is a default route.
# 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. <Sysname> system-view [Sysname] ip route-static vpn-instance vpn1 1.1.1.1 16 vpn-instance vpn1 1.1.1.2 # Configure a static route: the destination address is 1.1.1.1/24, the output interface is Vlan-interface 1, and the next hop address is 2.2.2.2, and enable BFD with the echo packet mode.
Page 48
Parameters vpn-instance vpn-instance-name: Specifies a VPN instance to configure FRR for all matching static routes in it. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. route-policy route-policy-name: References a routing policy. The route-policy-name argument is a string of 1 to 63 characters.
RIP configuration commands NOTE: router The term in this document refers to both routers and Layer 3 switches. checkzero Syntax checkzero undo checkzero View RIP view Default level 2: System level Parameters None Description Use the checkzero command to enable zero field check on RIPv1 messages. Use the undo checkzero command to disable zero field check.
Parameters value: Default metric of redistributed routes, in the range of 0 to 16. Description Use the default cost command to configure the default metric for redistributed routes. Use the undo default cost command to restore the default. By default, the default metric of redistributed routes is 0. 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.
[Sysname] rip 100 [Sysname-rip-100] default-route only cost 2 display rip Syntax display rip [ process-id | vpn-instance vpn-instance-name ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters process-id: RIP process ID, in the range of 1 to 65535. vpn-instance vpn-instance-name: Specifies a VPN instance name, a string of 1 to 31 case-sensitive characters.
Page 52
TRIP retransmit time : 5 sec(s) TRIP response packets retransmit count : Silent interfaces : None Default routes : Only Default route cost : 3 Verify-source : Enabled Networks : 192.168.1.0 Configured peers : None Triggered updates sent : 0 Number of routes changes : 0 Number of replies to queries : 0 Table 7 Output description...
Field Description Indicates whether a default route is sent to RIP neighbors • only means only a default route is advertised. Default routes • originate means a default route is advertised along with other routes. • disable means no default route is advertised. Default route cost Cost of the default route Indicates whether the source IP address is checked on...
11.0.0.0/8, cost 1, ClassfulSumm 11.0.0.0/24, cost 1, nexthop 10.0.0.1, Imported Table 8 Output description Field Description X.X.X.X/X Destination address and subnet mask cost Cost of the route classful-summ Indicates the route is a RIP summary route. Nexthop Address of the next hop Rip-interface Routes learned from a RIP–enabled interface imported...
MetricOut:5 MetricOut route policy:234 Split-horizon/Poison-reverse:on/off Input/Output:on/on Default route:off Current packets number/Maximum packets number:234/2000 Table 9 Output description Field Description Interface-name The name of an interface running RIP Address/Mask IP address and mask of the interface Version RIP version running on the interface Additional routing metric added to the incoming MetricIn routes...
Page 56
Parameters process-id: RIP process ID, in the range of 1 to 65535. ip-address { mask | mask-length }: Displays route information about a specified IP address. peer ip-address: Displays all routing information learned from a specified neighbor. statistics: Displays the route statistics, including total number of routes and number of routes of each neighbor.
# Display the routing statistics of RIP process 1. <Sysname> display rip 1 route statistics Peer Aging Permanent Garbage 111.1.1.2 Total Table 11 Output description 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...
NOTE: If you want to reference an advanced ACL (with a number from 3000 to 3999) in the command, the ACL rule-id sour-addr sour-wildcard should be configured with the rule [ ] { deny | permit } ip source rule-id command to deny/permit a route with the specified destination, or with the rule [ ] { deny | sour-addr sour-wildcard...
gateway ip-prefix-name: References an IP prefix list to filter routes from the gateway. ip-prefix-name is a string of 1 to 19 characters. interface-type interface-number: Specifies an interface by its interface type and interface number. Description Use the filter-policy import command to configure RIP to filter the incoming routes. Use the undo filter-policy import command to restore the default.
Default level 2: System level Parameters None Description Use the host-route command to enable host route reception. Use the undo host-route command to disable host route reception. By default, receiving host routes is enabled. In some cases, a router may receive many host routes from the same network segment. These routes are not helpful for routing and occupy a large amount of network resources.
tag: Tag marking redistributed routes, in the range of 0 to 65,535. The default is 0. route-policy route-policy-name: Specifies a routing policy with 1 to 63 characters. Description Use the import-route command to enable route redistribution from another routing protocol. Use the undo import-route command to disable route redistribution.
<Sysname> system-view [Sysname] rip [Sysname-rip-1] maximum load-balancing 2 network Syntax network network-address undo network network-address View RIP view Default level 2: System level Parameters network-address: IP address of a network segment, which can be the IP network address of any interface. Description Use the network command to enable RIP on the interface attached to the specified network.
Parameters time: RIP packet sending interval, in milliseconds. It is in the range 10 to 100. count: Maximum number of RIP packets sent at each interval. It is in the range 1 to 20. Description Use the output-delay command to configure the maximum RIP packets that can be sent at the specified interval for all interfaces under the RIP process.
preference Syntax preference [ route-policy route-policy-name ] value undo preference [ route-policy ] View RIP view Default level 2: System level Parameters route-policy-name: Routing policy name with 1 to 63 characters. value: Preference for RIP routes, in the range of 1 to 255. The smaller the value, the higher the preference. Description Use the preference command to specify the preference for RIP routes.
After executing the command, you are prompted whether you want to reset the RIP process. Examples # Reset RIP process 100. <Sysname> reset rip 100 process Warning : Reset RIP process? [Y/N]:Y reset rip statistics Syntax reset rip process-id statistics View User view Default level...
NOTE: If no VPN instance is specified, the RIP process will run under public network instance. • You must create a VPN instance before you apply a RIP process to it. For related configuration, see the • ip vpn-instance command. You must enable the RIP process before configuring the global parameters.
Examples # Configure MD5 authentication on VLAN-interface 10 with the key string being rose in the format defined in RFC 2453. <Sysname> system-view [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] rip version 2 [Sysname-Vlan-interface10] rip authentication-mode md5 rfc2453 rose rip bfd enable Syntax rip bfd enable undo rip bfd enable...
View Interface view Default level 2: System level Parameters only: Advertises only a default route. originate: Advertises a default route and other routes. cost: Cost of the default route, in the range 1 to 15. The default is 1. no-originate: Advertises routes other than a default route. Description Use the rip default-route command to configure the RIP interface to advertise a default route with the specified metric.
[Sysname-route-policy] if-match ip-prefix 123 [Sysname-route-policy] apply cost 6 [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] rip metricin route-policy abc 2 rip metricout Syntax rip metricout [ route-policy route-policy-name ] value undo rip metricout View Interface view Parameters route-policy route-policy-name: Specifies the name of a routing policy used to add an additional metric for the routes matching it.
rip mib-binding Syntax rip mib-binding process-id undo rip mib-binding View System view Default level 2: System level Parameters process-id: RIP process ID, in the range of 1 to 65535. Description Use the rip mib-binding command to bind MIB operations with a specified RIP process, so that the RIP process can receive SNMP requests.
Use the undo rip split-horizon command to disable the split horizon function. The split horizon function is enabled by default. The split horizon function is necessary for preventing routing loops. To disable it in special cases, make sure it is necessary. NOTE: Only the poison reverse function takes effect if both the split horizon and poison reverse functions are enabled.
Parameters None Description Use the summary command to enable automatic RIPv2 summarization. Natural masks are used to advertise summary routes so as to reduce the size of routing tables. Use the undo summary command to disable automatic RIPv2 summarization so that all subnet routes can be broadcast.
Use the undo validate-source-address command to disable the source IP address validation. The source IP address validation is enabled by default. Typically H3C does not recommend disabling the validation. Examples # Disable the source IP address validation on incoming RIP routing updates.
version Syntax version { 1 | 2 } undo version View RIP view Default level 2: System level Parameters 1: Specifies the RIP version as RIPv1. 2: Specifies the RIP version as RIPv2. RIPv2 messages are multicast. Description Use the version command to specify a global RIP version. Use the undo version command to remove the configured global RIP version.
OSPF configuration commands NOTE: MPLS Command Reference See the for OSPF TE related commands and OSPF VPN related commands. • router The term in this document refers to both routers and Layer 3 switches. • abr-summary (OSPF area view) Syntax abr-summary ip-address { mask | mask-length } [ advertise | not-advertise ] [ cost cost ] undo abr-summary ip-address { mask | mask-length } View...
[Sysname-ospf-100-area-0.0.0.1] network 36.42.10.0 0.0.0.255 [Sysname-ospf-100-area-0.0.0.1] network 36.42.110.0 0.0.0.255 [Sysname-ospf-100-area-0.0.0.1] abr-summary 36.42.0.0 255.255.0.0 area (OSPF view) Syntax area area-id undo area area-id View OSPF view Default level 2: System level Parameters area-id: ID of an area, an IP address or a decimal integer in the range 0 to 4294967295 that is translated into the IP address format by the system.
cost cost: Specifies the cost of the summary route, in the range 1 to 16777214. For Type- 1 external routes, the cost defaults to the largest cost among routes that are summarized. For Type-2 external routes, the cost defaults to the largest cost among routes that are summarized plus 1. not-advertise: Disables advertising the summary route.
Default level 2: System level Parameters md5: Specifies the MD5 ciphertext authentication mode. simple: Specifies the simple authentication mode. Description Use the authentication-mode command to specify an authentication mode for the OSPF area. Use the undo authentication-mode command to remove the authentication mode. By default, no authentication mode is configured for an OSPF area.
[Sysname] ospf 100 [Sysname-ospf-100] bandwidth-reference 1000 default Syntax default { cost cost | limit limit | tag tag | type type } * undo default { cost | limit | tag | type } * View OSPF view Default level 2: System level Parameters cost: Specifies the default cost for redistributed routes, in the range 0 to 16777214.
Parameters cost: Specifies a cost for the default route advertised to the Stub or NSSA area, in the range 0 to 16777214. Description Use the default-cost command to configure a cost for the default route advertised to the stub or NSSA area.
cost cost: Specifies a cost for the default route, in the range 0 to 16777214. If no cost is specified, the default cost specified by the default cost command applies.. route-policy route-policy-name: Specifies a routing policy name, a string of 1 to 63 characters. When a default route exists in the routing table and the specified routing policy is matched, the command distributes a default route in a Type-5 LSA into the OSPF routing domain, and the routing policy modifies some values in the Type-5 LSA.
Description Use the description command to configure a description for an OSPF process or area. Use the undo description command to remove the description. No description is configured by default. Use of this command is only for the identification of an OSPF process or area. The description has no special meaning.
OSPF Process 1 with Router ID 192.168.1.2 Routing Table to ABR and ASBR Type Destination Area Cost Nexthop RtType Inter 3.3.3.3 0.0.0.0 3124 10.1.1.2 ASBR Intra 2.2.2.2 0.0.0.0 1562 10.1.1.2 Table 12 Output description Field Description Type of the route to the ABR or ASBR: •...
Page 89
Description Use the display ospf asbr-summary command to display information about the redistributed routes that are summarized. If no OSPF process is specified, related information of all OSPF processes is displayed. If no IP address is specified, information about all summarized redistributed routes will be displayed. Related commands: asbr-summary.
Field Description Type Type of a summarized route Metric Metric of a summarized route display ospf brief Syntax display ospf [ process-id ] brief [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters process-id: OSPF process ID, in the range 1 to 65535.
Page 91
RFC 1583 Compatible Area Count: 1 Nssa Area Count: 1 7/5 translator state: Disabled 7/5 translate stability timer interval: 0 ExChange/Loading Neighbors: 0 Area: 0.0.0.1 (MPLS TE not enabled) Authtype: None Area flag: NSSA SPF Scheduled Count: 5 ExChange/Loading Neighbors: 0 Interface: 192.168.1.2 (Vlan-interface1) Cost: 1 State: DR...
Field Description ASE Route Preference External route priority SPF Computation count SPF computation count of the OSPF process RFC1583 Compatible Compatible with routing rules defined in RFC 1583 Area Count Area number of the current process Nssa Area Count NSSA area number of the current process State of the translator that translates Type-7 LSAs to Type-5 LSAs.
Page 93
Default level 1: Monitor level Parameters process-id: OSPF process ID, in the range 1 to 65535. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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.
Table 15 Output description Field Description IO statistics Statistics about input/output packets and LSAs Type OSPF packet type Input Packets received Output Packets sent Hello Hell packet DB Description Database Description packet Link-State Req Link-State Request packet Link-State Update Link-State Update packet Link-State Ack Link-State Acknowledge packet LSAs originated by this router...
Page 95
Parameters process-id: OSPF process ID, in the range 1 to 65535. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
Field Description OSPF bad virtual link Packets on wrong virtual links OSPF bad authentication type Packets with invalid authentication type OSPF bad authentication key Packets with invalid authentication key OSPF packet too small Packets too small in length OSPF Neighbor state low Packets received in low neighbor state OSPF transmit error Packets with error when being transmitted...
Page 97
all: Displays the OSPF information of all interfaces. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
Field Description Cost Interface cost Router priority The DR on the interface’s network segment The BDR on the interface’s network segment display ospf lsdb Syntax display ospf [ process-id ] lsdb [ brief | [ { asbr | ase | network | nssa | opaque-area | opaque-as | opaque-link | router | summary } [ link-state-id ] ] [ originate-router advertising-router-id | self-originate ] ] [ | { begin | exclude | include } regular-expression ] View...
Page 99
Description Use the display ospf lsdb command to display LSDB information. If no OSPF process is specified, LSDB information of all OSPF processes is displayed. Examples # Display OSPF LSDB information. <Sysname> display ospf lsdb OSPF Process 1 with Router ID 192.168.0.1 Link State Database Area: 0.0.0.0 Type...
View Any view Default level 1: Monitor level Parameters process-id: OSPF process ID, in the range 1 to 65535. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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.
Page 102
View Any view Default level 1: Monitor level Parameters process-id: OSPF process ID, in the range 1 to 65535. verbose: Displays detailed neighbor information. interface-type interface-number: Interface type and interface number. neighbor-id: Neighbor router ID. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.
Page 103
Table 21 Output description Field Description Neighbor information of the interface in the specified area: • areaID: Area to which the neighbor belongs. Area areaID interface IPAddress(InterfaceName)'s neighbors • IPAddress: Interface IP address • InterfaceName: Interface name interface Interface attached with the neighbor Router ID Neighbor router ID Address...
<Sysname> display ospf peer OSPF Process 1 with Router ID 1.1.1.1 Neighbor Brief Information Area: 0.0.0.0 Router ID Address Pri Dead-Time Interface State 1.1.1.2 1.1.1.2 Vlan1 Full/DR Table 22 Output description Field Description Area Neighbor area Router ID Neighbor router ID Address Neighbor interface address Neighboring router priority...
Examples # Display OSPF neighbor statistics. <Sysname> display ospf peer statistics OSPF Process 1 with Router ID 10.3.1.1 Neighbor Statistics Area ID Down Attempt Init 2-Way ExStart Exchange Loading Full Total 0.0.0.0 0.0.0.2 Total Table 23 Output description Field Description Area ID.
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, which is a case sensitive string of 1 to 256 characters. Description Use the display ospf request-queue command to display OSPF request queue information. If no OSPF process is specified, the OSPF request queue information of all OSPF processes is displayed.
Page 107
Parameters process-id: OSPF process ID, in the range 1 to 65535. interface-type interface-number: Interface type and interface number. neighbor-id: Neighbor’s router ID. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
Field Description Cost Cost to destination Type Route type: intra-area, transit, stub, inter-area, type1 external, type2 external. NextHop Next hop address AdvRouter Advertising router Area Area ID Total Nets Total networks Intra Area Total intra-area routes Inter Area Total inter-area routes Total ASE routes NSSA Total NSSA routes...
Cost: 1562 State: P-2-P Type: Virtual Transit Area: 0.0.0.1 Timers: Hello 10 , Dead 40 , Retransmit 5 , Transmit Delay 1 Table 27 Output description Field Description Virtual-link Neighbor-ID ID of the neighbor on the virtual link Neighbor-State Neighbor State: Down, Init, 2-Way, ExStart, Exchange, Loading, Full. Interface IP address and name of the local interface on the virtual link Cost...
<Sysname> system-view [Sysname] ospf 1 [Sysname-ospf-1] enable link-local-signaling [Sysname-ospf-1] enable out-of-band-resynchronization fast-reroute Syntax fast-reroute { auto [ abr-only ] | route-policy route-policy-name } undo fast-reroute View OSPF view Default level 2: System level Parameters auto: Calculates a backup next hop automatically for all routes. abr-only: Selects only the route to the ABR as the backup path.
[Sysname-route-policy] quit [Sysname] ospf 100 [Sysname-ospf-100] fast-reroute route-policy frr filter Syntax filter { acl-number | ip-prefix ip-prefix-name } { export | import } undo filter { export | import } View OSPF area view Default level 2: System level Parameters acl-number: ACL number, in the range 2000 to 3999.
Page 114
View OSPF view Default level 2: System level Parameters acl-number: Number of an ACL used to filter redistributed routes, in the range 2000 to 3999. ip-prefix-name: Name of an IP prefix list used to filter redistributed routes, a string of up to 19 characters. protocol: Specifies a protocol from which to filter redistributed routes.
filter-policy import (OSPF view) Syntax filter-policy { acl-number [ gateway ip-prefix-name ] | gateway ip-prefix-name | ip-prefix ip-prefix-name [ gateway ip-prefix-name ] | route-policy route-policy-name } import undo filter-policy import View OSPF view Default level 2: System level Parameters acl-number: Number of an ACL used to filter incoming routes, in the range 2000 to 3999. gateway ip-prefix-name: Name of an IP address prefix list used to filter routes received from specific neighbors.
graceful-restart interval (OSPF view) Syntax graceful-restart interval interval-value undo graceful-restart interval View OSPF view Default level 2: System level Parameters interval-value: Specifies the Graceful Restart interval, in the range 40 to 1,800 seconds. Description Use the graceful-restart interval command to configure the Graceful Restart interval. Use the undo graceful-restart interval command to restore the default Graceful Restart interval.
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 is an IGP route, such as RIP or STATIC, which has high reliability and whose cost is comparable with the cost of OSPF internal routes.
LSA will be discarded. This feature helps protect routers and bandwidth from being over-consumed due to frequent network changes. H3C recommends that the interval set with the lsa-arrival-interval command is smaller or equal to the initial interval set with the lsa-generation-interval command.
View OSPF view Default level 2: System level Parameters maximum-interval: Maximum LSA generation interval in seconds, in the range 1 to 60. The default is 5. initial-interval: Minimum LSA generation interval in milliseconds, in the range 10 to 60000. The default is 0.
Examples # Specify the upper limit of external LSAs as 400000. <Sysname> system-view [Sysname] ospf 100 [Sysname-ospf-100] lsdb-overflow-limit 400000 maximum load-balancing (OSPF view) Syntax maximum load-balancing maximum undo maximum load-balancing View OSPF view Default level 2: System level Parameters maximum: Maximum number of equal cost routes. The maximum number ranges from 1 to 8. No load balancing is available when the number is set to 1.
intra: Specifies the maximum number of intra-area routes. number: Maximum route number. The maximum and default route numbers vary with devices. Description Use the maximum-routes command to specify the maximum route number of a specified type, inter-area, intra-area or external. Use the undo maximum-routes command to restore the default route maximum value of a specified type.
nssa Syntax nssa default-route-advertise no-import-route no-summary translate-always translator-stability-interval value ] * undo nssa View OSPF area view Default level 2: System level Parameters default-route-advertise: Usable on an NSSA ABR or an ASBR only. If it is configured on an NSSA ABR, the ABR generates a default route in a Type-7 LSA into the NSSA area regardless of whether a default route is configured.
opaque-capability enable Syntax opaque-capability enable undo opaque-capability View OSPF view Default level 2: System level Parameters None Description Use the opaque-capability enable command to enable opaque LSA advertisement and reception. With the command configured, the OSPF device can receive and advertise the Type-9, Type- 1 0 and Type- 1 1 opaque LSAs.
No OSPF process is enabled by default. You can enable multiple OSPF processes on a router and specify different Router IDs for these processes. When using OSPF as the IGP for MPLS VPN implementation, you need to bind the OSPF process with a VPN instance.
Use the undo ospf authentication-mode command to remove specified configuration. By default, no authentication is available on an interface. Interfaces attached to the same network segment must have the same authentication password and mode. This configuration is not supported on the null interface. Related commands: authentication-mode.
Description Use the ospf bfd enable command to enable BFD for link failure detection on an OSPF interface. Use the undo ospf bfd enable command to disable BFD on an OSPF interface. By default, an OSPF interface is not enabled with BFD. Examples # Enable OSPF and BFD on VLAN-interface 1 1.
<Sysname> system-view [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] ospf cost 65 ospf dr-priority Syntax ospf dr-priority priority undo ospf dr-priority View Interface view Default level 2: System level Parameters priority: DR Priority of the interface, in the range 0 to 255. Description Use the ospf dr-priority command to set the priority for DR/BDR election on an interface.
Description Use the ospf mib-binding command to bind an OSPF process to MIB operation for responding to SNMP requests. Use the undo ospf mib-binding command to restore the default. By default, MIB operation is bound to the OSPF process with the smallest process ID. Examples # Bind OSPF process 100 to MIB operation.
ospf network-type Syntax ospf network-type { broadcast | nbma | p2mp [ unicast ] | p2p } undo ospf network-type View Interface view Default 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.
Use the undo ospf timer dead command to restore the default. The dead interval defaults to 40s for Broadcast, P2P interfaces and defaults to 120s for P2MP and NBMA interfaces. If an interface receives no hello packet from a neighbor within the dead interval, the interface considers the neighbor down.
<Sysname> system-view [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] ospf timer hello 20 ospf timer poll Syntax ospf timer poll seconds undo ospf timer poll View Interface view Default level 2: System level Parameters seconds: Poll interval in seconds, in the range 1 to 2147483647. Description Use the ospf timer poll command to set the poll interval on an NBMA interface.
Parameters interval: LSA retransmission interval in seconds, in the range 1 to 3600. Description Use the ospf timer retransmit command to set the LSA retransmission interval on an interface. Use the undo ospf timer retransmit command to restore the default. The interval defaults to 5s.
preference Syntax preference [ ase ] [ route-policy route-policy-name ] value undo preference [ ase ] View OSPF view Default level 2: System level Parameters ase: Sets a preference for ASE routes. If the keyword is not specified, using the command sets a preference for OSPF internal routes.
Parameters process-id: Clears the statistics information of the specified OSPF process, which is in the range 1 to 65535. neighbor: Clears neighbor statistics. interface-type interface-number: Clears the statistics information of the neighbor connected to the specified interface. router-id: Clears the statistics information of the specified neighbor. Description Use the reset ospf counters command to clear OSPF statistics information.
reset ospf redistribution Syntax reset ospf [ process-id ] redistribution View User view Default level 2: System level Parameters process-id: OSPF process ID, in the range 1 to 65535. Description Use the reset ospf redistribution command to restart route redistribution. If no process ID is specified, using the command restarts route redistribution for all OSPF processes.
Parameters process-id: OSPF process ID, in the range 1 to 65535. ifauthfail: Interface authentication failure information. ifcfgerror: Interface configuration error information. ifrxbadpkt: Information about error packets received. ifstatechange: Interface state change information. iftxretransmit: Packet receiving and forwarding information. lsdbapproachoverflow: Information about cases approaching LSDB overflow. lsdboverflow: LSDB overflow information.
Default level 2: System level Parameters maximum-interval: Maximum OSPF route calculation interval in seconds, in the range 1 to 60. minimum-interval: Minimum OSPF route calculation interval in milliseconds, in the range 10 to 60000, which defaults to 0. incremental-interval: Incremental value in milliseconds, in the range 10 to 60000, which defaults to 5000.
No area is stub area by default. To cancel the no-summary configuration on the ABR, execute the stub command again to overwrite it. To configure an area as a stub area, all routers attached to it must be configured with this command. Related commands: default-cost.
Interval at which an interface sends LSU packets, in milliseconds. Its value is in the range 10 to 1000. If the router has a number of OSPF interfaces, H3C recommends increasing this interval to reduce the total numbers of LSU packets sent by the router every second.
Page 146
md5: MD5 authentication. hmac-md5: HMAC-MD5 authentication. simple: Simple authentication. key-id: Key ID for MD5 or HMAC-MD5 authentication, in the range 1 to 255. plain | cipher: Plain or cipher type. If plain is specified, only a plain password can be input, and the password is displayed in plain text upon displaying the configuration file.
IS-IS configuration commands NOTE: router The term in this document refers to both routers and Layer 3 switches. area-authentication-mode Syntax area-authentication-mode { md5 | simple } password [ ip | osi ] undo area-authentication-mode View IS-IS view Default level 2: System level Parameters md5: Specifies the MD5 authentication mode.
View IS-IS view Default level 2: System level Parameters value: Bandwidth reference value in Mbps, ranging from 1 to 2147483648. Description Use the bandwidth-reference command to set the bandwidth reference value for automatic link cost calculation. Use the undo bandwidth-reference command to restore the default. By default, the bandwidth reference value is 100 Mbps.
default-route-advertise (IS-IS view) Syntax default-route-advertise [ route-policy route-policy-name | [ level-1 | level-1-2 | level-2 ] ] * undo default-route-advertise [ route-policy route-policy-name ] View IS-IS view Default level 2: System level Parameters route-policy-name: Specifies the name of a routing policy, a string of 1 to 63 characters. level-1: Advertises a Level- 1 default route.
Page 152
View Any view Default level 1: Monitor level Parameters process-id: Displays IS-IS brief configuration information for the IS-IS process. The process ID is in the range 1 to 65535. vpn-instance vpn-instance-name: Displays IS-IS brief configuration information for the VPN instance. The VPN instance name is a string of 1 to 31 characters.
Field Description 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 number of redistributed maximum imported routes number Level-1/Level-2 IPv4 routes lsp-max-age Maximum life period of LSP Timers lsp-refresh Refresh interval of LSP...
Restart Status: RESTARTING Number of LSPs Awaited: 3 T3 Timer Status: Remaining Time: 140 T2 Timer Status: Remaining Time: 59 Table 29 Output description Field Description Restart Interval Graceful Restart interval SA Bit Supported The SA bit is set Total Number of Interfaces = 1 The current IS-IS interface number Restart Status Graceful Restart status...
Page 156
regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters. Description Use the display isis interface command to display IS-IS interface information. Examples # Display brief IS-IS interface information. <Sysname> display isis interface Interface information for ISIS(1) --------------------------------- Interface: Vlan-interface11 IPV4.State...
Page 157
Interface: Tunnel1 IPv4.State IPv6.State Type Down 16384L1/L2 -- SNPA Address : 0000-0000-0000 IP Address : 10.1.1.4 Secondary IP Address(es) IPv6 Link Local Address IPv6 Global Address(es) Csnp Timer Value Hello Timer Value Hello Multiplier Value Lsp Timer Value Lsp Transmit-Throttle Count : Cost Priority Retransmit Timer Value...
Page 158
Field Description Priority DIS priority Retransmit Timer Value LSP retransmission interval over the point-to-point link Whether BFD is enabled on the interface MPLS TE Status Whether MPLS TE is enabled on the interface INTF L1 TE Status Whether level-1 MPLS TE is enabled on the interface INTF L2 TE Status Whether level-2 MPLS TE is enabled on the interface TE Cost...
Field Description Length LSP length Attach bit (ATT) Partition bit (P) ATT/P/OL Overload bit (OL) 1 means the bit is set and 0 means the bit is not set. SOURCE System ID of the originating router NLPID Network layer protocol the originating router runs AREA ADDR Area address of the originating router INTF ADDR...
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, which is a case sensitive string of 1 to 256 characters. Description Use the display isis mesh-group command to display IS-IS mesh-group configuration information.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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.
Page 164
verbose: Displays detailed IS-IS neighbor information. Without the keyword, the command displays brief IS-IS neighbor information. process-id: Displays the IS-IS neighbor information of the IS-IS process. The ID is in the range of 1 to 65535. vpn-instance-name: Displays the IS-IS neighbor information of the VPN instance. The vpn-instance-name is a string of 1 to 31 characters.
Page 165
Interface: Vlan-interface11 Circuit Id: 1111.1111.1112.01 State: Up HoldTime: 28s Type: L2(L1L2) PRI: 64 Area Address(es):10 Peer IP Address(es): 3.1.1.2 Uptime: 00:38:15 Adj Protocol: IPV4 Table 35 Output description Field Description System Id System ID of the neighbor Interface Interface connecting to the neighbor Circuit Id Circuit ID State...
Table 36 Output description Field Description Neighbor type: • LAN Level- 1 : Number of Level- 1 neighbors whose network type is broadcast. Type • LAN Level-2: Number of Level-2 neighbors whose network type is broadcast. • P2P: Number of neighbors whose network type is P2P. IPv4 Up Number of IPv4 neighbors in up state IPv4 Init...
Page 167
If no level is specified, both Level- 1 and Level-2 routing information will be displayed. Examples # Display IS-IS IPv4 routing information. <Sysname> display isis route 1 Route information for ISIS(1) ----------------------------- ISIS(1) IPv4 Level-1 Forwarding Table ------------------------------------- IPV4 Destination IntCost ExtCost ExitInterface NextHop...
Page 168
Field Description Routing state flag D: Direct route. R: The route has been added into the routing table. Flags L: The route has been advertised in an LSP. U: A route’s penetration flag. Setting it to UP can prevent an LSP sent from L2 to L1 from being sent back to L2.
Page 171
Default level 1: Monitor level Parameters level-1: Displays IS-IS Level- 1 statistics. level-1-2: Displays IS-IS Level- 1 -2 statistics. level-2: Displays IS-IS Level-2 statistics. process-id: Displays IS-IS statistics for the IS-IS process. The ID is in the range of 1 to 65535. vpn-instance-name: Displays IS-IS statistics for the VPN instance.
Field Description LSP information • LSP Source ID: ID of the source Lsp information system • No. of used LSPs: number of used LSPs domain-authentication-mode Syntax domain-authentication-mode { md5 | simple } password [ ip | osi ] undo domain-authentication-mode View IS-IS view Default level...
Examples # Specify the routing domain authentication mode as simple and password as 123456. <Sysname> system-view [Sysname] isis 1 [Sysname-isis-1] domain-authentication-mode simple 123456 fast-reroute Syntax fast-reroute { auto | route-policy route-policy-name } undo fast-reroute View IS-IS view Default level 2: System level Parameters auto: Calculates a backup next hop automatically for all routes.
NOTE: If you want to reference an advanced ACL (with a number from 3000 to 3999) in the command or in the rule-id sour-addr routing policy, the ACL should be configured with the rule [ ] { deny | permit } ip source sour-wildcard rule-id command to deny/permit a route with the specified destination, or with the rule [...
Description Use the flash-flood command to enable IS-IS LSP flash flooding. Use the undo flash-flood command to disable IS-IS LSP flash flooding. IS-IS LSP flash flooding is disabled by default. If no level is specified, the command enables IS-IS LSP flash flooding for both Level- 1 and Level-2. Examples # Enable fast flooding and specify the maximum LSPs to be sent as 10 and the delay time as 100 milliseconds.
undo graceful-restart interval View IS-IS view Default level 2: System level Parameters interval-value: Graceful Restart interval, in the range 30 to 1800 seconds. Description Use the graceful-restart interval command to configure the Graceful Restart interval. Use the undo graceful-restart interval command to restore the default Graceful Restart interval. By default, the Graceful Restart interval is 300 seconds.
No route redistribution is configured by default. IS-IS takes all the redistributed routes as external routes to destinations outside the IS-IS routing domain. Related commands: import-route isis level-2 into level-1. NOTE: Using the import-route bgp command redistributes only EBGP routes. Using the import-route bgp •...
You can specify a routing policy in the import-route isis level-2 into level-1 command to filter routes from Level-2 to Level- 1 . Other routing policies specified for route reception and redistribution does not affect the route leaking. If a filter policy is configured, only routes passing it can be advertised into the Level- 1 area. Related commands: import-route.
Default level 2: System level Parameters process-id: Process ID, ranging from 1 to 65535. The default is 1. vpn-instance-name: VPN instance name, a string of 1 to 31 characters. Description Use the isis command to enable an IS-IS process and specify an associated VPN instance, enter IS-IS view, or both.
NOTE: This command is not available in loopback interface view. • Whether a password should use ip or osi is not affected by the actual network environment. • Description Use the isis authentication-mode command to set the IS-IS authentication mode and password for an interface.
View Interface view Default level 2: System level Parameters None Description Use the isis circuit-type p2p command to configure the network type for an interface as P2P. Use the undo isis circuit-type command to cancel the configuration. By default, the network type of an interface depends on the physical media. (The network type of a VLAN interface is broadcast.) Interfaces with different network types operate differently.
No cost is configured by default. If neither level-1 nor level-2 is included, the cost applies to both level-1 and level-2. H3C recommends to configure a proper IS-IS cost for each interface to guarantee correct route calculation. Relate command: circuit-cost.
View Interface view Default level 2: System level Parameters process-id: Specifies a IS-IS process ID, ranging from 1 to 65535. The default is 1. Description Use the isis enable command to enable an IS-IS process on the interface. Use the undo isis enable command to disable IS-IS. No IS-IS routing process is enabled on an interface by default.
After an interface is added to a mesh group, it will only flood a received LSP or a generated LSP to interfaces not belonging to the same mesh group. If you block an interface, the interface can send LSPs only after receiving LSP requests. NOTE: The mesh-group feature is only available for a point-to-point link interface.
Default level 2: System level Parameters None Description Use the isis silent command to disable the interface from sending and receiving IS-IS packets. Use the undo isis silent command to restore the default. By default, an interface is not disabled from sending and receiving IS-IS packets. NOTE: The feature is not supported on the loopback interface.
Parameters seconds: Specifies the interval in seconds for sending hello packets, ranging from 3 to 255. level-1: Specifies the interval for sending Level- 1 hello packets. level-2: Specifies the interval for sending Level-2 hello packets. Description Use the isis timer hello command to specify the interval for sending hello packets. Use the undo isis timer hello command to restore the default.
Description Use the isis timer holding-multiplier command to specify the IS-IS hello multiplier. Use the undo isis timer holding-multiplier command to restore the default. The default IS-IS hello multiplier is 3. If no level is specified, the hello multiplier applies to the current level. With the IS-IS hello multiplier configured, a router can uses hello packets to notify its neighbor router of the adjacency hold time (hello multiplier times hello interval).
undo is-level View IS-IS view Default level 2: System level Parameters level-1: Configures the router to work on Level- 1 , which means it only calculates routes within the area, and maintains the L1 LSDB. 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.
Use the undo is-name command to disable dynamic system ID to hostname mapping. Dynamic system ID to hostname mapping is not enabled by default. Examples # Configure a host name for the local IS. <Sysname> system-view [Sysname] isis 1 [Sysname-isis-1] is-name RUTA is-name map Syntax is-name map sys-id map-sys-name...
Parameters None Description Use the is-snmp-traps enable command to enable the SNMP Trap function of IS-IS. Use the undo is-snmp-traps command to disable this function. SNMP Trap is enabled by default. Examples # Enable SNMP Trap. <Sysname> system-view [Sysname] isis 1 [Sysname-isis-1] is-snmp-traps enable log-peer-change (IS-IS view) Syntax...
View IS-IS view Default level 2: System level Parameters level-1: Applies the fragment extension mode to Level- 1 LSPs. level-1-2: Applies the fragment extension mode to both Level- 1 and Level-2 LSPs. level-2: Applies the fragment extension mode to Level-2 LSPs. mode-1: Fragment extension mode 1, used on a network where some routers do not support LSP fragment extension.
Description Use the lsp-length originate command to configure the maximum size of generated Level- 1 or Level-2 LSPs. Use the undo lsp-length originate command to restore the default. By default, the maximum size of generated Level- 1 and Level-2 LSPs is 1497 bytes. NOTE: If neither Level-1 nor Level-2 is specified in the command, the configured maximum size applies to the current IS-IS level.
View IS-IS view Default level 2: System level Parameters number: Maximum number of equal-cost routes. The number ranges from 1 to 8. Description Use the maximum load-balancing command to configure the maximum number of equal-cost routes. Use the undo maximum load-balancing command to restore the default. By default, the maximum number is 8.
non-stop-routing interval Syntax non-stop-routing interval interval-value undo non-stop-routing interval View IS-IS view Default level 2: System view Parameters interval-value: NSR interval, in the range of 30 to 1800 seconds. The NSR interval refers to the expected interval of a Master/SLave switchover on an IRF device. Description Use the non-stop-routing interval command to set the NSR interval.
Description Use the network-entity command to configure the Network Entity Title for an IS-IS routing process. Use the undo network-entity command to delete a NET. No NET is configured by default. A NET is a special NSAP address with the SEL being 0. The length of the NET is in the range 8 bytes to 20 bytes.
When a router runs multiple routing protocols at the same time, the system will configure a preference to each routing protocol. If several protocols find routes to the same destination, the route of the routing protocol with the highest preference is selected. Examples # Configure the preference of IS-IS protocol as 25.
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-name: Clears the data structure information of a VPN instance named with a string of 1 to 31 characters.
Description Use the set-overload command to set the overload bit. Use the undo set-overload command to clear the overload bit. The overload bit is not set by default. If the on-startup keyword is not specified, the command sets the overload bit immediately until the undo set-overload command is executed.
Description Use the summary command to configure a summary route. Use the undo summary command to remove a summary route. No summarization is configured by default. If no level is specified, only the level-2 routes will be summarized by default. You can summarize multiple contiguous networks into a single network to reduce the size of the routing table, as well as that of LSP and LSDB generated by the router.
If both the maximum and initial intervals are specified: • IS-IS waits the initial interval before generating the first LSP. If the network topology is unstable (triggers occur at intervals shorter than the maximum interval), • IS-IS waits the maximum interval before generating the first LSP until the network topology is stable. If the maximum, initial, and second wait intervals are specified: •...
timer lsp-refresh Syntax timer lsp-refresh seconds undo timer lsp-refresh View IS-IS view Default level 2: System level Parameters seconds: LSP refresh interval in seconds, ranging from 1 to 65534. Description Use the timer lsp-refresh command to configure the LSP refresh interval. Use the undo timer lsp-refresh to restore the default.
second-wait-interval: Wait interval before the second SPF calculation, in milliseconds, ranging from 10 to 60000. Description Use the timer spf command to set the SPF calculation interval. Use the undo timer spf command to restore the default. The default IS-IS SPF calculation interval is 10 seconds. If only the maximum interval is specified, IS-IS waits the maximum interval before performing the SPF calculation.
Page 211
Description Use the virtual-system command to configure a virtual system ID for the IS-IS process. Use the undo virtual-system command to remove a virtual system ID. 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.
BGP configuration commands NOTE: router The term in this document refers to both routers and Layer 3 switches. • For more information about routing policy configuration commands in this document, see the chapter • “Routing policy configuration commands.” aggregate Syntax aggregate ip-address { mask | mask-length } [ as-set | attribute-policy route-policy-name | detail-suppressed | origin-policy route-policy-name | suppress-policy route-policy-name ] * undo aggregate ip-address { mask | mask-length }...
Table 41 Functions of the keywords Keywords Function Used to create a summary route, whose AS path contains the AS path information of summarized routes. Use this keyword carefully when many AS paths need to be as-set summarized, because the frequent changes of these specific routes may lead to route oscillation.
Parameters number: Number of BGP routes for load balancing. The number ranges from 1 to 8. When it is set to 1, load balancing is disabled. Description Use the balance command to configure the number of BGP routes for load balancing. Use the undo balance command to disable load balancing.
View BGP view, BGP-VPN instance view Default level 2: System level Parameters None Description Use the bestroute med-confederation command to enable the comparison of the MED for paths from confederation peers during best route selection. Use the undo bestroute med-confederation command to disable the comparison. The comparison is not enabled by default.
Examples # Enable BGP and set local AS number to 100. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] compare-different-as-med (BGP/BGP-VPN instance view) Syntax compare-different-as-med undo compare-different-as-med View BGP view, BGP-VPN instance view Default level 2: System level Parameters None Description Use the compare-different-as-med command to enable the comparison of the MED for paths from peers in different ASs.
View BGP view Default level 2: System level Parameters as-number: Number of the AS that contains multiple sub-ASs, in the range 1 to 4294967295. Description Use the confederation id command to configure a confederation ID. Use the undo confederation id command to remove a specified confederation. By default, no confederation ID is configured.
Description Use the confederation nonstandard command to make the router compatible with routers not compliant with RFC3065 in the confederation. Use the undo confederation nonstandard command to restore the default. By default, all routers in the confederation comply with RFC3065. All devices should be configured with this command to interact with those nonstandard devices in the confederation.
View BGP view, BGP-VPN instance view Default level 2: System level Parameters value: Default local preference, in the range 0 to 4294967295. The larger the value is, the higher the preference is. Description Use the default local-preference command to configure the default local preference. Use the undo default local-preference command to restore the default value.
preferred. When a router running BGP obtains several routes with an identical destination but different next-hops from various external peers, it will select the best route depending on the MED value. In the case that all other conditions are the same, the system first selects the route with the smallest MED as the best external route.
Table 42 Output description Field Description BGP peer-group Name of the BGP peer group Remote AS AS number of peer group type Type of the BGP peer group: iBGP or eBGP Maximum prefixes allowed to receive from the peer Maximum allowed prefix number group Percentage of received prefixes from the peer group to maximum prefixes allowed to receive from the peer...
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, which is a case sensitive string of 1 to 256 characters. Description Use the display bgp network command to display routing information advertised with the network command.
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, which is a case sensitive string of 1 to 256 characters. Description Use the display bgp paths command to display information about BGP AS paths. Examples # Display information about BGP AS paths with AS number starting from 200.
Page 228
verbose: Displays the detailed information of the peer/peer group. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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.
Page 229
Table 45 Output description 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...
Field Description Routing policy configured Local routing policy # Display the log information of the peer 10.1 10.25.20. <sysname> display bgp peer 10.110.25.20 log-info Peer : 10.110.25.20 Date Time State Notification Error/SubError 10-Jul-2008 15:46:17 Down Send Notification with Error 1/1 Message Header Error/Connection Not Synchronized 10-Jul-2008 09:23:00 Up 10-Jul-2008 07:46:17 Down...
Parameters ip-address: IP address of a BGP peer. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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.
Page 232
Parameters ip-address: Destination IP address. mask: Network mask, in dotted decimal notation. mask-length: Mask length, in the range 0 to 32. longer-prefixes: Matches the longest prefix. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.
Field Description Status codes: * – valid ^ - VPNv4 best > – best Status codes d – damped h – history i – internal (IGP) s – summary suppressed (suppressed) S – Stale i – IGP (originated in the AS) Origin e –...
|: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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.
Examples # Display BGP CIDR routing information. <Sysname> display bgp routing-table cidr Total Number of Routes: 1 BGP Local router ID is 20.20.20.1 Status codes: * - valid, ^ - VPNv4 best, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? –...
Description Use the display bgp routing-table community command to display BGP routing information with the specified BGP community attribute. Examples # Display BGP routing information with the specified BGP community. <Sysname> display bgp routing-table community 11:22 BGP Local router ID is 10.10.10.1 Status codes: * - valid, ^ - VPNv4 best, >...
Examples # Display BGP routing information matching BGP community list 100. <Sysname> display bgp routing-table community-list 100 BGP Local router ID is 1.2.3.4 Status codes: * - valid, ^ - VPNv4 best, > - best, d - damped, h - history, i - internal, s - suppressed, Origin codes: i - IGP, e - EGP, ? –...
77.0.0.0 12.1.1.1 00:29:20 100? Table 49 Output description Field Description From IP address from which the route was received Reuse Reuse time of the route Table 48 for description of the other fields. display bgp routing-table dampening parameter Syntax display bgp routing-table dampening parameter [ | { begin | exclude | include } regular-expression ] View Any view Default level...
Field Description Ceiling Value Ceiling 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 Suppress-Limit Limit for a route to be suppressed display bgp routing-table different-origin-as Syntax display bgp routing-table different-origin-as [ | { begin | exclude | include } regular-expression ] View...
Table 51 Output description Field Description From Source IP address of the route Flaps Number of routing flaps Duration Duration time of the flap route Reuse Reuse time of the route Table 48 for description of the other fields. display bgp routing-table label Syntax display bgp routing-table label [ | { begin | exclude | include } regular-expression ] View...
The In/Out Label field refers to the inbound/outbound label. See Table 48 for the description of other fields. display bgp routing-table peer Syntax display bgp routing-table peer ip-address { advertised-routes | received-routes } [ network-address [ mask | mask-length ] | statistic ] [ | { begin | exclude | include } regular-expression ] View Any view Default level...
*> 30.30.30.0/24 0.0.0.0 *> 40.40.40.0/24 0.0.0.0 Table 48 for description of the fields. display bgp routing-table regular-expression Syntax display bgp routing-table regular-expression as-regular-expression View Any view Default level 1: Monitor level Parameters as-regular-expression: AS path regular expression, a string of 1 to 80 characters. Description Use the display bgp routing-table regular-expression command to display BGP routing information matching the specified AS path regular expression.
Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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.
Examples # In BGP view, reference ACL 2000 to filter all outgoing routes. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] filter-policy 2000 export # In BGP-VPN instance view, reference ACL 2000 to filter all outgoing routes (the VPN has been created). <Sysname>...
NOTE: If you want to reference an advanced ACL (with a number from 3000 to 3999) in the command, the ACL rule-id sour-addr sour-wildcard should be configured with the rule [ ] { deny | permit } ip source rule-id command to deny/permit a route with the specified destination, or with the rule [ ] { deny | sour-addr sour-wildcard...
By default, BGP Graceful Restart capability is disabled. NOTE: During Master/Slave switchover, a GR-capable BGP speaker can maintain the packet forwarding table. During restart, it may not maintain the forwarding table. Examples # Enable the Graceful Restart capability for BGP process 100. <Sysname>...
Default level 2: System level Parameters timer: Time to wait for the End-of-RIB marker, in the range 3 to 300 seconds. Description Use the graceful-restart timer wait-for-rib command to configure the time to wait for the End-of-RIB marker. Use the undo graceful-restart timer wait-for-rib command to restore the default. By default, the time to wait for the End-of-RIB marker is 180 seconds.
Examples # In BGP view, create an eBGP peer group test with AS number 200, and add eBGP peers 10.1.1.1 and 10.1.2.1 into the group. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] group test external [Sysname-bgp] peer test as-number 200 [Sysname-bgp] peer 10.1.1.1 group test [Sysname-bgp] peer 10.1.2.1 group test # In BGP-VPN instance view, create an eBGP peer group test with AS number 200, and add eBGP peers 10.1.1.1 and 10.1.2.1 into the group (the VPN has been created).
<Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-vpn1] import-route rip log-peer-change Syntax log-peer-change undo log-peer-change View BGP view Default level 2: System level Parameters None Description Use the log-peer-change command to enable the global BGP logging on peers going up and down. Use the undo log-peer-change command to disable the function.
Description Use the network command to inject a network to the local BGP routing table. Use the undo network command to remove a network from the BGP routing table. By default, no network route is injected. The network route to be injected must exist in the local IP routing table, and using a routing policy makes route management more flexible.
Parameters group-name: Name of a peer group, a string of 1 to 47 characters. ip-address: IP address of a peer. number: Specifies the number of times for which the local AS number can appear in routes from the peer/peer group, in the range 1 to 10. The default number is 1. Description Use the peer allow-as-loop command to allow the local AS number to exist in the AS_PATH attribute of routes from a peer/peer group, and to configure the number of times the local AS number can appear.
Use the undo peer group-name as-number command to delete a peer group. Use the undo peer ip-address command to delete a peer. By default, no peer or peer group is specified. 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.
Use the undo peer as-path-acl command to remove the configuration. By default, no AS path ACL filtering is configured. Related commands: ip as-path, if-match as-path, and apply as-path. Examples # In BGP view, reference the AS path ACL 1 to filter routes outgoing to the peer group test. <Sysname>...
peer capability-advertise conventional (BGP/BGP-VPN instance view) Syntax peer { group-name | ip-address } capability-advertise conventional undo peer { group-name | ip-address } capability-advertise conventional View BGP view, BGP VPN instance view Default level 2: System level Parameters group-name: Name of a peer group, a string of 1 to 47 characters. ip-address: IP address of a peer.
Page 260
receive: Supports receiving route-refresh messages carrying the ORF information. send: Supports sending route-refresh messages carrying the ORF information. Description Use the peer capability-advertise orf command to enable the ORF capability for a BGP peer or peer group. Use the undo peer capability-advertise orf command to disable the ORF capability for the BGP peer or peer group.
Parameters group-name: Name of a peer group, a string 1 to 47 characters. ip-address: IP address of a peer. interface-type interface-number: Specifies the type and number of the interface. Description Use the peer connect-interface command to specify the source interface for establishing TCP connections to a peer/peer group.
route-policy-name: Routing policy name, a string of 1 to 63 characters. Description Use the peer default-route-advertise command to advertise a default route to a peer/peer group. Use the undo peer default-route-advertise command to disable default route advertisement to a peer/peer group. By default, no default route is advertised to a peer/peer group.
<Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] peer test description ISP1 # In BGP-VPN instance view, configure the description information of the peer group test as ISP1(the VPN has been created). <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-vpn1] peer test description ISP1 peer ebgp-max-hop (BGP/BGP-VPN instance view) Syntax peer { group-name | ip-address } ebgp-max-hop [ hop-count ]...
peer enable (BGP/BGP-VPN instance view) Syntax peer ip-address enable undo peer ip-address enable View BGP view, BGP VPN instance view Default level 2: System level Parameters ip-address: IP address of a peer. Description Use the peer enable command to enable the specified peer. Use the undo peer enable command to disable the specified peer.
By default, no fake local AS number is configured for a peer or peer group. NOTE: The peer fake-as command is only applicable to an eBGP peer or peer group. Examples # In BGP view, configure a fake AS number of 200 for the peer group test. <Sysname>...
[Sysname-bgp] peer test filter-policy 2000 export # In BGP-VPN instance view, apply the ACL 2000 to filter routes advertised to the peer group test (the VPN has been created). <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-vpn1] peer test filter-policy 2000 export peer group (BGP/BGP-VPN instance view) Syntax peer ip-address group group-name [ as-number as-number ]...
[Sysname-bgp-vpn1] peer 10.1.1.1 group test peer ignore (BGP/BGP-VPN instance view) Syntax peer { group-name | ip-address } ignore undo peer { group-name | ip-address } ignore View BGP view, BGP-VPN instance view Default level 2: System level Parameters group-name: Name of a peer group, a string of 1 to 47 characters. ip-address: IP address of a peer.
Default level 2: System level Parameters group-name: Name of a peer group, a string of 1 to 47 characters. ip-address: IP address of a peer. ip-prefix-name: IP prefix list name, a string of 1 to 19 characters. export: Applies the filter to routes advertised to the specified peer/peer group. import: Applies the filter to routes received from the specified peer/peer group.
Use the undo peer keep-all-routes command to disable this function. By default, the function is not enabled. Examples # In BGP view, save routing information from peer 131.100.1.1. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] peer 131.100.1.1 as-number 200 [Sysname-bgp] peer 131.100.1.1 keep-all-routes # In BGP-VPN instance view, save routing information from peer 131.100.1.1(the VPN has been created).
Parameters group-name: Name of a peer group, a string of 1 to 47 characters. ip-address: IP address of a peer. cipher: Displays the configured password in cipher text format. simple: Displays the configured password in plain text format. password: Password, a string of 1 to 80 characters when the simple keyword is used, or when the cipher keyword and plain text password are used;...
View BGP view, BGP-VPN instance view Default level 2: System level Parameters group-name: Name of a peer group, a string of 1 to 47 characters. ip-address: IP address of a peer. value: Preferred value, in the range 0 to 65535. Description Use the peer preferred-value command to assign a preferred value to routes received from a peer or peer group.
View BGP view, BGP-VPN instance view Default level 2: System level Parameters group-name: Name of a peer group, a string of 1 to 47 characters. ip-address: IP address of a peer. Description Use the peer public-as-only command to not keep private AS numbers in BGP updates sent to a peer/peer group.
Description Use the peer reflect-client command to configure the router as a route reflector and specify a peer/peer group as a client. Use the undo peer reflect-client command to remove the configuration. By default, neither the route reflector nor the client is configured. Related commands: reflect between-clients and reflect cluster-id.
Description Use the peer route-limit command to set the number of route prefixes that can be received from a peer/peer group. Use the undo peer route-limit command to restore the default. The number is not limited by default. Examples # In BGP view, set the number of route prefixes that can be received from peer 129.140.6.6 to 10000. <Sysname>...
Examples # In BGP view, apply routing policy test-policy to routes outgoing to the peer group test. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] peer test route-policy test-policy export # In BGP-VPN instance view, apply the routing policy test-policy to routes outgoing to the peer group test (the VPN has been created).
[Sysname-bgp-vpn1] peer test route-update-interval 10 peer substitute-as (BGP/BGP-VPN instance view) Syntax peer { group-name | ip-address } substitute-as undo peer { group-name | ip-address } substitute-as View BGP view, BGP-VPN instance view Default level 2: System level Parameters group-name: Name of a peer group, a sting of 1 to 47 characters. ip-address: IP address of a peer.
Page 280
Parameters group-name: Name of a peer group, a sting of 1 to 47 characters. ip-address: IP address of a peer. keepalive: Keepalive interval in seconds, ranging from 0 to 21845. holdtime: Holdtime interval in seconds, whose value is 0 or in the range of 3 to 65535. Description Use the peer timer command to configure the keepalive interval and holdtime interval for a peer or peer group.
preference (BGP/BGP-VPN instance view) Syntax preference { external-preference internal-preference local-preference | route-policy route-policy-name } undo preference View BGP view, BGP-VPN instance view Default level 2: System level Parameters external-preference: Preference of eBGP routes, in the range 1 to 255. internal-preference: Preference of iBGP routes, in the range 1 to 255. local-preference: Preference of local routes, in the range 1 to 255.
Default level 2: System level Parameters None Description Use the reflect between-clients command to enable route reflection between clients. Use the undo reflect between-clients command to disable this function. By default, route reflection between clients is enabled. After a route reflector is configured, it reflects the routes of a client to other clients. If the clients of a route reflector are fully meshed, you need disable route reflection between clients to reduce routing costs.
Typically, a cluster has only one route reflector. The router ID of the route reflector is the ID of the cluster. You can configure multiple route reflectors to improve network stability. Using this command can configure the identical cluster ID for all the route reflectors to avoid routing loops. Related commands: reflect between-clients and peer reflect-client.
reset bgp Syntax reset bgp { as-number | ip-address [ flap-info ] | all | external | group group-name | internal } View User view Default level 1: Monitor level Parameters as-number: Resets BGP connections to peers in the AS. ip-address: Specifies the IP address of a peer with which to reset the connection.
Examples # Reset all the BGP connections of IPv4 unicast address family. <Sysname> reset bgp ipv4 all router-id Syntax router-id router-id undo router-id View BGP view Default level 2: System level Parameters router-id: Router ID in IP address format. Description Use the router-id command to specify a router ID.
Parameters None Description Use the summary automatic command to enable automatic summarization for redistributed subnets. Use the undo summary automatic command to disable automatic summarization. By default, automatic summarization is disabled. Neither the default route nor the routes imported using the network command can be summarized automatically.
When a BGP router receives an iBGP route, it checks only whether the next hop is reachable by default. If the synchronization is enabled, the iBGP route is synchronized and advertised to eBGP peers only when the route is also advertised by IGP. Otherwise, the iBGP route cannot be advertised to eBGP peers. Examples # Enable the synchronization between BGP and IGP routes.
Page 289
[Sysname-bgp] timer keepalive 60 hold 180 # In BGP-VPN instance view, configure keepalive interval and holdtime interval as 60s and 180s (the VPN has been created). <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-vpn1] timer keepalive 60 hold 180 # In BGP view, configure both the BGP keepalive interval and holdtime interval as 0 seconds, indicating no peer connection will time out.
IPv6 static routing configuration commands NOTE: router The term in this document refers to both routers and Layer 3 switches. delete ipv6 static-routes all Syntax delete ipv6 [ vpn-instance vpn-instance-name ] static-routes all View System view Default level 2: System level Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN.
Page 291
undo ipv6 route-static vpn-instance s-vpn-instance-name&<1-6> ipv6-address prefix-length [ interface-type interface-number [ next-hop-address ] | nexthop-address [ public ] | vpn-instance d-vpn-instance-name nexthop-address ] [ preference preference-value ] View System view Default level 2: System level Parameters ipv6-address prefix-length: IPv6 address and prefix length. interface-type interface-number: Interface type and interface number of the output interface.
RIPng configuration commands NOTE: router The term in this document refers to both routers and Layer 3 switches. checkzero Syntax checkzero undo checkzero View RIPng view Default level 2: System level Parameters None Description Use the checkzero command to enable the zero field check on RIPng packets. Use the undo checkzero command to disable the zero field check.
Default level 2: System level Parameters cost: Default metric of redistributed routes, in the range of 0 to 16. Description Use the default cost command to specify the default metric of redistributed routes. Use the undo default cost command to restore the default. The default metric of redistributed routes is 0.
Examples # Display the running status and configuration information of all configured RIPng processes. <Sysname> 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) Timeout time...
Page 295
Parameters process-id: RIPng process ID, in the range of 1 to 65535. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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.
Table 56 Output description Field Description Interface-name Name of an interface running RIPng Link Local Address Link-local address of an interface running RIPng Indicates whether the split horizon function is enabled Split-horizon (on: Enabled; off: Disabled) Indicates whether the poison reverse function is Poison-reverse enabled (on: Enabled;...
Page 298
Description Use the display ripng route command to display all RIPng routes and timers associated with each route of a RIPng process. Examples # Display the routing information of RIPng process 100. <Sysname> display ripng 100 route Route Flags: A - Aging, S - Suppressed, G - Garbage-collect ---------------------------------------------------------------- Peer FE80::200:5EFF:FE04:B602 on Vlan-interface1...
ipsec-policy (RIPng view) Syntax ipsec-policy policy-name undo ipsec-policy View RIPng view Default level 2: System level Parameters policy-name: IPsec policy name, a string of 1 to 15 characters. Description Use the ipsec-policy command to apply an IPsec policy in a RIPng process. Use the undo ipsec-policy command to remove the IPsec policy from the RIPng process.
NOTE: Configure the maximum number according to the memory size. Examples # Set the maximum number of equal-cost routes to 2. <Sysname> system-view [Sysname] ripng 100 [Sysname-ripng-100] maximum load-balancing 2 preference Syntax preference [ route-policy route-policy-name ] preference undo preference [ route-policy ] View RIPng view Default level...
reset ripng process Syntax reset ripng process-id process View User view Default level 2: System level Parameters process-id: RIPng process ID, in the range of 1 to 65535. Description Use the reset ripng process command to reset the specified RIPng process. After executing the command, you are prompted whether you want to reset the RIPng process.
View System view Default level 2: System level Parameters process-id: RIPng process 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. Description Use the ripng command to create a RIPng process and enter RIPng view.
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: Metric of the advertised default route, in the range of 1 to 15, with a default value of 1. Description Use the ripng default-route command to advertise a default route with the specified routing metric to a RIPng neighbor.
[Sysname] interface vlan-interface 100 [Sysname-Vlan-interface100] ripng 100 enable ripng ipsec-policy Syntax ripng ipsec-policy policy-name undo ripng ipsec-policy View Interface view Default level 2: System level Parameters policy-name: IPsec policy name, a string of 1 to 15 characters. Description Use the ripng ipsec-policy command to apply an IPsec policy on a RIPng interface. Use the undo ripng ipsec-policy command to remove the IPsec policy from the RIPng interface.
Parameters None Description Use the ripng poison-reverse command to enable the poison reverse function. Use the undo ripng poison-reverse command to disable the poison reverse function. By default, the poison reverse function is disabled. Examples Enable the poison reverse function for RIPng update messages on VLAN-interface 100. <Sysname>...
ripng summary-address Syntax ripng summary-address ipv6-address prefix-length undo ripng summary-address ipv6-address prefix-length View Interface view Default level 2: System level Parameters ipv6-address: Destination IPv6 address of the summary route. prefix-length: 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.
Page 311
16. If no update message is announced for that route before the garbage-collect timer expires, the route will be completely deleted from the routing table. NOTE: H3C does not recommend to change the default values of these timers under normal circumstances. • •...
OSPFv3 configuration commands NOTE: router The term in the document refers to both routers and Layer 3 switches. abr-summary (OSPFv3 area view) Syntax abr-summary ipv6-address prefix-length [ not-advertise ] undo abr-summary ipv6-address prefix-length View OSPFv3 area view Default level 2: System level Parameters ipv6-address: Destination IPv6 address of the summary route.
View OSPFv3 view Default level 2: System level Parameters area-id: ID of an area, a decimal integer (in the range of 0 to 4294967295 and changed to IPv4 address format by the system) or an IPv4 address. Description Use the area command to enter OSPFv3 area view. NOTE: The undo form of the command is not available.
If no cost value is configured for an interface, OSPFv3 computes the interface cost value automatically: Examples # Specify the reference bandwidth value as 1000 Mbps. <Sysname> system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] bandwidth-reference 1000 default cost Syntax default cost value undo default cost View OSPFv3 view...
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. Description Use the default-cost command to specify the cost of the default route to be advertised to the stub area. Use the undo default-cost command to restore the default value.
By default, no default route is redistributed. Using the import-route command cannot redistribute a default route. To do so, you need to use the default-route-advertise command. If no default route exists in the router's routing table, use the default-route-advertise always command to generate a default route in a Type-5 LSA. You can reference a routing policy to set the cost and type of the default route: The router advertises the default route only when it passes the routing policy.
Page 317
Description Use the display ospfv3 command to display the brief information of an OSPFv3 process. If no process ID is specified, OSPFv3 brief information about all processes will be displayed. Examples # Display brief information about all OSPFv3 processes. <Sysname> display ospfv3 Routing Process "OSPFv3 (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...
<Sysname> display ospfv3 graceful-restart status 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 Vlan11 2.2.2.2 Vlan20 Table 59 Output description 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.
Page 320
include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters. Description Use the display ospfv3 interface command to display OSPFv3 interface information. Examples # Display OSPFv3 interface information. <Sysname>...
Field Description Adjacent neighbor count Number of Adjacencies on the interface IPsec policy name IPsec policy used on the interface SPI defined in the IPsec policy BFD status on the interface (enabled or disabled) display ospfv3 lsdb Syntax display ospfv3 [ process-id ] lsdb [ [ external | inter-prefix | inter-router | intra-prefix | link | network | router | grace ] [ link-state-id ] [ originate-router router-id ] | total ] [ | { begin | exclude | include } regular-expression ] View...
Page 322
Examples # Display OSPFv3 LSDB information. <Sysname> display ospfv3 lsdb OSPFv3 Router with ID (2.2.2.2) (Process 1) Link-LSA (Interface Vlan-interface10) Link State ID Origin Router Seq# CkSum Prefix 0.0.2.6 1.1.1.1 0055 0x80000001 0x4642 0.0.2.6 2.2.2.2 0053 0x80000001 0xf267 Grace-LSA (Interface Vlan-interface10) Link State ID Origin Router SeqNum...
Page 323
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 62 Output description Field Description LS age...
Page 324
Table 63 Output description Field Description LS age Age of LSA LS Type Type of LSA Originating Router Originating Router LS Seq Number LSA Sequence Number 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.
Field Description Total Number Of LSAs Total number of LSAs display ospfv3 lsdb statistic Syntax display ospfv3 lsdb statistic [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.
Field Description Link Link-LSA number Grace Grace-LSA number AS-external-LSA number Total Total LSA number display ospfv3 next-hop Syntax display ospfv3 [ process-id ] next-hop [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters process-id: Specifies ID of an OSPFv3 process, ranging from 1 to 65535.
display ospfv3 peer Syntax display ospfv3 [ process-id ] [ area area-id ] peer [ [ interface-type interface-number ] [ verbose ] | peer-router-id ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters process-id: Specifies the ID of an OSPFv3 process, ranging from 1 to 65535.
Page 328
Field Description Priority of neighbor router State Neighbor state Dead Time Dead time remained Interface Interface connected to the neighbor Instance ID Instance ID # Display detailed neighbor information of OSPFv3 process 100 of an interface. <Sysname> display ospfv3 1 peer vlan-interface 33 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 Vlan-interface33...
display ospfv3 peer statistic Syntax display ospfv3 peer statistic [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.
Field Description Loading In this state, the router sends LSRs to request the neighbor for needed LSAs. Full Indicates LSDB synchronization has been accomplished between neighbors. Total Total number of neighbors under the same state display ospfv3 request-list Syntax display ospfv3 [ process-id ] request-list [ { external | inter-prefix | inter-router | intra-prefix | link | network | router | grace } [ link-state-id ] [ originate-router ip-address ] | statistics ] [ | { begin | exclude | include } regular-expression ] View...
Examples # Display the information of OSPFv3 link state request list. <Sysname> display ospfv3 request-list OSPFv3 Router with ID (11.1.1.1) (Process 1) Interface Vlan1 Area-ID 0.0.0.0 -------------------------------------------------------------------------- Nbr-ID 12.1.1.1 LS-Type LS-ID AdvRouter SeqNum CkSum Router-LSA 0.0.0.0 12.1.1.1 0x80000014 0xe5b0 Table 70 Output description Field Description Interface...
Page 332
Default level 1: Monitor level Parameters process-id: OSPFv3 process ID, in the range 1 to 65535. external: Displays the AS-external LSA information of the OSPFv3 link state retransmission list. inter-prefix: Displays the Inter-area-prefix LSA information of the OSPFv3 link state retransmission list. inter-router: Displays the Inter-area-router LSA information of the OSPFv3 link state retransmission list.
Field Description Area-ID Area ID Nbr-ID Neighbor router ID LS-Type Type of LSA LS-ID Link state ID AdvRouter Advertising Router SeqNum LSA sequence Number Age of LSA CkSum Checksum # Display the statistics of OSPFv3 link state retransmission list. <Sysname>display ospfv3 retrans-list statistics OSPFv3 Router with ID (11.1.1.1) (Process 1) Interface Neighbor...
Page 334
|: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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.
Field Description External-routes Number of external routes display ospfv3 statistic Syntax display ospfv3 statistic [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.
Field Description Output Number of packets sent by the interface Hello Hello packet DB Description Database description packet Ls Req Link state request packet Ls Upd Link state update packet Ls Ack Link state acknowledgement packet Discarded Number of discarded packets display ospfv3 topology Syntax display ospfv3 [ process-id ] topology [ area area-id ] [ | { begin | exclude | include }...
Type ID(If-Index) Bits Metric Next-Hop Interface 1.1.1.1 2.2.2.2 2.2.2.2 Vlan1 3.3.3.3 3.3.3.3 Vlan1 4.4.4.4 4.4.4.4 Vlan1 4.4.4.4(983049) 0.0.0.0 Vlan1 Table 77 Output description Field Description Type Type of node ID(If-Index) Router ID Bits Flag bit Metric Cost value Next-Hop Next hop Interface Outbound interface display ospfv3 vlink...
Remote address: 2001:1:1::1 Transmit Delay is 1 sec, State: P-To-P, Timer intervals configured, Hello: 10, Dead: 40, Wait: 40, Retransmit: 5 Hello due in 00:00:02 Adjacency state :Full IPsec policy name: policy001, SPI: 300 Table 78 Output description Field Description Virtual Link VLINK1 to router 1.1.1.1 is up The virtual link VLINK1 to router 1.1.1.1 is up Transit area 0.0.0.1 via interface Vlan-interface20...
ospfv3 process-id: Specifies to filter the routes of an OSPFv3 process, which is in the range of 1 to 65535. ripng process-id: Specifies to filter the routes of a RIPng process, which in the range of 1 to 65535. static: Specifies to filter static routes. Description Use the filter-policy export command to filter redistributed routes.
Page 340
undo filter-policy import View OSPFv3 view Default level 2: System level Parameters acl6-number: Specifies an ACL number, ranging from 2000 to 3999. ipv6-prefix ipv6-prefix-name: Specifies the name of an IPv6 prefix list, a string of up to 19 characters. Description Use the filter-policy import command to configure OSPFv3 to filter routes computed from received LSAs.
graceful-restart enable Syntax graceful-restart enable undo graceful-restart enable View OSPFv3 view Default level 2: System level Parameters None Description Use the graceful-restart enable command to enable the GR capability for OSPFv3. Use the undo graceful-restart enable command to disable the GR capability for OSPFv3. By default, the GR capability for OSPFv3 is disabled.
Description Use the graceful-restart interval command to configure the GR restart interval. Use the undo graceful-restart interval command to restore the default. By default, the GR restart interval is 120 seconds. The value of the GR restart interval cannot be smaller than the maximum OSPFv3 neighbor dead time of all the OSPFv3 interfaces;...
IPv6 OSPFv3 does not redistribute routes from other protocols by default. Examples # Configure to redistribute routes from RIPng and specify the type as type 2 and cost as 50. <Sysname> system-view [Sysname] ospfv3 [Sysname-ospfv3-1] import-route ripng 10 type 2 cost 50 # Configure OSPFv3 process 100 to redistribute the routes found by OSPFv3 process 160.
Default level 2: System level Parameters None Description Use the log-peer-change command to enable the logging on neighbor state changes. Use the undo log-peer-change command to disable the logging. With this feature enabled, information about neighbor state changes of the current OSPFv3 process will display on the configuration terminal.
undo ospfv3 [ process-id ] View System view Default level 2: System level Parameters process-id: OSPFv3 process ID, ranging from 1 to 65535. The process ID defaults to 1. vpn-instance vpn-instance-name: Specifies an MPLS L3VPN. vpn-instance-name is a case-sensitive string of 1 to 31 characters.
Description Use the ospfv3 area command to enable an OSPFv3 process on the interface and specify the area for the interface. Use the undo ospfv3 area command to disable an OSPFv3 process. OSPFv3 is not enabled on an interface by default. Examples # Enable OSPFv3 process 1 on an interface that belongs to instance 1 and specify area 1 for the interface.
Default level 2: System level Parameters value: OSPFv3 cost, in the range 0 to 65535 for a loopback interface and 1 to 65535 for other interfaces. instance-id: Instance ID of an interface, in the range of 0 to 255, which defaults to 0. Description Use the ospfv3 cost command to configure the OSPFv3 cost of the interface in an instance.
ospfv3 ipsec-policy Syntax ospfv3 ipsec-policy policy-name [ instance instance-id ] undo ospfv3 ipsec-policy [ policy-name ] [ instance instance-id ] View Interface view Default level 2: System level Parameters policy-name: IPsec policy name, a string of 1 to 15 characters. instance-id: ID of the instance of the interface, in the range 0 to 255.
By default, an interface performs MTU check during DD packet exchange. A neighbor relationship can be established only if the interface’s MTU is the same as that of the peer. Examples # Configure an interface that belongs to instance 1 to ignore MTU check during DD packet exchange. <Sysname>...
undo ospfv3 peer ipv6-address [ dr-priority dr-priority ] [ instance instance-id ] View Interface view Default level 2: System level Parameters ipv6-address: Neighbor link-local IP address. dr-priority: Neighbor DR priority, in the range 0 to 255. The default is 1. instance-id: Interface instance ID, in the range 0 to 255.
OSPFv3 neighbor dead time: if an interface receives no hello packet from a neighbor after dead time elapses, the interface will consider the neighbor dead. The dead seconds value is at least four times the Hello seconds value and must be identical on interfaces attached to the same network segment.
View Interface view Default level 2: System level Parameters interval: LSA retransmission interval in seconds, ranging from 1 to 65535. instance-id: Instance ID of an interface, in the range of 0 to 255, which defaults to 0. Description Use the ospfv3 timer retransmit command to configure the LSA retransmission interval for an interface in an instance.
Parameters ase: Applies the preference to OSPFv3 external routes. If the keyword is not specified, the preference applies to OSPFv3 internal routes. route-policy route-policy-name: References a routing policy to set preference for specific routes. The name is a string of 1 to 63 characters. Preference: Preference of OSPFv3, in the range 1 to 255.
NOTE: By configuring different router IDs for different processes, you can run multiple OSPFv3 processes on a router. Examples # Configure the Router ID as 10.1.1.3 for OSPFv3 process 1. <Sysname> system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] router-id 10.1.1.3 silent-interface(OSPFv3 view) Syntax silent-interface { interface-type interface-number | all } undo silent-interface { interface-type interface-number | all }...
spf timers Syntax spf timers delay-interval hold-interval undo spf timers View OSPFv3 view Default level 2: System level Parameters delay-interval: Interval in seconds between when OSPFv3 receives a topology change and when it starts SPF calculation. in the range 1 to 65535. hold-interval: Hold interval in seconds between two consecutive SPF calculations, in the range 1 to 65535.
Description Use the stub command to configure an area as a stub area. Use the undo stub command to remove the configuration. By default, an area is not configured as a stub area. When an area is configured as a stub area, all the routers attached to the area must be configured with the stub command.
Page 359
For a non-backbone area without a direct connection to the backbone area or for a backbone area that cannot maintain connectivity, you can use the vlink-peer command to create logical links. 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.
IPv6 IS-IS configuration commands NOTE: IPv6 IS-IS supports all the features of IPv4 IS-IS except that it advertises IPv6 routing information instead. • This document describes only IPv6 IS-IS exclusive commands. See the chapter “IS-IS configuration commands” for other IS-IS configuration commands. router The term in this document refers to both routers and Layer 3 switches.
Page 361
Examples # Display IPv6 IS-IS routing information. <Sysname> display isis route ipv6 Route information for ISIS(1) ----------------------------- ISIS(1) IPv6 Level-1 Forwarding Table ------------------------------------- Destination: 2001:1:: PrefixLen: 64 Flag : R/L/- Cost : 20 Next Hop : FE80::200:5EFF:FE64:8905 Interface: Vlan1 Destination: 2001:2:: PrefixLen: 64 Flag : D/L/-...
Page 362
# Display detailed IPv6 IS-IS routing information. <Sysname> display isis route ipv6 verbose Route information for ISIS(1) ----------------------------- ISIS(1) IPv6 Level-1 Forwarding Table ------------------------------------- IPV6 Dest : 2001:1::/64 Cost : 20 Flag : R/L/- Admin Tag Src Count : 1 NextHop Interface : ExitIndex :...
ipv6 enable Syntax ipv6 enable undo ipv6 enable View IS-IS view Default level 2: System level Parameters None Description Use the ipv6 enable command to enable IPv6 for the IPv6 IS-IS process. Use the undo ipv6 enable command to disable IPv6. IPv6 is disabled by default.
Page 365
route-policy-name: Name of a routing policy used to filter the redistributed routes before advertisement, a string of 1 to 63 characters. See the chapter “Routing policy configuration” for routing policy information. protocol: Routing protocol from which the redistributed routes are to be filtered. The routing protocol can be bgp4+, direct, isisv6, ospfv3, ripng or static.
CAUTION: Use the import-route bgp4+ allow-ibgp command with caution because it redistributes both eBGP and iBGP routes, and the redistributed iBGP routes can cause routing loops. Examples # Configure IPv6–IS-IS to redistribute static routes and set the cost 15 for them. <Sysname>...
ipv6 import-route limit Syntax ipv6 import-route limit number undo ipv6 import-route limit View IS-IS view Default level 2: System level Parameters number: Maximum number of redistributed Level 1/Level 2 IPv6 routes. The default varies with devices. Description Use the ipv6 import-route limit command to configure the maximum number of redistributed Level 1/Level 2 IPv6 routes.
Default level 2: System level Parameters ipv6-prefix: IPv6 prefix of the summary route. prefix-length: Length of the IPv6 prefix, in the range of 0 to 128. avoid-feedback: Specifies to avoid learning summary routes via routing calculation. generate_null0_route: Generates the NULL 0 route to avoid routing loops. level-1: Specifies to summarize only the routes redistributed to Level- 1 area.
Description Use the isis ipv6 bfd enable command to enable BFD on an IPv6 IS-IS interface for link failure detection. Use the undo isis ipv6 bfd enable command to disable BFD on an IPv6 IS-IS interface. By default, an IPv6 IS-IS interface is not enabled with BFD. Examples # Enable BFD for IPv6 IS-IS on VLAN-interface 1 1.
IPv6 BGP configuration commands NOTE: router The term or router icon in this document refers to both routers and Layer 3 switches. • For more information about routing policy configuration commands in this document, see the chapter • “Routing policy configuration commands.” aggregate (IPv6 address family view) Syntax aggregate ipv6-address prefix-length [ as-set | attribute-policy route-policy-name | detail-suppressed |...
Keywords Function Used to create a summary route and suppress the advertisement of some summarized routes. If you want to suppress some routes selectively and suppress-policy leave other routes still advertised, use the if-match clause of the route-policy command. origin-policy Selects only routes satisfying the routing policy for route summarization.
Parameters None Description Use the bestroute compare-med command to enable the comparison of the MED for paths from each AS. Use the undo bestroute compare-med command to disable this comparison. This comparison is not enabled by default. CAUTION: 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.
compare-different-as-med (IPv6 address family view) Syntax compare-different-as-med undo compare-different-as-med View IPv6 address family view Default level 2: System level Parameters None Description Use the compare-different-as-med command to enable the comparison of the MED for paths from peers in different ASs. Use the undo compare-different-as-med command to disable the comparison.
half-life-unreachable: Half-life for unreachable routes, in the range 1 to 45 minutes. By default, the value is 15 minutes. reuse: Reuse threshold value for suppressed routes, in the range 1 to 20000. Penalty value of a suppressed route decreasing under the value is reused. By default, its value is 750. suppress: Suppression threshold from 1 to 20000, which should be bigger than the reuse value.
Use the undo default local-preference command to restore the default value. By default, the default local preference is 100. 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.
default-route imported (IPv6 address family view/IPv6 BGP-VPN instance view) Syntax default-route imported undo default-route imported View IPv6 address family view, IPv6 BGP-VPN instance view Default level 2: System level Parameters None Description Use the default-route imported command to enable the redistribution of default route into the IPv6 BGP routing table.
Page 381
include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters. Description Use the display bgp ipv6 group command to display IPv6 peer group information. If no ipv6-group-name is specified, information about all peer groups is displayed.
Field Description The local BGP router supports both the ORF sending and Local: both receiving capabilities. 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 Negotiated: send Router-refresh messages carrying the ORF information, and the...
include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters. Description Use the display bgp ipv6 network command to display IPv6 routes advertised with the network command.
include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters. Description Use the display bgp ipv6 paths command to display IPv6 BGP path information. If no parameter is specified, all path information will be displayed.
Page 385
ipv6-address: Specifies the IPv6 address of a peer to be displayed. log-info: Displays log information of the specified peer. verbose: Displays the detailed information of the peer. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.
Page 386
# Display the detailed information of IPv6 peer 1::1. <Sysname> display bgp ipv6 peer 1::1 verbose BGP Peer is 1::1, remote AS 100, Type: EBGP link BGP version 4, remote router ID 45.1.1.1 BGP current state: Established, Up for 00h01m34s BGP current event: KATimerExpired BGP last state: OpenConfirm Port:...
Page 387
Minimum time between advertisement runs is 30 seconds Optional capabilities: Route refresh capability has been enabled ORF advertise capability based on prefix (type 64): Local: both Negotiated: send Peer Preferred Value: 0 IPsec policy name: policy001, SPI: 300 Routing policy configured: No routing policy is configured Table 86 Output description Field...
Page 388
Field Description Optional capabilities enabled on the peer: Route-refresh is enabled; The IPv6 BGP peer supports the ORF capability based on IP prefix. Optional capabilities The capability value is 64. Route refresh capability has been • The local IPv6 BGP router supports both the ORF sending and enabled receiving capabilities.
Field Description Error refers to the error code, which identifies the type of the Notification. Error/SubError SubError refers to the error subcode of the Notification, which identifies the specific information about the reported error. display bgp ipv6 peer received ip-prefix Syntax display bgp ipv6 peer { ip-address | ipv6-address } received ipv6-prefix [ | { begin | exclude | include } regular-expression ]...
Field Description prefix Prefix information greater-equal, indicating the mask length must be greater than or equal to the specific value. less-equal, indicating the mask length must be less than or equal to the specific value. display bgp ipv6 routing-table Syntax display bgp ipv6 routing-table [ ipv6-address prefix-length ] [ | { begin | exclude | include } regular-expression ] View...
Page 391
Path/Ogn: i *> Network : 40:40:: PrefixLen : 64 NextHop : 40:40::40:1 LocPrf PrefVal : 0 Label : NULL Path/Ogn: i Table 89 Output description Field Description Local router ID Local router ID Status codes: * – valid ^ - VPNv4 best >...
display bgp ipv6 routing-table as-path-acl Syntax display bgp ipv6 routing-table as-path-acl as-path-acl-number [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters as-path-acl-number: Number of an AS path ACL permitted by which to display routing information, ranging from 1 to 256.
Page 393
View Any view Default level 1: Monitor level Parameters aa:nn: Community number; both aa and nn are in the range 0 to 65535. &<1- 1 3>: Indicates the argument before it can be entered up to 13 times. no-advertise: Displays IPv6 BGP routes that cannot be advertised to any peer. no-export: Displays IPv6 BGP routes that cannot be advertised out the AS;...
display bgp ipv6 routing-table dampened Syntax display bgp ipv6 routing-table dampened [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.
View Any view Default level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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.
View Any view Default level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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.
as-path-acl-number: Number of the specified AS path ACL to be matched, ranging from 1 to 256. ipv6-address: IPv6 address of a route to be displayed. prefix-length: Prefix length of the IPv6 address, in the range 0 to 128. longer-match: Matches the longest prefix. |: Filters command output by specifying a regular expression.
Page 399
Default level 1: Monitor level Parameters ipv4-address: Specifies the IPv4 peer to be displayed. ipv6-address: Specifies the IPv6 peer to be displayed. advertised-routes: Routing information advertised to the specified peer. received-routes: Routing information received from the specified peer. network-address prefix-length: IPv6 address and prefix length. The prefix length ranges from 0 to 128. statistic: Displays route statistics.
display bgp ipv6 routing-table regular-expression Syntax display bgp ipv6 routing-table regular-expression as-regular-expression View Any view Default level 1: Monitor level Parameters as-regular-expression: AS regular expression, a string of 1 to 80 characters. Description Use the display bgp ipv6 routing-table regular-expression command to display the routes permitted by the specified AS regular expression.
include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters. Description Use the display bgp ipv6 routing-table statistic command to display IPv6 BGP routing statistics. Examples # Display IPv6 BGP routing statistics.
NOTE: If you want to reference an advanced ACL (with a number from 3000 to 3999) in the command, the ACL rule-id sour sour-prefix should be configured with the rule [ ] { deny | permit } ipv6 source command to rule-id deny/permit a route with the specified destination, or with the rule [ ] { deny | permit } ipv6 source...
Use the undo filter-policy import command to cancel filtering inbound routing information. By default, no inbound routing information is filtered. NOTE: If you want to reference an advanced ACL (with a number from 3000 to 3999) in the command, the ACL rule-id sour sour-prefix should be configured with the rule [...
Description Use the group command to create a peer group. Use the undo group command to delete a peer group. An iBGP peer group will be created if neither internal nor external is selected. Examples # Create an iBGP peer group named test. <Sysname>...
Parameters group-name: Name of an IPv4 or IPv6 peer group, a string of 1 to 47 characters. ipv4-address: IPv4 address of a peer. ipv6-address: IPv6 address of a peer. Description Use the peer advertise-community command to advertise the community attribute to a peer/peer group. Use the undo peer advertise-community command to remove the configuration.
ipv6-address: IPv6 address of a peer. as-number: AS number of the peer/peer group, in the range 1 to 4294967295. Description Use the peer as-number command to configure an IPv6 peer/peer group. Use the undo peer ipv6-group-name as-number command to delete an IPv6 peer group. Use the undo peer ipv6-address command to delete a peer.
undo peer { group-name | ipv4-address | ipv6-address } as-path-acl as-path-acl-number { import | export } View IPv6 address family view Default level 2: System level Parameters group-name: Name of an IPv4 or IPv6 peer group, a string of 1 to 47 characters. ipv4-address: IPv4 address of a peer.
Description Use the peer bfd command to enable BFD over the link to a BGP peer. Use the undo peer bfd command to restore the default. By default, BFD is not enabled for any BGP peer. After a link failure occurs, BFD may detect the failure before the system performs GR, and as a result, GR will fail.
standard ORF information to the peer. For non-standard ORF capability negotiation, you need also to configure the peer capability-advertise orf non-standard command. • After you disable the ORF capability, the local BGP router does not negotiate the ORF capability with the specified peer or peer group. Table 93 Description of the both, send, and receive parameters and the negotiation result Local parameter Peer parameter...
Use the undo peer capability-advertise orf non-standard command to disable the non-standard ORF capability for the BGP peer or peer group. By default, the non-standard ORF capability is not enabled for a BGP peer or peer group. This command needs to be configured when the peer supports only non-standard ORF. Related commands: peer capability-advertise orf.
peer connect-interface (IPv6 address family view) Syntax peer { ipv6-group-name | ipv6-address } connect-interface interface-type interface-number undo peer { ipv6-group-name | ipv6-address } connect-interface View IPv6 address family view Default level 2: System level Parameters ipv6-group-name: Name of a peer group, a string of 1 to 47 characters. ipv6-address: IPv6 address of a peer.
Parameters group-name: Name of an IPv4 or IPv6 peer group, a string of 1 to 47 characters. ipv4-address: IPv4 address of a peer. ipv6-address: IPv6 address of a peer. route-policy-name: Route policy name, a string of 1 to 63 characters. Description Use the peer default-route-advertise command to advertise a default route to a peer/peer group.
Default level 2: System level Parameters ipv4-group-name: Name of an IPv4 peer group, a string of 1 to 47 characters. The IPv4 peer group should be created beforehand. ipv4-address: IPv4 address of a peer. ipv6-address: IPv6 address of a peer. Description Use the peer enable command to enable an IPv4 peer or peer group.
Use the undo peer fake-as command to remove the configuration. By default, no fake local AS number is configured for a peer or peer group. Examples # Configure a fake AS number of 200 for the peer group test. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] group test external...
peer group (IPv6 address family view) Syntax peer { ipv4-address | ipv6-address } group group-name [ as-number as-number ] undo peer ipv6-address group group-name View IPv6 address family view Default level 2: System level Parameters group-name: Name of an IPv4 or IPv6 peer group, a string of 1 to 47 characters. ipv4-address: IPv4 address of a peer.
Description Use the peer ignore command to terminate the session to a peer or peer group. Use the undo peer ignore command to remove the configuration. By default, a router can establish sessions with a peer or peer group. After the peer ignore command is executed, the system terminates the active session(s) with the specified peer or peer group and clears all the related routing information.
Parameters group-name: Name of an IPv4 or IPv6 peer group, a string of 1 to 47 characters. ipv4-address: IPv4 address of a peer. ipv6-address: IPv6 address of a peer. Description Use the peer keep-all-routes command to save the original routing information from a peer or peer group, including even routes that failed to pass the inbound policy.
peer next-hop-local (IPv6 address family view) Syntax peer { ipv6-group-name | ipv6-address } next-hop-local undo peer { ipv6-group-name | ipv6-address } next-hop-local View IPv6 address family view Default level 2: System level Parameters ipv6-group-name: Name of a peer group, a string of 1 to 47 characters. ipv6-address: IPv6 address of a peer.
password: Password, a string of 1 to 80 characters when the simple keyword is used, or when the cipher keyword and plain text password are used; a string of 24 or 108 characters when the cipher text password and the cipher keyword are used. Description Use the peer password command to configure BGP to perform MD5 authentication when a TCP connection is being established with a peer/peer group.
ipv6-address: IPv6 address of a peer. value: Preferred value, in the range 0 to 65535. Description Use the peer preferred-value command to assign a preferred value to routes received from a peer or peer group. Use the undo peer preferred-value command to restore the default. By default, routes received from a peer or peer group have a preferred value of 0.
By default, routes received from a peer or peer group have a preferred value of 0. 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. NOTE: ipv6-address value...
Parameters group-name: Name of an IPv4 or IPv6 peer group, a string of 1 to 47 characters. ipv4-address: IPv4 address of a peer. ipv6-address: IPv6 address of a peer. prefix number: Specifies the upper limit of prefixes that can be received from the peer or peer group. The limit range varies depending on the device model.
route-policy-name: Specifies route-policy name, a string of 1 to 63 characters. import: Applies the routing policy to routes from the peer (group). export: Applies the routing policy to routes sent to the peer (group). Description Use the peer route-policy command to apply a routing policy to routes incoming from or outgoing to a peer or peer group.
By default, no routing policy is specified for the peer (group). The peer route-policy command does not use the if-match interface clause defined in the routing policy. See the chapter “Routing policy configuration commands” for related information. Examples # Apply the routing policy test-policy to routes received from the peer 2001::1. <Sysname>...
peer substitute-as (IPv6 address family view) Syntax peer { ipv6-group-name | ipv6-address } substitute-as undo peer { ipv6-group-name | ipv6-address } substitute-as View IPv6 address family view Default level 2: System level Parameters ipv6-group-name: Name of a peer group, a string of 1 to 47 characters. ipv6-address: IPv6 address of a peer.
Description Use the peer timer command to configure keepalive interval and holdtime interval for a peer or peer group. Use the undo peer timer command to restore the default. keepalive interval defaults to 60 seconds, and holdtime interval defaults to 180 seconds The timers configured with this command are preferred to the timers configured with the timer command.
internal-preference: Preference of iBGP route learned from an iBGP peer, in the range 1 to 255. local-preference: Preference of IPv6 BGP local route, in the range 1 to 255. route-policy-name: Routing policy name, a string of 1 to 63 characters. The routing policy can set a preference for routes passing it.
reflector cluster-id (IPv6 address family view) Syntax reflector cluster-id cluster-id undo reflector cluster-id View IPv6 address family view Default level 2: System level Parameters cluster-id: Specifies the cluster ID of the route reflector, an integer from 1 to 4294967295 (the system translates it into an IPv4 address) or an IPv4 address.
external: Soft-resets eBGP connections. group ipv6-group-name: Soft-resets connections with a peer group. The name of the peer group is a string of 1 to 47 characters. internal: Soft-resets iBGP connections. export: Performs soft reset in outbound direction. import: Performs soft reset in inbound direction. Description Use the refresh bgp ipv6 command to soft reset specified IPv4/IPv6 BGP connections.
<Sysname> reset bgp ipv6 all reset bgp ipv6 dampening Syntax reset bgp ipv6 dampening [ ipv6-address prefix-length ] View User view Default level 1: Monitor level Parameters ipv6-address: IPv6 address prefix-length: Prefix length of the address, in the range 0 to 128. Description Use the reset bgp ipv6 dampening command to clear dampened IPv6 BGP route information and release suppressed routes.
Default level 2: System level Parameters None Description Use the synchronization command to enable the synchronization between IPv6 BGP and IGP. Use the undo synchronization command to disable the synchronization. The feature is disabled by default. 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.
Page 439
If the holdtime interval is configured as 0, no keepalive message will be sent to the peer, and the peer connection will never time out. if the keepalive interval is configured as 0 and the negotiated hold time is not 0, one third of the hold time is taken as the interval for sending keepalive messages. 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.
apply comm-list delete Syntax apply comm-list { comm-list-number | comm-list-name } delete undo apply comm-list View Routing policy view Default level 2: System level Parameters comm-list-number: Community list number. A basic community list number ranges from 1 to 99. A advanced community list number ranges from 100 to 199.
aa:nn: Community number; both aa and nn are in the range 0 to 65535. &<1- 1 6>: Indicates 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.
Use the undo apply cost command to remove the clause configuration. No cost is set for routing information by default. Examples # Configure node 10 in permit mode of routing policy policy1: set a cost of 120 for routing information whose outbound interface is Vlan-interface 20.
apply extcommunity Syntax apply extcommunity { rt route-target }&<1- 1 6> [ additive ] undo apply extcommunity View Routing policy view Default level 2: System level Parameters rt route-target: Sets the route target extended community attribute, which is a string of 3 to 21 characters. A route-target has one of the following forms: •...
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. Description Use the apply isis command to redistribute routes into a specified ISIS level. Use the undo apply isis command to remove the clause configuration. No IS-IS level is set by default.
apply mpls-label Syntax apply mpls-label undo apply mpls-label View Routing policy view Default level 2: System level Parameters None Description Use the apply mpls-label command to set MPLS labels for routing information. Use the undo apply mpls-label command to remove the clause configuration. No MPLS label is set for routing information by default.
Description Use the apply origin command to set the specified origin attribute for BGP routes. Use the undo apply origin command to remove the clause configuration. No origin attribute is set for BGP routing information by default. Examples # Configure node 10 in permit mode of routing policy policy1: If BGP routing information matches AS-PATH list 1, set the origin attribute of the routing information to IGP.
undo apply preferred-value View Routing policy view Default level 2: System level Parameters preferred-value: Preferred value, in the range of 0 to 65535. Description Use the apply preferred-value command to set a preferred value for BGP routes. Use the undo apply preferred-value command to remove the clause configuration. No preferred value is set for BGP routes by default.
Page 449
continue Syntax continue [ node-number ] undo continue View Routing policy view Default level 2: System level Parameters node-number: Routing policy node number, in the range 0 to 65535. Description Use the continue command to specify the next node of the routing policy to be matched. Only after both the current node and the next node are matched, the routing policy is passed, and then the apply clauses of the two nodes are executed.
display ip as-path Syntax display ip as-path [ as-path-number ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters as-path-number: AS-PATH list number, in the range of 1 to 256. |: Filters command output by specifying a regular expression.
Default level 1: Monitor level Parameters basic-community-list-number: Basic community list number, in the range of 1 to 99. adv-community-list-number: Advanced community list number, in the range of 100 to 199. comm-list-name: Community list name, a string of 1 to 31 characters, which can contain letters, numbers, and signs.
include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters. Description Use the display ip extcommunity-list command to display BGP extended community list information. All BGP extended community list information will be displayed if no ext-comm-list-number is specified.
Table 95 Output description. Field Description Route-policy Routing policy name Permit Match mode of routing policy node 10 if-match ip-prefix abc Match criterion apply cost 120 If the match criterion is satisfied, set a cost of 120 for routing information. if-match as-path Syntax if-match as-path as-path-number&<1- 1 6>...
View Routing policy view Default level 2: System level Parameters basic-community-list-number: Basic community list number, in the range of 1 to 99. adv-community-list-number: Advanced community list number, in the range of 100 to 199. comm-list-name: Community list name, a string of 1 to 31 characters, which can contain letters, numbers, and signs.
The match criterion is not configured by default. Examples # Configure node 10 in permit mode of routing policy policy1: define an if-match clause to permit routing information with a cost of 8. <Sysname> system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy] if-match cost 8 if-match extcommunity Syntax...
Parameters interface-type: Interface type interface-number: Interface number &<1- 1 6>: Indicates the argument before it can be entered up to 16 times. Description Use the if-match interface command to specify interface(s) for matching against the outbound interface of routing information. Use the undo if-match interface command to remove the match criterion.
Default level 2: System level Parameters value: Specifies a tag from 0 to 4294967295. Description Use the if-match tag command to match routing information having the specified tag. Use the undo if-match tag command to remove the match criterion. The match criterion is not configured by default. Examples # Configure node 10 in permit mode of routing policy policy1 to permit RIP, OSPF and IS-IS routing information with a tag of 8.
No community list is defined by default. Examples # Define basic community list 1 to permit routing information with the internet community attribute. <Sysname> system-view [Sysname] ip community-list 1 permit internet # Define advanced community list 100 to permit routing information with the community attribute starting with 10.
View Routing policy view Default level 2: System level Parameters backup-interface interface-type interface-number: Specifies a backup outbound interface by its type and number. If the specified backup outbound interface is a non-P2P interface (including NBMA and broadcast interfaces, such as VLAN interface), you need to specify a backup next hop at the same time. ip-address: Backup next hop address.
Parameters ip-address: IP address of the next hop. Description Use the apply ip-address next-hop command to set a next hop for IPv4 routing information. Use the undo apply ip-address next-hop command to remove the clause configuration. No next hop is set for IPv4 routing information by default. This command cannot set a next hop for redistributed routes.
Denied 0 index: 10 permit 1.0.0.0/11 Table 96 Output description. Field Description Prefix-list Name of the IPv4 prefix list Permitted Number of routes satisfying the match criterion Denied Number of routes not satisfying the match criterion index Index of the IPv4 prefix list permit Match mode: permit or deny 1.0.0.0/11...
View Routing policy view Default level 2: System level Parameters next-hop: Matches the next hop of routing information to the filter. route-source: Matches the source address of routing information to the filter. acl acl-number: Matches an ACL with a number from 2000 to 2999. ip-prefix ip-prefix-name: Matches an IP prefix list with a name being a string of 1 to 19 characters.
To match all routes, use 0.0.0.0 0 less-equal 32. Examples # Define IP prefix list p1 to permit routes matching network 10.0.192.0/8 and with mask length 17 or 18. <Sysname> system-view [Sysname] ip ip-prefix p1 permit 10.0.192.0 8 greater-equal 17 less-equal 18 reset ip ip-prefix Syntax reset ip ip-prefix [ ip-prefix-name ]...
No next hop address is configured for IPv6 routing information by default. This command cannot set a next hop for redistributed routes. Examples # Configure node 10 of routing policy policy1 to configure next hop 3ffe:506::1 for IPv6 routing information matching AS-PATH list 1. <Sysname>...
Field Description Permitted Number of routes satisfying the match criterion Denied Number of routes not satisfying the match criterion Index Index number of the prefix list Permit Match mode of the item: permit or deny ::/1 IPv6 address and prefix length for matching greater-equal, the lower prefix length less-equal, the upper prefix length if-match ipv6...
ip ipv6-prefix Syntax ip ipv6-prefix ipv6-prefix-name [ index index-number ] { deny | permit } ipv6-address prefix-length [ greater-equal min-prefix-length ] [ less-equal max-prefix-length ] undo ip ipv6-prefix ipv6-prefix-name [ index index-number ] View System view Default level 2: System level Parameters ipv6-prefix-name: IPv6 prefix list name, a string of 1 to 19 characters, for uniquely specifying an IPv6 prefix list.
Examples # Permit IPv6 addresses with a mask length between 32 bits and 64 bits. <Sysname> system-view [Sysname] ip ipv6-prefix abc permit :: 0 greater-equal 32 less-equal 64 # Deny IPv6 addresses with the prefix being 3FFE:D00::/32, and prefix length being greater than or equal to 32 bits.
Policy-based routing configuration commands NOTE: This chapter describes only PBR commands. • For description of PBR commands (using a QoS policy), such as the traffic classification, traffic behavior, • ACL and QoS Command Reference and QoS policy configuration commands, see the apply ip-address default next-hop Syntax apply ip-address default next-hop ip-address [ track track-entry-number ] [ ip-address [ track...
value: Sets the preference value for IP packets. Eight preferences (0 to 7) are available. Each preference corresponds to a keyword. Table 98 IP preferences and keywords Preference Keyword routine priority immediate flash flash-override critical internet network Description Use the apply ip-precedence command to set a preference for packets. Use the undo apply ip-precedence command to remove the configuration.
Description Use the display ip policy-based-route command to display the PBR routing information. Examples # Display the PBR routing information. <Sysname> display ip policy-based-route Policy Name interface pr02 local pr02 Virtual-Template0 pr01 Vlan-interface 11 Table 99 Output description Field Description Local Local PBR pr02...
Parameters policy-name: Policy name, a string of 1 to 19 characters. Description Use the ip local policy-based-route command to configure local PBR based on a specified policy. Use the undo ip local policy-based-route command to remove the configuration. No policy is referenced for local PBR by default. Only one policy can be referenced for local PBR.
Index A B C D E F G H I L M N O P R S T V bestroute as-path-neglect (BGP/BGP-VPN instance view),196 abr-summary (OSPF area view),62 bestroute as-path-neglect (IPv6 address family abr-summary (OSPFv3 area view),294 view),357 aggregate,194 bestroute compare-med (BGP/BGP-VPN instance aggregate (IPv6 address family view),355 view),197...
Page 481
default med (IPv6 address family view/IPv6 BGP-VPN display bgp routing-table flap-info,222 instance view),361 display bgp routing-table label,223 default-cost (OSPF area view),66 display bgp routing-table peer,224 default-cost (OSPFv3 area view),296 display bgp routing-table regular-expression,225 default-route,32 display bgp routing-table statistic,225 default-route imported (BGP/BGP-VPN instance display ip as-path,432 view),205...
Need help?
Do you have a question about the S5820X Series and is the answer not in the manual?
Questions and answers