H3C S5820X Series Command Reference Manual
H3C S5820X Series Command Reference Manual

H3C S5820X Series Command Reference Manual

Layer 3 - ip routing
Hide thumbs Also See for S5820X Series:
Table of Contents

Advertisement

H3C S5820X&S5800 Series Ethernet Switches
Layer 3 - IP Routing

Command Reference

Hangzhou H3C Technologies Co., Ltd.
http://www.h3c.com
Document Version: 6W103-20100716
Product Version: Release 1110

Advertisement

Table of Contents
loading

Summary of Contents for H3C S5820X Series

  • Page 1: Command Reference

    H3C S5820X&S5800 Series Ethernet Switches Layer 3 - IP Routing Command Reference Hangzhou H3C Technologies Co., Ltd. http://www.h3c.com Document Version: 6W103-20100716 Product Version: Release 1110...
  • 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.
  • Page 3: Document Organization

    Preface The H3C S5800&S5820X documentation set includes 11 command references, which describe the commands and command syntax options for the S5800&S5820X Release 1110. The Layer 3 – IP Routing Command Reference describes routing configuration commands. This preface includes: Audience Document Organization Conventions About the H3C S5800&S5820X Documentation Set...
  • Page 4 Means reader be careful. Improper operation may cause data loss or damage to equipment. Means a complementary description. About the H3C S5800&S5820X Documentation Set The H3C S5800&S5820X documentation set also includes: Category Documents Purposes Marketing brochures Describe product specifications and benefits.
  • Page 5 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...
  • Page 6: Obtaining Documentation

    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: [Technical Support &...
  • Page 7: Table Of Contents

    Table of Contents 1 IP Routing Basics Configuration Commands······················································································1-1 IP Routing Basics Configuration Commands·······················································································1-1 display ip routing-table ·················································································································1-1 display ip routing-table acl············································································································1-5 display ip routing-table ip-address································································································1-7 display ip routing-table ip-prefix··································································································1-10 display ip routing-table protocol··································································································1-11 display ip routing-table statistics·································································································1-12 display ipv6 routing-table············································································································1-13 display ipv6 routing-table acl ······································································································1-14 display ipv6 routing-table ipv6-address ······················································································1-15 display ipv6 routing-table ipv6-address1 ipv6-address2 ····························································1-16...
  • Page 8 maximum load-balancing (RIP view) ··························································································3-15 network ·······································································································································3-16 output-delay································································································································3-16 peer ············································································································································3-17 preference ··································································································································3-18 reset rip process·························································································································3-18 reset rip statistics························································································································3-19 rip ···············································································································································3-19 rip authentication-mode··············································································································3-20 rip bfd enable······························································································································3-21 rip default-route ··························································································································3-21 rip input·······································································································································3-22 rip metricin··································································································································3-23 rip metricout································································································································3-24 rip mib-binding····························································································································3-25 rip output ····································································································································3-25 rip poison-reverse·······················································································································3-26 rip split-horizon ···························································································································3-26 rip summary-address··················································································································3-27 rip version···································································································································3-28...
  • Page 9 display ospf peer statistics ·········································································································4-25 display ospf request-queue ········································································································4-26 display ospf retrans-queue ·········································································································4-27 display ospf routing ····················································································································4-28 display ospf vlink ························································································································4-30 enable link-local-signaling ··········································································································4-31 enable log ···································································································································4-31 enable out-of-band-resynchronization························································································4-32 fast-reroute ·································································································································4-32 filter·············································································································································4-33 filter-policy export (OSPF view)··································································································4-34 filter-policy import (OSPF view)··································································································4-35 graceful-restart (OSPF view)······································································································4-36 graceful-restart help ···················································································································4-37 graceful-restart interval (OSPF view) ·························································································4-38...
  • Page 10 silent-interface (OSPF view)·······································································································4-62 snmp-agent trap enable ospf······································································································4-62 spf-schedule-interval ··················································································································4-63 stub (OSPF area view) ···············································································································4-64 stub-router ··································································································································4-65 transmit-pacing···························································································································4-66 vlink-peer (OSPF area view) ······································································································4-66 5 IS-IS Configuration Commands ············································································································5-1 IS-IS Configuration Commands ···········································································································5-1 area-authentication-mode ············································································································5-1 auto-cost enable···························································································································5-2 bandwidth-reference (IS-IS view) ·································································································5-3 circuit-cost ····································································································································5-3 cost-style ······································································································································5-4 default-route-advertise (IS-IS view)······························································································5-5 display isis brief ····························································································································5-6...
  • Page 11 isis enable ··································································································································5-41 isis mesh-group ··························································································································5-42 isis mib-binding···························································································································5-42 isis silent·····································································································································5-43 isis small-hello ····························································································································5-44 isis timer csnp·····························································································································5-44 isis timer hello·····························································································································5-45 isis timer holding-multiplier ·········································································································5-46 isis timer lsp································································································································5-47 isis timer retransmit ····················································································································5-48 is-level ········································································································································5-49 is-name·······································································································································5-49 is-name map·······························································································································5-50 is-snmp-traps enable··················································································································5-50 log-peer-change (IS-IS view)······································································································5-51 lsp-fragments-extend··················································································································5-52 lsp-length originate ·····················································································································5-52 lsp-length receive ·······················································································································5-53...
  • Page 12 default med (BGP/BGP-VPN instance view) ··············································································6-11 default-route imported (BGP/BGP-VPN instance view) ·····························································6-12 display bgp group ·······················································································································6-13 display bgp network····················································································································6-14 display bgp paths ·······················································································································6-15 display bgp peer ·························································································································6-16 display bgp peer received ip-prefix·····························································································6-20 display bgp routing-table ············································································································6-21 display bgp routing-table as-path-acl ·························································································6-22 display bgp routing-table cidr ·····································································································6-23 display bgp routing-table community··························································································6-24 display bgp routing-table community-list ····················································································6-25...
  • Page 13 peer fake-as (BGP/BGP-VPN instance view)·············································································6-53 peer filter-policy (BGP/BGP-VPN instance view) ·······································································6-54 peer group (BGP/BGP-VPN instance view) ···············································································6-55 peer ignore (BGP/BGP-VPN instance view) ··············································································6-55 peer ip-prefix ······························································································································6-56 peer keep-all-routes (BGP/BGP-VPN instance view)·································································6-57 peer log-change (BGP/BGP-VPN instance view)·······································································6-58 peer next-hop-local (BGP/BGP-VPN instance view)··································································6-58 peer password····························································································································6-59 peer preferred-value (BGP/BGP-VPN instance view) ································································6-60 peer public-as-only (BGP/BGP-VPN instance view) ··································································6-61...
  • Page 14 preference ··································································································································8-11 reset ripng process·····················································································································8-12 reset ripng statistics····················································································································8-12 ripng ···········································································································································8-12 ripng default-route ······················································································································8-13 ripng enable································································································································8-14 ripng metricin······························································································································8-14 ripng metricout····························································································································8-15 ripng poison-reverse···················································································································8-15 ripng split-horizon ·······················································································································8-16 ripng summary-address··············································································································8-17 timers··········································································································································8-17 9 OSPFv3 Configuration Commands ······································································································9-1 OSPFv3 Configuration Commands······································································································9-1 abr-summary (OSPFv3 area view) ·······························································································9-1 area (OSPFv3 view) ·····················································································································9-2 bandwidth-reference·····················································································································9-2 default cost ···································································································································9-3...
  • Page 15 ospfv3 cost ·································································································································9-35 ospfv3 dr-priority·························································································································9-35 ospfv3 mtu-ignore·······················································································································9-36 ospfv3 network-type ···················································································································9-37 ospfv3 peer·································································································································9-37 ospfv3 timer dead·······················································································································9-38 ospfv3 timer hello ·······················································································································9-39 ospfv3 timer retransmit···············································································································9-39 ospfv3 timer poll ·························································································································9-40 ospfv3 trans-delay ······················································································································9-40 preference ··································································································································9-41 router-id ······································································································································9-42 silent-interface(OSPFv3 view)····································································································9-43 spf timers····································································································································9-43 stub (OSPFv3 area view) ···········································································································9-44 vlink-peer (OSPFv3 area view) ··································································································9-45 10 IPv6 IS-IS Configuration Commands································································································10-1 IPv6 IS-IS Configuration Commands·································································································10-1...
  • Page 16 display bgp ipv6 peer ···············································································································11-12 display bgp ipv6 peer received ip-prefix ···················································································11-15 display bgp ipv6 routing-table···································································································11-15 display bgp ipv6 routing-table as-path-acl················································································11-18 display bgp ipv6 routing-table community ················································································11-18 display bgp ipv6 routing-table community-list ··········································································11-19 display bgp ipv6 routing-table dampened·················································································11-20 display bgp ipv6 routing-table dampening parameter ······························································11-21 display bgp ipv6 routing-table different-origin-as ·····································································11-22 display bgp ipv6 routing-table flap-info·····················································································11-22 display bgp ipv6 routing-table peer ··························································································11-23...
  • Page 17 peer substitute-as (IPv6 address family view)··········································································11-49 peer timer (IPv6 address family view) ······················································································11-50 preference (IPv6 address family view) ·····················································································11-51 reflect between-clients (IPv6 address family view) ··································································11-52 reflector cluster-id (IPv6 address family view)··········································································11-52 refresh bgp ipv6························································································································11-53 reset bgp ipv6···························································································································11-54 reset bgp ipv6 dampening ········································································································11-54 reset bgp ipv6 flap-info ·············································································································11-55 router-id ····································································································································11-55 synchronization (IPv6 address family view) ·············································································11-56...
  • Page 18 if-match acl ·······························································································································12-22 if-match ip·································································································································12-23 if-match ip-prefix·······················································································································12-24 ip ip-prefix·································································································································12-24 reset ip ip-prefix························································································································12-25 IPv6 Route Policy Configuration Commands···················································································12-26 apply ipv6 next-hop ··················································································································12-26 display ip ipv6-prefix·················································································································12-27 if-match ipv6 ·····························································································································12-27 ip ipv6-prefix ·····························································································································12-28 reset ip ipv6-prefix ····················································································································12-29 13 Policy Routing Configuration Commands ·······················································································13-1 14 MCE Configuration Commands ········································································································14-1 MCE Configuration Commands ·········································································································14-1 description ··································································································································14-1...
  • Page 19: Ip Routing Basics Configuration Commands

    IP Routing Basics Configuration Commands The term router in this document refers to both routers and Layer 3 switches. IP Routing Basics Configuration Commands display ip routing-table Syntax display ip routing-table [ vpn-instance vpn-instance-name ] [ verbose | | { begin | exclude | include } regular-expression ] View Any view...
  • Page 20 Use the display ip routing-table verbose command to display detailed information about all routes in the routing table. 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.
  • Page 21 Tag: 0 Destination: 10.1.1.0/24 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 NextHop: 10.1.1.1 Interface: Vlan-interface20 BkNexthop: 0.0.0.0 BkInterface: RelyNextHop: 0.0.0.0 Neighbour: 0.0.0.0 Tunnel ID: 0x0 Label: NULL State: Active Adv Age: 1d00h00m30s Tag: 0 Destination: 10.1.1.1/32 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0...
  • Page 22 Displayed first are statistics for the whole routing table, followed by detailed description of each route (in sequence). Table 1-2 display ip routing-table verbose command output description Field Description Destination Destination address/mask length Protocol Protocol that presents the route Process ID Process ID Preference Preference of the route...
  • Page 23: Display Ip Routing-Table Acl

    Field Description Normally, among routes to a destination, the route with the highest preference is installed into the core routing table and advertised, NotInstall while a NotInstall route cannot be installed into the core routing table but may be advertised. The packets matching a Reject route are dropped.
  • Page 24 Description Use the display ip routing-table acl command to display information about routes permitted by a specified basic ACL. This command is usually used together with route policy display commands. For more information about route policy, see Route Policy Configuration in the Layer 3 - IP Routing Configuration Guide.
  • Page 25: Display Ip Routing-Table Ip-Address

    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-interface2 RelyNextHop: 0.0.0.0...
  • Page 26 display ip routing-table ip-address1 { mask-length | mask } ip-address2 { mask-length | mask } [ verbose ] View Any view Default Level 1: Monitor level Parameters ip-address: Destination IP address, in dotted decimal format. mask-length: IP address mask length in the range 0 to 32. mask: IP address mask in dotted decimal format.
  • Page 27 [Sysname] display ip routing-table 11.1.1.1 Routing Table : Public Summary Count : 4 Destination/Mask Proto Pre Cost NextHop Interface 0.0.0.0/0 Static 60 0.0.0.0 NULL0 11.0.0.0/8 Static 60 0.0.0.0 NULL0 11.1.0.0/16 Static 60 0.0.0.0 NULL0 11.1.1.0/24 Static 60 0.0.0.0 NULL0 For detailed description about the output, see Table 1-1.
  • Page 28: Display Ip Routing-Table Ip-Prefix

    display ip routing-table ip-prefix Syntax display ip routing-table ip-prefix ip-prefix-name [ verbose ] View Any view Default Level 1: Monitor level Parameters ip-prefix-name: IP prefix list name, a string of 1 to 19 characters. verbose: Displays detailed routing table information, including inactive routes. With this argument absent, the command displays only brief information about active routes.
  • Page 29: Display Ip Routing-Table Protocol

    Destination: 2.2.2.1/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: 1d00h20m52s Tag: 0 For detailed description of the above output, see Table 1-2.
  • Page 30: Display Ip Routing-Table Statistics

    Summary Count : 0 # Display brief information about static routes. <Sysname> display ip routing-table protocol static Public Routing Table : Static Summary Count : 2 Static Routing table Status : < Active> Summary Count : 0 Static Routing table Status : < Inactive> Summary Count : 2 Destination/Mask Proto...
  • Page 31: Display Ipv6 Routing-Table

    Table 1-3 display ip routing-table statistics command 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 Number of routes that have been deleted.
  • Page 32: Display Ipv6 Routing-Table Acl

    Table 1-4 display ipv6 routing-table command output description Field Description Destination IPv6 address of the destination network/host NextHop Nexthop address Preference Route preference Interface Outbound interface Protocol Routing protocol Cost Route cost display ipv6 routing-table acl Syntax display ipv6 routing-table acl acl6-number [ verbose ] View Any view Default Level...
  • Page 33: Display Ipv6 Routing-Table Ipv6-Address

    display ipv6 routing-table ipv6-address Syntax display ipv6 routing-table ipv6-address prefix-length [ longer-match ] [ verbose ] View Any view Default Level 1: Monitor level Parameters ipv6-address: Destination IPv6 address. prefix-length: Prefix length, in the range 0 to 128. longer-match: Displays the matched route having the longest prefix length. verbose: Displays both active and inactive verbose routing information.
  • Page 34: Display Ipv6 Routing-Table Ipv6-Address1 Ipv6-Address2

    Destination: 10::/120 Protocol : Static NextHop : :: Preference: 60 Interface : NULL0 Cost # Display brief information about the matching route with the longest prefix length. <Sysname> display ipv6 routing-table 10:: 127 longer-match Routing Tables: Summary Count : 1 Destination: 10::/120 Protocol : Static NextHop...
  • Page 35: Display Ipv6 Routing-Table Ipv6-Prefix

    Table 1-4 for description about the above output. display ipv6 routing-table ipv6-prefix Syntax display ipv6 routing-table ipv6-prefix ipv6-prefix-name [ verbose ] View Any view Default Level 1: Monitor level Parameters ipv6-prefix-name: Name of the IPv6 prefix list, a string of 1 to 19 characters. verbose: Displays detailed information about both active and inactive routes.
  • Page 36: Display Ipv6 Routing-Table Statistics

    verbose: Displays detailed route information about both active and inactive routes. Without this keyword, only brief active route information is displayed. Description Use the display ipv6 routing-table protocol command to display the routes of a specified routing protocol. Examples # Display brief information about all direct routes. <Sysname>...
  • Page 37: Display Ipv6 Routing-Table Verbose

    BGP4+ Total Table 1-5 display ipv6 routing-table statistics command output description Field Description Protocol Routing protocol route Route number of the protocol active Number of active routes added Routes added since the startup of the router deleted Deleted routes, which will be permanently removed after a specified time freed Released (permanently removed from the routing table) route number Total...
  • Page 38: Display Router Id

    : 22161sec Table 1-6 display ipv6 routing-table verbose command output description Field Description Destination Destination IPv6 address PrefixLength Prefix length of the address Nexthop Next hop Preference Route preference RelayNextHop Recursive next hop Tag of the route Neighbour Neighbor address ProcessID Process ID Interface...
  • Page 39: Reset Ip Routing-Table Statistics Protocol

    Examples # Display the router ID. <Sysname> display router id Configured router ID is 1.1.1.1 router id Syntax router id router-id undo router id View System view Default Level 2: System level Parameters router-id: Router ID, expressed as an IPv4 address. Description Use the router id command to configure a router ID.
  • Page 40: Reset Ipv6 Routing-Table Statistics

    View User view Default Level 2: System level Parameters vpn-instance-name: VPN instance name, a string of 1 to 31 case-sensitive characters. protocol: Clears statistics for the IPv4 routing protocol, which can be bgp, direct, isis, ospf, rip, or static. all: Clears statistics for all IPv4 routing protocols. Description Use the reset ip routing-table statistics protocol command to clear routing statistics for the routing table or VPN routing table.
  • Page 41: Static Routing Configuration Commands

    Static Routing Configuration Commands The term router in this document refers to both routers and Layer 3 switches. Static Routing Configuration Commands 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.
  • Page 42: Ip Route-Static

    ip route-static Syntax ip route-static dest-address { mask | mask-length } { next-hop-address [ track track-entry-number interface-type interface-number next-hop-address { control-packet | echo-packet } ] | vpn-instance d-vpn-instance-name next-hop-address [ track track-entry-number ] } [ preference preference-value ] [ tag tag-value ] [ description description-text ] undo ip route-static dest-address { mask | mask-length } [ next-hop-address | interface-type interface-number [ next-hop-address ] | vpn-instance d-vpn-instance-name next-hop-address ]...
  • Page 43 preference preference-value : Specifies the preference of the static route, which is in the range of 1 to 255 and defaults to 60. tag tag-value: Sets a tag value for the static route from 1 to 4294967295. The default is 0. Tags of routes are used in routing policies to control routing.
  • Page 44: Ip Route-Static Default-Preference

    The static route does not take effect if you specify its next hop address first and then configure the address as the IP address of a local interface, such as a VLAN interface. If route flapping occurs, enabling BFD may worsen it. Be cautious when using BFD. For details about BFD, see BFD Configuratio in the High Availability Configuration Guide.
  • Page 45: Ip Route-Static Fast-Reroute

    Description Use the ip route-static default-preference command to configure the default preference for static routes. Use the undo ip route-static default-preference command to restore the default. By default, the default preference of static routes is 60. Note that: If no preference is specified when configuring a static route, the default preference is used. When the default preference is re-configured, it applies to subsequently added static routes only.
  • Page 46 Static route FRR takes effect only for static routes that have both the outbound interface and next hop specified. Do not use static route FRR and BFD (for static route) at the same time. Example # Enable static route FRR to designate a backup next hop by using route policy frr. <Sysname>...
  • Page 47: Rip Configuration Commands

    RIP Configuration Commands The term router in this document refers to both routers and Layer 3 switches. RIP Configuration Commands 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.
  • Page 48: Default-Route

    undo default cost View RIP view Default Level 2: System level 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.
  • Page 49: Display Rip

    The RIP router with this feature configured will not receive any default routes from RIP neighbors. Related commands: rip default-route. Examples # Configure all the interfaces under RIP process 1 to send only a default route with a metric of 2 to RIP neighbors.
  • Page 50 update output delay : 20(ms) output count : 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...
  • Page 51: Display Rip Database

    Field Description Maximum retransmit times for update requests TRIP response packets retransmit count and responses Number of silent interfaces, which do not Silent interfaces periodically send updates 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.
  • Page 52: Display Rip Interface

    <Sysname> display rip 100 database 10.0.0.0/8, cost 1, ClassfulSumm 10.0.0.0/24, cost 1, nexthop 10.0.0.1, Rip-interface 11.0.0.0/8, cost 1, ClassfulSumm 11.0.0.0/24, cost 1, nexthop 10.0.0.1, Imported Table 3-2 display rip database command output description Field Description X.X.X.X/X Destination address and subnet mask cost Cost of the route classful-summ...
  • Page 53: Display Rip Route

    Table 3-3 display rip interface command output description Field Description Interface-name Name of an interface running RIP Address/Mask IP address and mask of the interface Version RIP version running on the interface Additional routing metric added to the incoming MetricIn routes Name of the route policy used to add the additional routing metric for incoming routes.
  • Page 54 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. Description Use the display rip route command to display the routing information of a specified RIP process.
  • Page 55 Table 3-4 display rip route command output description Field Description R — RIP route T — TRIP route P — The route never expires Route Flags A — The route is aging S — The route is suppressed G — The route is in Garbage-collect state Routing information learned on a RIP interface from the Peer 21.0.0.23 on Vlan-interface 1 specified neighbor...
  • Page 56: Fast-Reroute

    fast-reroute Syntax fast-reroute route-policy route-policy-name undo fast-reroute View RIP view Default Level 2: System level Parameters route-policy route-policy-name: References a route policy to designate a backup next hop. The route-policy-name argument is a string of 1 to 19 characters. Description Use the fast-reroute command to configure RIP fast reroute (FRR).
  • Page 57 undo filter-policy export [ protocol [ process-id ] | interface-type interface-number ] View RIP view Default Level 2: System level Parameters acl-number: Number of an ACL used to filter outbound routes, in the range of 2000 to 3999. ip-prefix ip-prefix-name: Name of an IP prefix list used to filter outbound routes, a string of 1 to 19 characters.
  • Page 58: Filter-Policy Import (Rip View)

    # Reference IP prefix list abc to filter outbound routes on VLAN-interface 1. [Sysname-rip-1] filter-policy ip-prefix abc export Vlan-interface 1 # Configure ACL 3000 to permit only route 113.0.0.0/16 to pass, and reference ACL 3000 to filter outbound routes. <Sysname> system-view [Sysname] acl number 3000 [Sysname-acl-adv-3000] rule 10 permit ip source 113.0.0.0 0 destination 255.255.0.0 [Sysname-acl-adv-3000] rule 100 deny ip...
  • Page 59: Host-Route

    Related commands: acl and ip ip-prefix. Examples # Reference ACL 2000 to filter incoming routes. <Sysname> system-view [Sysname] acl number 2000 [Sysname-acl-basic-2000] rule deny source 192.168.10.0 0.0.0.255 [Sysname-acl-basic-2000] quit [Sysname] rip 1 [Sysname-rip-1] filter-policy 2000 import # Reference IP prefix list abc on Vlan-interface 1 to filter all received RIP routes. [Sysname-rip-1] filter-policy ip-prefix abc import Vlan-interface 1 # Configure ACL 3000 to permit only route 113.0.0.0/16 to pass, and reference ACL 3000 to filter incoming routes.
  • Page 60: Import-Route (Rip View)

    RIPv2 can be disabled from receiving host routes, but RIPv1 cannot. Examples # Disable RIP from receiving host routes. <Sysname> system-view [Sysname] rip 1 [Sysname-rip-1] undo host-route import-route (RIP view) Syntax import-route protocol [ process-id | all-processes | allow-ibgp ] [ cost cost | route-policy route-policy-name | tag tag ] * undo import-route protocol [ process-id ] View...
  • Page 61: Maximum Load-Balancing (Rip View)

    Only active routes can be redistributed. You can use the display ip routing-table protocol command to display route state information. You can specify a route policy by using the keyword route-policy to redistribute only the specified routes. You can configure a cost for redistributed routes by using the keyword cost. You can configure a tag value for redistributed routes by using the keyword tag.
  • Page 62: Network

    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. Use the undo network command to disable RIP on the interface attached to the specified network.
  • Page 63: Peer

    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.
  • Page 64: Preference

    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: Route policy name with 1 to 19 characters. value: Preference for RIP routes, in the range of 1 to 255. The smaller the value, the higher the preference.
  • Page 65: Reset Rip Statistics

    Description Use the reset rip process command to reset the specified RIP process. 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...
  • Page 66: Rip Authentication-Mode

    Use the undo rip command to disable a RIP process. By default, no RIP process runs. Note that: 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.
  • Page 67: Rip Bfd Enable

    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...
  • Page 68: Rip Input

    undo rip default-route 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.
  • Page 69: Rip Metricin

    Default Level 2: System level Parameters None Description Use the rip input command to enable the interface to receive RIP messages. Use the undo rip input command to disable the interface from receiving RIP messages. By default, an interface is enabled to receive RIP messages. Related commands: rip output.
  • Page 70: Rip Metricout

    the rip metricout command. Note that, the rip metricout command does not support the + or – keyword (used to add or reduce a metric) specified in the apply cost command. For details about the apply cost command, see Route Policy Configuration Commands in the Layer 3 - IP Routing Command Reference.
  • Page 71: Rip Mib-Binding

    Examples Configure VLAN-interface 10 to add a metric of 6 for the outgoing route 1.0.0.0/8 and to add a metric of 2 for other outgoing routes. <Sysname> system-view [Sysname] ip ip-prefix 123 permit 1.0.0.0 8 [Sysname] route-policy abc permit node 0 [Sysname-route-policy] if-match ip-prefix 123 [Sysname-route-policy] apply cost 6 [Sysname] interface vlan-interface 10...
  • Page 72: Rip Poison-Reverse

    Default Level 2: System level Parameters None Description Use the rip output command to enable the interface to send RIP messages. Use the undo rip output command to disable the interface from sending RIP messages. Sending RIP messages is enabled on an interface by default. Related commands: rip input.
  • Page 73: Rip Summary-Address

    View Interface view Default Level 2: System level Parameters None Description Use the rip split-horizon command to enable the split horizon function. 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.
  • Page 74: Rip Version

    Description Use the rip summary-address command to configure RIPv2 to advertise a summary route through the interface. Use the undo rip summary-address command to remove the configuration. Note that the summary address is valid only when the automatic summarization is disabled. Related commands: summary.
  • Page 75: Silent-Interface (Rip View)

    Receive RIPv1 unicast messages Receive RIPv2 broadcast messages Receive RIPv2 multicast messages Receive RIPv2 unicast messages When RIPv2 runs on the interface in multicast mode, the interface will: Send RIPv2 multicast messages Receive RIPv2 broadcast messages Receive RIPv2 multicast messages Receive RIPv2 unicast messages Examples # Configure VLAN-interface 10 to broadcast RIPv2 messages.
  • Page 76: Summary

    summary Syntax summary undo summary View RIP view Default Level 2: System level 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.
  • Page 77: Validate-Source-Address

    update-value: Update timer time in seconds, in the range of 1 to 3600. Description Use the timers command to configure RIP timers. By adjusting RIP timers, you can improve network performance. Use the undo timers command to restore the default. By default, the garbage-collect timer is 120 seconds, the suppress timer 120 seconds, the timeout timer 180 seconds, and the update timer 30 seconds.
  • Page 78: Version

    Description Use the validate-source-address command to enable the source IP address validation on incoming RIP routing updates. Use the undo validate-source-address command to disable the source IP address validation. The source IP address validation is enabled by default. Generally, disabling the validation is not recommended. Examples # Disable the source IP address validation on incoming RIP routing updates.
  • Page 79 <Sysname> system-view [Sysname] rip 100 [Sysname-rip-100] version 2 3-33...
  • Page 80: Ospf Configuration Commands

    OSPF Configuration Commands OSPF Configuration Commands The term router 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 OSPF area view...
  • Page 81: Area (Ospf View)

    Examples # Summarize networks 36.42.10.0/24 and 36.42.110.0/24 in Area 1 into 36.42.0.0/16. <Sysname> system-view [Sysname] ospf 100 [Sysname-ospf-100] area 1 [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...
  • Page 82: Authentication-Mode

    Parameters ip-address: IP address of the summary route in dotted decimal notation. mask: Summary route mask, in dotted decimal notation. mask-length: Length of summary route mask, in the range 0 to 32 bits. 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.
  • Page 83: Bandwidth-Reference (Ospf View)

    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. Routers that reside in the same area must have the same authentication mode: non-authentication, simple, or MD5.
  • Page 84: Default

    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. limit: Specifies the default upper limit of routes redistributed per time, in the range 1 to 2147483647.
  • Page 85: Default-Route-Advertise (Ospf View)

    Description Use the default-cost command to configure a cost for the default route advertised to the stub or NSSA area. Use the undo default-cost command to restore the default value. The cost defaults to 1. This command is only applicable to the ABR of a stub area or the ABR/ASBR of an NSSA area. Related commands: stub, nssa.
  • Page 86: Description (Ospf/Ospf Area View)

    summary: Advertises the Type-3 summary LSA of the specified default route. Description Use the default-route-advertise command to generate a default route into the OSPF routing domain. Use the undo default-route-advertise command to disable OSPF from distributing a default external route. By default, no default route is distributed.
  • Page 87: Display Ospf Abr-Asbr

    [Sysname] ospf 100 [Sysname-ospf-100] description abc # Describe OSPF area 0 as bone area. <Sysname> system-view [Sysname] ospf 100 [Sysname-ospf-100] area 0 [Sysname-ospf-100-area-0.0.0.0] description bone area display ospf abr-asbr Syntax display ospf [ process-id ] abr-asbr View Any view Default Level 1: Monitor level Parameters process-id: OSPF process ID, in the range 1 to 65535.
  • Page 88: Display Ospf Asbr-Summary

    Field Description Nexthop Next hop address RtType Router type: ABR, ASBR display ospf asbr-summary Syntax display ospf [ process-id ] asbr-summary [ ip-address { mask | mask-length } ] View Any view Default Level 1: Monitor level Parameters process-id: OSPF process ID, in the range 1 to 65535. ip-address: IP address, in dotted decimal format.
  • Page 89: Display Ospf Brief

    Destination Net Mask Proto Process Type Metric 30.1.2.0 255.255.255.0 OSPF 30.1.1.0 255.255.255.0 OSPF Table 4-2 display ospf asbr-summary command output description Field Description Total Summary Address Count Total number of summary routes Address of the summary route Mask Mask of the summary route address Tag of the summary route Status Advertisement status of the summary route...
  • Page 90 Examples # Display OSPF brief information. <Sysname> display ospf brief OSPF Process 1 with Router ID 192.168.1.2 OSPF Protocol Information RouterID: 192.168.1.2 Border Router: NSSA Route Tag: 0 Multi-VPN-Instance is not enabled SPF-schedule-interval: 5 0 5000 LSA generation interval: 5 0 5000 LSA arrival interval: 1000 Transmit pacing: Interval: 20 Count: 3 Default ASE parameters: Metric: 1 Tag: 1 Type: 2...
  • Page 91 Field Description Whether the router is a boarder router: Border Router ASBR NSSA ABR Route Tag The tag of redistributed routes Multi-VPN-Instance is not enabled The OSPF process does not support multi-VPN-instance. SPF-schedule-interval Interval for SPF calculations LSA generation interval LSA generation interval LSA arrival interval Minimum LSA repeat arrival interval...
  • Page 92: Display Ospf Cumulative

    Field Description Authentication type of the area: None: No authentication Authtype Simple: simple authentication MD5: MD5 authentication Area flag The type of the area SPF scheduled Count SPF calculation count in the OSPF area Interface Interface in the area Cost Interface cost State Interface state...
  • Page 93 OSPF Process 1 with Router ID 2.2.2.2 Cumulations IO Statistics Type Input Output Hello DB Description Link-State Req Link-State Update Link-State Ack LSAs originated by this router Router: 4 Network: 0 Sum-Net: 0 Sum-Asbr: 0 External: 0 NSSA: 0 Opq-Link: 0 Opq-Area: 0 Opq-As: 0 LSAs Originated: 4 LSAs Received: 7...
  • Page 94: Display Ospf Error

    Field Description Sum-Net Number of Type-3 LSAs originated Sum-Asbr Number of Type-4 LSAs originated External Number of Type-5 LSAs originated NSSA Number of Type-7 LSAs originated Opq-Link Number of Type-9 LSAs originated Opq-Area Number of Type-10 LSAs originated Opq-As Number of Type-11 LSAs originated LSA originated Number of LSAs originated LSA Received...
  • Page 95 : OSPF Router ID confusion : OSPF bad packet : OSPF bad version : OSPF bad checksum : OSPF bad area ID : OSPF drop on unnumber interface : OSPF bad virtual link : OSPF bad authentication type : OSPF bad authentication key 0 : OSPF packet too small : OSPF Neighbor state low : OSPF transmit error...
  • Page 96: Display Ospf Interface

    Field Description HELLO: Neighbor unknown Hello packets received from unknown neighbors DD: MTU option mismatch DD packets with mismatched MTU DD: Unknown LSA type DD packets with unknown LSA type DD: Extern option mismatch DD packets with mismatched option field LS ACK: Bad ack Bad LSAck packets for LSU packets LS ACK: Unknown LSA type...
  • Page 97: Display Ospf Lsdb

    Area: 0.0.0.0 IP Address Type State Cost Pri 192.168.1.1 P-2-P 1562 1 0.0.0.0 0.0.0.0 Area: 0.0.0.1 IP Address Type State Cost Pri 172.16.0.1 Broadcast 172.16.0.1 0.0.0.0 Table 4-6 display ospf interface command output description Field Description Area Area ID of the interface IP address Interface IP address (regardless of whether TE is enabled or not) Interface network type:...
  • Page 98 Default Level 1: Monitor level Parameters process-id: OSPF process ID, in the range 1 to 65535. brief: Displays brief LSDB information. asbr: Displays Type-4 LSA (ASBR Summary LSA) information in the LSDB. ase: Displays Type-5 LSA (AS External LSA) information in the LSDB. network: Displays Type-2 LSA (Network LSA) information in the LSDB.
  • Page 99 Table 4-7 display ospf lsdb command output description Field Description Area LSDB information of the area Type LSA type LinkState ID Linkstate ID AdvRouter The router that advertised the LSA Age of the LSA Length of the LSA Sequence Sequence number of the LSA Metric Cost of the LSA # Display Type2 LSA (Network LSA) information in the LSDB.
  • Page 100: Display Ospf Nexthop

    Table 4-8 display ospf lsdb network command output description Field Description Type LSA type LS ID DR IP address Adv Rtr Router that advertised the LSA LS Age LSA age time LSA length LSA options: O: Opaque LSA advertisement capability E: AS External LSA reception capability Options EA: External extended LSA reception capability...
  • Page 101: Display Ospf Peer

    <Sysname> display ospf nexthop OSPF Process 1 with Router ID 192.168.0.1 Routing Nexthop Information Next Hops: Address Refcount IntfAddr Intf Name ---------------------------------------------------------------- 192.168.0.1 192.168.0.1 Vlan-interface1 192.168.0.2 192.168.0.1 Vlan-interface1 192.168.1.1 192.168.1.1 Vlan-interface2 Table 4-9 display ospf nexthop command output description Field Description Next hops Information about Next hops...
  • Page 102 Examples # Display detailed OSPF neighbor information. <Sysname> display ospf peer verbose OSPF Process 1 with Router ID 1.1.1.1 Neighbors Area 0.0.0.0 interface 1.1.1.1(Vlan-interface1)'s neighbors Router ID: 1.1.1.2 Address: 1.1.1.2 GR State: Normal State: Full Mode: Nbr is Master Priority: 1 DR: 1.1.1.2 BDR: 1.1.1.1 MTU: 0 Dead timer due in 33 sec Neighbor is up for 02:03:35...
  • Page 103 Field Description Neighbor state: Down: This is the initial state of a neighbor conversation. Init: In this state, the router has seen a Hello packet from the neighbor. However, router established bidirectional communication with the neighbor (the router itself did not appear in the neighbor's hello packet). Attempt: Available only in an NBMA network, Under this state, the OSPF router has not received any information from a neighbor for a period but can send Hello packets at a...
  • Page 104: Display Ospf Peer Statistics

    Neighbor Brief Information Area: 0.0.0.0 Router ID Address Pri Dead-Time Interface State 1.1.1.2 1.1.1.2 Eth1/1 Full/DR Table 4-11 display ospf peer command output description Field Description Area Neighbor area Router ID Neighbor router ID Address Neighbor interface address Neighboring router priority Dead time(s) Dead interval remained Interface...
  • Page 105: Display Ospf Request-Queue

    Table 4-12 display ospf peer statistics command output description Field Description Area ID. The state statistics information of all the routers in the area to which the Area ID router belongs is displayed. Down Number of neighboring routers in the Down state in the same area Attempt Number of neighboring routers in the Attempt state in the same area Init...
  • Page 106: Display Ospf Retrans-Queue

    OSPF Process 1 with Router ID 1.1.1.1 OSPF Request List The Router's Neighbor is Router ID 2.2.2.2 Address 10.1.1.2 Interface 10.1.1.1 Area 0.0.0.0 Request list: Type LinkState ID AdvRouter Sequence Router 2.2.2.2 1.1.1.1 80000004 Network 192.168.0.1 1.1.1.1 80000003 Sum-Net 192.168.1.0 1.1.1.1 80000002 Table 4-13 display ospf request-queue command output description...
  • Page 107: Display Ospf Routing

    If no OSPF process is specified, the retransmission queue information of all OSPF processes is displayed. Examples # Display OSPF retransmission queue information. <Sysname> display ospf retrans-queue OSPF Process 1 with Router ID 1.1.1.1 OSPF Retransmit List The Router's Neighbor is Router ID 2.2.2.2 Address 10.1.1.2 Interface 10.1.1.1 Area 0.0.0.0...
  • Page 108 Parameters process-id: OSPF process ID, in the range 1 to 65535. interface interface-type interface-number: Displays OSPF routing information advertised via the interface. nexthop nexthop-address: Displays OSPF routing information with the specified next hop. Description Use the display ospf routing command to display OSPF routing information. If no OSPF process is specified, the routing information of all OSPF processes is displayed.
  • Page 109: Display Ospf Vlink

    display ospf vlink Syntax display ospf [ process-id ] vlink View Any view Default Level 1: Monitor level Parameters process-id: OSPF process ID, in the range 1 to 65535. Description Use the display ospf vlink command to display OSPF virtual link information. If no OSPF process is specified, the OSPF virtual link information of all OSPF processes is displayed.
  • Page 110: Enable Link-Local-Signaling

    enable link-local-signaling Syntax enable link-local-signaling undo enable link-local-signaling View OSPF view Default Level 2: System level Parameters None Description Use the enable link-local-signaling command to enable the OSPF link-local signaling (LLC) capability. Use the undo enable link-local-signaling command to disable the OSPF link-local signaling capability.
  • Page 111: Enable Out-Of-Band-Resynchronization

    If no keyword is specified, all logging is enabled. Examples # Enable OSPF logging. <Sysname> system-view [Sysname] ospf 100 [Sysname-ospf-100] enable log enable out-of-band-resynchronization Syntax enable out-of-band-resynchronization undo enable out-of-band-resynchronization View OSPF view Default Level 2: System level Parameters None Description Use the enable out-of-band-resynchronization command to enable the OSPF out-of-band resynchronization (OOB-Resynch) capability.
  • Page 112: Filter

    Parameters auto: Calculates a backup next hop automatically for all routes. route-policy route-policy-name: References a route policy to designate a backup next hop. The route-policy-name argument is a string of 1 to 19 characters. Description Use the fast-reroute command to configure OSPF fast reroute (FRR). Use the undo fast-reroute command to restore the default.
  • Page 113: Filter-Policy Export (Ospf View)

    export: Filters Type-3 LSAs advertised to other areas. import: Filters Type-3 LSAs advertised into the area. Description Use the filter command to configure incoming/outgoing Type-3 LSAs filtering on an ABR. Use the undo filter command to disable Type-3 LSA filtering. By default, Type-3 LSAs filtering is disabled.
  • Page 114: Filter-Policy Import (Ospf View)

    By default, the filtering of redistributed routes is not configured. You can use this command to filter redistributed routes as needed. Note that if you want to reference an advanced ACL (with a number from 3000 to 3999) in the command, the ACL should be configured with the rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard command to deny/permit a route with the specified destination, or with the rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard destination dest-addr dest-wildcard command to...
  • Page 115: Graceful-Restart (Ospf View)

    ip-prefix ip-prefix-name: Name of an IP address prefix list used to filter incoming routes based on destination IP address, a string of up to 19 characters. For details about IP prefix lists, see Route Policy Configuration in the Layer 3 - IP Routing Configuration Guide. route-policy route-policy-name: Name of a route policy used to filter incoming routes based on route policy, a string of up to 19 characters.
  • Page 116: Graceful-Restart Help

    Default Level 2: System level Parameters ietf: Enables the IETF GR capability. nonstandard: Enables the non-IETF GR capability. Description Use the graceful-restart command to enable OSPF Graceful Restart capability. Use the undo graceful-restart command to disable OSPF Graceful Restart capability. By default, OSPF Graceful Restart capability is disabled.
  • Page 117: Graceful-Restart Interval (Ospf View)

    Parameters acl-number: Basic or advanced ACL number, in the range 2000 to 3999. prefix-list: Name of the specified IP prefix list, a string of 1 to 19 characters. Description Use the graceful-restart help command to configure for which OSPF neighbors the current router can serve as a GR Helper.
  • Page 118: Host-Advertise

    Examples # Configure the Graceful Restart interval for OSPF process 1 as 100 seconds. <Sysname> system-view [Sysname] ospf 1 [Sysname-ospf-1] graceful-restart interval 100 host-advertise Syntax host-advertise ip-address cost undo host-advertise ip-address View OSPF area view Default Level 2: System level Parameters ip-address: IP address of a host cost: Cost of the route, in the range 1 to 65535.
  • Page 119 Parameters protocol: Redistributes routes from the specified protocol, which can be bgp, direct, isis, ospf, rip, or static. process-id: Process ID, in the range 1 to 65535. The default is 1. It is available only when the protocol is rip, ospf, or isis. all-processes: Redistributes routes from all the processes of the specified routing protocol.
  • Page 120: Log-Peer-Change

    The import-route command cannot redistribute default routes. Use the import-route bgp allow-ibgp command with care, because it redistributes both EBGP and IBGP routes that may cause routing loops. Only active routes can be redistributed. You can use the display ip routing-table protocol command to display route state information.
  • Page 121: Lsa-Arrival-Interval

    lsa-arrival-interval Syntax lsa-arrival-interval interval undo lsa-arrival-interval View OSPF view Default Level 2: System level Parameters interval: Specifies the minimum LSA repeat arrival interval in milliseconds, in the range 0 to 60000. Description Use the lsa-arrival-interval command to specify the minimum LSA repeat arrival interval. Use the undo lsa-arrival-interval command to restore the default.
  • Page 122: Lsdb-Overflow-Limit

    incremental-interval: LSA generation incremental interval in milliseconds, in the range 10 to 60000. The default is 5000 milliseconds. Description Use the lsa-generation-interval command to configure the OSPF LSA generation interval. Use the undo lsa-generation-interval command to restore the default. The LSA generation interval defaults to 5 seconds. With this command configured, when network changes are not frequent, LSAs are generated at the initial-interval.
  • Page 123: Maximum-Routes

    undo maximum load-balancing View OSPF view Default Level 2: System level Parameters maximum: Maximum number of equal cost routes for load balancing. The number ranges from 1 to 8. No load balancing is available when the number is set to 1. Description Use the maximum load-balancing command to specify the maximum number of equal cost routes for load balancing.
  • Page 124: Network (Ospf Area View)

    Examples # Specify the maximum number of intra-area routes as 500. <Sysname> system-view [Sysname] ospf 100 [Sysname-ospf-100] maximum-routes intra 500 network (OSPF area view) Syntax network ip-address wildcard-mask undo network ip-address wildcard-mask View OSPF area view Default Level 2: System level Parameters ip-address: IP address of a network.
  • Page 125: Opaque-Capability Enable

    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 regardless of whether the default route is available.
  • Page 126: Ospf

    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-10 and Type-11 opaque LSAs. Use the undo opaque-capability command to restore the default. The feature is disabled by default.
  • Page 127: Ospf Authentication-Mode

    <Sysname> system-view [Sysname] ospf 100 router-id 10.10.10.1 [Sysname-ospf-100] ospf authentication-mode Syntax For MD5/HMAC-MD5 authentication: ospf authentication-mode { hmac-md5 | md5 } key-id [ cipher | plain ] password undo ospf authentication-mode { hmac-md5 | md5 } key-id For simple authentication: ospf authentication-mode simple [ cipher | plain ] password undo ospf authentication-mode simple View...
  • Page 128: Ospf Bfd Enable

    Examples # Configure the network 131.119.0.0/16 in Area 1 to support MD5 cipher authentication, and set the interface key ID to 15, authentication password to abc, and password type to cipher. <Sysname> system-view [Sysname] ospf 100 [Sysname-ospf-100] area 1 [Sysname-ospf-100-area-0.0.0.1] network 131.119.0.0 0.0.255.255 [Sysname-ospf-100-area-0.0.0.1] authentication-mode md5 [Sysname-ospf-100-area-0.0.0.1] quit [Sysname-ospf-100] quit...
  • Page 129: Ospf Cost

    [Sysname-ospf-1] area 0 [Sysname-ospf-1-area-0.0.0.0] network 192.168.0.0 0.0.255.255 [Sysname] interface vlan-interface 11 [Sysname-Vlan-interface11] ospf bfd enable ospf cost Syntax ospf cost value undo ospf cost View Interface view Default Level 2: System level Parameters value: OSPF cost, in the range 0 to 65535 for a loopback interface and 1 to 65535 for other interfaces. Description Use the ospf cost command to set an OSPF cost for the interface.
  • Page 130: Ospf Dr-Priority

    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. Use the undo ospf dr-priority command to restore the default value.
  • Page 131: Ospf Mtu-Enable

    Examples # Bind OSPF process 100 to MIB operation. <Sysname> system-view [Sysname] ospf mib-binding 100 # Restore the default, that is, bind the OSPF process with the smallest process ID to MIB operation. <Sysname> system-view [Sysname] undo ospf mib-binding ospf mtu-enable Syntax ospf mtu-enable undo ospf mtu-enable...
  • Page 132 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. unicast: Specifies the P2MP interface to unicast OSPF packets. By default, a P2MP interface multicasts OSPF packets.
  • Page 133: Ospf Packet-Process Prioritized-Treatment

    <Sysname> system-view [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] ospf network-type nbma ospf packet-process prioritized-treatment Syntax ospf packet-process prioritized-treatment undo ospf packet-process prioritized-treatment View System view Default Level 2: System level Parameters None Description Use the ospf packet-process prioritized-treatment command to enable OSPF to give priority to receiving and processing Hello packets.
  • Page 134: Ospf Timer Hello

    If an interface receives no hello packet from a neighbor within the dead interval, the interface considers the neighbor down. The dead interval on an interface is at least four times the hello interval. Any two routers attached to the same segment must have the same dead interval. Related commands: ospf timer hello.
  • Page 135: Ospf Timer Poll

    Examples # Configure the hello interval on the current interface as 20 seconds. <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.
  • Page 136: Ospf Trans-Delay

    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.
  • Page 137: Peer

    This configuration is not supported on the null interface. Examples # Set the LSA transmission delay to 3 seconds on the current interface. <Sysname> system-view [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] ospf trans-delay 3 peer Syntax peer ip-address [ cost value | dr-priority dr-priority ] undo peer ip-address View OSPF view...
  • Page 138: Preference

    Examples # Specify the neighbor 1.1.1.1. <Sysname> system-view [Sysname] ospf 100 [Sysname-ospf-100] peer 1.1.1.1 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.
  • Page 139: Reset Ospf Process

    Default Level 2: System level 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.
  • Page 140: Reset Ospf Redistribution

    Warning : Reset OSPF process? [Y/N]:Y 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.
  • Page 141: Silent-Interface (Ospf View)

    Examples # Disable making RFC 1583 routing rules compatible. <Sysname> system-view [Sysname] ospf 100 [Sysname-ospf-100] undo rfc1583 compatible silent-interface (OSPF view) Syntax silent-interface { interface-type interface-number | all } undo silent-interface { interface-type interface-number | all } View OSPF view Default Level 2: System level Parameters...
  • Page 142: Spf-Schedule-Interval

    View System view Default Level 3: Manage level 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.
  • Page 143: Stub (Ospf Area View)

    View OSPF view 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.
  • Page 144: Stub-Router

    Description Use the stub command to configure an area as a stub area. Use the undo stub command to remove the configuration. No area is stub area by default. Note that, to cancel the no-summary configuration on the ABR, simply execute the stub command again to overwrite it.
  • Page 145: Transmit-Pacing

    transmit-pacing Syntax transmit-pacing interval interval count count undo transmit-pacing View OSPF view Default Level 2: System level Parameters interval: 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, you are recommended to increase this interval to reduce the total numbers of LSU packets sent by the router every second.
  • Page 146 hello seconds: Hello interval in seconds, in the range 1 to 8192. The default is 10. It must be identical to the hello interval on its virtual link neighbor. retransmit seconds: Retransmission interval in seconds, in the range 1 to 3600, which defaults to 5. trans-delay seconds: Transmission delay interval in seconds, in the range 1 to 3600, which defaults to 1.
  • Page 147: Is-Is Configuration Commands

    IS-IS Configuration Commands The term router in this document refers to both routers and Layer-3 switches. IS-IS Configuration Commands 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.
  • Page 148: Auto-Cost Enable

    Use the undo area-authentication-mode command to restore the default. No area authentication is configured by default. The password in the specified mode is inserted into all outgoing Level-1 packets (LSP, CSNP and PSNP) and is used for authenticating the incoming Level-1 packets. With area authentication configured, IS-IS discards incoming routes from untrusted routers.
  • Page 149: Bandwidth-Reference (Is-Is View)

    Examples # Enable automatic link cost calculation. <Sysname> system-view [Sysname] isis 1 [Sysname-isis-1] auto-cost enable bandwidth-reference (IS-IS view) Syntax bandwidth-reference value undo bandwidth-reference 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.
  • Page 150: Cost-Style

    For styles wide and wide-compatible, the cost value ranges from 0 to 16777215. level-1: Applies the link cost to Level-1. level-2: Applies the link cost to Level-2. Description Use the circuit-cost command to set a global IS-IS link cost. Use the undo circuit-cost command to restore the default. By default, no global link cost is configured.
  • Page 151: Default-Route-Advertise (Is-Is View)

    Examples # Configure the router to send only narrow cost style packets, but receive both narrow and wide cost style packets. <Sysname> system-view [Sysname] isis 1 [Sysname-isis-1] cost-style narrow-compatible 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...
  • Page 152: Display Isis Brief

    display isis brief Syntax display isis brief [ process-id | vpn-instance vpn-instance-name ] 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.
  • Page 153: Display Isis Debug-Switches

    Field Description Lsp-length receive Maximum LSP that can be received Lsp-length originate Maximum LSP that can be generated Maximum number of redistributed Level-1/Level-2 IPv4 maximum imported routes number routes lsp-max-age Maximum life period of LSP Timers lsp-refresh Refresh interval of LSP Interval between SPFs Interval between SPF calculations display isis debug-switches...
  • Page 154 Default Level 1: Monitor level Parameters level-1: Displays the IS-IS Level-1 Graceful Restart state. level-2: Displays the IS-IS Level-2 Graceful Restart state. process-id: IS-IS Process ID, in the range 1 to 65535. vpn-instance vpn-instance-name: Name of a VPN instance, a string of 1 to 31 characters. Description Use the display isis graceful-restart status command to display IS-IS Graceful Restart status.
  • Page 155: Display Isis Interface

    Field Description Number of LSPs not obtained by the GR restarter Number of LSPs Awaited from GR helpers during LSDB synchronization T3 Timer Status Remaining time of T3 timer T2 Timer Status Remaining time of T2 Timer display isis interface Syntax display isis interface [ statistics | [ interface-type interface-number ] [ verbose ] ] [ process-id | vpn-instance vpn-instance-name ]...
  • Page 156 IPV4.State IPV6.State MTU Type DIS Down 1497 L1/L2 No/No SNPA Address : 000f-e237-c6e0 IP Address : 192.168.1.48 Secondary IP Address(es) IPV6 Link Local Address IPV6 Global Address(es) Csnp Timer Value : L1 10 L2 Hello Timer Value : L1 10 L2 Hello Multiplier Value : L1 3 L2...
  • Page 157 Field Description IPV4.State IPv4 state IPV6.State IPv6 state Interface MTU Type Interface link adjacency type Whether the interface is elected as the DIS or not SNPA Address Subnet access point address IP Address Primary IP address Secondary IP Address(es) Secondary IP addresses IPV6 Link Local Address IPv6 link local address IPV6 Global Address(es)
  • Page 158: Display Isis Lsdb

    Table 5-4 display isis interface statistics command output description Field Description Network type of the interface: Type LAN for broadcast network. P2P for point-to-point network. IPv4 UP Number of IS-IS interfaces in up state IPv4 DOWN Number of IS-IS interfaces in down state Number of IS-ISv6 interfaces in up state.
  • Page 159 Examples # Display brief Level-1 LSDB information. <Sysname> display isis lsdb level-1 Level-1 Link State Database LSPID Seq Num Checksum Holdtime Length ATT/P/OL -------------------------------------------------------------------------- 1111.1111.1111.00-00 0x00000004 0xa76 0/0/0 1111.1111.1112.00-00* 0x00000006 0x498d 0/0/0 1111.1111.1112.01-00* 0x00000001 0x4c0e 0/0/0 *-Self LSP, +-Self LSP(Extended), ATT-Attached, P-Partition, OL-Overload # Display detailed Level-1 LSDB information.
  • Page 160: Display Isis Mesh-Group

    Table 5-5 display isis lsdb command output description Field Description LSPID Link state packet ID Seq Num LSP sequence number Checksum LSP checksum Holdtime LSP lifetime which decreases as time elapses Length LSP length 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.
  • Page 161: Display Isis Name-Table

    View Any view Default Level 1: Monitor level Parameters process-id: Displays IS-IS mesh-group configuration information for the IS-IS process. The ID is in the range of 1 to 65535. vpn-instance-name: Displays IS-IS mesh-group configuration information for the VPN instance. The VPN instance name is a string of 1 to 31 characters.
  • Page 162: Display Isis Peer

    Parameters process-id: Displays the host name-to-system ID mapping table for the IS-IS process. The ID is in the range of 1 to 65535. vpn-instance-name: Displays the host name-to-system ID mapping table for the VPN instance. The VPN instance name is a string of 1 to 31 characters. Description Use the display isis name-table command to display the host name-to-system ID mapping table.
  • Page 163 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. Description Use the display isis peer command to display IS-IS neighbor information.
  • Page 164 Field Description Interface Interface connecting to the neighbor Circuit Id Circuit ID State Circuit state Holdtime HoldTime Within the holdtime if no hellos are received from the neighbor, the neighbor is considered down. If a hello is received, the holdtime is reset to the initial value. Circuit type L1 means the circuit type is Level-1 and the neighbor is a Level-1 router.
  • Page 165: Display Isis Route

    Field Description IPv4 Up Number of IPv4 neighbors in up state IPv4 Init Number of IPv4 neighbors in init state IPv6 Up Number of IPv6 neighbors in up state IPv6 Init Number of IPv6 neighbors in init state display isis route Syntax display isis route [ ipv4 ] [ [ level-1 | level-2 ] | verbose ] * [ process-id | vpn-instance vpn-instance-name ]...
  • Page 166 1.1.0.0/16 NULL Vlan1 1.2.1.1 R/L/- 1.2.0.0/16 NULL Vlan1 Direct D/L/- Flags: D-Direct, R-Added to RM, L-Advertised in LSPs, U-Up/Down Bit Set ISIS(1) IPv4 Level-2 Forwarding Table ------------------------------------- IPV4 Destination IntCost ExtCost ExitInterface NextHop Flags -------------------------------------------------------------------------- 1.1.0.0/16 NULL 1.2.0.0/16 NULL Vlan1 Direct D/L/- Flags: D-Direct, R-Added to RM, L-Advertised in LSPs, U-Up/Down Bit Set...
  • Page 167 IPV4 Dest : 1.1.0.0/16 Int. Cost : 20 Ext. Cost : NULL Admin Tag : - Src Count : 2 Flag : R/L/- NextHop Interface : ExitIndex : 1.2.1.1 Vlan1 0x00000008 IPV4 Dest : 1.2.0.0/16 Int. Cost : 10 Ext. Cost : NULL Admin Tag : - Src Count : 2 Flag...
  • Page 168: Display Isis Spf-Log

    Field Description Next Hop Next hop Interface Outgoing interface ExitIndex Index of the outgoing interface display isis spf-log Syntax display isis spf-log [ process-id | vpn-instance vpn-instance-name ] View Any view Default Level 1: Monitor level Parameters process-id: Displays IS-IS SPF log information for the IS-IS process. The ID is in the range of 1 to 65535.
  • Page 169: Display Isis Statistics

    IS_SPFTRIG_PERIODIC 12:35:24 IS_SPFTRIG_PERIODIC 12:35:24 IS_SPFTRIG_PERIODIC 12:49:24 IS_SPFTRIG_PERIODIC 12:49:24 IS_SPFTRIG_PERIODIC 13:3:24 Table 5-12 display isis spf-log command output description Field Description SPF Log information for ISIS(1) SPF log information for IS-IS process 1 Level SPF calculation level Trig.Event SPF triggered event No.Nodes Number of SPF calculation nodes Duration...
  • Page 170 Level-1 Statistics ------------------ Learnt routes information: Total IPv4 Learnt Routes in IPv4 Routing Table: 1 Total IPv6 Learnt Routes in IPv6 Routing Table: 0 Imported routes information: IPv4 Imported Routes: Static: 0 Direct: 0 ISIS: BGP: RIP: OSPF: IPv6 Imported Routes: Static: 0 Direct: 0 ISISv6: 0...
  • Page 171: Domain-Authentication-Mode

    Field Description LSP information Lsp information LSP Source ID: ID of the source 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 2: System level Parameters...
  • Page 172: Fast-Reroute

    Related commands: area-authentication-mode, isis authentication-mode. 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...
  • Page 173: Filter-Policy Export (Is-Is View)

    [Sysname] route-policy frr permit node 10 [Sysname-route-policy] if-match ip-prefix abc [Sysname-route-policy] apply fast-reroute backup-interface vlan-interface 1 backup-nexthop 193.1.1.8 [Sysname-route-policy] quit [Sysname] isis 100 [Sysname-isis-100] fast-reroute route-policy frr filter-policy export (IS-IS view) Syntax filter-policy { acl-number | ip-prefix ip-prefix-name | route-policy route-policy-name } export [ protocol [ process-id ] ] undo filter-policy export [ protocol [ process-id ] ] View...
  • Page 174: Filter-Policy Import (Is-Is View)

    Related commands: filter-policy import. Examples # Reference ACL 2000 to filter redistributed routes. <Sysname> system-view [Sysname] acl number 2000 [Sysname-acl-basic-2000] rule deny source 192.168.10.0 0.0.0.255 [Sysname-acl-basic-2000] quit [Sysname] isis 1 [Sysname-isis-1] filter-policy 2000 export # Configure ACL 3000 to permit only route 113.0.0.0/16 to pass, and reference ACL 3000 to filter redistributed routes.
  • Page 175: Flash-Flood

    IS-IS does not filter routes calculated from received LSPs by default. Note that if you want to reference an advanced ACL (with a number from 3000 to 3999) in the command or in the route policy, the ACL should be configured with the rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard command to deny/permit a route with the specified destination, or with the rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard destination dest-addr dest-wildcard command to deny/permit a route with the specified destination and mask.
  • Page 176: Graceful-Restart (Is-Is View)

    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.
  • Page 177 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.
  • Page 178: Import-Route (Is-Is View)

    import-route (IS-IS view) Syntax import-route protocol [ process-id | all-processes | allow-ibgp ] [ cost cost | cost-type { external | internal } | [ level-1 | level-1-2 | level-2 ] | route-policy route-policy-name | tag tag ] * undo import-route protocol [ process-id | all-processes ] View IS-IS view Default Level...
  • Page 179: Import-Route Isis Level-2 Into Level-1

    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. Using the import-route bgp command redistributes only EBGP routes. Using the import-route bgp allow-ibgp command redistributes both EBGP and IBGP routes, but this may cause routing loops;...
  • Page 180: Import-Route Limit (Is-Is View)

    Description Use the import-route isis level-2 into level-1 command to enable route leaking from Level-2 to Level-1. Use the undo import-route isis level-2 into level-1 command to disable routing leaking. No route leaking is configured by default. Note that: You can specify a route policy in the import-route isis level-2 into level-1 command to filter routes from Level-2 to Level-1.
  • Page 181: Isis

    isis Syntax isis [ process-id ] [ vpn-instance vpn-instance-name undo isis [ process-id ] View System view 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 and/or enter IS-IS view.
  • Page 182: Isis Bfd Enable

    level-2: Configures the password for Level-2. ip: Checks IP related fields in LSPs and SNPs. osi: Checks OSI related fields in LSPs and SNPs. 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.
  • Page 183: Isis Circuit-Level

    Default Level 2: System level Parameters None Description Use the isis bfd enable command to enable BFD on an IS-IS interface for link failure detection. Use the undo isis bfd enable command to disable BFD on an IS-IS interface. By default, an IS-IS interface is not enabled with BFD. Examples # Enable IS-IS and BFD on VLAN-interface 11 of the switch.
  • Page 184: Isis Circuit-Type P2P

    <Sysname> system-view [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] isis enable [Sysname-Vlan-interface10] isis circuit-level level-1 isis circuit-type p2p Syntax isis circuit-type p2p undo isis circuit-type 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.
  • Page 185: Isis Cost

    isis cost Syntax isis cost value [ level-1 | level-2 ] undo isis cost [ level-1 | level-2 ] View Interface view Default Level 2: System level Parameters value: Specifies an IS-IS cost for the interface. The cost range differs with cost styles. For cost styles narrow, narrow-compatible and compatible, the cost ranges from 1 to 63.
  • Page 186: Isis Dis-Priority

    Description Use the isis dis-name command to configure a name for a DIS to represent the pseudo node on a broadcast network. Use the undo isis dis-name command to remove the configuration. No name is configured for the DIS by default. Note that this command takes effect only on a router that must have dynamic system ID to host name mapping enabled.
  • Page 187: Isis Enable

    priority, the router with the highest SNPA (Subnetwork Point of Attachment) address (SNPA addresses are MAC addresses on a broadcast network) becomes the DIS. There is no backup DIS in IS-IS and the router with a priority of 0 can also participate in DIS election. This command is not available in loopback interface view.
  • Page 188: Isis Mesh-Group

    isis mesh-group Syntax isis mesh-group { mesh-group-number | mesh-blocked } undo isis mesh-group View Interface view Default Level 2: System level Parameters mesh-group-number: Mesh group number, ranging from 1 to 4294967295. mesh-blocked: Blocks the interface, which sends LSPs only after receiving LSP requests. Description Use the isis mesh-group command to add the interface into a specified mesh group or block the interface.
  • Page 189: Isis Silent

    View System view Default Level 2: System level Parameters process-id: IS-IS process ID, in the range 1 to 65535. Description Use the isis mib-binding command to bind MIBs with an IS-IS process. Use the undo isis mib-binding command to restore the default. By default, MIBs are bound with IS-IS process 1.
  • Page 190: Isis Small-Hello

    [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] isis silent isis small-hello Syntax isis small-hello undo isis small-hello View Interface view Default Level 2: System level Parameters None Description Use the isis small-hello command to configure the interface to send small hello packets without CLVs.
  • Page 191: Isis Timer Hello

    Parameters seconds: Specifies on the DIS of a broadcast network the interval in seconds for sending CSNP packets, ranging from 1 to 600. level-1: Applies the interval to Level-1. level-2: Applies the interval to Level-2. Description Use the isis timer csnp command to specify on the DIS of a broadcast network the interval for sending CSNP packets.
  • Page 192: Isis Timer Holding-Multiplier

    Use the undo isis timer hello command to restore the default. The default hello interval is 10 seconds. Level-1 and Level-2 hello packets are sent independently on a broadcast network, so you need to specify an interval for the two levels respectively. On a P2P link, Level-1 and Level-2 packets are both sent in P2P hello packets, and you need not specify an interval for two levels respectively.
  • Page 193: Isis Timer Lsp

    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).
  • Page 194: Isis Timer Retransmit

    This command is not available in loopback interface view. Examples # Configure the interval as 500 milliseconds for sending LSPs on interface VLAN-interface 10. <Sysname> system-view [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] isis timer lsp 500 isis timer retransmit Syntax isis timer retransmit seconds undo isis timer retransmit View Interface view...
  • Page 195: Is-Level

    <Sysname> system-view [Sysname] interface Vlan-interface 1 [Sysname-Vlan-interface1] isis timer retransmit 10 is-level Syntax is-level { level-1 | level-1-2 | level-2 } 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.
  • Page 196: Is-Name Map

    Default Level 2: System level Parameters symbolic-name: Specifies a host name for the local IS, a string of 1 to 64 characters. Description Use the is-name command to specify a host name for the IS to enable dynamic system ID to hostname mapping.
  • Page 197: Log-Peer-Change (Is-Is View)

    undo is-snmp-traps View IS-IS view Default Level 2: System level 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.
  • Page 198: Lsp-Fragments-Extend

    lsp-fragments-extend Syntax lsp-fragments-extend [ [ level-1 | level-1-2 | level-2 ] | [ mode-1 | mode-2 ] ] * undo lsp-fragments-extend 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.
  • Page 199: Lsp-Length Receive

    Parameters size: Specifies the maximum size in bytes of LSP packets, ranging from 512 to 16384. level-1: Applies the size to Level-1 LSP packets. level-2: Applies the size to Level-2 LSP packets. Description Use the lsp-length originate command to configure the maximum size of generated Level-1 or Level-2 LSPs.
  • Page 200: Maximum Load-Balancing (Is-Is View)

    [Sysname] isis 1 [Sysname-isis-1] lsp-length receive 1024 maximum load-balancing (IS-IS view) Syntax maximum load-balancing number undo maximum load-balancing View IS-IS view Default Level 2: System level Parameters number: Maximum number of equal-cost routes for load balancing. The number ranges from 1 to 8.. Description Use the maximum load-balancing command to configure the maximum number of equal-cost routes for load balancing.
  • Page 201: Preference (Is-Is View)

    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.
  • Page 202: Reset Isis All

    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 as 25.
  • Page 203: Set-Overload

    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.
  • Page 204: Summary (Is-Is View)

    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. Note that: If the on-startup keyword is not specified, the command sets the overload bit immediately until the undo set-overload command is executed.
  • Page 205: Timer Lsp-Generation

    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.
  • Page 206: Timer Lsp-Max-Age

    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, that is, 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.
  • Page 207: Timer Lsp-Refresh

    [Sysname-isis-1] timer lsp-max-age 1500 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.
  • Page 208: Virtual-System

    Parameters maximum-interval: Maximum SPF calculation interval in seconds, ranging from 1 to 120. initial-interval: Wait interval before the first SPF calculation, in milliseconds, ranging from 10 to 60000. second-interval: Wait interval before the second SPF calculation, in milliseconds, ranging from 10 to 60000.
  • Page 209 Default Level 2: System level Parameters virtual-system-id: Virtual system ID of the IS-IS process. 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.
  • Page 210: Bgp Configuration Commands

    BGP Configuration Commands The term router in this document refers to both routers and Layer-3 switches. For more information about route policy configuration commands in this document, see Route Policy Configuration Commands in the Layer 3 - IP Routing Command Reference. BGP Configuration Commands aggregate Syntax...
  • Page 211 Table 6-1 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 as-set paths need to be summarized, because the frequent changes of these specific routes may lead to route oscillation.
  • Page 212: Balance (Bgp/Bgp-Vpn Instance View)

    balance (BGP/BGP-VPN instance view) Syntax balance number undo balance View BGP view, VPN instance view Default Level 2: System level 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.
  • Page 213: Bestroute Compare-Med (Bgp/Bgp-Vpn Instance View)

    Parameters None Description Use the bestroute as-path-neglect command to configure BGP not to consider the AS_PATH during best route selection. Use the undo bestroute as-path-neglect command to configure BGP to consider the AS_PATH during best route selection. By default, BGP considers the AS_PATH during best route selection. Examples # In BGP view, ignore AS_PATH in route selection.
  • Page 214: Bestroute Med-Confederation (Bgp/Bgp-Vpn Instance View)

    <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-vpn1] bestroute compare-med bestroute med-confederation (BGP/BGP-VPN instance view) Syntax bestroute med-confederation undo bestroute med-confederation 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.
  • Page 215: Compare-Different-As-Med (Bgp/Bgp-Vpn Instance View)

    Default Level 2: System level Parameters as-number: Specifies the local AS number from 1 to 4294967295. Description Use the bgp command to enable BGP and enter the BGP view. Use the undo bgp command to disable BGP. By default, BGP is not enabled. Examples # Enable BGP and set local AS number to 100.
  • Page 216: Confederation Nonstandard

    [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-vpn1] compare-different-as-med confederation id Syntax confederation id as-number undo confederation id 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.
  • Page 217: Confederation Peer

    undo confederation nonstandard View BGP view Default Level 2: System level Parameters None 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.
  • Page 218: Dampening (Bgp/Bgp-Vpn Instance View)

    By default, no confederation peer sub-ASs are configured. Before this configuration, the confederation id command must be used to specify the confederation for the sub-ASs. If the undo confederation peer-as command without the as-number-list argument is used, all confederation peer sub-ASs are removed. Related commands: confederation nonstandard and confederation id.
  • Page 219: Default Ipv4-Unicast

    The command dampens only EBGP routes rather than IBGP routes. Related commands: reset bgp dampening, reset bgp flap-info, display bgp routing-table dampened, display bgp routing-table dampening parameter and display bgp routing-table flap-info. Examples # In BGP view, configure BGP route dampening. <Sysname>...
  • Page 220: Default Local-Preference (Bgp/Bgp-Vpn Instance View)

    <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] default ipv4-unicast default local-preference (BGP/BGP-VPN instance view) Syntax default local-preference value undo default local-preference 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.
  • Page 221: Default-Route Imported (Bgp/Bgp-Vpn Instance View)

    Parameters med-value: Default MED value, in the range 0 to 4294967295. Description Use the default med command to specify a default MED value. Use the undo default med command to restore the default. By default, the default med-value is 0. Multi-exit discriminator (MED) is an external metric for routes.
  • Page 222: Display Bgp Group

    Examples # In BGP view, allow default route redistribution from OSPF into BGP. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] default-route imported [Sysname-bgp] import-route ospf 1 # In BGP-VPN instance view, enable redistributing default route from OSPF into BGP (the VPN has been created).
  • Page 223: Display Bgp Network

    Table 6-2 display bgp group command 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...
  • Page 224: Display Bgp Paths

    View Any view Default Level 1: Monitor level Parameters None Description Use the display bgp network command to display routing information advertised with the network command. Examples # Display routing information advertised with the network command. <Sysname> display bgp network BGP Local Router ID is 10.1.4.2.
  • Page 225: Display Bgp Peer

    Parameters as-regular-expression: AS path regular expression, a string of 1 to 80 characters. Description Use the display bgp paths command to display information about BGP AS paths. Examples # Display information about BGP paths with AS number starting from 200. <Sysname>...
  • Page 226 group-name: Name of a peer group to be displayed, a string of 1 to 47 characters. log-info: Displays the log information of the specified peer. verbose: Displays the detailed information of the peer/peer group. Description Use the display bgp peer command to display peer/peer group information. Examples # Display the detailed information of the peer 10.110.25.20.
  • Page 227 Field Description BGP version BGP version remote router ID Router ID of the peer BGP current state Current state of the peer BGP current event Current event of the peer BGP last state Previous state of the peer Port TCP port numbers of the local router and its peer Configured: Active Hold Time Local holdtime interval Keepalive Time...
  • Page 228 Field Description Negotiation result: The local BGP router can send Router-refresh messages carrying the ORF information, and the peer can receive Router-refresh Negotiated: send messages carrying the ORF information. (This field is not displayed if neither the send nor the receive capability is supported.) Peer Preferred Value Preferred value specified for the routes from the peer...
  • Page 229: Display Bgp Peer Received Ip-Prefix

    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 peer received ip-prefix Syntax display bgp peer ip-address received ip-prefix View Any view...
  • Page 230: Display Bgp Routing-Table

    Field Description less-equal, indicating the mask length must be less than or equal to the specific value. display bgp routing-table Syntax display bgp routing-table [ ip-address [ { mask | mask-length } [ longer-prefixes ] ] ] View Any view Default Level 1: Monitor level Parameters...
  • Page 231: Display Bgp Routing-Table As-Path-Acl

    Field Description BGP Local router BGP local router ID Status codes: * – valid > – best d – damped Status codes h – history i – internal (IGP) s – summary suppressed (suppressed) S – Stale i – IGP (originated in the AS) Origin e –...
  • Page 232: Display Bgp Routing-Table Cidr

    View Any view Default Level 1: Monitor level Parameters as-path-acl-number: Displays routing information permitted by the AS path ACL, which is specifies with a number from 1 to 256. Description Use the display bgp routing-table as-path-acl command to display BGP routes permitted by an as-path ACL.
  • Page 233: Display Bgp Routing-Table Community

    BGP Local router ID is 20.20.20.1 Status codes: * - valid, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? – incomplete Network NextHop LocPrf...
  • Page 234: Display Bgp Routing-Table Community-List

    *> 10.10.10.0/24 0.0.0.0 *> 40.40.40.0/24 20.20.20.1 200 300i Table 6-8 for description on the fields above. display bgp routing-table community-list Syntax display bgp routing-table community-list { basic-community-list-number [ whole-match ] | adv-community-list-number }&<1-16> View Any view Default Level 1: Monitor level Parameters basic-community-list-number: Specifies a basic community-list number from 1 to 99.
  • Page 235: Display Bgp Routing-Table Dampening Parameter

    Default Level 1: Monitor level Parameters None Description Use the display bgp routing-table dampened command to display dampened BGP routes. Examples # Display dampened BGP routes. <Sysname> display bgp routing-table dampened BGP Local router ID is 2.2.2.2 Status codes: * - valid, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? –...
  • Page 236: Display Bgp Routing-Table Different-Origin

    Examples # Display BGP route dampening parameters. <Sysname> display bgp routing-table dampening parameter Maximum Suppress Time(in second) : 3069 Ceiling Value : 16000 Reuse Value : 750 Reach HalfLife Time(in second) : 900 Unreach HalfLife Time(in second): 900 Suppress-Limit : 2000 Table 6-10 display bgp routing-table dampening parameter command output description Field Description...
  • Page 237: Display Bgp Routing-Table Flap-Info

    Origin : i - IGP, e - EGP, ? – incomplete Network NextHop LocPrf PrefVal Path/Ogn *> 55.0.0.0 12.1.1.1 100? 14.1.1.2 300? Table 6-8 for description on the fields above. display bgp routing-table flap-info Syntax display bgp routing-table flap-info [ regular-expression as-regular-expression | as-path-acl as-path-acl-number | ip-address [ { mask | mask-length } [ longer-match ] ] ] View Any view...
  • Page 238: Display Bgp Routing-Table Label

    Table 6-11 display bgp routing-table flap-info command 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 6-8 for description on the other fields above. display bgp routing-table label Syntax display bgp routing-table label...
  • Page 239: Display Bgp Routing-Table Peer

    display bgp routing-table peer Syntax display routing-table peer ip-address advertised-routes received-routes [ network-address [ mask | mask-length ] | statistic ] View Any view Default Level 1: Monitor level Parameters ip-address: IP address of a peer. advertised-routes: Displays routing information advertised to the specified peer. received-routes: Displays routing information received from the specified peer.
  • Page 240: Display Bgp Routing-Table Statistic

    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. Examples # Display BGP routing information with AS number ended with 300. <Sysname>...
  • Page 241: Ebgp-Interface-Sensitive

    ebgp-interface-sensitive Syntax ebgp-interface-sensitive undo ebgp-interface-sensitive View BGP view, BGP-VPN instance view Default Level 2: System level Parameters None Description Use the ebgp-interface-sensitive command to enable the clearing of EBGP session on any interface that becomes down. Use the undo ebgp-interface-sensitive command to disable the function. This function is enabled by default.
  • Page 242 ip-prefix-name: Name of an IP prefix list used to filter outgoing routing information, a string of 1 to 19 characters. direct: Filters direct routes. isis process-id: Filters outgoing routes redistributed from an ISIS process. The ID is in the range 1 to 65535.
  • Page 243: Filter-Policy Import (Bgp/Bgp-Vpn Instance View)

    filter-policy import (BGP/BGP-VPN instance view) Syntax filter-policy { acl-number | ip-prefix ip-prefix-name } import undo filter-policy import View BGP view, BGP-VPN instance view Default Level 2: System level Parameters acl-number: Number of an ACL used to filter incoming routing information, ranging from 2000 to 3999. ip-prefix-name: Name of an IP prefix list used to filter incoming routing information, a string of 1 to 19 characters.
  • Page 244: Graceful-Restart (Bgp View)

    [Sysname-bgp] filter-policy 3000 import graceful-restart (BGP view) Syntax graceful-restart undo graceful-restart View BGP view Default Level 2: System level Parameters None Description Use the graceful-restart command to enable BGP Graceful Restart capability. Use the undo graceful-restart command to disable BGP Graceful Restart capability. By default, BGP Graceful Restart capability is disabled.
  • Page 245: Graceful-Restart Timer Wait-For-Rib

    Description Use the graceful-restart timer restart command to configure the maximum time for a peer to reestablish a BGP session. Use the undo graceful-restart timer restart command to restore the default. By default, the maximum time for a peer to reestablish a BGP session is 150 seconds. Examples # Configure the maximum time for a peer to reestablish a BGP session as 300 seconds.
  • Page 246: Group (Bgp/Bgp-Vpn Instance View)

    group (BGP/BGP-VPN instance view) Syntax group group-name [ external | internal ] undo group group-name 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. external: Creates an EBGP peer group, which can be the group of another sub AS in a confederation.
  • Page 247 View BGP view, BGP-VPN instance view Default Level 2: System level Parameters protocol: Redistributes routes from the specified routing protocol, which can be direct, isis, ospf, rip or static at present. process-id: Process ID, in the range 1 to 65535. The default is 1. It is available only when the protocol is isis, ospf, or rip.
  • Page 248: Log-Peer-Change

    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. By default, the function is enabled.
  • Page 249: Network Short-Cut (Bgp/Bgp-Vpn Instance View)

    The network route to be injected must exist in the local IP routing table, and using a routing policy makes route management more flexible. The ORIGIN attribute of the network route injected with the network command is IGP. Examples # In BGP view, inject the network segment 10.0.0.0/16. <Sysname>...
  • Page 250: Peer Advertise-Community (Bgp/Bgp-Vpn Instance View)

    [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-vpn1] network 10.0.0.0 255.255.0.0 short-cut peer advertise-community (BGP/BGP-VPN instance view) Syntax peer { group-name | ip-address } advertise-community undo peer { group-name | ip-address } advertise-community 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.
  • Page 251: Peer Allow-As-Loop (Bgp/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 advertise-ext-community command to advertise the extended community attribute to a peer/peer group. Use the undo peer advertise-ext-community command to disable the extended community attribute advertisement to a peer/peer group.
  • Page 252: Peer As-Number (Bgp/Bgp-Vpn Instance View)

    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 allow-as-loop command to remove the configuration. By default, the local AS number is not allowed in routes from a peer/peer group.
  • Page 253: Peer As-Path-Acl (Bgp/Bgp-Vpn Instance View)

    Use the peer ip-address as-number as-number command. After that, the system creates the specified peer by default. Specify the AS number of the peer when adding it to the specified peer group by using the peer ip-address group group-name as-number as-number command; or use the peer as-number command to specify the AS number of a peer group, and then a newly added peer will belong to the AS.
  • Page 254: Peer Bfd

    Examples # In BGP view, reference the AS path ACL 1 to filter routes outgoing to the peer group test. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] peer test as-path-acl 1 export # In BGP-VPN instance view, reference the AS path ACL 1 to filter routes outgoing to the peer group test (the VPN has been created).
  • Page 255: Peer Capability-Advertise Orf

    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 capability-advertise conventional command to disable BGP multi-protocol extension and route refresh for a peer/peer group. Use the undo peer capability-advertise conventional command to enable BGP multi-protocol extension and route refresh for a peer/peer group.
  • Page 256: Peer Capability-Advertise Orf Non-Standard

    After you enable the ORF capability, the local BGP router negotiates the ORF capability with the BGP peer through Open messages. After that, the BGP router can exchange ORF information in Route-refresh messages with the peer. For non-standard ORF capability negotiation, you need also to configure the peer capability-advertise orf non-standard command.
  • Page 257: Peer Capability-Advertise Route-Refresh

    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. Parameters Use the peer capability-advertise orf non-standard command to enable the non-standard ORF capability (the early implementation of ORF is different from that defined in RFC) for a BGP peer or peer group.
  • Page 258: Peer Connect-Interface (Bgp/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 capability-advertise route-refresh command to enable the BGP route refresh capability. Use the undo peer capability-advertise route-refresh command to disable the capability. The capability is enabled by default.
  • Page 259: Peer Default-Route-Advertise (Bgp/Bgp-Vpn Instance View)

    By default, BGP uses the outbound interface of the best route to the BGP peer/peer group as the source interface for establishing a TCP connection to the peer/peer group. Note that: Suppose interface A on the local device is connected to interface B on the peer device. When using the peer x.x.x.x as-number as-number command on the local device but x.x.x.x is not the IP address of interface B , you need to execute the peer connect-interface command on the peer to specify the source interface, that is, the owner of IP address x.x.x.x, for establishing TCP...
  • Page 260: Peer Description (Bgp/Bgp-Vpn Instance View)

    With this command used, the router unconditionally sends a default route with the next hop being itself to the peer/peer group regardless of whether the default route is available in the routing table. Examples # In BGP view, advertise a default route to peer group test. <Sysname>...
  • Page 261: Peer Ebgp-Max-Hop (Bgp/Bgp-Vpn Instance View)

    peer ebgp-max-hop (BGP/BGP-VPN instance view) Syntax peer { group-name | ip-address } ebgp-max-hop [ hop-count ] undo peer { group-name | ip-address } ebgp-max-hop 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 262: Peer Fake-As (Bgp/Bgp-Vpn Instance View)

    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, the BGP peer is enabled. If a peer is disabled, the router will not exchange routing information with the peer. Examples # Disable peer 18.10.0.9.
  • Page 263: Peer Filter-Policy (Bgp/Bgp-Vpn Instance View)

    [Sysname] bgp 100 [Sysname-bgp] peer test fake-as 200 # In BGP-VPN instance view, configure a fake AS number of 200 for the peer group test (the VPN has been created). <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-vpn1] peer test fake-as 200 peer filter-policy (BGP/BGP-VPN instance view) Syntax peer { group-name | ip-address } filter-policy acl-number { export | import }...
  • Page 264: Peer Group (Bgp/Bgp-Vpn Instance View)

    peer group (BGP/BGP-VPN instance view) Syntax peer ip-address group group-name [ as-number as-number ] undo peer ip-address group group-name 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 265: Peer Ip-Prefix

    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 ignore command to disable session establishment with a peer or peer group. Use the undo peer ignore command to remove the configuration.
  • Page 266: Peer Keep-All-Routes (Bgp/Bgp-Vpn Instance View)

    Description Use the peer ip-prefix command to reference an IP prefix list to filter routes received from or advertised to a peer or peer group. Use the undo peer ip-prefix command to remove the configuration. By default, no IP prefix list based filtering is configured. Examples # In BGP view, use the IP prefix list list 1 to filter routes advertised to the peer group test.
  • Page 267: Peer Log-Change (Bgp/Bgp-Vpn Instance View)

    <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-vpn1] peer 131.100.1.1 as-number 200 [Sysname-bgp-vpn1] peer 131.100.1.1 keep-all-routes peer log-change (BGP/BGP-VPN instance view) Syntax peer { group-name | ip-address } log-change undo peer { group-name | ip-address } log-change View BGP view, BGP-VPN instance view Default Level 2: System level...
  • Page 268: Peer Password

    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 next-hop-local command to specify the router as the next hop for routes sent to a peer/peer group.
  • Page 269: Peer Preferred-Value (Bgp/Bgp-Vpn Instance View)

    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. Use the undo peer password command to disable the function. By default, no MD5 authentication is performed for TCP connection establishment. Once MD5 authentication is enabled, both parties must be configured with the same authentication mode and password.
  • Page 270: Peer Public-As-Only (Bgp/Bgp-Vpn Instance View)

    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 value. The default preferred value is 0. Routes learned from a peer have an initial preferred value. Among multiple routes that have the same destination/mask and are learned from different peers, the one with the greatest preferred value is selected as the route to the destination.
  • Page 271: Peer Reflect-Client (Bgp/Bgp-Vpn Instance View)

    Description Use the peer public-as-only command to not keep private AS numbers in BGP updates sent to a peer/peer group. Use the undo peer public-as-only command to keep private AS numbers in BGP updates sent to a peer/peer group. By default, BGP updates carry private AS numbers. The command does not take effect if the BGP update has both public and private AS numbers.
  • Page 272: Peer Route-Limit (Bgp/Bgp-Vpn Instance View)

    [Sysname] bgp 100 [Sysname-bgp] peer test reflect-client peer route-limit (BGP/BGP-VPN instance view) Syntax peer { group-name | ip-address } route-limit prefix-number [ { alert-only | reconnect reconnect-time } | percentage-value ] * undo peer { group-name | ip-address } route-limit View BGP view, BGP-VPN instance view Default Level...
  • Page 273: Peer Route-Policy (Bgp/Bgp-Vpn Instance View)

    [Sysname-bgp-vpn1] peer 129.140.6.6 route-limit 10000 peer route-policy (BGP/BGP-VPN instance view) Syntax peer { group-name | ip-address } route-policy route-policy-name { export | import } undo peer { group-name | ip-address } route-policy route-policy-name { export | import } View BGP view, BGP-VPN instance view Default Level 2: System level Parameters...
  • Page 274: Peer Substitute-As (Bgp/Bgp-Vpn Instance View)

    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. interval: Minimum interval for sending the same update message. The range is 5 to 600 seconds. Description Use the peer route-update-interval command to specify the interval for sending the same update to a peer/peer group.
  • Page 275: Peer Timer (Bgp/Bgp-Vpn Instance View)

    Description Use the peer substitute-as command to replace the AS number of a peer/peer group in the AS_PATH attribute with the local AS number. Use the undo peer substitute-as command to remove the configuration. No AS number is replaced by default. Examples # In BGP view, substitute local AS number for AS number of peer 1.1.1.1.
  • Page 276: Preference (Bgp/Bgp-Vpn Instance View)

    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. After this command is executed, the peer connection is closed at once, and a new connection to the peer is negotiated using the configured hold time.
  • Page 277: Reflect Between-Clients (Bgp View)

    local-preference: Preference of local routes, in the range 1 to 255. route-policy-name: Routing policy name, a string of 1 to 19 characters. Using the routing policy can set a preference for routes matching it. The default value applies to routes not matching the routing policy. Description Use the preference command to configure preferences for external, internal, and local BGP routes.
  • Page 278: Reflector Cluster-Id (Bgp View)

    Examples # Disable route reflection between clients. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] undo reflect between-clients reflector cluster-id (BGP view) Syntax reflector cluster-id { cluster-id | ip-address } undo reflector cluster-id View BGP view Default Level 2: System level Parameters cluster-id: Cluster ID in the format of an integer from 1 to 4294967295.
  • Page 279: Reset Bgp

    Parameters all: Soft-resets all BGP connections. ip-address: Soft-resets the BGP connection to a peer. group-name: Soft-resets connections to a peer group, name of which is a sting of 1 to 47 characters. external: EBGP connection. internal: IBGP connection. export: Outbound soft reset. import: Inbound soft reset.
  • Page 280: Reset Bgp Dampening

    reset bgp dampening Syntax reset bgp dampening [ ip-address [ mask | mask-length ] ] View User view Default Level 1: Monitor level Parameters ip-address: Destination IP address of a route. mask: Mask, in dotted decimal notation. mask-length: Mask length, in the range 0 to 32. Description Use the reset bgp dampening command to clear route dampening information and release suppressed routes.
  • Page 281: Reset Bgp Ipv4 All

    Examples # Clear the flap statistics of all routes matching AS path ACL 10. <Sysname> reset bgp flap-info as-path-acl 10 reset bgp ipv4 all Syntax reset bgp ipv4 all View User view Default Level 1: Monitor level Parameters None Description Use the reset bgp ipv4 all command to reset all the BGP connections of IPv4 unicast address family.
  • Page 282: Summary Automatic

    Only when the interface with the selected Router ID or the manual Router ID is deleted will the system select another ID for the router. Examples # Specifies the Router ID as 10.18.4.221. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] router-id 10.18.4.221 summary automatic Syntax summary automatic...
  • Page 283: Timer (Bgp/Bgp-Vpn Instance View)

    undo synchronization View BGP view Default Level 2: System level Parameters None Description Use the synchronization command to enable the synchronization between the BGP and IGP routes. 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, BGP speakers in the AS cannot advertise routing information to other ASs unless all routers in the AS know the latest routing information.
  • Page 284 Note that: The timers configured with the peer timer command are preferred to the timers configured with this command. 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.
  • Page 285: Ipv6 Static Routing Configuration Commands

    IPv6 Static Routing Configuration Commands Throughout this chapter, the term router refers to both routers and Layer 3 switches. IPv6 Static Routing Configuration Commands delete ipv6 static-routes all Syntax delete ipv6 static-routes all View System view Default Level 2: System level Parameters None Description...
  • Page 286 undo ipv6 route-static ipv6-address prefix-length interface-type interface-number [ 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. nexthop-address: Next hop IPv6 address.
  • Page 287: Ripng Configuration Commands

    RIPng Configuration Commands The term router in this document refers to both routers and Layer 3 switches. RIPng Configuration Commands 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.
  • Page 288: Display Ripng

    undo default cost View RIPng view 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.
  • Page 289: Display Ripng Database

    Default Cost : 0 Maximum number of balanced paths : 8 Update time 30 sec(s) Timeout time 180 sec(s) Suppress time : 120 sec(s) Garbage-Collect time : 120 sec(s) Number of periodic updates sent : 0 Number of trigger updates sent : 0 Table 8-1 display ripng command output description Field Description...
  • Page 290: Display Ripng Interface

    <Sysname> display ripng 100 database 2001:7B::2:2A1:5DE/64, cost 4, Imported 1:13::/120, cost 4, Imported 1:32::/120, cost 4, Imported 1:33::/120, cost 4, Imported 100::/32, via FE80::200:5EFF:FE04:3302, cost 2 3FFE:C00:C18:1::/64, via FE80::200:5EFF:FE04:B602, cost 2 3FFE:C00:C18:1::/64, via FE80::200:5EFF:FE04:B601, cost 2 3FFE:C00:C18:2::/64, via FE80::200:5EFF:FE04:B602, cost 2 3FFE:C00:C18:3::/64, via FE80::200:5EFF:FE04:B601, cost 2 4000:1::/64,...
  • Page 291 Parameters process-id: RIPng process ID, in the range of 1 to 65535. interface-type interface-number: Specifies an interface. Description Use the display ripng interface command to display the interface information of the RIPng process. If no interface is specified, information about all interfaces of the RIPng process will be displayed.
  • Page 292: Display Ripng Route

    Field Description The summarized IPv6 prefix and the summary Summary address IPv6 prefix on the interface display ripng route Syntax display ripng process-id route View Any view Default Level 1: Monitor level Parameters process-id: RIPng process ID, in the range of 1 to 65535. Description Use the display ripng route command to display all RIPng routes and timers associated with each route of a RIPng process.
  • Page 293: Filter-Policy Export (Ripng View)

    Dest 4000:3::/64, via FE80::200:5EFF:FE04:3302, cost 2, tag 0, A, 6 Sec Dest 4000:4::/64, Table 8-4 display ripng route command output description Field Description Peer Neighbor connected to the interface Dest IPv6 destination address Next hop IPv6 address cost Routing metric value Route tag Time that a route entry stays in a particular state “A”...
  • Page 294: Filter-Policy Import (Ripng View)

    Use the undo filter-policy export command to disable the outbound route filtering. By default, RIPng does not filter any outbound routing information. Note that: With the protocol argument specified, only routing information redistributed from the specified routing protocol will be filtered. Otherwise, all outgoing routing information will be filtered.
  • Page 295: Import-Route

    Description Use the filter-policy import command to define an inbound route filtering policy. Only routes which match the filtering policy can be received. Use the undo filter-policy import command to disable inbound route filtering. By default, RIPng does not filter incoming routing information. Note that if you want to reference an advanced ACL (with a number from 3000 to 3999) in the command, the ACL should be configured with the rule [ rule-id ] { deny | permit } ipv6 source sour sour-prefix command to deny/permit a route with the specified destination, or with the rule...
  • Page 296: Maximum Load-Balancing (Ripng View)

    cost: Routing metric of redistributed routes, in the range of 0 to 16. If cost value is not specified, the metric is the default metric specified by the default cost command. route-policy route-policy-name: Specifies a route policy by its name with 1 to 19 characters. allow-ibgp: Optional keyword when the specified protocol is bgp4+.
  • Page 297: Preference

    Examples # Set the maximum number of load balanced routes with equal cost to 2. <Sysname> system-view [Sysname] ripng 100 [Sysname-ripng-100] maximum load-balancing 2 # Restore the default. [Sysname-ripng-100] undo maximum load-balancing preference Syntax preference [ route-policy route-policy-name ] preference undo preference [ route-policy ] View RIPng view...
  • Page 298: Reset Ripng Process

    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.
  • Page 299: Ripng Default-Route

    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. Description Use the ripng command to create a RIPng process and enter RIPng view. Use the undo ripng command to disable a RIPng process. By default, no RIPng process is enabled.
  • Page 300: Ripng Enable

    Examples # Advertise only the default route through VLAN-interface 100. <Sysname> system-view [Sysname] interface vlan-interface 100 [Sysname-Vlan-interface100] ripng default-route only # Advertise the default route together with other routes through VLAN-interface 101. <Sysname> system-view [Sysname] interface vlan-interface 101 [Sysname-Vlan-interface101] ripng default-route originate ripng enable Syntax ripng process-id enable...
  • Page 301: Ripng Metricout

    Description Use the ripng metricin command to specify an additional metric for received RIPng routes. Use the undo ripng metricin command to restore the default. By default, the additional metric to received routes is 0. Related commands: ripng metricout. Examples # Specify the additional routing metric as 12 for RIPng routes received by VLAN-interface 100.
  • Page 302: Ripng Split-Horizon

    Default Level 2: System level 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.
  • Page 303: Ripng Summary-Address

    Examples Enable the split horizon function on VLAN-interface 100. <Sysname> system-view [Sysname] interface vlan-interface 100 [Sysname-Vlan-interface100] ripng split-horizon 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.
  • Page 304 View RIPng view Default Level 2: System level Parameters garbage-collect-value: Interval of the garbage-collect timer in seconds, in the range of 1 to 86400. suppress-value: Interval of the suppress timer in seconds, in the range of 0 to 86400. timeout-value: Interval of the timeout timer in seconds, in the range of 1 to 86400. update-value: Interval of the update timer in seconds, in the range of 1 to 86400.
  • Page 305: Ospfv3 Configuration Commands

    OSPFv3 Configuration Commands The term router in this document refers to both routers and Layer 3 switches. OSPFv3 Configuration Commands 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.
  • Page 306: Area (Ospfv3 View)

    [Sysname-ospfv3-1-area-0.0.0.1] abr-summary 2000:1:1:: 48 area (OSPFv3 view) Syntax area area-id 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.
  • Page 307: Default Cost

    Description Use the bandwidth-reference command to specify a reference bandwidth value for link cost calculation. Use the undo bandwidth-reference command to restore the default value. The default value is 100 Mbps. You can configure an OSPFv3 cost for an interface with one of the following two methods: Configure the cost value in interface view.
  • Page 308: Default-Cost (Ospfv3 Area View)

    [Sysname-ospfv3-1] default cost 10 default-cost (OSPFv3 area view) Syntax default-cost value undo default-cost View OSPFv3 area view Default Level 2: System level 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.
  • Page 309: Display Ospfv3

    Default Level 2: System level Parameters always: Generates a default route in an ASE LSA into the OSPF routing domain regardless of whether the default route exists in the routing table. Without this keyword, the command can distribute a default route in a Type-5 LSA into the OSPF routing domain only when the default route exists in the routing table.
  • Page 310 View Any view Default Level 1: Monitor level Parameters process-id: Specifies the ID of an OSPFv3 process, ranging from 1 to 65535. 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.
  • Page 311: Display Ospfv3 Graceful-Restart Status

    Field Description Minimum LSA interval Minimum interval for generating LSAs Minimum LSA arrival Minimum LSA repeat arrival interval Number of external LSA Number of ASE LSAs These external LSAs’ checksum Sum Sum of all the ASE LSAs’ checksum Number of AS-Scoped Unknown LSA Number of LSAs with unknown flooding scope Number of LSA originated Number of LSAs originated...
  • Page 312: Display Ospfv3 Interface

    OSPFv3 Router with ID (1.1.1.1) (Process 1) graceful restart information GR status :GR in progress GR remaining time: 100 # Display GR status of all OSPFv3 processes (GR Helper). <Sysname> display ospfv3 graceful-restart status OSPFv3 Router with ID (1.1.1.1) (Process 1) graceful restart information GR status:Helper Neighbor ID...
  • Page 313 Parameters interface-type interface-number: Interface type and interface number. statistic: Displays the interface statistics. Description Use the display ospfv3 interface command to display OSPFv3 interface information. Examples # Display OSPFv3 interface information. <Sysname> display ospfv3 interface vlan-interface 10 Vlan-interface 10 is up, line protocol is up Interface ID 518 IPv6 Prefixes FE80::1441:0:E213:1 (Link-Local Address)
  • Page 314: Display Ospfv3 Lsdb

    Field Description Timer interval configured, Hello: 10, Dead: 40, Wait: Time intervals in seconds configured on the interface, 40, Retransmit: 5 Hello: 10, Dead: 40, Wait: 40, Retransmit: 5 Hello due in 00:00:02 Hello packet will be sent in 2 seconds Neighbor Count Number of Neighbors on the interface Adjacent neighbor count...
  • Page 315 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 CkSum 0.0.2.6 1.1.1.1 0x8000004 0xba1f Router-LSA (Area 0.0.0.1) Link State ID Origin Router Seq# CkSum Link...
  • Page 316 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 9-5 display ospfv3 lsdb command output description Field Description LS age Age of LSA LS Type Type of LSA...
  • Page 317 Table 9-6 display ospfv3 lsdb grace command 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...
  • Page 318: Display Ospfv3 Lsdb Statistic

    Field Description Link-LSA Type 8 LSA Intra-Area-Prefix-LSA Type 9 LSA Grace-LSA Type 11 LSA Unknown-LSA Unknown LSA Total Number Of LSAs Total number of LSAs display ospfv3 lsdb statistic Syntax display ospfv3 lsdb statistic View Any view Default Level 1: Monitor level Parameters None Description...
  • Page 319: Display Ospfv3 Next-Hop

    Field Description InterRou Inter-Area-Router-LSA number IntraPre Intra-Area-Prefix-LSA number 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 View Any view Default Level 1: Monitor level Parameters process-id: Specifies ID of an OSPFv3 process, ranging from 1 to 65535. Description Use the display ospfv3 next-hop command to display OSPFv3 next hop information.
  • Page 320: Display Ospfv3 Peer

    display ospfv3 peer Syntax display ospfv3 [ process-id ] [ area area-id ] peer [ [ interface-type interface-number ] [ verbose ] | peer-router-id ] View Any view Default Level 1: Monitor level Parameters process-id: Specifies the ID of an OSPFv3 process, ranging from 1 to 65535. area: Specifies to display neighbor information of the specified area.
  • Page 321 # 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 DR is 1.1.1.1 BDR is 2.2.2.2 Options is 0x000013 (-|R|-|-|E|V6) Dead timer due in 00:00:39 Neighbor is up for 00:25:31...
  • Page 322: Display Ospfv3 Peer Statistic

    display ospfv3 peer statistic Syntax display ospfv3 peer statistic View Any view Default Level 1: Monitor level Parameters None Description Use the display ospfv3 peer statistic command to display information about all OSPFv3 neighbors on the router, that is, numbers of neighbors in different states. Examples # Display information about all OSPFv3 neighbors.
  • Page 323: Display Ospfv3 Request-List

    Field Description 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 ] View Any view Default Level...
  • Page 324: Display Ospfv3 Retrans-List

    Table 9-13 display ospfv3 request-list command output description Field Description Interface Interface name Area-ID Area ID Nbr-ID Neighbor router ID LS-Type Type of LSA LS-ID Link state ID AdvRouter Advertising router SeqNum LSA sequence number Age of LSA CkSum Checksum # Display the statistics of OSPFv3 link state request list.
  • Page 325 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. intra-prefix: Displays the Intra-area-prefix LSA information of the OSPFv3 link state retransmission list.
  • Page 326: Display Ospfv3 Routing

    Field Description 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 LSA-Count Vlan1 12.1.1.1 Table 9-16 display ospfv3 retrans-list statistics command output description Field Description Interface Interface name...
  • Page 327: Display Ospfv3 Statistic

    E1 - Type 1 external route, IA - Inter area route, I - Intra area route E2 - Type 2 external route, * - Seleted route OSPFv3 Router with ID (1.1.1.1) (Process 1) ------------------------------------------------------------------------ *Destination: 2001::/64 Type Cost NextHop : directly-connected Interface: Vlan1 Table 9-17 display ospfv3 routing command output description Field...
  • Page 328: Display Ospfv3 Topology

    Parameters None Description Use the display ospfv3 statistic command to display outbound/inbound OSPFv3 packet statistics on associated interface(s). Examples # Display outbound/inbound OSPFv3 packet statistics on associated interfaces. <Sysname> display ospfv3 statistic OSPFv3 Statistics Interface Vlan-interface1 Instance 0 Type Input Output Hello DB Description...
  • Page 329: Display Ospfv3 Vlink

    View Any view Default Level 1: Monitor level Parameters process-id: Displays the topology information of an OSPFv3 process; The process ID ranges from 1 to 65535. area: Displays the topology information of the specified area. area-id: ID of an area, a decimal integer (in the range of 0 to 4294967295) that is translated into IPv4 address format by the system or an IPv4 address.
  • Page 330 View Any view Default Level 1: Monitor level Parameters process-id: Specifies the ID of an OSPFv3 process, ranging from 1 to 65535. Description Use the display ospfv3 vlink command to display OSPFv3 virtual link information. If no process is specified, virtual link information of all OSPFv3 processes is displayed. Examples # Display OSPFv3 virtual link information.
  • Page 331: Filter-Policy Export (Ospfv3 View)

    filter-policy export (OSPFv3 view) Syntax filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } export [ bgp4+ | direct | isisv6 process-id | ospfv3 process-id | ripng process-id | static ] undo filter-policy export [ bgp4+ | direct | isisv6 process-id | ospfv3 process-id | ripng process-id | static ] View OSPFv3 view...
  • Page 332: Filter-Policy Import (Ospfv3 View)

    <Sysname> system-view [Sysname] acl ipv6 number 2001 [Sysname-acl6-basic-2001] rule permit source 2002:1:: 64 [Sysname-acl6-basic-2001] quit [Sysname] ospfv3 [Sysname-ospfv3-1] filter-policy 2001 export # Configure ACL6 3000 to permit only route 2001::1/128 to pass, and reference ACL6 3000 to filter redistributed routes. <Sysname>...
  • Page 333: Graceful-Restart Enable

    Examples # Filter received routes using the IPv6 prefix list abc. <Sysname> system-view [Sysname] ip ipv6-prefix abc permit 2002:1::64 [Sysname] ospfv3 1 [Sysname-ospfv3-1] filter-policy ipv6-prefix abc import # Configure ACL6 3000 to permit only route 2001::1/128 to pass, and reference ACL6 3000 to filter received routes.
  • Page 334: Graceful-Restart Helper Strict-Lsa-Checking

    undo graceful-restart helper enable View OSPFv3 view Default Level 2: System level Parameters None Description Use the graceful-restart helper enable command to enable the GR Helper capability for OSPFv3. Use the undo graceful-restart helper enable command to disable the GR Helper capability for OSPFv3.
  • Page 335: Graceful-Restart Interval

    [Sysname-ospfv3-1] graceful-restart helper strict-lsa-checking graceful-restart interval Syntax graceful-restart interval interval-value undo graceful-restart interval View OSPFv3 view Default Level 2: System level Parameters interval-value:GR restart interval, in the range of 40 to 1800 seconds. Description Use the graceful-restart interval command to configure the GR restart interval. Use the undo graceful-restart interval command to restore the default.
  • Page 336: Log-Peer-Change

    Parameters protocol: Redistributes routes from a specified routing protocol, which can be bgp4+, direct, isisv6, ospf v3, ripng, or static. process-id: Process ID of the routing protocol, in the range 1 to 65536. It defaults to 1. This argument takes effect only when the protocol is isisv6, ospfv3, or ripng. allow-ibgp: Allows redistributing iBGP routes.
  • Page 337: Maximum Load-Balancing (Ospfv3 View)

    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. Examples # Disable the logging on neighbor state changes of OSPFv3 process 100.
  • Page 338: Ospfv3 Area

    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. Description Use the ospfv3 command to enable an OSPFv3 process and enter OSPFv3 view. Use the undo ospfv3 command to disable an OSPFv3 process. The system runs no OSPFv3 process by default.
  • Page 339: Ospfv3 Cost

    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.
  • Page 340: Ospfv3 Mtu-Ignore

    View Interface view Default Level 2: System level Parameters priority: DR priority, in the range 0 to 255. instance-id: ID of the instance an interface belongs to, in the range 0 to 255, which defaults to 0. Description Use the ospfv3 dr-priority command to set the DR priority for an interface in an instance. Use the undo ospfv3 dr-priority command to restore the default value.
  • Page 341: Ospfv3 Network-Type

    [Sysname-Vlan-interface10] ospfv3 mtu-ignore instance 1 ospfv3 network-type Syntax ospfv3 network-type { broadcast | nbma | p2mp [ non-broadcast ] | p2p } [ instance instance-id ] undo ospfv3 network-type [ instance instance-id ] View Interface view Default Level 2: System level Parameters broadcast: Specifies the network type as Broadcast.
  • Page 342: Ospfv3 Timer Dead

    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. The default is 0. Description Use the ospfv3 peer command to specify a neighbor and the DR priority of the neighbor. Use the undo ospfv3 peer command to remove the configuration.
  • Page 343: Ospfv3 Timer Hello

    <Sysname> system-view [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] ospfv3 timer dead 80 instance 1 ospfv3 timer hello Syntax ospfv3 timer hello seconds [ instance instance-id ] undo ospfv3 timer hello [ instance instance-id ] View Interface view Default Level 2: System level Parameters seconds: Interval between hello packets, ranging from 1 to 65535.
  • Page 344: Ospfv3 Timer Poll

    Description Use the ospfv3 timer retransmit command to configure the LSA retransmission interval for an interface in an instance. Use the undo ospfv3 timer retransmit command to restore the default. The interval defaults to 5 seconds. After sending a LSA to its neighbor, the device waits for an acknowledgement. If receiving no acknowledgement after the LSA retransmission interval elapses, it will retransmit the LSA.
  • Page 345: Preference

    View Interface view Default Level 2: System level Parameters seconds: Transmission delay in seconds, ranging from 1 to 3600. instance-id: Instance ID of an interface, in the range of 0 to 255, with the default as 0. Description Use the ospfv3 trans-delay command to configure the transmission delay for an interface with an instance ID.
  • Page 346: Router

    By default, the preference for OSPFv3 internal routes is 10, and that for OSPFv3 external routes is 150. The smaller the value is, the higher the preference is. A router may run multiple routing protocols. Each protocol has a preference. When several routing protocols find multiple routes to the same destination, the route found by the protocol with the highest preference is selected.
  • Page 347: Silent-Interface(Ospfv3 View)

    [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 } View OSPFv3 view Default Level 2: System level Parameters interface-type interface-number: Interface type and number all: Specifies all interfaces. Description Use the silent-interface command to disable the specified interface from sending OSPFv3 packets.
  • Page 348: Stub (Ospfv3 Area View)

    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 spf timers command to configure the delay interval and hold interval for OSPFv3 SPF calculation.
  • Page 349: Vlink-Peer (Ospfv3 Area View)

    <Sysname> system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] area 1 [Sysname-ospfv3-1-area-0.0.0.1] stub vlink-peer (OSPFv3 area view) Syntax vlink-peer router-id [ hello seconds | retransmit seconds | trans-delay seconds | dead seconds | instance instance-id ] * undo vlink-peer router-id [ hello | retransmit | trans-delay | dead ] * View OSPFv3 area view Default Level...
  • Page 350 [Sysname-ospfv3-1] area 10.0.0.0 [Sysname-ospfv3-1-area-10.0.0.0] vlink-peer 10.110.0.3 9-46...
  • Page 351: Ipv6 Is-Is Configuration Commands

    IPv6 IS-IS Configuration Commands IPv6 IS-IS Configuration Commands 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 IS-IS Configuration Commands in the Layer 3 - IP Routing Command Reference for other IS-IS configuration commands.
  • Page 352 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 353 Field Description Interface Outbound interface # 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 :...
  • Page 354: Ipv6 Default-Route-Advertise

    Field Description Flag of routing information status D: This is a direct route. R: The route has been added into the routing table. Flag/Flags L: The route has been advertised in a LSP. U: Route leaking flag, indicating the Level-1 route is from Level-2. U means the route will not be returned to Level-2.
  • Page 355: Ipv6 Enable

    Description Use the ipv6 default-route-advertise command to generate a Level-1 or Level-2 IPv6 IS-IS default route. Use the undo ipv6 default-route-advertise command to disable generating a default route. No IPv6 IS-IS default route is generated by default. With a route policy, you can configure IPv6 IS-IS to generate the default route that must match the route policy.
  • Page 356: Ipv6 Filter-Policy Export

    ipv6 filter-policy export Syntax ipv6 filter-policy acl6-number ipv6-prefix ipv6-prefix-name route-policy route-policy-name } export [ protocol [ process-id ] ] undo ipv6 filter-policy export [ protocol [ process-id ] ] View IS-IS view Default Level 2: System level Parameters acl6-number: Number of a basic or advanced IPv6 ACL used to filter redistributed routes, ranging from 2000 to 3999.
  • Page 357: Ipv6 Filter-Policy Import

    keyword specifies the prefix of the route (the prefix must be valid; otherwise, the configuration fails). Related commands: ipv6 filter-policy import. Examples # Reference the ACL6 2006 to filter all redistributed routes. <Sysname> system-view [Sysname] isis 1 [Sysname-isis-1] ipv6 filter-policy 2006 export # Configure ACL6 3000 to permit only route 2001::1/128 to pass, and reference ACL6 3000 to filter redistributed routes.
  • Page 358: Ipv6 Import-Route

    destination, or with the rule [ rule-id ] { deny | permit } ipv6 source sour sour-prefix destination dest dest-prefix command to deny/permit a route with the specified destination and prefix. The source keyword specifies the destination address of a route while the destination keyword specifies the prefix of the route (the prefix must be valid;...
  • Page 359: Ipv6 Import-Route Isisv6 Level-2 Into Level-1

    tag: Specifies a tag for redistributed routes, in the range of 1 to 4294967295. allow-ibgp: Allows redistributing IBGP routes. This keyword is optional when the protocol is bgp4+. Description Use the ipv6 import-route command to enable IPv6 IS-IS to redistribute routes from another routing protocol.
  • Page 360: Ipv6 Import-Route Limit

    route-policy-name: Name of a route policy used to filter routes when they are leaking from Level-2 to Level-1, a string of 1 to 19 characters. tag: Specifies a administrative tag number for the leaked routes, in the range of 1 to 4294967295.
  • Page 361: Ipv6 Maximum Load-Balancing

    ipv6 maximum load-balancing Syntax ipv6 maximum load-balancing number undo ipv6 maximum load-balancing View IS-IS view Default Level 2: System level Parameters number: Maximum number of equal-cost routes for load balancing. The number ranges from 1 to 4. Description Use the ipv6 maximum load-balancing command to configure the maximum number of equal-cost routes for load balancing.
  • Page 362: Ipv6 Summary

    route-policy-name: Name of a route policy, a string of 1 to 19 characters. Description Use the ipv6 preference command to configure the preference for IPv6 IS-IS. Use the undo ipv6 preference command to restore the default. The default preference for IPv6 IS-IS is 15. When a router runs multiple dynamic routing protocols at the same time, the system will assign a preference to each routing protocol.
  • Page 363: Isis Ipv6 Enable

    Use the undo ipv6 summary command to remove the summary route. No route summarization is configured by default. Configuring summary routes can reduce the size of route table, LSPs and LSDB. Routes to be summarized can be IS-IS routes or redistributed routes. The cost of a summary route is the smallest cost among all summarized routes.
  • Page 364: Ipv6 Bgp Configuration Commands

    IPv6 BGP Configuration Commands The term router in this document refers to both routers and Layer-3 switches. For more information about route policy configuration commands in this document, see Route Policy Configuration Commands in the Layer 3 - IP Routing Command Reference. IPv6 BGP Configuration Commands aggregate (IPv6 address family view) Syntax...
  • Page 365: Balance (Ipv6 Address Family View)

    Table 11-1 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-set AS paths need to be summarized, because the frequent changes of these specific routes may lead to route oscillation.
  • Page 366: Bestroute As-Path-Neglect (Ipv6 Address Family View)

    Parameters number: Number of BGP routes participating in 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 routes participating in IPv6 BGP load balancing.
  • Page 367: Bestroute Compare-Med (Ipv6 Address Family View)

    bestroute compare-med (IPv6 address family view) Syntax bestroute compare-med undo bestroute compare-med View IPv6 address family view Default Level 2: System level Parameters None Description Use the bestroute compare-med command to enable the comparison of the MED for paths from each AS.
  • Page 368: Compare-Different-As-Med (Ipv6 Address Family View)

    Description Use the bestroute med-confederation command to enable the comparison of the MED for paths from confederation peers for best route selection. Use the undo bestroute med-confederation command to disable the configuration. By default, this comparison is not enabled. With this feature enabled, the system can only compare the MED for paths from peers within the confederation.
  • Page 369: Dampening (Ipv6 Address Family View)

    dampening (IPv6 address family view) Syntax dampening [ half-life-reachable half-life-unreachable reuse suppress ceiling | route-policy route-policy-name ] * undo dampening View IPv6 address family view Default Level 2: System level Parameters half-life-reachable: Half-life for reachable routes, in the range 1 to 45 minutes. By default, the value is 15 minutes.
  • Page 370: Default Local-Preference (Ipv6 Address Family View)

    default local-preference (IPv6 address family view) Syntax default local-preference value undo default local-preference View IPv6 address family 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.
  • Page 371: Default-Route Imported (Ipv6 Address Family View)

    The multi-exit discriminator (MED) is an external metric of a route. Different from local preference, MED is exchanged between ASs and will stay in the AS once it enters the AS. The route with a lower MED is preferred. When a router running BGP obtains several routes with the identical destination and different next-hops from various external peers, it will select the best route depending on the MED value.
  • Page 372 View Any view Default Level 1: Monitor level Parameters ipv6-group-name: Peer group name, a string of 1 to 47 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. Examples # Display the information of the IPv6 peer group aaa.
  • Page 373 Field Description hold timer value Holdtime Keepalive timer value Keepalive interval Minimum time between advertisement runs Minimum interval between advertisements Route refresh capability has been enabled The route-refresh capability has been enabled. ORF advertise capability based on prefix The BGP peer supports the ORF capability based on IP prefix. (type 64): The capability value is 64.
  • Page 374: Display Bgp Ipv6 Network

    display bgp ipv6 network Syntax display bgp ipv6 network View Any view Default Level 1: Monitor level Parameters None Description Use the display bgp ipv6 network command to display IPv6 routes advertised with the network command. Examples # Display IPv6 routes advertised with the network command. <Sysname>...
  • Page 375: Display Bgp Ipv6 Peer

    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 ipv6 paths command to display IPv6 BGP path information. If no parameter is specified, all path information will be displayed. Examples # Display IPv6 BGP path information.
  • Page 376 View Any view Default Level 1: Monitor level Parameters group-name: Name of an IPv4 or IPv6 peer group, a string of 1 to 47 characters. ipv4-address: IPv4 address of a peer. ipv6-address: Specifies the IPv6 address of a peer to be displayed. log-info: Displays log information of the specified peer.
  • Page 377 Field Description PrefRcv Number of prefixes received The lasting time of a session/the lasting time of present state (when no session is Up/Down established) State Peer state # Display the log information of the IPv6 peer 20::21. <sysname> display bgp ipv6 peer 20::21 log-info Peer : 20::21 Date Time...
  • Page 378: Display Bgp Ipv6 Peer Received Ip-Prefix

    display bgp ipv6 peer received ip-prefix Syntax display bgp ipv6 peer { ip-address | ipv6-address } received ipv6-prefix View Any view Default Level 1: Monitor level Parameters ip-address: IP address of a BGP peer. ipv6-address: IPv6 address of a BGP peer. Description Use the display bgp ipv6 peer received ipv6-prefix command to display the prefix entries in the ORF information of the specified BGP peer.
  • Page 379 View Any view Default Level 1: Monitor level Parameters ipv6-address: Destination IPv6 address. prefix-length: Prefix length of the IPv6 address, in the range 0 to 128. Description Use the display bgp ipv6 routing-table command to display IPv6 BGP routing table information. Examples # Display the IPv6 BGP routing table.
  • Page 380 Table 11-8 display bgp ipv6 routing-table command output description Field Description Local router ID Local router ID Status codes: * – valid > – best d – damped Status codes h – history i – internal (IGP) s – summary suppressed (suppressed) S –...
  • Page 381: Display Bgp Ipv6 Routing-Table As-Path-Acl

    display bgp ipv6 routing-table as-path-acl Syntax display bgp ipv6 routing-table as-path-acl as-path-acl-number 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. Description Use the display bgp ipv6 routing-table as-path-acl command to display routes filtered through the specified AS path ACL.
  • Page 382: Display Bgp Ipv6 Routing-Table Community-List

    no-export: Displays IPv6 BGP routes that cannot be advertised out the AS; if there is a confederation, it displays IPv6 BGP routes that cannot be advertised out the confederation, but can be advertised to other sub ASs in the confederation. no-export-subconfed: Displays IPv6 BGP routes that cannot be advertised out the AS or to other sub ASs if a confederation is configured.
  • Page 383: Display Bgp Ipv6 Routing-Table Dampened

    Examples # Display the routing information matching the specified IPv6 BGP community list. <Sysname> display bgp ipv6 routing-table community-list 99 BGP Local router ID is 30.30.30.1 Status codes: * - valid, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? - incomplete *>...
  • Page 384: Display Bgp Ipv6 Routing-Table Dampening Parameter

    Field Description Reuse Time for reuse Table 6-8 for description on the fields above. display bgp ipv6 routing-table dampening parameter Syntax display bgp ipv6 routing-table dampening parameter View Any view Default Level 1: Monitor level Parameters None Description Use the display bgp ipv6 routing-table dampening parameter command to display IPv6 BGP routing dampening parameters.
  • Page 385: Display Bgp Ipv6 Routing-Table Different-Origin

    display bgp ipv6 routing-table different-origin-as Syntax display bgp ipv6 routing-table different-origin-as View Any view Default Level 1: Monitor level Parameters None Description Use the display bgp ipv6 routing-table different-origin-as command to display IPv6 BGP routes originating from different autonomous systems. Examples # Display routes from different ASs.
  • Page 386: Display Bgp Ipv6 Routing-Table Peer

    prefix-length: Prefix length of the IPv6 address, in the range 0 to 128. longer-match: Matches the longest prefix. Description Use the display bgp ipv6 routing-table flap-info command to display IPv6 BGP route flap statistics. Examples # Display IPv6 BGP route flap statistics. <Sysname>...
  • Page 387: Display Bgp Ipv6 Routing-Table Regular-Expression

    statistic: Displays route statistics. Description Use the display bgp ipv6 routing-table peer command to display the routing information advertised to or received from the specified IPv4 or IPv6 BGP peer. Examples # Display the routing information advertised to the specified BGP peer. <Sysname>...
  • Page 388: Display Bgp Ipv6 Routing-Table Statistic

    BGP Local router ID is 20.20.20.1 Status codes: * - valid, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? - incomplete *>...
  • Page 389: Filter-Policy Import (Ipv6 Address Family View)

    ipv6-prefix-name: Specifies the name of an IPv6 prefix list used to match against the destination of routing information. The name is a string of 1 to 19 characters. protocol: Filters routes redistributed from the routing protocol. It can be direct, isisv6, ospfv3, ripng, or static at present.
  • Page 390: Group (Ipv6 Address Family View)

    Default Level 2: System level Parameters acl6-number: Number of an IPv6 ACL used to match against the destination address field of routing information, ranging from 2000 to 3999. ipv6-prefix-name: Name of an IPv6 prefix list used to match against the destination address field of routing information, a string of 1 to 19 characters.
  • Page 391: Import-Route (Ipv6 Address Family View)

    Default Level 2: System level Parameters ipv6-group-name: Name of an IPv6 peer group, a string of 1 to 47 characters. internal: Creates an iBGP peer group. external: Creates an eBGP peer group, which can be a group of another sub AS in the confederation. Description Use the group command to create a peer group.
  • Page 392: Ipv6-Family

    Examples # Redistribute routes from RIPng 1. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] import-route ripng 1 ipv6-family Syntax ipv6-family undo ipv6-family View BGP view Default Level 2: System level Parameters None Description Use the ipv6-family command to enter IPv6 address family view. Use the undo ipv6-family command to remove all configurations from the view.
  • Page 393: Peer Advertise-Community (Ipv6 Address Family View)

    short-cut: If the keyword is specified for an eBGP route, the route will use the local routing management value rather than that of eBGP routes, so the preference of the route is reduced. route-policy-name: Name of a routing policy, a string of 1 to 19 characters. Description Use the network command to advertise a network to the IPv6 BGP routing table.
  • Page 394: Peer Advertise-Ext-Community (Ipv6 Address Family View)

    [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] peer 1:2::3:4 advertise-community peer advertise-ext-community (IPv6 address family view) Syntax peer { group-name | ipv4-address | ipv6-address } advertise-ext-community undo peer { group-name | ipv4-address | ipv6-address } advertise-ext-community 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.
  • Page 395: Peer As-Number (Ipv6 Address Family View)

    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 configure IPv6 BGP to allow the local AS number to exist in the AS_PATH attribute of routes from a peer/peer group, and to configure the times for which it can appear.
  • Page 396: Peer As-Path-Acl (Ipv6 Address Family View)

    peer as-path-acl (IPv6 address family view) Syntax peer { group-name | ipv4-address | ipv6-address } as-path-acl as-path-acl-number { import | export } 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...
  • Page 397 Parameters group-name: Name of a peer group, a string of 1 to 47 characters. ip-address: IP address of a peer. ipv6-address: IPv6 address of a peer. both: Supports sending and receiving Route-refresh messages carrying the ORF information. receive: Supports receiving Route-refresh messages carrying the ORF information. send: Supports sending Route-refresh messages carrying the ORF information.
  • Page 398: Peer Capability-Advertise Orf Non-Standard (Ipv6 Address Family View)

    peer capability-advertise orf non-standard (IPv6 address family view) Syntax peer { group-name | ipv6-address } capability-advertise orf non-standard undo peer { group-name | ipv6-address } capability-advertise orf non-standard 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.
  • Page 399: Peer Connect-Interface (Ipv6 Address Family View)

    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 capability-advertise route-refresh command to enable IPv6 BGP route-refresh. Use the undo peer capability-advertise route-refresh command to disable the function. By default, route-refresh is enabled.
  • Page 400: Peer Default-Route-Advertise

    <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] peer 1:2::3:4 connect-interface loopback 0 peer default-route-advertise Syntax peer { group-name | ipv4-address | ipv6-address } default-route-advertise [ route-policy route-policy-name ] undo peer { group-name | ipv4-address | ipv6-address } default-route-advertise View IPv6 address family view Default Level 2: System level...
  • Page 401: Peer Ebgp-Max-Hop (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-text: Description information for the peer/peer group, a string of 1 to 79 characters. Description Use the peer description command to configure the description information for a peer/peer group.
  • Page 402: Peer Enable (Ipv6 Address Family View)

    <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] group test external [Sysname-bgp-af-ipv6] peer test ebgp-max-hop peer enable (IPv6 address family view) Syntax peer { ipv4-group-name | ipv4-address | ipv6-address } enable undo peer { ipv4-group-name | ipv4-address | ipv6-address } enable View IPv6 address family view Default Level...
  • Page 403: Peer Filter-Policy (Ipv6 Address Family View)

    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. as-number: Local AS number, in the range 1 to 4294967295. Description Use the peer fake-as command to configure a fake local AS number for a peer or peer group.
  • Page 404: Peer Group (Ipv6 Address Family View)

    By default, no ACL-based filter policy is configured for a peer or peer group. Examples # Apply the ACL6 2000 to filter routes advertised to the peer 1:2::3:4. <Sysname> system-view [Sysname] acl ipv6 number 2000 [Sysname-acl6-basic-2000] rule permit source 2001:1:: 64 [Sysname-acl6-basic-2000] quit [Sysname] bgp 100 [Sysname-bgp] ipv6-family...
  • Page 405: Peer Ipv6-Prefix

    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 ignore command to terminate the session to a peer or peer group. Use the undo peer ignore command to remove the configuration.
  • Page 406: Peer Keep-All-Routes (Ipv6 Address Family View)

    By default, no IPv6 prefix list is specified for filtering. Examples # Reference the IPv6 prefix list list 1 to filter routes outgoing to peer 1:2::3:4. <Sysname> system-view [Sysname] ip ipv6-prefix list1 permit 2002:: 64 [Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] peer 1:2::3:4 ipv6-prefix list1 export peer keep-all-routes (IPv6 address family view) Syntax...
  • Page 407: Peer Next-Hop-Local (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 log-change command to enable the logging of session state and event information of a specified peer or peer group.
  • Page 408: Peer Preferred-Value (Ipv6 Address Family View)

    [Sysname-bgp-af-ipv6] peer test next-hop-local peer preferred-value (IPv6 address family view) Syntax peer { ipv6-group-name | ipv6-address } preferred-value value undo peer { ipv6-group-name | ipv6-address } preferred-value 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.
  • Page 409: Peer Reflect-Client (Ipv6 Address Family View)

    undo peer { ipv6-group-name | ipv6-address } public-as-only 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 public-as-only command to configure IPv6 BGP updates to a peer/peer group to not carry private AS numbers.
  • Page 410: Peer Route-Limit (Ipv6 Address Family View)

    By default, neither route reflector nor client is configured. Related commands: reflect between-clients, reflector cluster-id. Examples # Configure the local device as a route reflector and specify the peer group test as a client. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] group test [Sysname-bgp-af-ipv6] peer test reflect-client peer route-limit (IPv6 address family view)
  • Page 411: Peer Route-Policy (Ipv6 Address Family View)

    Examples # Set the number of prefixes allowed to receive from the peer 1:2::3:4 to 100. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] peer 1:2::3:4 route-limit 100 peer route-policy (IPv6 address family view) Syntax peer { group-name | ipv4-address | ipv6-address } route-policy route-policy-name { import | export } undo peer { group-name | ipv4-address | ipv6-address } route-policy route-policy-name { import | export } View...
  • Page 412: Peer Route-Update-Interval (Ipv6 Address Family View)

    peer route-update-interval (IPv6 address family view) Syntax peer { ipv6-group-name | ipv6-address } route-update-interval interval undo peer { ipv6-group-name | ipv6-address } route-update-interval 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.
  • Page 413: Peer Timer (Ipv6 Address Family View)

    Description Use the peer substitute-as command to substitute the local AS number for the AS number of a peer/peer group in the AS_PATH attribute. Use the undo peer substitute-as command to remove the configuration. The substitution is not configured by default. Examples # Substitute the local AS number for the AS number of peer 1:2::3:4.
  • Page 414: Preference (Ipv6 Address Family View)

    After this command is executed, the peer connection is closed at once, and a new connection to the peer is negotiated using the configured hold time. Related commands: timer. Examples # Configure the keepalive interval and holdtime interval for the peer group test as 60 seconds and 180 seconds.
  • Page 415: Reflect Between-Clients (Ipv6 Address Family View)

    <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] preference 20 20 200 reflect between-clients (IPv6 address family view) Syntax reflect between-clients undo reflect between-clients View IPv6 address family view 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.
  • Page 416: Refresh Bgp Ipv6

    Description Use the reflector cluster-id command to configure the cluster ID of the route reflector. Use the undo reflector cluster-id command to remove the configured cluster ID. By default, a route reflector uses its router ID as the cluster ID. Usually, there is only one route reflector in a cluster, so the router ID of the route reflector identifies the cluster.
  • Page 417: Reset Bgp Ipv6

    Examples # Soft reset inbound IPv6 BGP connections. <Sysname> refresh bgp ipv6 all import reset bgp ipv6 Syntax reset bgp ipv6 { as-number | ipv4-address | ipv6-address [ flap-info ] | all | external | group group-name | internal } View User view Default Level...
  • Page 418: Reset Bgp Ipv6 Flap-Info

    Description Use the reset bgp ipv6 dampening command to clear dampened IPv6 BGP route information and release suppressed routes. If no ipv6-address prefix-length is specified, all dampened IPv6 BGP route information will be cleared. Examples # Clear the dampened information of routes to 2345::/64 and release suppressed routes. <Sysname>...
  • Page 419: Synchronization (Ipv6 Address Family 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 for the router. Use the undo router-id command to remove a router ID. To run IPv6 BGP protocol, a router must have a router ID, an unsigned 32-bit integer and the unique ID of the router in the AS.
  • Page 420: Timer (Ipv6 Address Family View)

    By default, upon receiving an IPv6 iBGP route, the BGP router only checks whether the next hop is reachable before advertisement. If synchronization is enabled, the iBGP route can be advertised to eBGP peers only when the route is also advertised by the IGP. Examples # Enable the route synchronization between IPv6 BGP and IGP.
  • Page 421 Examples # Configure keepalive interval and holdtime interval as 60 and 180 seconds. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] 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.
  • Page 422: Route Policy Configuration Commands

    Route Policy Configuration Commands The common configuration commands of route policy are applicable to both IPv4 and IPv6. Common Route Policy Configuration Commands apply as-path Syntax apply as-path as-number&<1-10> [ replace ] undo apply as-path View Route policy view Default Level 2: System level Parameters as-number: Autonomous system number, in the range of 1 to 4294967295.
  • Page 423: Apply Comm-List Delete

    apply comm-list delete Syntax apply comm-list comm-list-number delete undo apply comm-list View Route 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. Description Use the apply comm-list delete command to remove the community attributes specified by the community list from BGP routing information.
  • Page 424: Apply Cost

    internet: Sets the internet community attribute for BGP routes. Routes with this attribute can be advertised to all BGP peers. no-export-subconfed: Sets the no-export-subconfed community attribute for BGP routes. Routes with this attribute cannot be advertised out the sub autonomous system. no-advertise: Sets the no-advertise community attribute for BGP routes.
  • Page 425: Apply Cost-Type

    Related commands: if-match interface, if-match acl, if-match ip-prefix, if-match ip next-hop, if-match cost, if-match tag, route-policy, apply ip-address next-hop, apply local-preference, apply origin, apply tag. 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.
  • Page 426: Apply Isis

    View Route 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 three forms: 16-bit AS number: 32-bit self-defined number, for example, 101:3; 32-bit IP address: 16-bit self-defined number, for example, 192.168.122.15:1.
  • Page 427: Apply Local-Preference

    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. Related commands: if-match interface, if-match acl, if-match ip-prefix, if-match ip next-hop, if-match cost, if-match tag, route-policy, apply cost, apply origin, apply tag.
  • Page 428: Apply Preference

    undo apply origin View Route policy view Default Level 2: System level Parameters egp: Sets the origin attribute of BGP routing information to EGP. as-number: Autonomous system number for EGP routes, in the range of 1 to 4294967295. igp: Sets the origin attribute of BGP routing information to IGP. incomplete: Sets the origin attribute of BGP routing information to unknown.
  • Page 429: Apply Preferred-Value

    If you have set preferences for routing protocols with the preference command, using the apply preference command will set a new preference for the matching routing protocol. Non-matching routing protocols still use the preferences set by the preference command. Examples # Configure node 10 in permit mode of routing policy policy1: Set the preference for OSPF external routes to 90.
  • Page 430: Display Ip As-Path

    Default Level 2: System level Parameters value: Tag value, in the range 0 to 4294967295. Description Use the apply tag command to set a specified tag value for RIP, OSPF or IS-IS routing information. Use the undo apply tag command to remove the clause configuration. No routing tag is set for RIP, OSPF or IS-IS routing information by default.
  • Page 431: Display Ip Community-List

    Table 12-1 display ip as-path command output description Field Description ListID AS-PATH list ID Mode Match mode: permit, deny Expression Regular expression for matching display ip community-list Syntax display ip community-list [ basic-community-list-number | adv-community-list-number ] View Any view Default Level 1: Monitor level Parameters basic-community-list-number: Basic community list number, in the range of 1 to 99.
  • Page 432: Display Route-Policy

    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. Related commands: ip extcommunity-list, if-match extcommunity, apply extcommunity. Examples # Display the information of BGP extended community list 1. <Sysname>...
  • Page 433: If-Match As-Path

    Field Description If the match criterion is satisfied, set a cost of 120 for routing apply cost 120 information. if-match as-path Syntax if-match as-path as-path-number&<1-16> undo if-match as-path [ as-path-number&<1-16> ] View Route policy view Default Level 2: System level Parameters as-path-number: AS path list number, in the range of 1 to 256.
  • Page 434: If-Match Cost

    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. whole-match: Exactly matches the specified community list(s). &<1-16>: Indicates the argument before it can be entered up to 16 times. Description Use the if-match community command to specify community list(s) for matching against the community attribute of BGP routing information.
  • Page 435: If-Match Extcommunity

    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 if-match extcommunity ext-comm-list-number&<1-16>...
  • Page 436: If-Match Route-Type

    Parameters interface-type: Interface type interface-number: Interface number &<1-16>: 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. The match criterion is not configured by default.
  • Page 437: If-Match Tag

    nssa-external-type1: OSPF NSSA Type 1 external routes. nssa-external-type2: OSPF NSSA Type 2 external routes. nssa-external-type1or2: OSPF NSSA Type 1 or 2 external routes. Description Use the if-match route-type command to configure a route type match criterion. Use the undo if-match route-type command to remove the match criterion. The match criterion is not configured by default.
  • Page 438: Ip Community-List

    undo ip as-path as-path-number View System view Default Level 2: System level Parameters as-path-number: AS-PATH list number, in the range of 1 to 256. deny: Specifies the match mode for the AS-PATH list as deny. permit: Specifies the match mode for the AS-PATH list as permit. regular-expression: AS-PATH regular expression, a string of 1 to 50 characters.
  • Page 439: Ip Extcommunity-List

    adv-comm-list-num: Advanced community list number, in the range 100 to 199. regular-expression: Regular expression of advanced community attribute, a string of 1 to 50 characters. deny: Specifies the match mode for the community list as deny. permit: Specifies the match mode for the community list as permit. community-number-list: Community number list, which is in the community number or aa:nn format;...
  • Page 440: Route-Policy

    permit: Specifies the match mode for the extended community list as permit. rt route-target: Specifies the route target extended community attribute, which is a string of 3 to 21 characters. A route-target has three forms: A 16-bit AS number: a 32-bit self-defined number, for example, 101:3; A 32-bit IP address: a 16-bit self-defined number, for example, 192.168.122.15:1.
  • Page 441: Ipv4 Route Policy Configuration Commands

    A route policy is used for routing information filtering or policy based routing. It contains several nodes and each node comprises a set of if-match and apply clauses. The if-match clauses define the matching criteria of the node and the apply clauses define the actions to be taken on packets passing the node.
  • Page 442: Apply Ip-Address Next-Hop

    With FRR, a routing protocol can designate a backup next hop by using the referenced route policy when a network failure is detected, and packets are directed to the backup next hop for forwarding, thus to reduce traffic recovery time greatly. This command allows you to specify a backup next hop in a route policy for routes matching specified criteria.
  • Page 443: Display Ip Ip-Prefix

    display ip ip-prefix Syntax display ip ip-prefix [ ip-prefix-name ] View Any view Default Level 1: Monitor level Parameters ip-prefix-name: IP prefix list name, a string of 1 to 19 characters. Description Use the display ip ip-prefix command to display the statistics of an IPv4 prefix list. If no ip-prefix-name is specified, statistics for all IPv4 prefix lists will be displayed.
  • Page 444 View Route policy view Default Level 2: System level Parameters acl-number: ACL number from 2000 to 3999. Description Use the if-match acl command to configure an ACL match criterion. Use the undo if-match acl command to remove the match criterion. No ACL match criterion is configured by default.
  • Page 445: If-Match Ip-Prefix

    Examples # Configure node 10 of route policy policy1 to permit routing information whose next hop address matches IP prefix list p1. <Sysname> system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy] if-match ip next-hop ip-prefix p1 if-match ip-prefix Syntax if-match ip-prefix ip-prefix-name undo if-match ip-prefix View Route policy view...
  • Page 446: Reset Ip Ip-Prefix

    Parameters ip-prefix-name: IPv4 prefix list name, a string of 1 to 19 characters. index-number: Index number, in the range 1 to 65535, for uniquely specifying an item of the IPv4 prefix list. An index with a smaller number is matched first. deny: Specifies the match mode for the IPv4 prefix list as deny.
  • Page 447: Ipv6 Route Policy Configuration Commands

    View User view Default Level 2: System level Parameters ip-prefix-name: IP prefix list name, a string of 1 to 19 characters. Description Use the reset ip ip-prefix command to clear the statistics of a specified IPv4 prefix list. If no ip-prefix-name is specified, the statistics of all IPv4 prefix lists are cleared.
  • Page 448: Display Ip Ipv6-Prefix

    display ip ipv6-prefix Syntax display ip ipv6-prefix [ ipv6-prefix-name ] View Any view Default Level 1: Monitor level Parameters ipv6-prefix-name: IPv6 prefix list name, a string of 1 to 19 characters. Description Use the display ip ipv6-prefix command to display the statistics of the specified IPv6 prefix list. If no IPv6 prefix list is specified, the statistics of all IPv6 prefix lists are displayed.
  • Page 449: Ip Ipv6-Prefix

    undo if-match ipv6 { address | next-hop | route-source } [ acl | prefix-list ] View Route policy view Default Level 2: System level Parameters address: Matches the destination address of IPv6 routing information. next-hop: Matches the next hop of IPv6 routing information. route-source: Matches the source address of IPv6 routing information.
  • Page 450: Reset Ip Ipv6-Prefix

    deny: Specifies the match mode for the IPv6 prefix list as deny. If a route matches the IPv6 prefix list, the route neither passes the filter nor matches against the next item; if not, the route matches against the next item (suppose the IPv6 prefix list has multiple items configured). permit: Specifies the match mode for the IPv6 prefix list as permit.
  • Page 451 Default Level 2: System level Parameters ipv6-prefix-name: IPv6 prefix list name, a string of 1 to 19 characters. Description Use the reset ip ipv6-prefix command to clear the statistics of the specified IPv6 prefix list. If no name is specified, the statistics of all IPv6 prefix lists will be cleared. Examples # Clear the statistics of IPv6 prefix list abc.
  • Page 452: Policy Routing Configuration Commands

    Policy Routing Configuration Commands The S5820X&S5800 series switches implement policy routing through QoS policies. For details about traffic classification, traffic behavior and QoS policy configuration commands, see QoS Policy Configuration Commands in the ACL and QoS Command Reference. 13-1...
  • Page 453: Mce Configuration Commands

    MCE Configuration Commands This chapter only describes the commands related to the multi-CE (MCE) feature. For information about the routing protocol configuration commands in the configuration examples, see relevant chapters in the Layer 3 - IP Routing Command Reference. MCE Configuration Commands description Syntax description text...
  • Page 454 Default Level 1: Monitor level Parameters vpn-instance-name: Name of the VPN instance, a string of 1 to 31 characters. group-name: Name of the BGP peer group, a string of 1 to 47 characters. Description Use the display bgp vpnv4 group command display information about a specified or all BGP VPNv4 peer group.
  • Page 455: Display Bgp Vpnv4 Vpn-Instance Network

    Field Description No routing policy is configured Whether the VPN instance is configured with a routing policy Peer IP address of the peer AS number of the peer group MsgRcvd Number of messages received MsgSent Number of messages sent OutQ Number of messages waiting to be sent to the peer PrefRcv Number of prefixes received...
  • Page 456: Display Bgp Vpnv4 Vpn-Instance Paths

    Field Description Network Advertised network route Mask Mask of the advertised network route Route-policy Routing policy configured display bgp vpnv4 vpn-instance paths Syntax display bgp vpnv4 vpn-instance vpn-instance-name paths [as-regular-expression ] View Any view Default Level 1: Monitor level Parameters vpn-instance-name: Name of the VPN instance, a string of 1 to 31 characters.
  • Page 457: Display Bgp Vpnv4 Vpn-Instance Peer

    display bgp vpnv4 vpn-instance peer Syntax display bgp vpnv4 vpn-instance vpn-instance-name peer [ group-name log-info | ip-address { log-info | verbose } | verbose ] View Any view Default Level 1: Monitor level Parameters vpn-instance-name: Name of the VPN instance, a string of 1 to 31 characters. group-name: Name of a peer group, a string of 1 to 47 characters.
  • Page 458 Field Description PrefRcv Number of received prefixes Up/Down Duration of the BGP session in the current state State Status of the peer # Display detailed information about BGP VPNv4 peers of VPN instance vpn1. <Sysname> display bgp vpnv4 vpn-instance vpn1 peer verbose Peer: 10.1.1.1 Local: 2.2.2.2 Type: EBGP link BGP version 4, remote router ID 10.1.1.1...
  • Page 459: Display Bgp Vpnv4 Vpn-Instance Routing-Table

    Field Description remote router ID Router ID of the remote router BGP current state Current status of the BGP session Up for Duration since the peer is established BGP current event Current event of the BGP session State that the BGP session was in before transitioning to the BGP last state current status Port...
  • Page 460 community-list basic-community-list-number whole-match adv-community-list-number }&<1-16> | dampened | dampening parameter | different-origin-as | flap-info [ as-path-acl as-path-acl-number | network-address [ mask [ longer-match ] | mask-length longer-match regular-expression as-regular-expression peer ip-address { advertised-routes | received-routes } | regular-expression as-regular-expression | statistic ] View Any view Default Level...
  • Page 461 regular-expression as-regular-expression: Displays routing information matching the specified AS regular expression. statistic: Displays BGP VPNv4 route statistics. Description Use the display bgp vpnv4 vpn-instance routing-table command to display the BGP VPNv4 routing information of a specified VPN instance. Examples # Display the BGP VPNv4 routing information of VPN instance vpn1. <Sysname>...
  • Page 462: Display Fib Vpn-Instance

    display fib vpn-instance Syntax display fib vpn-instance vpn-instance-name [ | { begin | exclude | include } regular-expression | acl acl-number | ip-prefix ip-prefix-name ] View Any view Default Level 1: Monitor level Parameters vpn-instance-name: Name of the VPN instance, a case-sensitive string of 1 to 31 characters. |: Use the regular expression to filter the output information.
  • Page 463 Flag: U:Useable G:Gateway H:Host B:Blackhole D:Dynamic S:Static Destination/Mask Nexthop Flag OutInterface InnerLabel Token 10.2.1.1/32 127.0.0.1 InLoop0 Null Invalid 127.0.0.0/8 127.0.0.1 InLoop0 Null Invalid 127.0.0.1/32 127.0.0.1 InLoop0 Null Invalid # Display the FIB information of VPN instance vpn1 that is permitted by ACL 2000. <Sysname>...
  • Page 464: Display Fib Vpn-Instance Ip-Address

    Field Description Token LSP index number display fib vpn-instance ip-address Syntax display fib vpn-instance vpn-instance-name ip-address [ mask | mask-length ] View Any view Default Level 1: Monitor level Parameters vpn-instance-name: Name of the VPN instance, a case-sensitive string of 1 to 31 characters. ip-address: Destination IP address, in dotted decimal format.
  • Page 465: Display Ip Vpn-Instance

    Default Level 1: Monitor level Parameters vpn-instance-name: Name of the VPN instance, a string of 1 to 31 characters. verbose: Displays detailed information. Description Use the display ip routing-table vpn-instance command to display the routing information of a VPN instance. Examples # Display the routing information of VPN instance vpn2.
  • Page 466 Default Level 1: Monitor level Parameters vpn-instance-name: Name of the VPN instance, a string of 1 to 31 characters. Description Use the display ip vpn-instance command to display information about a VPN instance or all VPN instances. If you do not specify any parameter, the command displays brief information about all VPN instances. Examples # Display information about all VPN instances.
  • Page 467 Table 14-10 Description on the fields of display ip vpn-instance instance-name Field Description VPN-Instance Name and ID Name and ID of the VPN instance CreateTime Time when the VPN instance was created Up time Duration of the VPN instance Route Distinguisher RD of the VPN instance Export VPN Targets Export target attribute of the VPN instance...
  • Page 468: Export Route-Policy

    Use the undo domain-id command to restore the default. By default, the OSPF domain ID is 0. With no parameter specified, the undo domain-id command deletes the primary domain ID. Usually, routes injected from PEs are advertised as External-LSAs. However, routes to different destinations in the same OSPF domain must be advertised as Type-3 LSAs.
  • Page 469: Filter-Policy Export

    View OSPF view Default Level 2: System level Parameters domain-id type-code1: Specifies the type code for the OSPF extended community attribute of Domain ID. Valid values are 0x0005, 0x0105, 0x0205, and 0x8005. router-id type-code2: Specifies the type code for the OSPF extended community attribute of Router ID.
  • Page 470: Filter-Policy Import

    ospf process-id: Filters OSPF routes to be advertised that are from a specified OSPF process. The process-id argument is in the range 1 to 4294967295. rip process-id: Filters RIP routes to be advertised that are from a specified RIP process. The process-id argument is in the range 1 to 4294967295.
  • Page 471: Import Route-Policy

    [Sysname-bgp-vpn1] filter-policy 2255 import import route-policy Syntax import route-policy route-policy undo import route-policy View VPN instance view Default Level 2: System level Parameters route-policy: Name of the import routing policy for the VPN instance, a string of 1 to 19 characters. Description Use the import route-policy command to apply an import routing policy to a VPN instance.
  • Page 472: Ip Vpn-Instance

    Use the undo ip binding vpn-instance command to remove the association. By default, an interface is associated with no VPN instance; it belongs to the public network. When configured on an interface, the ip binding vpn-instance command clears the IP address of the interface.
  • Page 473: Ipv4-Family Vpn-Instance

    Related command: route-distinguisher. Examples # Create a VPN instance named vpn1. <Sysname> system-view [Sysname] ip vpn-instance vpn1 [Sysname-vpn-instance-vpn1] ipv4-family vpn-instance Syntax ipv4-family vpn-instance vpn-instance-name undo ipv4-family vpn-instance vpn-instance-name View BGP view Default Level 2: System level Parameters vpn-instance vpn-instance-name: Associates a VPN instance with an IPv4 address family and enters BGP VPN instance view.
  • Page 474: Peer Group

    ip-address: IP address of the peer. number: Maximum number that the local AS number can appear repeatedly in the AS-PATH attribute. It ranges from 1 to 10 and defaults to 1. Description Use the peer allow-as-loop command to allow the local AS number to appear in the AS-PATH attribute of a received route and to set the allowed maximum number of repetitions.
  • Page 475: Reset Bgp Vpn-Instance

    View User view Default Level 1: Monitor level Parameters vpn-instance-name: Name of a VPN instance, a string of 1 to 31 characters. ip-address: IP address of a peer. all: Performs a soft reset of all BGP VPN instance connections. external: Performs a soft reset of EBGP sessions. group group-name: Performs a soft reset of the connections with the specified BGP peer group.
  • Page 476: Reset Bgp Vpn-Instance Dampening

    Description Use the reset bgp vpn-instance command to reset the BGP connections of a specified VPN instance. Examples # Reset all BGP connections of VPN instance vpn1. <Sysname> reset bgp vpn-instance vpn1 all reset bgp vpn-instance dampening Syntax reset bgp vpn-instance vpn-instance-name dampening [ network-address [ mask | mask-length ] ] View User view Default Level...
  • Page 477: Route-Distinguisher

    mask: Network mask, in the format of X.X.X.X. mask-length: Length of the network mask, in the range 0 to 32. as-path-acl as-path-acl-number: Specifies the AS_PATH filtering list. The as-path-acl-number argument ranges from 1 to 256. regexp as-path-regexp: Specifies the AS_PATH regular expression. Description Use the reset bgp vpn-instance flap-info command to clear the route flap history information about BGP peers of a VPN instance.
  • Page 478: Routing-Table Limit

    Examples # Configure the RD of VPN instance vpn1. <Sysname> system-view [Sysname] ip vpn-instance vpn1 [Sysname-vpn-instance-vpn1] route-distinguisher 22:1 routing-table limit Syntax routing-table limit number { warn-threshold | simply-alert } undo routing-table limit View VPN instance view Default Level 2: System level Parameters number: Maximum number of routes for the VPN instance to support, in the range 1 to 12288.
  • Page 479: Vpn-Target

    Default Level 2: System level Parameters None Description Use the vpn-instance-capability simple command to enable multi-VPN-instance CE. Use the undo vpn-instance-capability command to disable the function. By default, the function is disabled. Examples # Enable multi-VPN-instance CE. <Sysname> system-view [Sysname] ospf 100 vpn-instance vpna [Sysname-ospf-100] vpn-instance-capability simple vpn-target Syntax...
  • Page 480 Description Use the vpn-target command to associate the current VPN instance with one or more VPN targets. Use the undo vpn-target command to remove the association of the current VPN instance with VPN targets. VPN target has no default. You must configure it when creating a VPN instance. Examples # Associate the current VPN instance with VPN targets.
  • Page 481: Index

    Index A B C D E F G H I J K L M N O P Q R S T U V W X Y Z bestroute as-path-neglect (BGP/BGP-VPN instance view) abr-summary (OSPF area view) bestroute as-path-neglect (IPv6 address abr-summary (OSPFv3 area view) family view) 11-3...
  • Page 482 default local-preference (BGP/BGP-VPN display bgp ipv6 routing-table flap-info instance view) 6-11 11-22 default local-preference (IPv6 address family display bgp ipv6 routing-table peer 11-23 view) 11-7 display bgp ipv6 routing-table default med (BGP/BGP-VPN instance view) regular-expression 11-24 6-11 display bgp ipv6 routing-table statistic default med (IPv6 address family view) 11-7 11-25...
  • Page 483: Domain-Id··································································································································14

    display ip routing-table acl display ospf retrans-queue 4-27 display ip routing-table ip-address display ospf routing 4-28 display ip routing-table ip-prefix 1-10 display ospf vlink 4-30 display ip routing-table protocol 1-11 display ospfv3 graceful-restart status display ip routing-table statistics 1-12 display ospfv3 interface display ip routing-table vpn-instance display ospfv3 lsdb statistic 9-14...
  • Page 484 filter-policy export (BGP/BGP-VPN instance host-route 3-13 view) 6-32 filter-policy export (IPv6 address family view) if-match acl 12-22 11-25 if-match as-path 12-12 filter-policy export (IS-IS view) 5-27 if-match community 12-12 filter-policy export (OSPF view) 4-34 if-match cost 12-13 filter-policy export (OSPFv3 view) 9-27 if-match extcommunity 12-14...
  • Page 485 ipv6 import-route isisv6 level-2 into level-1 lsa-generation-interval 4-42 10-9 lsdb-overflow-limit 4-43 ipv6 import-route limit 10-10 lsp-fragments-extend 5-52 ipv6 import-route 10-8 lsp-length originate 5-52 ipv6 maximum load-balancing 10-11 lsp-length receive 5-53 ipv6 preference 10-11 ipv6 route-static maximum load-balancing (IS-IS view) 5-54 ipv6 summary 10-12 maximum load-balancing (OSPF view)
  • Page 486 ospfv3 area 9-34 peer capability-advertise orf 11-33 ospfv3 cost 9-35 peer capability-advertise orf 6-46 ospfv3 dr-priority 9-35 peer capability-advertise route-refresh 11-35 ospfv3 mtu-ignore 9-36 peer capability-advertise route-refresh 6-48 ospfv3 network-type 9-37 peer connect-interface (BGP/BGP-VPN ospfv3 peer 9-37 instance view) 6-49 ospfv3 timer dead 9-38 peer connect-interface (IPv6 address family...
  • Page 487 peer keep-all-routes (BGP/BGP-VPN peer timer (IPv6 address family view) instance view) 6-57 11-50 peer keep-all-routes (IPv6 address family peer 3-17 view) 11-43 peer 4-58 peer log-change (BGP/BGP-VPN instance preference (BGP/BGP-VPN instance view) view) 6-58 6-67 peer log-change (IPv6 address family view) preference (IPv6 address family view) 11-43 11-51...
  • Page 488: Route-Distinguisher····················································································································14

    reset ospf counters 4-59 silent-interface(OSPFv3 view) 9-43 reset ospf process 4-60 snmp-agent trap enable ospf 4-62 reset ospf redistribution 4-61 spf timers 9-43 reset rip process 3-18 spf-schedule-interval 4-63 reset rip statistics 3-19 stub (OSPF area view) 4-64 reset ripng process 8-12 stub (OSPFv3 area view) 9-44...

This manual is also suitable for:

S5800 series

Table of Contents