HP FlexFabric 11900 Switch Series Layer 3 - IP Routing Command Reference Part number: 5998-4077 Software version: Release 2105 and later Document version: 6W100-20130515
Legal and notice information © Copyright 2013 Hewlett-Packard Development Company, L.P. No part of this documentation may be reproduced or transmitted in any form or by any means without prior written consent of Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Contents Basic IP routing commands ········································································································································· 1 display ip routing-table ············································································································································ 1 display ip routing-table acl ······································································································································ 4 dis
rip metricout ··························································································································································· 51 rip output ································································································································································ 52 rip poison-reverse ·················································································································································
maximum load-balancing (OSPF view) ············································································································· 107 network (OSPF area view)·································································································································· 107 nssa ······································································································································································· 108 opaque-capability enable ··
graceful-restart ····················································································································································· 159 graceful-restart suppress-sa ································································································································· 159 graceful-restart t1 ················································································································································· 160 graceful
compare-different-as-med ···································································································································· 201 confederation id ·················································································································································· 202 confederation nonstandard ································································································································ 203 confederation peer-as ·
peer capability-advertise route-refresh ·············································································································· 273 peer capability-advertise suppress-4-byte-as ···································································································· 274 peer connect-interface ········································································································································· 275 peer default-route-advertise ·············
RIPng commands ····················································································································································· 330 checkzero ····························································································································································· 330 default cost ··························································································································································· 33
ospfv3 bfd enable ··············································································································································· 378 ospfv3 cost ··························································································································································· 379 ospfv3 dr-priority ················································································································································· 380 ospfv
apply origin ························································································································································· 420 apply preference ················································································································································· 421 apply preferred-value ·········································································································································· 421 apply tag
Basic IP routing commands The term "interface" in the routing features collectively refers to Layer 3 interfaces, including VLAN interfaces and Layer 3 Ethernet interfaces. You can set an Ethernet port as a Layer 3 interface by using the port link-mode route command (see Layer 2—LAN Switching Configuration Guide). display ip routing-table Use display ip routing-table to display routing table information.
Table 1 Command output Field Description Destinations Number of destination addresses. Routes Number of routes. Destination/Mask Destination address/mask length. Proto Protocol that installed the route. Pre Preference of the route. Cost Cost of the route. NextHop Next hop address of the route. Interface Output interface for packets to be forwarded along the route. Summary Count Number of routes. # Display detailed information about all routes in the routing table.
BkTunnel ID: Invalid BkInterface: N/A ... Table 2 Command output Field Description Destinations Number of destination addresses. Routes Number of routes. Destination Destination address/mask length. Protocol Protocol that installed the route. SubProtID ID of the subprotocol for routing. Age Time for which the route has been in the routing table. Cost Cost of the route. Preference Preference of the route. Tag Route tag. Route status: • Active—Active unicast route.
display ip routing-table acl Use display ip routing-table acl to display information about routes permitted by a specific basic ACL. Syntax display ip routing-table [ vpn-instance vpn-instance-name ] acl acl-number [ verbose ] Views Any view Predefined user roles network-admin network-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.
Routes Matched by Access control list : 2000 Summary Count : 4 Destination: 192.168.1.0/24 Protocol: Direct Process ID: 0 SubProtID: 0x1 Cost: 0 Age: 04h20m37s Preference: 0 Tag: 0 State: Active Adv OrigTblID: 0x0 OrigVrf: default-vrf TableID: 0x2 OrigAs: 0 NBRID: 0x10000003 LastAs: 0 AttrID: 0xffffffff Neighbor: 0.0.0.0 Flags: 0x10080 OrigNextHop: 192.168.1.111 Label: NULL RealNextHop: 192.168.1.
Destination: 192.168.1.255/32 Protocol: Direct Process ID: 0 SubProtID: 0x0 Age: 04h20m37s Cost: 0 Preference: 0 Tag: 0 State: Active NoAdv OrigTblID: 0x0 OrigVrf: default-vrf TableID: 0x2 OrigAs: 0 NBRID: 0x10000003 LastAs: 0 AttrID: 0xffffffff Neighbor: 0.0.0.0 Flags: 0x1008c OrigNextHop: 192.168.1.111 Label: NULL RealNextHop: 192.168.1.
Usage guidelines Executing the command with different parameters yields different outputs: • display ip routing-table ip-address: { { The system ANDs the entered destination IP address with the subnet mask in each active route entry. The system ANDs the destination IP address in each active route entry with its own subnet mask. If the two operations yield the same result for an entry, the entry is displayed.
Destination/Mask Proto Cost NextHop Interface 11.0.0.0/8 Static 60 Pre 0 0.0.0.0 NULL0 11.0.0.0/16 Static 60 0 0.0.0.0 NULL0 # Display brief information about the most specific route to the destination address 11.0.0.1. display ip routing-table 11.0.0.1 longer-match Summary Count : 1 Destination/Mask Proto 11.0.0.0/24 Static 60 Pre Cost NextHop Interface 0 0.0.0.0 NULL0 # Display brief information about the most specific route to the destination IP address 11.0.0.
Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. Without this option, the command displays routing information for the public network. prefix-list-name: Specifies an IP prefix list by its name, a case-sensitive string of 1 to 63 characters. verbose: Displays detailed information about all routes permitted by the IP prefix list.
display ip routing-table protocol Use display ip routing-table protocol to display information about routes installed by a protocol. Syntax display ip routing-table [ vpn-instance vpn-instance-name ] protocol protocol [ inactive | verbose ] Views Any view Predefined user roles network-admin network-operator Parameters vpn-instance vpn-instance-name: Specifies MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.
# Display brief information about static routes. display ip routing-table protocol static Summary Count : 2 Static Routing Table Status : Summary Count : 0 Static Routing Table Status : Summary Count : 2 Destination/Mask Proto 1.2.3.0/24 3.0.0.0/8 Pre Cost NextHop Interface Static 60 0 1.2.4.5 Vlan10 Static 60 0 2.2.2.2 Vlan1 For command output, see Table 1.
Table 3 Command output Field Description Proto Protocol that installed the route. route Number of routes installed by the protocol. active Number of active routes. added Number of routes added to the routing table after the router started up or the routing table was last cleared. deleted Number of routes marked as deleted, which will be cleared after a period. Total Total number of routes. display ipv6 routing-table Use display ipv6 routing-table to display IPv6 routing table information.
NextHop : :: Preference: 0 Interface : NULL0 Cost : 0 Table 4 Command output Field Description Destinations Number of destination addresses. Routes Number of routes. Destination IPv6 address and prefix of the destination network or host. NextHop Next hop address of the route. Preference Preference of the route. Interface Output interface for packets to be forwarded along the route. Protocol Protocol that installed the route. Cost Cost of the route. Summary Count Number of routes.
BkLabel: NULL BkNextHop: N/A Tunnel ID: Invalid BkTunnel ID: Invalid Interface: NULL0 BkInterface: N/A Destination: FF00::/8 Protocol: Direct Process ID: 0 SubProtID: 0x0 Age: 00h53m50s Cost: 0 Preference: 0 Tag: 0 State: Active NoAdv OrigTblID: 0x0 OrigVrf: default-vrf TableID: 0xa OrigAs: 0 NBRID: 0x20000001 LastAs: 0 AttrID: 0xffffffff Neighbor: :: Flags: 0x10014 OrigNextHop: :: Label: NULL RealNextHop: :: BkLabel: NULL BkNextHop: N/A Tunnel ID: Invalid BkTunnel ID: Invalid Int
Field Description AttrID Attribute ID. Neighbor Address of the neighbor determined by the routing protocol. Flags Flags of the route. OrigNextHop Next hop address of the route. RealNextHop Real next hop of the route. BkLabel Backup label. BkNexthop Backup next hop. Interface Output interface for packets to be forwarded along the route. BkTunnel ID Backup tunnel ID. BkInterface Backup output interface.
Destination : ::1/128 Protocol NextHop : ::1 Preference: 0 Interface : InLoop0 Cost : 0 Destination : 1:1::/64 Protocol : Static NextHop : :: Preference: 60 Interface : NULL0 Cost For command output, see Table 4. # Display detailed information about all routes permitted by IPv6 ACL 2000.
display ipv6 routing-table ipv6-address Use display ipv6 routing-table ipv6-address to display information about routes to an IPv6 destination address. Use display ipv6 routing-table ipv6-address1 to ipv6-address2 to display information about routes to a range of IPv6 destination addresses.
{ { The system ANDs the entered destination IPv6 address with the prefix length in each active route entry. The system ANDs the destination IPv6 address in each active route entry with the prefix length in the entry. If the two operations yield the same result for multiple entries, the one that has the longest prefix length is displayed. • display ipv6 routing-table ipv6-address prefix-length longer-match: { { The system ANDs the entered destination IPv6 address with the entered prefix length.
Destination: 100::/64 Protocol NextHop : :: Preference: 60 : Static Interface : NULL0 Cost : 0 Destination: 200::/64 Protocol : Static NextHop : :: Preference: 60 Interface : NULL0 Cost : 0 Destination: 300::/64 Protocol : Static NextHop : :: Preference: 60 Interface : NULL0 Cost : 0 For command output, see Table 4. display ipv6 routing-table prefix-list Use display ipv6 routing-table prefix-list to display information about IPv6 routes permitted by an IPv6 prefix list.
Destination: ::1/128 Protocol : Direct NextHop : ::1 Preference: 0 Interface : InLoop0 Cost : 0 For command output, see Table 4. # Display detailed information about all routes permitted by the IPv6 prefix list.
verbose: Displays detailed routing table information. Without this keyword, the command displays brief routing information. Examples # Display brief information about direct routes.
display ipv6 routing-table statistics Use display ipv6 routing-table statistics to display IPv6 route statistics. Syntax display ipv6 routing-table [ vpn-instance vpn-instance-name ] statistics Views Any view Predefined user roles network-admin network-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. Without this option, the command displays route statistics for the public network.
Views Any view Predefined user roles network-admin network-operator Examples # Display the maximum number of ECMP routes. display max-ecmp-num Max-ECMP-Num in use: 6 Max-ECMP-Num at the next reboot: 10 Table 7 Command output Field Description Max-ECMP-Num in use Maximum number of current ECMP routes in use. Max-ECMP-Num at the next reboot Maximum number of ECMP routes at the next reboot of the device. max-ecmp-num Use max-ecmp-num to configure the maximum number of ECMP routes.
Syntax reset ip routing-table statistics protocol [ vpn-instance vpn-instance-name ] { protocol | all } Views User view Predefined user roles network-admin Parameters vpn-instance vpn-instance-name: Clears the IPv4 route statistics for an MPLS L3VPN instance specified by its name, a case-sensitive string of 1 to 31 characters. Without this option, the command clears route statistics for the public network. protocol: Clears route statistics for a routing protocol.
Syntax switch-mode route-iterative undo switch-mode route-iterative Default A device does not perform route recursion. Views System view Predefined user roles network-admin Usage guidelines This configuration takes effect at next reboot. Save the configuration before the reboot. Examples # Configure a device to perform route recursion. system-view [Sysname] switch-mode route-iterative Warning: please save current configuration and reboot the device.
Static routing commands delete static-routes all Use delete static-routes all to delete all static routes. Syntax delete [ vpn-instance vpn-instance-name ] static-routes all Views System view Predefined user roles network-admin Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. Without this option, the command deletes all static routes for the public network.
undo ip route-static dest-address { mask | mask-length } [ next-hop-address | interface-type interface-number [ next-hop-address ] | vpn-instance d-vpn-instance-name next-hop-address ] [ preference preference-value ] ip route-static vpn-instance s-vpn-instance-name dest-address { mask | mask-length } { next-hop-address [ public ] [ bfd control-packet bfd-source ip-address | permanent | track track-entry-number ] | interface-type interface-number [ next-hop-address ] [ backup-interface interface-type interfa
track track-entry-number: Associates the static route with a track entry specified by its number in the range of 1 to 1024. For more information about track, see High Availability Configuration Guide. echo-packet: Specifies the BFD echo mode. public: Indicates that the specified next hop address is on the public network. interface-type interface-number: Specifies an output interface by its type and number.
ip route-static default-preference Use ip route-static default-preference to configure a default preference for static routes. Use undo ip route-static default-preference to restore the default. Syntax ip route-static default-preference default-preference-value undo ip route-static default-preference Default The default preference of static routes is 60.
RIP commands checkzero Use checkzero to enable zero field check on RIPv1 messages. Use undo checkzero to disable zero field check. Syntax checkzero undo checkzero Default The zero field check function is enabled. Views RIP view Predefined user roles network-admin Usage guidelines When the zero field check is enabled, the router discards RIPv1 messages in which zero fields contain non-zero values. If all messages are trustworthy, disable this feature to reduce the workload of the CPU.
Parameters value: Specifies a default metric for redistributed routes, in the range of 0 to 16. Usage guidelines When you use the import-route command to redistribute routes from another routing protocol without specifying a metric, the metric specified by the default cost command applies. Examples # Configure a default metric of 3 for redistributed routes.
Related commands rip default-route display rip Use display rip to display state and configuration information for a RIP process. Syntax display rip [ process-id ] Views Any view Predefined user roles network-admin network-operator Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535. If no process is specified, the command displays state and configuration information for all RIP processes.
Table 8 Command output Field Description Public VPN-instance name/Private VPN-instance name Public network or VPN where the RIP process runs. RIP process RIP process ID. RIP version RIP version 1 or 2. Preference RIP preference. Checkzero Indicates whether the zero field check is enabled for RIPv1 messages. Default cost Default cost of redistributed routes. Summary Indicates whether route summarization is enabled. Host routes Indicates whether to receive host routes.
Syntax display rip process-id database Views Any view Predefined user roles network-admin network-operator Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535. Examples # Display active routes for RIP process 100. display rip 100 database 1.0.0.0/8, cost 0, auto-summary 1.1.1.0/24, cost 16, interface summary 1.1.1.0/24, cost 0, nexthop 1.1.1.1, RIP-interface 1.1.2.0/24, cost 0, imported 2.0.0.0/8, cost 1, auto-summary 2.0.0.0/8, cost 1, nexthop 1.1.1.
interface-type interface-number: Specifies an interface by its type and number. If no interface is specified, the command displays information about all RIP interfaces for the RIP process. Examples # Display information about all interfaces for RIP process 1. display rip 1 interface Interface: Vlan-interface2 Address/Mask: 1.1.1.
Field Description Current number of packets /Maximum number of packets Number of RIP packets to be sent/maximum number of RIP packets that can be sent within a certain interval. display rip route Use display rip route to display routing information for a RIP process.
Field Description Tag Route tag. Flags Route state. Sec Remaining time of the timer corresponding to the route state. # Display routing statistics for RIP process 1. display rip 1 route statistics Peer Aging Garbage 1.1.1.2 1 0 Total 1 0 Table 12 Command output Field Description Peer IP address of a neighbor. Aging Total number of aging routes. Garbage Total number of routes in the Garbage-collection state. Total Total number of routes learned from all RIP neighbors.
Examples # Enable RIP FRR and use routing policy frr to specify a backup next hop. system-view [Sysname] bfd echo-source-ip 1.1.1.1 [Sysname] ip prefix-list abc index 10 permit 100.1.1.0 24 [Sysname] route-policy frr permit node 10 [Sysname-route-policy-frr-10] if-match ip address prefix-list abc [Sysname-route-policy-frr-10] apply fast-reroute backup-interface vlan-interface 1 backup-nexthop 193.1.1.
To reference an advanced ACL (with a number from 3000 to 3999) in the command, configure the ACL using one of the following methods: • To deny/permit a route with the specified destination, use the rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard command. • To deny/permit a route with the specified destination and mask, use the rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard destination dest-addr dest-wildcard command.
undo filter-policy import [ interface-type interface-number ] Default RIP does not filter inbound routes. Views RIP view Predefined user roles network-admin Parameters acl-number: Specifies an ACL by its number in the range of 2000 to 3999 to filter inbound routes. prefix-list prefix-list-name: Specifies an IP prefix list by its name, a string of 1 to 63 characters, to filter inbound routes.
[Sysname-acl-adv-3000] rule 100 deny ip [Sysname-acl-adv-3000] quit [Sysname] rip 1 [Sysname-rip-1] filter-policy 3000 import Related commands • acl (ACL and QoS Command Reference) • ip prefix-list graceful-restart Use graceful-restart to enable GR for RIP. Use undo graceful-restart to disable RIP GR capability. Syntax graceful-restart undo graceful-restart Default RIP GR is disabled. Views RIP view Predefined user roles network-admin Examples # Enable GR for RIP process 1.
Usage guidelines A router might receive many host routes from the same subnet. These routes are not helpful for routing and occupy many resources. To solve this problem, use the undo host-route command to disable RIP from receiving host routes. This command takes effect only for RIPv2. Examples # Disable RIP from receiving host routes. system-view [Sysname] rip 1 [Sysname-rip-1] undo host-route import-route Use import-route to enable route redistribution from another routing protocol.
Usage guidelines The import-route bgp command redistributes only EBGP routes. The import-route bgp allow-ibgp command additionally redistributes IBGP routes and might cause routing loops. Therefore, use it with caution. This command redistributes only active routes. To view route state information, use the display ip routing-table protocol command.
Related commands max-ecmp-num network Use network to enable RIP on an interface attached to a specified network. Use undo network to disable RIP on an interface attached to a specified network. Syntax network network-address undo network network-address Default RIP is disabled on an interface. Views RIP view Predefined user roles network-admin Parameters network-address: Specifies a subnet address where an interface resides.
Views RIP view Predefined user roles network-admin Parameters time: Specifies the sending interval in the range of 10 to 100 milliseconds. count: Specifies the maximum number of RIP packets sent at each interval, in the range of 1 to 30. Examples # Configure all interfaces running RIP process 1 to send up to 10 RIP packets every 60 milliseconds. system-view [Sysname] rip 1 [Sysname-rip-1] output-delay 60 count 10 preference Use preference to specify a preference for RIP routes.
system-view [Sysname] rip 1 [Sysname-rip-1] preference 120 reset rip process Use reset rip process to reset a RIP process. Syntax reset rip process-id process Views User view Predefined user roles network-admin Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535. Usage guidelines After executing the command, you are prompted to confirm the operation. Examples # Reset RIP process 100.
Use undo rip to disable a RIP process. Syntax rip [ process-id ] [ vpn-instance vpn-instance-name ] undo rip [ process-id ] Default No RIP process runs. Views System view Predefined user roles network-admin Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535. The default is 1. vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN is specified, the RIP process runs on the public network.
Parameters md5: Specifies the MD5 authentication. rfc2082: Uses the message format defined in RFC 2082. cipher: Sets a ciphertext key. cipher-string: Specifies a ciphertext key, a case-sensitive string of 33 to 53 characters. plain: Sets a plaintext key. plain-string: Specifies a plaintext key, a case-sensitive string of 1 to 16 characters. key-id: Specifies the RFC 2082 MD5 key ID in the range of 1 to 255. rfc2453: Uses the message format defined in RFC 2453 (IETF standard).
Usage guidelines RIP supports only BFD echo-mode detection. Examples # Enable BFD for RIP on VLAN-interface 11. system-view [Sysname] interface vlan-interface 11 [Sysname-Vlan-interface11] rip bfd enable rip default-route Use rip default-route to configure a RIP interface to advertise a default route with a specified metric. Use undo rip default-route to disable a RIP interface from sending a default route.
Related commands default-route rip input Use rip input to enable an interface to receive RIP messages. Use undo rip input to disable an interface from receiving RIP messages. Syntax rip input undo rip input Default An interface is enabled to receive RIP messages. Views Interface view Predefined user roles network-admin Examples # Disable VLAN-interface 10 from receiving RIP messages.
Usage guidelines When a valid RIP route is received, the system adds a metric to it and then installs it into the routing table. The metric of the route received on the configured interface is then increased. If the sum of the additional metric and the original metric is greater than 16, the metric of the route will be 16.
value: Add an additional metric to outbound routes, in the range of 1 to 16. Usage guidelines With the command configured on an interface, the metric of RIP routes sent on the interface will be increased. If a routing policy is referenced with the route-policy keyword, the following operations can be performed: • Routes matching the policy is added with the metric specified in the apply cost command configured in the policy.
[Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] undo rip output rip poison-reverse Use rip poison-reverse to enable the poison reverse function. Use undo rip poison-reverse to disable the poison reverse function. Syntax rip poison-reverse undo rip poison-reverse Default The poison reverse function is disabled. Views Interface view Predefined user roles network-admin Examples # Enable the poison reverse function on VLAN-interface 10.
Examples # Enable the split horizon function on VLAN-interface 10. system-view [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] rip split-horizon rip summary-address Use rip summary-address to configure RIPv2 to advertise a summary route on an interface. Use undo rip summary-address to remove the configuration. Syntax rip summary-address ip-address { mask | mask-length } undo rip summary-address ip-address { mask | mask-length } Default RIPv2 does not advertise a summary route.
Default No RIP version is configured on an interface. The interface can send RIPv1 broadcasts, and receive RIPv1 broadcasts and unicasts, and RIPv2 broadcasts, multicasts, and unicasts. Views Interface view Predefined user roles network-admin Parameters 1: Specifies the RIP version as RIPv1. 2: Specifies the RIP version as RIPv2. [ broadcast | multicast ]: Sends RIPv2 messages in broadcast mode or multicast mode (default).
Default All RIP interfaces can send RIP messages. Views RIP view Predefined user roles network-admin Parameters interface-type interface-number: Disables an specified interface from sending RIP messages. all: Disables all interfaces from sending RIP messages. Examples # Configure all VLAN interfaces to operate in silent mode except VLAN-interface 10.
Related commands • rip summary-address • rip version timers Use timers to configure RIP timers. Use undo timers to restore the default. Syntax timers { garbage-collect garbage-collect-value | suppress suppress-value | timeout timeout-value | update update-value } * undo timers { garbage-collect | suppress | timeout | update } * Default The garbage-collect timer is 120 seconds, the suppress timer is 120 seconds, the timeout timer is 180 seconds, and the update timer is 30 seconds.
Examples # Configure the update, timeout, suppress, and garbage-collect timers as 5, 15, 15, and 30 seconds. system-view [Sysname] rip 100 [Sysname-rip-100] timers update 5 timeout 15 suppress 15 garbage-collect 30 validate-source-address Use validate-source-address to enable source IP address check on inbound RIP routing updates. Use undo validate-source-address to disable source IP address check.
Predefined user roles network-admin Parameters 1: Specifies the RIP version as RIPv1. 2: Specifies the RIP version as RIPv2. RIPv2 messages are multicast. Usage guidelines An interface prefers the RIP version configured on it over the global RIP version. If no RIP version is specified for the interface and the global version is RIPv1, the interface uses RIPv1, and it can send RIPv1 broadcasts, and receive RIPv1 broadcasts and unicasts.
OSPF commands For information about OSPF VPN-related commands, see MPLS Command Reference. abr-summary (OSPF area view) Use abr-summary to configure a summary route on an area border router (ABR). Use undo abr-summary to remove a summary route. Syntax abr-summary ip-address { mask | mask-length } [ advertise | not-advertise ] [ cost cost ] undo abr-summary ip-address { mask | mask-length } Default No route summarization is configured on an ABR.
area (OSPF view) Use area to create an area and enter area view. Use undo area to remove an area. Syntax area area-id undo area area-id Default No OSPF area is created. Views OSPF view Predefined user roles network-admin Parameters area-id: Specifies an area by its ID, which is an IP address or a decimal integer in the range of 0 to 4294967295 that is translated into the IP address format. Examples # Create area 0 and enter area 0 view.
mask-length: Specifies the mask length in the range of 0 to 32 bits. cost cost: Specifies the cost of the summary route, in the range of 1 to 16777214. For Type-1 external routes, the cost defaults to the largest cost among routes that are summarized. For Type-2 external routes, the cost defaults to the largest cost among routes that are summarized plus 1. not-advertise: Disables advertising the summary route. Without this keyword, the command advertises the route.
Parameters md5: Specifies the MD5 authentication mode. simple: Specifies the simple authentication mode. Usage guidelines Routers that reside in the same area must have the same authentication mode: no authentication, simple, or MD5. Examples # Configure OSPF Area 0 to use the MD5 authentication mode. system-view [Sysname] ospf 100 [Sysname-ospf-100] area 0 [Sysname-ospf-100-area-0.0.0.
default Use default to configure default parameters for redistributed routes. Use undo default to remove the configuration. Syntax default { cost cost | tag tag | type type } * undo default { cost | tag | type } * Default The cost is 1, the tag is 1, and the route type is 2. Views OSPF view Predefined user roles network-admin Parameters cost cost: Specifies the default cost for redistributed routes, in the range of 0 to 16777214.
Parameters cost: Specifies a cost for the default route advertised to the Stub or NSSA area, in the range of 0 to 16777214. Usage guidelines This command takes effect only on the ABR of a stub area or the ABR/ASBR of an NSSA area. Examples # Configure Area 1 as a stub area, and specify the cost of the default route advertised to the stub area as 20. system-view [Sysname] ospf 100 [Sysname-ospf-100] area 1 [Sysname-ospf-100-area-0.0.0.1] stub [Sysname-ospf-100-area-0.0.0.
route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters. When a default route exists in the routing table and the specified routing policy is matched, the command distributes a default route in a Type-5 LSA into the OSPF routing domain, and the routing policy modifies some values in the Type-5 LSA.
Usage guidelines The description specified by this command is used to identify an OSPF process or area. Examples # Describe OSPF process 100 as abc. system-view [Sysname] ospf 100 [Sysname-ospf-100] description abc # Describe OSPF area 0 as bone area. 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 Use display ospf abr-asbr to display routes to the ABR or ASBR.
Table 13 Command output Field Description Type of the route to the ABR or ASBR: • Intra—Intra-area route. Type • Inter—Inter-area route. Destination Router ID of an ABR/ASBR. Area ID of the area of the next hop. Cost Cost from the router to the ABR/ASBR. Nexthop Next hop address. RtType Router type: ABR or ASBR. display ospf asbr-summary Use display ospf asbr-summary to display information about the redistributed routes that are summarized.
Summary Address Net : 30.1.0.0 Mask : 255.255.0.0 Tag : 20 Status : Advertise Cost : 10 (Configured) The Count of Route is : 2 Destination Net Mask Proto Process Type Metric 30.1.2.0 255.255.255.0 Static 0 2 1 30.1.1.0 255.255.255.0 Static 0 2 1 Table 14 Command output Field Description Total Summary Address Count Total number of summary routes. Net Address of the summary route. Mask Mask of the summary route address. Tag Tag of the summary route.
Predefined user roles network-admin network-operator Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. Usage guidelines If no OSPF process is specified, this command displays brief information about all OSPF processes. Examples # Display OSPF brief information. display ospf brief OSPF Process 1 with Router ID 192.168.1.2 OSPF Protocol Information RouterID: 192.168.1.
Timers: Hello 10 , Dead 40 , Poll 40 , Retransmit 5 , Transmit Delay 1 FRR backup: enable Table 15 Command output Field Description OSPF Process 1 with Router ID 192.168.1.2 OSPF process ID and OSPF router ID. RouterID Router ID. Router type: • ABR. Router Type • ASBR. • NSSA. • Null. Route Tag Tag of redistributed routes. Multi-VPN-Instance is not enabled The OSPF process does not support multi-VPN-instance. Opaque capable The opaque LSA advertisement and reception is enabled.
Field Description Area Area ID in the IP address format. Authentication type of the area: Authtype • None—No authentication. • Simple—Simple authentication. • MD5—MD5 authentication. Type of the area: • Normal. Area flag • Stub. • StubNoSummary (totally stub area). • NSSA. • NSSANoSummary (totally NSSA area). SPF scheduled Count SPF calculation count in the OSPF area. Interface Interface in the area. Cost Interface cost. State Interface state. Type Interface network type.
Usage guidelines If no process is specified, this command displays statistics for all OSPF processes. Examples # Display OSPF statistics. display ospf cumulative OSPF Process 1 with Router ID 2.2.2.
Field Description Router Number of Type-1 LSAs originated. Network Number of Type-2 LSAs originated. 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 Number of LSAs received.
0 : OSPF Router ID confusion 0 : OSPF bad packet 0 : OSPF bad version 0 : OSPF bad checksum 0 : OSPF bad area ID 0 : OSPF drop on unnumbered interface 0 : OSPF bad virtual link 0 : OSPF bad authentication type 0 : OSPF bad authentication key 0 : OSPF packet too small 0 : OSPF Neighbor state low 0 : OSPF transmit error 0 : OSPF interface down 0 : OSPF unknown neighbor 0 : HELLO: Netmask mismatch 0 : HELLO: Hello timer mismatch 0 : HELLO: Dead timer mismatch 0 : HELLO: Exter
Field Description LS REQ: Empty request LSR packets with no request information. LS REQ: Bad request Bad LSR packets. LS UPD: LSA checksum bad LSU packets with wrong LSA checksum. LS UPD: Received less recent LSA LSU packets without latest LSA. LS UPD: Unknown LSA type LSU packets with unknown LSA type. display ospf graceful-restart Use display ospf graceful-restart to display GR information for an OSPF process.
Authtype: None Area flag: Normal Area up Interface count: 2 Interface: 40.4.0.1 (Vlan-interface40) Restarter state: Normal State: DR Type: Broadcast Neighbor count of this interface: 1 Neighbor IP address GR state Last Helper exit reason 3.3.3.3 40.4.0.3 Normal None Virtual-link Neighbor-ID -> 4.4.4.4, Neighbor-State: Full Restarter state: Normal Interface: 20.2.0.1 (Vlink) Transit Area: 0.0.0.1 Neighbor IP address GR state Last Helper exit reason 4.4.4.4 20.2.0.
Field Description Displays policies that the Helper supports (the policies are displayed only when Helper is enabled): • Strict lsa check—The Helper supports strict LSA checking. Helper support • Planned and un-planned—The Helper supports planned and unplanned GR. • Planned only—The Helper supports only planned GR. GR state: • Normal—Normal state. Current GR state • Under GR—GR is in process. • Under Helper—The process is acting as Helper. Area Area ID in IP address format.
display ospf interface Use display ospf interface to display OSPF interface information. Syntax display ospf [ process-id ] interface [ interface-type interface-number | verbose ] Views Any view Predefined user roles network-admin network-operator Parameters process-id: Specifies an OSPF process ID in the range of 1 to 65535. interface-type interface-number: Specifies an interface by its type and number. verbose: Displays the OSPF information for all interfaces.
Field Description Interface state: • DOWN—No protocol traffic can be sent or received on the interface. • Waiting—The interface starts sending and receiving Hello packets and the router is trying to determine the identity of the (Backup) designated router for the network. State • p-2-p—The interface will send Hello packets at the interval of HelloInterval, and try to establish an adjacency with the neighbor. • DR—The router is the designated router on the network.
Syntax display ospf [ process-id ] lsdb [ brief | [ { asbr | ase | network | nssa | opaque-area | opaque-as | opaque-link | router | summary } [ link-state-id ] ] [ originate-router advertising-router-id | self-originate ] ] Views Any view Predefined user roles network-admin network-operator Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. brief: Displays brief LSDB information. asbr: Displays Type-4 LSA (ASBR Summary LSA) information in the LSDB.
Type LinkState ID AdvRouter Age Len Sequence Metric Router 192.168.0.1 192.168.0.1 21 36 80000005 0 Sum-Net 192.168.2.0 192.168.0.1 321 28 80000002 2 Sum-Net 192.168.0.0 192.168.0.1 321 28 80000002 1 Type 9 Opaque (Link-Local Scope) Database Flags: * -Vlink interface LSA LinkState ID AdvRouter Age Len Sequence Interfaces *Opq-Link Type 3.0.0.0 7.2.2.1 8 14 80000001 10.1.1.2 *Opq-Link 3.0.0.0 7.2.2.2 8 14 80000001 20.1.1.
Len : 32 Options : Seq# : 80000003 Checksum Net Mask NP : 0x2a77 : 255.255.255.0 Attached Router 192.168.1.1 Attached Router 192.168.1.2 Table 22 Command output Field Description Type LSA type. LS ID DR IP address. Adv Rtr Router that advertised the LSA. LS Age LSA age time. Len LSA length. LSA options: • O—Opaque LSA advertisement capability. • E—AS External LSA reception capability. Options • EA—External extended LSA reception capability. • DC—On-demand link support.
interface-type interface-number: Specifies an interface by its type and number. neighbor-id: Specifies a neighbor router ID. Usage guidelines If no OSPF process is specified, this command displays OSPF neighbor information for all OSPF processes. If the verbose keyword is not specified, this command displays brief OSPF neighbor information. If no interface is specified, this command displays the neighbor information for all interfaces.
Field Description Neighbor state: • Down—Initial state of a neighbor conversation. • Init—The router has seen a Hello packet from the neighbor. However, the router has not established bidirectional communication with the neighbor (the router itself did not appear in the neighbor's hello packet).
Neighbor Brief Information Area: 0.0.0.0 Router ID Address Pri Dead-Time Interface 1.1.1.2 1.1.1.2 1 40 Vlan1 State Full/DR Table 24 Command output Field Description Area Neighbor area. Router ID Neighbor router ID. Address Neighbor interface address. Pri Neighboring router priority. Dead-Time Dead interval remained. Interface Interface connected to the neighbor. State Neighbor state: Down, Init, Attempt, 2-Way, Exstart, Exchange, Loading, or Full.
Table 25 Command output Field Description Area ID The state statistics information of all the routers in the area to which the router belongs is displayed. Down Number of neighboring routers in Down state in the same area. Attempt Number of neighboring routers in Attempt state in the same area. Init Number of neighboring routers in Init state in the same area. 2-Way Number of neighboring routers in 2-Way state in the same area.
The Router's Neighbor is Router ID 2.2.2.2 Interface 10.1.1.1 Address 10.1.1.2 Area 0.0.0.0 Request list: Type LinkState ID AdvRouter Sequence Age Router 2.2.2.2 1.1.1.1 80000004 1 Network 192.168.0.1 1.1.1.1 80000003 1 Sum-Net 192.168.1.0 1.1.1.1 80000002 2 Table 26 Command output Field Description The Router's Neighbor is Router ID Neighbor router ID. Address Neighbor interface IP address. Interface Local interface IP address. Area Area ID.
If no neighbor is specified, this command displays retransmission queue information for all neighbors. Examples # Display OSPF retransmission queue information. display ospf retrans-queue The Router's Neighbor is Router ID 2.2.2.2 Interface 10.1.1.1 Address 10.1.1.2 Area 0.0.0.0 Retransmit list: Type LinkState ID AdvRouter Sequence Age Router 2.2.2.2 2.2.2.2 80000004 1 Network 12.18.0.1 2.2.2.2 80000003 1 Sum-Net 12.18.1.0 2.2.2.
mask: Specifies the mask in dotted decimal notation. mask-length: Specifies mask length in the range of 0 to 32 bits. interface interface-type interface-number: Displays routes passing the specified output interface. nexthop nexthop-address: Displays routes passing the specified next hop. verbose: Displays detailed OSPF routing information. Usage guidelines If no OSPF process is specified, this command displays the routing information for all OSPF processes.
OSPF Process 2 with Router ID 192.168.1.112 Routing Tables Routing for Network Destination: 192.168.1.0/24 Cost: 1562 Type: Stub AdvRouter: 192.168.1.2 Area: 0.0.0.0 SubProtoID: 0x1 Preference: 10 NextHop: 192.168.1.2 NetworkType: Broadcast BkNextHop: N/A BkNetworkType: N/A Destination: 172.16.0.0/16 Cost: 1563 Type: Inter AdvRouter: 192.168.1.1 Area: 0.0.0.0 SubProtoID: 0x1 Preference: 10 NextHop: 192.168.1.
Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. Usage guidelines If no OSPF process is specified, this command displays the OSPF virtual link information for all OSPF processes. Examples # Display OSPF virtual link information. display ospf vlink OSPF Process 1 with Router ID 3.3.3.3 Virtual Links Virtual-link Neighbor-ID -> 2.2.2.2, Neighbor-State: Full Interface: 10.1.2.1 (Vlan-interface1) Cost: 1562 State: P-2-P Type: Virtual Transit Area: 0.0.0.
Configured router ID is 1.1.1.1 enable link-local-signaling Use enable link-local-signaling to enable the OSPF link-local signaling (LLS) capability. Use undo enable link-local-signaling to disable the OSPF LLS capability. Syntax enable link-local-signaling undo enable link-local-signaling Default OSPF link-local signaling capability is disabled. Views OSPF view Predefined user roles network-admin Examples # Enable link-local signaling for OSPF process 1.
system-view [Sysname] ospf 1 [Sysname-ospf-1] enable link-local-signaling [Sysname-ospf-1] enable out-of-band-resynchronization Related commands enable link-local-signaling fast-reroute (OSPF view) Use fast-reroute to configure OSPF FRR. Use undo fast-reroute to restore the default. Syntax fast-reroute { lfa [ abr-only ] | route-policy route-policy-name } undo fast-reroute Default OSPF FRR is disabled.
Use filter to configure OSPF to filter inbound/outbound Type-3 LSAs on an ABR. Use undo filter to disable Type-3 LSA filtering. Syntax filter { acl-number | prefix-list prefix-list-name | route-policy route-policy-name } { export | import } undo filter { export | import } Default Type-3 LSAs are not filtered. Views OSPF area view Predefined user roles network-admin Parameters acl-number: Specifies an ACL by its number in the range of 2000 to 3999 to filter inbound/outbound Type-3 LSAs.
Predefined user roles network-admin Parameters acl-number: Specifies an ACL by its number in the range of 2000 to 3999 to filter redistributed routes by destination address. prefix-list-name: Specifies an IP prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter redistributed routes by destination address. protocol: Filters routes redistributed from the specified routing protocol, which can be bgp, direct, isis, ospf, rip, and static.
Use undo filter-policy import to restore the default. Syntax filter-policy { acl-number [ gateway prefix-list-name ] | gateway prefix-list-name | prefix-list prefix-list-name [ gateway prefix-list-name ] | route-policy route-policy-name } import undo filter-policy import Default Routes calculated using received LSAs are not filtered.
[Sysname-acl-adv-3000] rule 10 permit ip source 113.0.0.0 0 destination 255.255.0.0 0 [Sysname-acl-adv-3000] rule 100 deny ip [Sysname-acl-adv-3000] quit [Sysname] ospf 100 [Sysname-ospf-100] filter-policy 3000 import graceful-restart (OSPF view) Use graceful-restart to enable OSPF GR. Use undo graceful-restart to disable OSPF GR. Syntax graceful-restart [ ietf | nonstandard ] [ global | planned-only ] * undo graceful-restart Default OSPF GR is disabled.
Examples # Enable IETF GR for OSPF process 1. system-view [Sysname] ospf 1 [Sysname-ospf-1] opaque-capability enable [Sysname-ospf-1] graceful-restart ietf # Enable non-IETF GR for OSPF process 1.
graceful-restart helper strict-lsa-checking Use graceful-restart helper strict-lsa-checking to enable strict LSA checking capability for GR Helper. Use undo graceful-restart helper strict-lsa-checking to disable strict LSA checking capability for GR Helper. Syntax graceful-restart helper strict-lsa-checking undo graceful-restart helper strict-lsa-checking Default Strict LSA checking capability for GR Helper is disabled.
Usage guidelines The value of the GR restart interval cannot be smaller than the maximum OSPF neighbor dead time of all the OSPF interfaces. Otherwise, GR restart might fail. Examples # Configure the GR interval for OSPF process 1 as 100 seconds. system-view [Sysname] ospf 1 [Sysname-ospf-1] graceful-restart interval 100 Related commands ospf timer dead host-advertise Use host-advertise to advertise a host route. Use undo host-advertise to remove a host route.
undo import-route protocol [ process-id | all-processes ] Default OSPF does not redistribute AS-external routes from any other routing protocol. Views OSPF view Predefined user roles network-admin Parameters protocol: Redistributes routes from the specified protocol, which can be bgp, direct, isis, ospf, rip, or static. process-id: Specifies an process by its ID in the range of 1 to 65535. The default is 1. It is available only when the protocol is rip, ospf, or isis.
Examples # Redistribute routes from RIP process 40 and specify the type, tag, and cost as 2, 33, and 50 for redistributed routes. system-view [Sysname] ospf 100 [Sysname-ospf-100] import-route rip 40 type 2 tag 33 cost 50 Related commands default-route-advertise ispf enable Use ispf enable to enable OSPF incremental SPF (ISPF). Use undo ispf enable to disable OSPF ISPF. Syntax ispf enable undo ispf enable Default OSPF ISPF is enabled.
Views OSPF view Predefined user roles network-admin Usage guidelines After you enable this feature, the information about OSPF neighbor state changes will be output to the terminal. Examples # Disable the logging of neighbor state changes for OSPF process 100. system-view [Sysname] ospf 100 [Sysname-ospf-100] undo log-peer-change lsa-arrival-interval Use lsa-arrival-interval to specify the LSA arrival interval. Use undo lsa-arrival-interval to restore the default.
Related commands lsa-generation-interval lsdb-overflow-interval Use lsdb-overflow-interval to configure the interval that OSPF exits overflow state. Use undo lsdb-overflow-interval to restore the default. Syntax lsdb-overflow-interval interval undo lsdb-overflow-interval Default The OSPF exit overflow interval is 300 seconds. Views OSPF view Predefined user roles network-admin Parameters interval: Specifies the interval that OSPF exits overflow state, in the range of 0 to 2147483647 seconds.
Views OSPF view Predefined user roles network-admin Parameters maximum-interval: Specifies the maximum LSA generation interval in the range of 1 to 60 seconds. minimum-interval: Specifies the minimum LSA generation interval in the range of 10 to 60000 milliseconds. 0 indicates that the minimum interval can be any value. incremental-interval: Specifies the LSA generation incremental interval in the range of 10 to 60000 milliseconds.
Examples # Specify the upper limit of external LSAs as 400000. system-view [Sysname] ospf 100 [Sysname-ospf-100] lsdb-overflow-limit 400000 maximum load-balancing (OSPF view) Use maximum load-balancing to specify the maximum number of equal-cost multi-path (ECMP) routes for load balancing. Use undo maximum load-balancing to restore the default.
Default OSPF is not enabled for any interface. Views OSPF area view Predefined user roles network-admin View OSPF area view Parameters ip-address: Specifies the IP address of a network. wildcard-mask: Specifies the wildcard mask of the IP address. For example, the wildcard mask of mask 255.0.0.0 is 0.255.255.255. Usage guidelines This command enables OSPF on the interface attached to the specified network. The interface's primary IP address must be in the specified network.
Parameters default-route-advertise: Usable on an NSSA ABR or an ASBR only. If it is configured on an NSSA ABR, the ABR generates a default route in a Type-7 LSA into the NSSA area regardless of whether a default route is available in the routing table. If it is configured on an ASBR, the ASBR generates a default route in a Type-7 LSA only when the default route is available in the routing table.
Usage guidelines After the opaque LSA advertisement and reception is enabled, OSPF can receive and advertise Type-9, Type-10, and Type-11 opaque LSAs. Examples # Disable opaque LSA advertisement and reception. system-view [Sysname] ospf 100 [Sysname-ospf-100] undo opaque-capability ospf Use ospf to enable an OSPF process. Use undo ospf to disable an OSPF process.
Syntax For MD5/HMAC-MD5 authentication: ospf authentication-mode { hmac-md5 | md5 } key-id { cipher cipher-string | plain plain-string } undo ospf authentication-mode { hmac-md5 | md5 } key-id For simple authentication: ospf authentication-mode simple { cipher cipher-string | plain plain-string } undo ospf authentication-mode simple Default No authentication is configured. Views Interface view Predefined user roles network-admin Parameters hmac-md5: Enables HMAC-MD5 authentication.
# Enable simple authentication for the network 131.119.0.0/16 in Area 1. Set the plaintext key to 123456 on Ethernet 1/1. 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 simple [Sysname-ospf-100-area-0.0.0.
ospf cost Use ospf cost to set an OSPF cost for an interface. Use undo ospf cost to restore the default. Syntax ospf cost value undo ospf cost Default An interface computes its OSPF cost according to the interface bandwidth. Views Interface view Predefined user roles network-admin Parameters value: Specifies an OSPF cost in the range of 0 to 65535 for a loopback interface and in the range of 1 to 65535 for other interfaces.
Predefined user roles network-admin Parameters priority: Specify the router priority for the interface, in the range of 0 to 255. Usage guidelines The greater the value, the higher the priority for DR/BDR election. If a device has a priority of 0, it will not be elected as a DR or BDR. Examples # Set the router priority on VLAN-interface 10 to 8.
Default MIB operation is bound to the OSPF process with the smallest process ID. Views System view Predefined user roles network-admin Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. Examples # Bind MIB operation to OSPF process 100. system-view [Sysname] ospf mib-binding 100 ospf mtu-enable Use ospf mtu-enable to enable an interface to add the interface MTU into DD packets. Use undo ospf mtu-enable to restore the default.
Use undo ospf network-type to restore the default network type for an interface. Syntax ospf network-type { broadcast | nbma | p2mp [ unicast ] | p2p } undo ospf network-type Default By default, the network type of an interface depends on its link layer protocol: • For Ethernet and FDDI, the network type is broadcast. • For ATM, FR, and X.25, the network type is NBMA. • For PPP, LAPB, HDLC, and POS, the network type is P2P.
ospf timer dead Use ospf timer dead to set the neighbor dead interval. Use undo ospf timer dead to restore the default. Syntax ospf timer dead seconds undo ospf timer dead Default The dead interval is 40 seconds for broadcast and P2P interfaces. The dead interval is 120 seconds for P2MP and NBMA interfaces. Views Interface view Predefined user roles network-admin Parameters seconds: Specifies the dead interval in the range of 1 to 2147483647 seconds.
Predefined user roles network-admin Parameters seconds: Specifies the hello interval in the range of 1 to 65535 seconds. Usage guidelines The shorter the hello interval, the faster the topology converges, and the more resources are consumed. Make sure the hello interval on two neighboring interfaces is the same. Examples # Configure the hello interval on VLAN-interface as 20 seconds.
Related commands ospf timer hello ospf timer retransmit Use ospf timer retransmit to set the LSA retransmission interval on an interface. Use undo ospf timer retransmit to restore the default. Syntax ospf timer retransmit interval undo ospf timer retransmit Default The LSA retransmission interval is 5 seconds on an interface. Views Interface view Predefined user roles network-admin Parameters interval: Specifies the LSA retransmission interval in the range of 1 to 3600 seconds.
Predefined user roles network-admin Parameters seconds: Specifies the LSA transmission delay in the range of 1 to 3600 seconds. Usage guidelines Each LSA in the LSDB has an age that is incremented by 1 every second, but the age does not change during transmission. Adding a transmission delay into the age time is important in low speed networks. Examples # Set the LSA transmission delay to 3 seconds on VLAN-interface 10.
The cost set with the peer command applies only to P2MP neighbors. If no cost is specified, the cost to the neighbor equals the local interface's cost. A router uses the priority set with the peer command to determine whether to send a hello packet to the neighbor rather than for DR election. The DR priority set with the ospf dr-priority command is used for DR election. Examples # Specify the neighbor 1.1.1.1. system-view [Sysname] ospf 100 [Sysname-ospf-100] peer 1.1.1.
# Use a routing policy to set a preference of 100. system-view [Sysname] ip prefix-list test index 10 permit 100.1.1.0 24 [Sysname] route-policy pre permit node 10 [Sysname-route-policy-pre-10] if-match ip address prefix-list test [Sysname-route-policy-pre-10] quit [Sysname] ospf 100 [Sysname-ospf-100] preference route-policy pre 100 reset ospf counters Use reset ospf counters to clear OSPF statistics.
• Starts a new round of DR/BDR election. • Does not remove previous OSPF configurations. The system prompts you to select whether to reset OSPF process upon execution of this command. Examples # Reset all OSPF processes. reset ospf process Reset OSPF process? [Y/N]:y reset ospf redistribution Use reset ospf redistribution to restart route redistribution.
Usage guidelines RFC 1583 specifies a different method than RFC 2328 for selecting the best route from multiple AS external routes destined for the same network. Using this command makes them compatible. If RFC 2328 is compatible with RFC 1583, the intra-area route in the backbone area is preferred. If not, the intra-area route in the non-backbone area is preferred to reduce the burden of the backbone area. Examples # Disable compatibility with RFC 1583.
system-view [Sysname] router id 1.1.1.1 silent-interface (OSPF view) Use silent-interface to disable an interface or all interfaces from receiving and sending OSPF packets. Use undo silent-interface to remove the configuration. Syntax silent-interface { interface-type interface-number | all } undo silent-interface { interface-type interface-number | all } Default An interface can receive and send OSPF packets.
retransmit | virt-authentication-failure | virt-bad-packet | virt-config-error | virt-retransmit | virtgrhelper-status-change | virtif-state-change | virtneighbor-state-change ] * Default OSPF trap sending is enabled. Views System view Predefined user roles network-admin Parameters authentication-failure: Specifies traps about authentication failures on an interface. bad-packet: Specifies traps about error messages received on an interface.
Use undo snmp trap rate-limit to restore the default. Syntax snmp trap rate-limit interval trap-interval count trap-number undo snmp trap rate-limit Default OSPF outputs 7 traps in 10 seconds. Views OSPF view Predefined user roles network-admin Parameters trap-interval: Specifies the trap output interval in the range of 1 to 60 seconds. trap-number: Specifies the number of output traps in a specific time, in the range of 0 to 300. Examples # Configure OSPF to output 10 traps in 5 seconds.
Usage guidelines Based on the LSDB, an OSPF router uses SPF to calculate a shortest path tree with itself as the root. OSPF uses the shortest path tree to determine the next hop to a destination. By adjusting the SPF calculation interval, you can prevent bandwidth and router resources from being over-consumed due to frequent topology changes. When network changes are not frequent, OSPF performs SPF calculations at the minimum-interval.
Examples # Configure Area 1 as a stub area. system-view [Sysname] ospf 100 [Sysname-ospf-100] area 1 [Sysname-ospf-100-area-0.0.0.1] stub Related commands default-cost stub-router Use stub-router to configure a router as a stub router. Use undo stub-router to restore the default. Syntax stub-router undo stub-router Default No router is a stub router.
Default An OSPF interface sends up to three LSU packets every 20 milliseconds. Views OSPF view Predefined user roles network-admin Parameters interval interval: Specifies an interval at which an interface sends LSU packets, in the range of 10 to 1000 milliseconds. If the router has multiple OSPF interfaces, increase this interval to reduce the total number of LSU packets sent by the router every second.
trans-delay seconds: Sets the transmission delay interval in the range of 1 to 3600 seconds. The default is 1. dead seconds: Sets the dead interval in the range of 1 to 32768 seconds. The default is 40. It must be identical with that on the virtual link neighbor. The dead interval is at least four times the hello interval. md5: Enables MD5 authentication. hmac-md5: Enables HMAC-MD5 authentication. simple: Enables simple authentication.
IS-IS commands area-authentication-mode Use area-authentication-mode to specify an area authentication mode and a password. Use undo area-authentication-mode to restore the default. Syntax area-authentication-mode { md5 | simple } { cipher cipher-string | plain plain-string } [ ip | osi ] undo area-authentication-mode Default No area authentication or password is configured. Views IS-IS view Predefined user roles network-admin Parameters md5: Specifies the MD5 authentication mode.
[Sysname-isis-1] area-authentication-mode simple plain 123456 Related commands • domain-authentication-mode • isis authentication-mode auto-cost enable Use auto-cost enable to enable automatic link cost calculation. Use undo auto-cost enable to disable the function. Syntax auto-cost enable undo auto-cost enable Default This function is disabled.
• cost-style bandwidth-reference (IS-IS view) Use bandwidth-reference to set the bandwidth reference value for automatic link cost calculation. Use undo bandwidth-reference to restore the default. Syntax bandwidth-reference value undo bandwidth-reference Default The bandwidth reference value is 100 Mbps. Views IS-IS view Predefined user roles network-admin Parameters value: Specifies the bandwidth reference value in the range of 1 to 2147483648 Mbps.
Parameters value: Specifies the link cost value. The value range varies by cost style. • For styles narrow, narrow-compatible, and compatible, the cost value is in the range of 0 to 63. • For styles wide and wide-compatible, the cost value is in the range of 0 to 16777215. level-1: Applies the link cost to Level-1. level-2: Applies the link cost to Level-2. Usage guidelines If no level is specified, the specified cost applies to both Level-1 and Level-2.
relax-spf-limit: Allows receiving routes with a cost greater than 1023. If this keyword is not specified, any route with a cost bigger than 1023 will be discarded. This keyword is only available when compatible or narrow-compatible is included. Examples # Configure the router to send only narrow cost style packets, but receive both narrow and wide cost style packets.
Examples # Configure IS-IS process 1 to advertise a Level-2 default route. system-view [Sysname] isis 1 [Sysname-isis-1] default-route-advertise display isis brief Use display isis brief to display brief configuration information for an IS-IS process. Syntax display isis brief [ process-id ] Views Any view Predefined user roles network-admin network-operator Parameters process-id: Specifies a process by its ID in the range of 1 to 65535.
Table 32 Command output Field Description network-entity Network entity name. is-level IS-IS routing level. cost-style Cost style. Whether FRR is enabled: fast-reroute • disable—FRR is disabled. • enable—FRR is enabled. preference IS-IS route preference. Lsp-length receive Maximum LSP that can be received. Lsp-length originate Maximum LSP that can be generated. maximum imported routes Maximum number of redistributed Level-1/Level-2 IPv4/IPv6 routes.
-------------------------------Restart status: COMPLETE Restart phase: Finish Restart t1: 3, count 10; Restart t2: 60; Restart t3: 300 SA Bit: supported Level-1 restart information --------------------------Total number of interfaces: 1 Number of waiting LSPs: 0 Level-2 restart information --------------------------Total number of interfaces: 1 Number of waiting LSPs: 0 Table 33 Command output Field Description Current GR state: • RESTARTING—In this state, forwarding can be ensured.
Syntax display isis interface [ [ interface-type interface-number ] [ verbose ] | statistics ] [ process-id ] Views Any view Predefined user roles network-admin network-operator Parameters interface-type interface-number: Displays statistics of a specified IS-IS interface. verbose: Displays detailed information about an interface. If this keyword is not specified, this command displays brief information about an interface. statistics: Displays IS-IS interface statistics.
Lsp Timer Value : L12 33 Lsp Transmit-Throttle Count : L12 5 Cost : L1 10 L2 10 Priority : L1 64 L2 64 IPv4 BFD : Disabled IPv6 BFD : Disabled Table 34 Command output Field Description Interface Interface type and number. Id Circuit ID. IPv4.State IPv4 state. IPv6.State IPv6 state. MTU Interface MTU. Type Interface link adjacency type. DIS Whether the interface is elected as the DIS or not. SNPA Address Subnet access point address. IP Address Primary IP address.
Table 35 Command output Field Description Network type of the interface: Type • LAN for broadcast network. • P2P for point-to-point network. IPv4 UP Number of IS-IS interfaces in up state. IPv4 Down Number of IS-IS interfaces in down state. IPv6 UP Number of IS-ISv6 interfaces in up state. If IPv6 is not enabled, this field displays 0. IPv6 Down Number of IS-ISv6 interfaces in down state. If IPv6 is not enabled, this field displays 0.
Examples # Display brief Level-1 LSDB information. display isis lsdb level-1 Database information for ISIS(1) -------------------------------Level-1 Link State Database --------------------------LSPID Seq Num Checksum Holdtime Length ATT/P/OL ------------------------------------------------------------------------------5555.1111.1111.00-00 0x00000006 0x8519 1150 75 0/0/0 5555.1111.1111.00-01 0x00000001 0x4995 1139 41 0/0/0 7777.8888.1111.
INTF ADDR NBR 8.8.8.7 ID 7777.8888.1111.01 COST: 10 IP-Internal 8.8.8.0 255.255.255.0 7777.8888.1111.01-00* 0x00000004 SOURCE 7777.8888.1111.01 NLPID IPV4 NBR ID NBR ID COST: 10 0xb4a4 1124 5555.1111.1111.00 COST: 0 7777.8888.1111.00 COST: 0 55 0/0/0 *-Self LSP, +-Self LSP(Extended), ATT-Attached, P-Partition, OL-Overload Table 36 Command output Field Description LSPID LSP ID. Seq Num LSP sequence number. Checksum LSP checksum.
display isis name-table Use display isis name-table to display the host name to system ID mapping table. Syntax display isis name-table [ process-id ] Views Any view Predefined user roles network-admin network-operator Parameters process-id: Displays the host name to system ID mapping table for an IS-IS process specified by its ID in the range of 1 to 65535. Examples # Configure a name RUTA for the local IS system.
Views Any view Predefined user roles network-admin network-operator Parameters statistics: Displays IS-IS neighbor statistics. verbose: Displays detailed IS-IS neighbor information. Without the keyword, the command displays brief IS-IS neighbor information. process-id: Displays IS-IS neighbor information for an IS-IS process specified by its ID in the range of 1 to 65535. Usage guidelines If no IS-IS process ID is specified, this command displays neighbor information for all IS-IS processes.
Area Address(es): 18 Peer IP Address(es):8.8.8.5 Uptime: 00:03:17 Adj Protocol: IPv4 Table 38 Command output Field Description System Id System ID of the neighbor. Interface Interface connecting to the neighbor. Circuit Id Circuit ID. State Circuit state. HoldTime Within the holdtime, if no hellos are received from the neighbor, the neighbor is considered down. If a hello is received, the holdtime is reset to the initial value.
Field Description IPv4 Init Number of IPv4 neighbors in init state. IPv6 Up Number of IPv6 neighbors in up state. IPv6 Init Number of IPv6 neighbors in init state. display isis redistribute Use display isis redistribute to display the redistributed IS-IS routing information.
Table 40 Command output Field Description Route information for IS-IS(1) IS-IS process of the redistributed routing information. Level-1 IPv4 Redistribute Table Redistributed IPv4 routing information of IS-IS Level-1. Level-2 IPv4 Redistribute Table Redistributed IPv4 routing information of IS-IS Level-2. Redistributed route type: • • • • • • Type Direct. IS-IS. Static. OSPF. BGP. RIP. IPV4 Destination IPv4 destination address. IntCost Internal cost of the route.
If no IS-IS process ID is specified, this command displays routing information for all IS-IS process IDs. Examples # Display IS-IS IPv4 routing information. display isis route Route information for ISIS(1) ----------------------------- Level-1 IPv4 Forwarding Table ----------------------------- IPv4 Destination IntCost ExtCost ExitInterface NextHop Flags ------------------------------------------------------------------------------8.8.8.0/24 10 NULL Vlan2 Direct D/L/- 9.9.9.
# Display detailed IS-IS IPv4 routing information. display isis route verbose Route information for ISIS(1) ----------------------------Level-1 IPv4 Forwarding Table ----------------------------IPV4 Dest : 8.8.8.0/24 Int. Cost : 10 Ext. Cost : NULL Admin Tag : - Src Count : 2 Flag NextHop Interface : ExitIndex : : Direct Vlan2 : D/L/- 0x00000000 IPV4 Dest : 9.9.9.0/24 Int. Cost : 20 Ext. Cost : NULL Admin Tag : - Src Count : 1 Flag NextHop Interface : ExitIndex : : 8.8.8.
Field Description Route state flag: • R—The route has been installed into the routing table. • L—The route has been flooded in an LSP. • U—Route leaking flag. Setting it to UP can prevent an LSP sent Flag from L2 to L1 from being sent back to L2. Next Hop Next hop. Interface Output interface. ExitIndex Index of the output interface. display isis statistics Use display isis statistics to display IS-IS statistics.
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: 0 BGP: 0 RIP: 0 OSPF: 0 Total Number: 0 IPv6 Imported Routes: Static: 0 Direct: 0 ISISv6: 0 BGP4+: RIPng: OSPFv3: 0 0 Total Number: 0 0 Lsp information: LSP Source ID: No. of used LSPs 7777.8888.
Field Description Level-1 Statistics Level-1 statistics. Level-2 Statistics Level-2 statistics. Learnt routes information Number of learned IPv4 routes. Number of learned IPv6 routes. • IPv4 Imported Routes—Numbers of different types of Imported routes information redistributed IPv4 routes. • IPv6 Imported Routes—Numbers of different types of redistributed IPv6 routes. LSP information: Lsp information • LSP Source ID—ID of the source system. • No. of used LSPs—Number of used LSPs.
All the backbone routers must have the same authentication mode and password. If neither ip nor osi is specified, the OSI-related fields in LSPs are checked. For security purposes, all passwords, including passwords configured in plain text, are saved in cipher text. Examples # Configure the routing domain authentication mode as simple, and set the plaintext password to 123456.
filter-policy export Use filter-policy export to configure IS-IS to filter redistributed routes. Use undo filter-policy export to remove the configuration.
# Configure ACL 3000 to permit only route 113.0.0.0/16 to pass. Use ACL 3000 to filter redistributed routes. system-view [Sysname] acl number 3000 [Sysname-acl-adv-3000] rule 10 permit ip source 113.0.0.0 0 destination 255.255.0.
Examples # Use ACL 2000 to filter routes calculated using received LSPs. 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] rule permit source any [Sysname-acl-basic-2000] quit [Sysname] isis 1 [Sysname-isis-1] filter-policy 2000 import # Configure ACL 3000 to permit only route 113.0.0.0/16 to pass. Use ACL 3000 to filter routes calculated using received LSPs.
Usage guidelines 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. system-view [Sysname] isis 1 [Sysname-isis-1] flash-flood flood-count 10 max-timer-interval 100 graceful-restart Use graceful-restart to enable IS-IS GR. Use undo graceful-restart to disable IS-IS GR.
Views IS-IS view Predefined user roles network-admin Usage guidelines Suppressing the SA bit is mainly for avoiding black hole route. If a router starts or reboots without keeping the local forwarding table, sending packets to the router might result in a severe packet loss. To avoid this, you can set the SA bit of the hello packet sent by the GR Restarter to 1. Upon receiving such hello packets, the GR Helpers will not advertise the GR Restarter through LSP.
system-view [Sysname] isis 1 [Sysname-isis-1] graceful-restart t1 5 count 5 Related commands • graceful-restart • graceful-restart t2 • graceful-restart t3 graceful-restart t2 Use graceful-restart t2 to configure the T2 timer. Use undo graceful-restart t2 to restore the default. Syntax graceful-restart t2 seconds undo graceful-restart t2 Default The T2 timer is 60 seconds.
Use undo graceful-restart t3 to restore the default. Syntax graceful-restart t3 seconds undo graceful-restart t3 Default The T3 timer is 300 seconds. Views IS-IS view Predefined user roles network-admin Parameters seconds: Specifies the T3 timer in the range of 300 to 65535 seconds. Usage guidelines The T3 timer specifies the GR interval. The GR interval is set as the holdtime in hello PDUs. Within the interval, the neighbors maintain their adjacency with the GR Restarter.
Predefined user roles network-admin Parameters protocol: Redistributes routes from a routing protocol, which can be BGP, direct, IS-IS, OSPF, RIP, or static. process-id: Specifies a process by its ID in the range of 1 to 65535. It is available only when the protocol is isis, ospf, or rip. all-processes: Redistributes routes from all the processes of the specified routing protocol. This keyword takes effect only when the protocol is rip, ospf, or isis. allow-ibgp: Allows redistribution of IBGP routes.
Related commands import-route limit import-route isis level-1 into level-2 Use import-route isis level-1 into level-2 to enable route advertisement from Level-1 to Level-2. Use undo import-route isis level-1 into level-2 to disable route advertisement from Level-1 to Level-2.
import-route isis level-2 into level-1 Use import-route isis level-2 into level-1 to enable route advertisement from Level-2 to Level-1. Use undo import-route isis level-2 into level-1 to disable route advertisement from Level-2 to Level-1. Syntax import-route isis level-2 into level-1 [ filter-policy { acl-number | prefix-list prefix-list-name | route-policy route-policy-name } | tag tag ] * undo import-route isis level-2 into level-1 Default Route advertisement is not enabled.
Use undo import-route limit to restore the default. Syntax import-route limit number undo import-route limit Default The maximum number of redistributed Level 1/Level 2 IPv4 routes is not configured. Views IS-IS view Predefined user roles network-admin Parameters number: Specifies the maximum number of redistributed Level 1/Level 2 IPv4 routes, in the range of 1 to 524288. Examples # Configure IS-IS process 1 to redistribute up to 1000 Level 1/Level 2 IPv4 routes.
Examples # Enable IS-IS process 1 and specify the system ID as 0000.0000.0002 and area ID as 01.0001. system-view [Sysname] isis 1 [Sysname-isis-1] network-entity 01.0001.0000.0000.0002.00 Related commands • isis enable • network-entity isis authentication-mode Use isis authentication-mode to set the IS-IS authentication mode and password for an interface. Use undo isis authentication-mode to remove the configuration.
For two routers to become neighbors, the authentication mode and password at both ends must be identical. For security purposes, all passwords, including passwords configured in plain text, are saved in cipher text. If you configure a password without specifying a level, the password applies to both Level-1 and Level-2. If neither ip nor osi is specified, the OSI-related fields in LSPs are checked.
Use undo isis circuit-level to restore the default. Syntax isis circuit-level [ level-1 | level-1-2 | level-2 ] undo isis circuit-level Default An interface can establish either the Level-1 or Level-2 adjacency. Views Interface view Predefined user roles network-admin Parameters level-1: Sets the circuit level to Level-1. level-1-2: Sets the circuit level to Level-1-2. level-2: Sets the circuit level to Level-2.
Predefined user roles network-admin Usage guidelines Perform this configuration only for a broadcast network with only two attached routers. Interfaces with different network types operate differently. For example, broadcast interfaces must elect a DIS and flood CSNP packets to synchronize the LSDBs, and P2P interfaces do not need to elect a DIS, and use a different LSDB synchronization mechanism.
[Sysname-Vlan-interface10] isis cost 5 level-2 isis dis-name Use isis dis-name to configure a name for a DIS to represent the pseudo node on a broadcast network. Use undo isis dis-name to restore the default. Syntax isis dis-name symbolic-name undo isis dis-name Default No name is configured for the DIS. Views Interface view Predefined user roles network-admin Parameters symbolic-name: Specifies a DIS name, a string of 1 to 64 characters.
Parameters value: Specifies a DIS priority in the range of 0 to 127. level-1: Applies the DIS priority to Level-1. level-2: Applies the DIS priority to Level-2. Usage guidelines If neither level-1 nor level-2 is specified, the DIS priority applies to both Level-1 and Level-2. On an IS-IS broadcast network, a router must be elected as the DIS at each routing level. Specify a DIS priority at a level for an interface. The greater the interface’s priority is, the more likelihood it becomes the DIS.
Related commands • isis • network-entity isis peer-ip-ignore Use isis peer-ip-ignore to configure a PPP interface to not check the peer's IP address in received hello packets. Use undo isis peer-ip-ignore to restore the default. Syntax isis peer-ip-ignore undo isis peer-ip-ignore Default The PPP interface checks the peer's IP address upon receiving a hello packet.
Usage guidelines The feature is not supported on the loopback interface. Examples # Disable VLAN-interface 10 from sending and receiving IS-IS packets. system-view [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] isis silent isis small-hello NOTE: This command is not available in loopback interface view. Use isis small-hello to configure the interface to send small hello packets without CLVs. Use undo isis small-hello to restore the default.
Views Interface view Predefined user roles network-admin 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. Usage guidelines If no level is specified, the CSNP interval applies to both Level-1 and Level-2. This command only applies to the DIS of a broadcast network, which sends CSNP packets periodically for LSDB synchronization.
Usage guidelines Level-1 and Level-2 hello packets are sent independently on a broadcast network, so you need to specify an interval for each level. On a P2P link, Level-1 and Level-2 packets are both sent in P2P hello packets, and you need not specify an interval for each level. You can configure keywords level-1 and level-2 only on broadcast interfaces. Before you do that, enable IS-IS on the interface. The shorter the interval, the more system resources will be occupied.
Level-1 and Level-2 hello packets are sent independently on a broadcast network, so you need to specify a hello multiplier for each level. On a P2P link, Level-1 and Level-2 packets are both sent in P2P hello packets, and you need not specify Level-1 or Level-2. You can configure keywords level-1 and level-2 only on broadcast interfaces. Before doing that, enable IS-IS on the interface. If no level is specified, the hello multiplier applies to the current level.
Examples # Configure the interval as 500 milliseconds for sending LSPs on interface VLAN-interface 10. system-view [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] isis timer lsp 500 Related commands isis timer retransmit ispf enable Use ispf enable to enable IS-IS incremental SPF (ISPF). Use undo ispf enable to disable IS-IS ISPF. Syntax ispf enable undo ispf enable Default IS-IS ISPF is enabled.
Views IS-IS view Predefined user roles network-admin Parameters level-1: Specifies Level-1, which means IS-IS only calculates intra-area routes and maintains the Level-1 LSDB. level-1-2: Specifies Level-1-2, which means IS-IS calculates routes and maintains the LSDBs for both Level-1 and Level-2. level-2: Specifies Level-2, which means IS-IS calculates routes and maintains the LSDB for Level-2 only.
is-name map Use is-name map to configure a system ID to host name mapping for a remote IS. Use undo is-name map to remove the mapping. Syntax is-name map sys-id map-sys-name undo is-name map sys-id Views IS-IS view Predefined user roles network-admin Parameters sys-id: Specifies the system ID or pseudonode ID of a remote IS. map-sys-name: Specifies a host name for the remote IS, a string of 1 to 64 characters. Usage guidelines Each remote IS system ID corresponds to only one name.
system-view [Sysname] isis 1 [Sysname-isis-1] undo log-peer-change lsp-fragments-extend Use lsp-fragments–extend to enable LSP fragment extension for a level. Use undo lsp-fragments–extend to disable LSP fragment extension. Syntax lsp-fragments-extend [ level-1 | level-1-2 | level-2 ] undo lsp-fragments-extend Default LSP fragment extension is disabled. Views IS-IS view Predefined user roles network-admin Parameters level-1: Applies the fragment extension to Level-1 LSPs.
Predefined user roles network-admin Parameters size: Specifies the maximum size of LSP packets, in the range of 512 to 16384 bytes. level-1: Applies the size to Level-1 LSP packets. level-2: Applies the size to Level-2 LSP packets. Usage guidelines If neither Level-1 nor Level-2 is specified in the command, the configured maximum size applies to the current IS-IS level. Examples # Configure the maximum size of the generated Level-2 LSPs as 1024 bytes.
Use undo maximum load-balancing to restore the default. Syntax maximum load-balancing number undo maximum load-balancing Views IS-IS view Predefined user roles network-admin Parameters number: Specifies the maximum number of ECMP routes. Usage guidelines The value range for the number argument and the default setting depend on the max-ecmp-num command.
Parameters net: Specifies a NET as a dotted hexadecimal string in the X…X.XXXX....XXXX.00 format. The X…X segment represents the area address, the XXXX....XXXX segment represents the system ID, and the 00 segment is the SEL. Usage guidelines A NET is a special NSAP address with the SEL being 0. The length of the NET is in the range of 8 bytes to 20 bytes. A NET comprises the following parts: • Area ID—With a length of 1 to 13 bytes.
Usage guidelines If a routing policy is specified in this command, the preference set by the routing policy applies to the matching routes. Other routes use the preference set by the preference command. If multiple routing protocols find routes to the same destination, the route found by the routing protocol with the highest preference is selected as the optimal route. Examples # Configure the preference for IS-IS as 25.
reset isis all Use reset isis all to clear all IS-IS data structure information. Syntax reset isis all [ process-id ] [ graceful-restart ] Views User view Predefined user roles network-admin Parameters process-id: Specifies an IS-IS process by its ID in the range of 1 to 65535 to clear the data structure information for an IS-IS process. graceful-restart: Recovers the data through GR after the data is cleared.
set-overload Use set-overload to set the overload bit. Use undo set-overload to clear the overload bit. Syntax set-overload [ on-startup [ [ start-from-nbr system-id [ timeout1 [ nbr-timeout ] ] ] | timeout2 ] [ allow { external | interlevel } * ] undo set-overload Default The overload bit is not set. Views IS-IS view Predefined user roles network-admin Parameters on-startup: Sets the overload bit upon system startup.
[Sysname] isis 1 [Sysname-isis-1] set-overload summary (IS-IS view) Use summary to configure a summary route. Use undo summary to remove a summary route. Syntax summary ip-address { mask | mask-length } [ avoid-feedback | generate_null0_route | [ level-1 | level-1-2 | level-2 ] | tag tag ] * undo summary ip-address { mask | mask-length } [ level-1 | level-1-2 | level-2 ] Default No summarization is configured.
[Sysname-isis-1] summary 202.0.0.0 255.0.0.0 timer lsp-generation Use timer lsp-generation to configure LSP generation interval. Use undo timer lsp-generation to remove the configuration. Syntax timer lsp-generation maximum-interval [ minimum-interval [ incremental-interval ] ] [ level-1 | level-2 ] undo timer lsp-generation [ level-1 | level-2 ] Default The maximum interval is 2 seconds, the minimum interval is 0 milliseconds, and the incremental interval is 0 milliseconds.
Syntax timer lsp-max-age seconds undo timer lsp-max-age Default The LSP maximum age is 1200 seconds. Views IS-IS view Predefined user roles network-admin Parameters seconds: Specifies the LSP maximum aging time in the range of 1 to 65535 seconds. Examples # Set the maximum LSP age to 1500 seconds. system-view [Sysname] isis 1 [Sysname-isis-1] timer lsp-max-age 1500 Related commands timer lsp-refresh timer lsp-refresh Use timer lsp-refresh to configure the LSP refresh interval.
system-view [Sysname] isis 1 [Sysname-isis-1] timer lsp-refresh 1500 Related commands timer lsp-max-age timer spf Use timer spf to set the SPF calculation interval. Use undo timer spf to restore the default. Syntax timer spf maximum-interval [ minimum-interval [ incremental-interval ] ] undo timer spf Default The maximum interval is 5 seconds, the minimum interval is 50 milliseconds, and the incremental interval is 200 milliseconds.
virtual-system Use virtual-system to configure a virtual system ID for the IS-IS process. Use undo virtual-system to remove a virtual system ID. Syntax virtual-system virtual-system-id undo virtual-system virtual-system-id Default No virtual system ID is configured. Views IS-IS view Predefined user roles network-admin Parameters virtual-system-id: Specifies a virtual system ID for the IS-IS process. Examples # Set a virtual system ID of 2222.2222.2222 for IS-IS process 1.
BGP commands advertise-rib-active Use advertise-rib-active to enable BGP to advertise optimal routes in the IP routing table. Use undo advertise-rib-active to restore the default. Syntax advertise-rib-active undo advertise-rib-active Default BGP advertises optimal routes in the BGP routing table, regardless of whether they are optimal in the IP routing table.
aggregate ip-address { mask | mask-length } [ as-set | attribute-policy route-policy-name | detail-suppressed | origin-policy route-policy-name | suppress-policy route-policy-name ] * undo aggregate ip-address { mask | mask-length } In BGP IPv6 unicast address family view: aggregate ipv6-address prefix-length [ as-set | attribute-policy route-policy-name | detail-suppressed | origin-policy route-policy-name | suppress-policy route-policy-name ] * undo aggregate ipv6-address prefix-length Default No summary
If the summarized routes have different COMMUNITY (or extended COMMUNITY) attributes and the summary route does not have the ATOMIC_AGGREGATE attribute, the summary route carries all the COMMUNITY (or extended COMMUNITY) attributes. Table 44 Functions of the keywords Keywords Function as-set Enables the summary route to carry the AS path information of all summarized routes. This feature can help avoid routing loops.
[Sysname-bgp-ipv4] aggregate 1.1.0.0 255.255.0.0 attribute-policy commu # In BGP IPv4 unicast address family view, create a summary route 1.1.0.0/16 in the BGP routing table, and configure BGP to not summarize route 1.1.1.0/24. system-view [Sysname] ip prefix-list spert deny 1.1.1.0 24 [Sysname] ip prefix-list spert permit 0.0.0.
Syntax balance number undo balance Default Load balancing is not enabled. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view Predefined user roles network-admin Parameters number: Specifies the maximum number of BGP ECMP routes for load balancing. When it is set to 1, load balancing is disabled. Usage guidelines Unlike IGP, BGP has no explicit metric for making load balancing decision.
Use undo bestroute as-path-neglect to configure BGP to consider the AS_PATH during best route selection. Syntax bestroute as-path-neglect undo bestroute as-path-neglect Default BGP considers the AS_PATH during best route selection.
Usage guidelines By default, BGP does not compare MEDs for routes from the same AS. When a router learns a new route, it compares the route with the optimal route in its BGP routing table. If the new route is more optimal, it becomes the optimal route in the BGP routing table. In this way, route learning sequence might affect optimal route selection. With the bestroute compare-med command configured, the router puts routes received from the same AS into a group.
Usage guidelines This command enables BGP to compare the MEDs of routes received from confederation peers. However, if a route received from a confederation peer has an AS number that does not belong to the confederation, BGP does not compare the route with other routes. For example, a confederation has three AS numbers 65006, 65007, and 65009. BGP receives three routes from different confederation peers.
Parameters as-number: Specifies a local AS by its number in the range of 1 to 4294967295. Usage guidelines A router can reside in only one AS, so the router can run only one BGP process. A router supports 4-byte AS number. Examples # Enable BGP, set the local AS number to 100, and enter BGP view. system-view [Sysname] bgp 100 [Sysname-bgp] compare-different-as-med Use compare-different-as-med to enable MED comparison for routes from peers in different ASs.
[Sysname-bgp-ipv4-vpn1] compare-different-as-med # In BGP IPv6 unicast address family view, enable MED comparison for routes from peers in different ASs. system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family unicast [Sysname-bgp-ipv6] compare-different-as-med confederation id Use confederation id to configure a confederation ID. Use undo confederation id to remove the specified confederation ID.
[Sysname-bgp] group Confed38 external [Sysname-bgp] peer Confed38 as-number 38 [Sysname-bgp] peer 10.1.1.1 group Confed38 [Sysname-bgp] group Remote98 external [Sysname-bgp] peer Remote98 as-number 98 [Sysname-bgp] peer 200.1.1.1 group Remote98 Related commands • confederation nonstandard • confederation peer-as confederation nonstandard Use confederation nonstandard to enable compatibility with routers not compliant with RFC 3065 in the confederation.
Use undo confederation peer-as to remove specified confederation peer sub-ASs. Syntax confederation peer-as as-number-list undo confederation peer-as [ as-number-list ] Default No confederation peer sub-ASs are specified. Views BGP view Predefined user roles network-admin Parameters as-number-list: Specifies a sub-AS number list. Up to 32 sub-ASs can be configured in one command line. The expression is as-number-list = as-number &<1-32>.
Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view Predefined user roles network-admin Parameters half-life-reachable: Specifies a half-life for active routes, in the range of 1 to 45 minutes. By default, the value is 15 minutes. half-life-unreachable: Specifies a half-life for suppressed routes, in the range of 1 to 45 minutes. By default, the value is 15 minutes.
[Sysname-bgp-ipv6-vpn1] dampening 10 10 1000 2000 10000 Related commands • display bgp dampening parameter ipv4 unicast • display bgp dampening parameter ipv6 unicast default local-preference Use default local-preference to configure a default local preference. Use undo default local-preference to restore the default. Syntax default local-preference value undo default local-preference Default The default local preference is 100.
• route-policy default med Use default med to specify a default MED value. Use undo default med to restore the default. Syntax default med med-value undo default med Default The default med-value is 0. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view Predefined user roles network-admin Parameters med-value: Specifies the default MED value in the range of 0 to 4294967295.
default-route imported Use default-route imported to enable default route redistribution into the BGP routing table. Use undo default-route imported to restore the default. Syntax default-route imported undo default-route imported Default Default route redistribution is not enabled.
system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] ipv6-family unicast [Sysname-bgp-ipv6-vpn1] default-route imported [Sysname-bgp-ipv6-vpn1] import-route ospfv3 1 Related commands import-route display bgp dampening parameter ipv4 unicast Use display bgp dampening parameter ipv4 unicast to display BGP IPv4 unicast route dampening parameters.
Related commands dampening display bgp dampening parameter ipv6 unicast Use display bgp dampening parameter ipv6 unicast to display BGP IPv6 unicast route dampening parameters. Syntax display bgp dampening parameter ipv6 [ unicast ] [ vpn-instance vpn-instance-name ] Views Any view Predefined user roles network-admin network-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN by its name, a case-sensitive string of 1 to 31 characters.
Syntax display bgp group ipv4 [ unicast ] [ vpn-instance vpn-instance-name ] [ group-name ] Views Any view Predefined user roles network-admin network-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN by its name, a case-sensitive string of 1 to 31 characters. If no VPN is specified, the command displays BGP IPv4 unicast peer group information for the public network. group-name: Specifies a BGP IPv4 unicast peer group by its name, a case-sensitive string of 1 to 47 characters.
Members: Peer 1.1.1.10 AS MsgRcvd 600 0 MsgSent OutQ PrefRcv Up/Down 0 0 State 0 00:00:55 Established Table 47 Command output Field Description BGP peer group Name of the BGP peer group. Remote AS AS number of the peer group. Type of the peer groups: Type • external—IBGP peer group. • internal—EBGP peer group. Maximum number of prefixes allowed Maximum number of routes allowed to learn from the peer.
Views Any view Predefined user roles network-admin network-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN by its name, a case-sensitive string of 1 to 31 characters. If no VPN is specified, the command displays BGP IPv6 unicast peer group information for the public network. group-name: Specifies a BGP IPv6 unicast peer group by its name, a case-sensitive string of 1 to 47 characters.
Peer AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State 2::2 600 0 0 0 0 00:00:45 Established 3::3 600 0 0 0 0 00:00:40 Established Table 48 Command output Field Description BGP peer group Name of the BGP peer group. Remote AS AS number of the peer group. Type of the peer groups: Type • external—IBGP peer group. • internal—EBGP peer group. Maximum number of prefixes allowed Maximum number of routes allowed to learn from the peer.
Views Any view Predefined user roles network-admin network-operator Parameters ipv4: Displays IPv4 address family information. ipv6: Displays IPv6 address family information. unicast: Displays IPv4 or IPv6 unicast address family information regardless of whether this keyword is specified or not. vpn-instance vpn-instance-name: Specifies an MPLS L3VPN by its name, a case-sensitive string of 1 to 31 characters. If no VPN is specified, the command displays routing information for the public network.
50.1.1.0 255.255.255.0 No 40.1.1.0 255.255.255.0 Yes Table 49 Command output Field Description Network Destination network address of the routes advertised by the network command and the shortcut routes. Mask Mask of the destination network address. PrefixLen Prefix length of the destination network address. Route-policy Routing policy that is applied to the route.
Table 50 Command output Field Description RefCount Number of BGP routes with these path attributes. MED MED attribute value. AS_PATH and ORIGIN attributes of the route: • AS_PATH attribute—Records the ASs the route has passed to avoid routing loops. • ORIGIN attribute—Identifies the origin of the route: Path/Origin { { { i—Originated in the AS. The origin of summary routes and routes advertised with the network command is IGP. e—Learned through EGP. ?—Unknown origin.
BGP local router ID: 192.168.100.1 Local AS number: 100 Total number of peers: 1 Peer 10.2.1.2 Peers in established state: 1 AS MsgRcvd 200 13 MsgSent OutQ PrefRcv Up/Down 16 0 State 0 00:10:34 Established Table 51 Command output Field Description Peer IP address of the peer. AS AS number of the peer. MsgRcvd Number of messages received. MsgSent Number of messages sent. OutQ Number of messages to be sent. PrefRcv Number of prefixes received.
Peer Preferred Value: 0 BFD: Enabled Routing policy configured: No routing policy is configured Table 52 Command output Field Description Peer IP address of the peer. Local Local router ID. BGP connection type between the local router and the peer: Type • IBGP link—IBGP connection. • EBGP link—EBGP connection. remote router ID Router ID of the peer. BGP current state Current state of the BGP session between the local router and the peer. Up for Lasting time of the BGP session.
Field Description Routing policy configured for the peer. Routing policy configured If no routing policy is specified, this field displays "No routing policy is configured." # Display log information about BGP IPv4 unicast peer 1.1.1.1 for the public network. display bgp peer ipv4 1.1.1.1 log-info Peer : 1.1.1.
Views Any view Predefined user roles network-admin network-operator Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. ipv6-address: Specifies a peer by its IPv6 address. log-info: Displays log information. verbose: Displays detailed information. vpn-instance vpn-instance-name: Specifies an MPLS L3VPN by its name, a case-sensitive string of 1 to 31 characters.
display bgp peer ipv6 1::2 verbose Peer: 1::2 Local: 192.168.1.136 Type: EBGP link BGP version 4, remote router ID 192.168.1.
Field Description Configured Timer configured on the local router in seconds, including the holdtime (Active Hold Time) and keepalive interval (Keepalive Time). Received Received timer (configured on the peer) in seconds, including the holdtime (Active Hold Time). Negotiated Negotiated timer in seconds, including the holdtime (Active Hold Time) and keepalive interval (Keepalive Time). Peer optional capabilities Optional capabilities supported by the peer.
Field Description BGP session state: • Up—The BGP session is in Established state. State • Down—The BGP session is down. Error code of the Notification, indicating the cause of why the BGP session is down. • Error—Refers to the error code, which identifies the type of the Notification. Notification Error/SubError • SubError—Refers to the error subcode of the Notification, which identifies the specific information about the reported error.
Table 57 Command output Field Description Status codes: • * – valid—Valid route. • > – best—Best route. • d – damped—Dampened route. Status codes • h – history—History route. • s – suppressed—Suppressed route. • S – Stale—Stale route. • i – internal—Internal route. • e – external—External route. Origin of the route: • i – IGP—Originated in the AS. The origin of summary routes and routes Origin advertised with the network command is IGP. • e – EGP—Learned through EGP. • ?– incomplete—Unknown origin.
Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN by its name, a case-sensitive string of 1 to 31 characters. If no VPN is specified, the command displays dampened BGP IPv6 unicast routes for the public network. Usage guidelines The command with the unicast keyword has the same effect as that without the unicast keyword. Examples # Display dampened BGP IPv6 unicast routes. display bgp routing-table dampened ipv6 Total number of routes: 1 BGP local router ID is 192.168.1.
Field Description AS_PATH and ORIGIN attributes of the route: Path/Ogn • AS_PATH attribute—Records the ASs the route has passed to avoid routing loops. • ORIGIN attribute—Identifies the origin of the route. Related commands • dampening • reset bgp dampening ipv6 unicast display bgp routing-table flap-info ipv4 unicast Use display bgp routing-table flap-info ipv4 unicast to display BGP IPv4 unicast route flap statistics.
• If the network-address mask or network-address mask-length argument is specified, and the longest-match keyword is not specified, the command displays flap statistics of the BGP IPv4 unicast route that matches both the specified destination network address and the mask (or mask length). The command with the unicast keyword has the same effect as that without the unicast keyword. Examples # Display BGP IPv4 unicast route flap statistics for the public network.
Field Description AS_PATH and ORIGIN attributes of the route: • AS_PATH attribute—Records the ASs the route has passed to avoid Path/Ogn routing loops. • ORIGIN attribute—Identifies the origin of the route. Related commands • dampening • reset bgp flap-info ipv4 unicast display bgp routing-table flap-info ipv6 unicast Use display bgp routing-table flap-info ipv6 unicast to display BGP IPv6 unicast route flap statistics.
Origin: i - IGP, e - EGP, ? - incomplete de Network : 2:: From PrefixLen : 64 : 1::1 Duration: 00:03:25 Flaps : 5 Reuse : 00:39:28 Path/Ogn: 100i Table 60 Command output Field Description Status codes: • * – valid—Valid route. • > – best—Best route. • d – damped—Dampened route. Status codes • h – history—History route. • s – suppressed—Suppressed route. • S – Stale—Stale route. • i – internal—Internal route. • e – external—External route. Origin of the route: • i – IGP—Originated in the AS.
Syntax display bgp routing-table ipv4 [ unicast ] [ vpn-instance vpn-instance-name ] [ network-address [ { mask | mask-length } [ longest-match ] ] ] Views Any view Predefined user roles network-admin network-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN by its name, a case-sensitive string of 1 to 31 characters. If no VPN is specified, the command displays the BGP IPv4 unicast routing information for the public network.
> 10.2.1.0/24 e > * 192.168.1.0 e 10.2.1.1 0 0 i 10.2.1.2 0 0 200i 192.168.1.135 0 0 i 10.2.1.2 0 0 200i Table 61 Command output Field Description Status codes: • * – valid—Valid route. • > – best—Best route. • d – damped—Dampened route. Status codes • h – history—History route. • s – suppressed—Suppressed route. • S – Stale—Stale route. • i – internal—Internal route. • e – external—External route. Origin of the route: • i – IGP—Originated in the AS.
OutLabel : NULL AS-path : (null) Origin : igp Attribute value : MED 0, pref-val 0, pre 0 State : valid, local, best, From : 10.2.1.2 (192.168.100.2) Relay nexthop : not resolved Original nexthop: 10.2.1.2 OutLabel : NULL AS-path : 200 Origin : igp Attribute value : MED 0, pref-val 0, pre 255 State : external, Table 62 Command output Field Description Number of routes: Paths • available—Number of valid routes. • best—Number of optimal routes.
Field Description Relay Nexthop Next hop found by route recursion. If no next hop is found, this field displays "not resolved." display bgp routing-table ipv4 unicast advertise-info Use display bgp routing-table ipv4 unicast advertise-info to display advertisement information for BGP IPv4 unicast routes.
Advertised to peers (1 in total): 10.2.1.2 Table 63 Command output Field Description Paths Number of optimal routes destined to the specified network. BGP routing table information of 10.2.1.0/24 Advertisement information of BGP routes destined to network 10.2.1.0/24. Advertised to peers (1 in total) Peers to which the route has been advertised and the number of peers.
>e 30.1.1.0/24 20.1.1.1 0 200i For command output, see Table 61. Related commands ip as-path display bgp routing-table ipv4 unicast community-list Use display bgp routing-table ipv4 unicast community-list to display BGP IPv4 unicast routing information matching the specified BGP community list.
>e 30.1.1.0/24 20.1.1.1 0 200i For command output, see Table 61. Related commands ip community-list display bgp routing-table ipv4 unicast peer Use display bgp routing-table ipv4 unicast peer to display BGP IPv4 unicast routing information advertised to or received from the specified BGP peer.
Examples # Display all BGP IPv4 unicast routing information advertised to BGP peer 10.2.1.2 for the public network. display bgp routing-table ipv4 peer 10.2.1.2 advertised-routes Total number of routes: 2 BGP local router ID is 192.168.100.1 Status codes: * - valid, > - best, d - damped, h - history, s - suppressed, S - Stale, i - internal, e - external Origin: i - IGP, e - EGP, ? - incomplete Network NextHop MED LocPrf PrefVal Path/Ogn > 10.2.1.0/24 10.2.1.1 0 0 i > 192.168.1.
display bgp routing-table ipv4 unicast statistics Use display bgp routing-table ipv4 unicast statistics to display BGP IPv4 unicast route statistics. Syntax display bgp routing-table ipv4 [ unicast ] [ vpn-instance vpn-instance-name ] statistics Views Any view Predefined user roles network-admin network-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN by its name, a case-sensitive string of 1 to 31 characters.
advertise-info: Displays advertisement information for BGP IPv6 unicast routes. If this keyword is not specified, the command displays the BGP IPv6 unicast routing table. Usage guidelines The command with the unicast keyword has the same effect as that without the unicast keyword. Examples # Display brief information about all BGP IPv6 unicast routes for the public network. display bgp routing-table ipv6 Total number of routes: 1 BGP local router ID is 192.168.1.
Field Description OutLabel Outgoing label of the route. MED MULTI_EXIT_DISC attribute. AS_PATH and ORIGIN attributes of the route: • AS_PATH attribute—Records the ASs the route has passed to avoid routing Path/Ogn loops. • ORIGIN attribute—Identifies the origin of the route. # Display detailed information about BGP IPv6 unicast routes destined to network 2::/64 for the public network. display bgp routing-table ipv6 2:: 64 BGP local router ID: 192.168.1.
Field Description BGP path attributes: • MED—MED value. Attribute value • localpref—Local preference value. • pref-val—Preferred value. • pre—Route preference. Current state of the route: • valid. • internal. State • external. • local. • best. From IP address of BGP peer that advertised the route. Relay Nexthop Next hop found by route recursion. If no next hop is found, this field displays "not resolved.
Views Any view Predefined user roles network-admin network-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN by its name, a case-sensitive string of 1 to 31 characters. If no VPN is specified, the command displays BGP IPv6 unicast routes permitted by an AS path list for the public network. as-path-acl-number: Specifies an AS path list by its number in the range of 1 to 256.
Syntax display bgp routing-table ipv6 [ unicast ] [ vpn-instance vpn-instance-name ] community-list { { basic-community-list-number | comm-list-name } [ whole-match ] | adv-community-list-number } Views Any view Predefined user roles network-admin network-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN by its name, a case-sensitive string of 1 to 31 characters.
Related commands ip community-list display bgp routing-table ipv6 unicast peer Use display bgp routing-table ipv6 unicast peer to display BGP IPv6 unicast routing information advertised to or received from the specified BGP peer.
NextHop : :: LocPrf : MED OutLabel : NULL : 0 Path/Ogn: i # Display all BGP IPv6 unicast routing information received from BGP peer 1::1. display bgp routing-table ipv6 peer 1::1 received-routes Total number of routes: 1 BGP local router ID is 192.168.1.135 Status codes: * - valid, > - best, d - dampened, h - history, s - suppressed, S - stale, i - internal, e - external Origin: i - IGP, e - EGP, ? - incomplete >e Network : 2:: PrefixLen : 64 NextHop : ::FFFF:10.1.1.
Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN by its name, a case-sensitive string of 1 to 31 characters. If no VPN is specified, the command displays the BGP IPv6 unicast route statistics for the public network. Usage guidelines The command with the unicast keyword has the same effect as that without the unicast keyword. Examples # Display statistics of BGP IPv6 unicast routes.
Syntax In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view/BGP VPNv4 address family view: filter-policy { acl-number | prefix-list prefix-list-name } export [ protocol process-id ] undo filter-policy { acl-number | prefix-list prefix-list-name } export [ protocol process-id ] In BGP IPv6 unicast address family view/BGP-VPN IPv6 unicast address family view/BGP VPNv6 address family view: filter-policy { acl6-number | prefix-list ipv6-prefix-name } export [ protocol process-id ] un
The following guidelines apply when you use an advanced ACL (with a number from 3000 to 3999) in the command: • To deny/permit a route with the specified destination, use the rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard command. • To deny/permit a route with the specified destination and mask, use the rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard destination dest-addr dest-wildcard command to deny/permit a route with the specified destination and mask.
Syntax In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view/BGP-VPNv4 address family view: filter-policy { acl-number | prefix-list prefix-list-name } import undo filter-policy { acl-number | prefix-list prefix-list-name } import In BGP IPv6 unicast address family view/BGP-VPN IPv6 unicast address family view/BGP VPNv6 address family view: filter-policy { acl6-number | prefix-list ipv6-prefix-name } import undo filter-policy { acl6-number | prefix-list ipv6-prefix-name } import
system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family unicast [Sysname-bgp-ipv4] filter-policy 2000 import # In BGP-VPN IPv6 unicast address family view, use ACL6 2000 to filter inbound BGP routes. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] ipv6-family unicast [Sysname-bgp-ipv6-vpn1] filter-policy 2000 import # Configure ACL6 3000 to permit only route 113.0.0.0/16 to pass, and use ACL 3000 to filter inbound routes.
BGP peers exchange Open messages containing GR information. If both parties have GR capability, they establish a GR-capable session. After you execute this command, the device reestablishes BGP sessions. Examples # Enable GR capability for BGP process 100.
Related commands • graceful-restart • graceful-restart timer wait-for-rib graceful-restart timer wait-for-rib Use graceful-restart timer wait-for-rib to configure the time to wait for the End-of-RIB marker. Use undo graceful-restart timer wait-for-rib to restore the default. Syntax graceful-restart timer wait-for-rib timer undo graceful-restart timer wait-for-rib Default The time to wait for the End-of-RIB marker is 180 seconds.
group Use group to create a peer group. Use undo group to delete a peer group. Syntax group group-name [ external | internal ] undo group group-name Default No peer group is created. Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters group-name: Specifies a name for the peer group, a case-sensitive string of 1 to 47 characters. external: Creates an EBGP peer group. internal: Creates an IBGP peer group.
[Sysname-bgp-vpn1] peer test as-number 200 [Sysname-bgp-vpn1] peer 10.1.1.1 group test [Sysname-bgp-vpn1] peer 10.1.2.1 group test # In BGP view, create an EBGP peer group test with AS number 200, and add EBGP peers 1::1 and 1::2 into the group.
[Sysname] bgp 100 [Sysname-bgp] ignore-first-as import-route Use import-route to enable BGP to redistribute routes from an IGP protocol. Use undo import-route to disable route redistribution from an IGP protocol.
Only active routes can be redistributed. You can use the display ip routing-table protocol or display ipv6 routing-table protocol command to view route state information. The ORIGIN attribute of routes redistributed by the import-route command is INCOMPLETE. Examples # In BGP IPv4 unicast address family view, redistribute routes from RIP process 1, and set the MED value for redistributed routes to 100.
Views BGP view Predefined user roles network-admin Parameters vpn-instance-name: Specifies a VPN instance by its name, a case-sensitive string of 1 to 31 characters. Usage guidelines After you create a BGP peer in BGP-VPN instance view, the BGP routes learned from the peer are added into the routing table of the specified VPN instance.
Predefined user roles network-admin Parameters unicast: Specifies the IPv4 unicast address family view. The IPv4 unicast address family view is specified for the command regardless of whether the unicast keyword is specified. Usage guidelines Configurations made in BGP IPv4 unicast address family view apply to only the BGP IPv4 unicast routes of the public network. Configurations made in BGP-VPN IPv4 unicast address family view apply to only the BGP IPv4 unicast routes of the specified VPN instance.
Usage guidelines Configurations made in BGP IPv6 unicast address family view apply to only the BGP IPv6 unicast routes of the public network. Configurations made in BGP-VPN IPv6 unicast address family view apply to only the BGP IPv6 unicast routes of the specified VPN instance. Examples # In BGP view, create and enter BGP IPv6 unicast address family view.
Related commands display bgp peer ipv4 unicast network Use network to inject a network to the BGP routing table. Use undo network to remove the configuration.
[Sysname] bgp 100 [Sysname-bgp] ipv4-family unicast [Sysname-bgp-ipv4] network 10.0.0.0 255.255.0.0 # In BGP-VPN IPv4 unicast address family view, inject local network 10.0.0.0/16 to the BGP routing table. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] ipv4-family unicast [Sysname-bgp-ipv4-vpn1] network 10.0.0.0 255.255.0.0 # In BGP IPv6 unicast address family view, inject local network 2002::/64 to the IPv6 BGP routing table.
Parameters ip-address: Specifies an IPv4 network address. If the mask or mask-length is not specified, natural mask is used. mask: Specifies a mask of the network address in dotted decimal notation. mask-length: Specifies a mask length in the range of 0 to 32. ipv6-address: Specifies an IPv6 network address. prefix-length: Specifies a prefix length in the range of 0 to 128. Usage guidelines Different routing protocols might find different routes to the same destination.
peer { group-name | ipv6-address } advertise-community undo peer { group-name | ipv6-address } advertise-community Default No COMMUNITY attribute is advertised to any peer or peer group. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP VPNv4 address family view, BGP IPv6 unicast address family view Predefined user roles network-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters.
Related commands • apply community • if-match community • ip community-list peer advertise-ext-community Use peer advertise-ext-community to advertise the extended community attribute to a peer or peer group. Use undo peer advertise-ext-community to disable the extended community attribute advertisement to a peer or peer group.
After you execute the undo peer advertise-ext-community command, BGP, upon receiving a route with the extended community attribute, removes the extended community attribute before sending the route to the peer or peer group. Examples # In BGP IPv4 unicast address family view, advertise the extended community attribute to peer group test.
undo peer { group-name | ipv6-address } allow-as-loop Default The local AS number is not allowed to exist in the AS_PATH attribute of routes from a peer or peer group. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP-VPNv4 address family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view Predefined user roles network-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters.
peer as-number (for a BGP peer) Use peer as-number to create a BGP peer and specify its AS number. Use undo peer to delete a BGP peer. Syntax peer { ip-address | ipv6-address } as-number as-number undo peer { ip-address | ipv6-address } Default No BGP peer is created. Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters ip-address: Specifies the IP address of a peer. ipv6-address: Specifies the IPv6 address of a peer.
peer as-number (for a BGP peer group) Use peer as-number to specify an AS number for a peer group. Use undo peer as-number to delete the AS number of a peer group. Syntax peer group-name as-number as-number undo peer group-name as-number Default No AS number is specified for a peer group. Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters group-name: Specifies a name for a peer group, a case-sensitive string of 1 to 47 characters. The peer group must have been created.
Syntax In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view/BGP-VPNv4 address family view: peer { group-name | ip-address } as-path-acl as-path-acl-number { export | import } undo peer { group-name | ip-address } as-path-acl as-path-acl-number { export | import } In BGP IPv6 unicast address family view: peer { group-name | ipv6-address } as-path-acl as-path-acl-number { export | import } undo peer { group-name | ipv6-address } as-path-acl as-path-acl-number { export | import } D
# In BGP IPv6 unicast address family view, specify the AS path list 1 to filter routes outgoing to the peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family unicast [Sysname-bgp-ipv6] peer test as-path-acl 1 export Related commands • filter-policy export • filter-policy import • ip as-path • peer filter-policy • peer prefix-list • peer route-policy peer bfd Use peer bfd to enable BFD for the link to a BGP peer. Use undo peer bfd to restore the default.
system-view [Sysname] bgp 100 [Sysname-bgp] peer 1::1 bfd # In BGP-VPN instance view, enable BFD for the link to BGP peer 2.2.2.2. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] peer 2.2.2.2 bfd # In BGP-VPN instance view, enable BFD for the link to BGP peer 2::2.
The multi-protocol extension function enables BGP to advertise and receive routing information for various protocols (for example, IPv6 routing information). If both the peer capability-advertise conventional and peer capability-advertise route-refresh commands are executed, the last configuration takes effect. Examples # In BGP view, disable multi-protocol extension and route refresh for peer 1.1.1.1. system-view [Sysname] bgp 100 [Sysname-bgp] peer 1.1.1.1 as-number 100 [Sysname-bgp] peer 1.1.
Usage guidelines The route refresh function enables BGP to send and receive Route-refresh messages. BGP uses the route refresh function to implement BGP session soft-reset. After a policy is modified, the router advertises a Route-refresh message to the peers. The peers resend their routing information to the router. After receiving the routing information, the router filters the routing information by using the new policy.
Predefined user roles network-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. ip-address: Specifies a peer by its IP address. The peer must have been created. ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created. Usage guidelines BGP supports 4-byte AS numbers. The 4-byte AS number occupies four bytes, in the range of 1 to 4294967295.
Default BGP uses the output interface (IP address/IPv6 address) of the best route destined for the BGP peer or peer group as the source interface for establishing a TCP connection to the peer or peer group. Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. ip-address: Specifies a peer by its IP address. The peer must have been created.
[Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] peer test connect-interface loopback 0 Related commands peer ebgp-max-hop peer default-route-advertise Use peer default-route-advertise to advertise a default route to a peer or peer group. Use undo peer default-route-advertise to disable default route advertisement to a peer or peer group.
Examples # In BGP IPv4 unicast address family view, advertise a default route to peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family unicast [Sysname-bgp-ipv4] peer test default-route-advertise # In BGP-VPN IPv4 unicast address family view, advertise a default route to peer group test.
[Sysname-bgp] peer test description ISP1 # In BGP-VPN instance view, configure a description for the peer group test as ISP1. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] peer test description ISP1 peer ebgp-max-hop Use peer ebgp-max-hop to enable BGP to establish an EBGP session to an indirectly-connected peer or peer group and specify the maximum hop count. Use undo peer ebgp-max-hop to restore the default.
[Sysname-bgp-vpn1] peer test ebgp-max-hop peer enable Use peer enable to enable BGP to exchange routing information for an address family with a peer or peer group. Use undo peer enable to disable BGP from exchanging routing information for an address family with a peer or peer group.
• In BGP VPNv4 address family view, the command enables the capability to exchange VPNv4 routing information. In an MPLS L3VPN network, execute the command on PE devices in BGP VPNv4 address family view. • In BGP-VPN VPNv4 address family view, the command enables the capability to exchange VPNv4 routing information.
Related commands • display bgp peer ipv4 unicast • display bgp peer ipv6 unicast peer fake-as Use peer fake-as to advertise a fake AS number to a peer or peer group. Use undo peer fake-as to restore the default. Syntax peer { group-name | ip-address | ipv6-address } fake-as as-number undo peer { group-name | ip-address | ipv6-address } fake-as Default No fake local AS number is advertised to a peer or peer group.
peer filter-policy Use peer filter-policy to filter routes advertised to or received from a peer or peer group by using an ACL. Use undo peer filter-policy to remove the configuration.
If you use a basic ACL (with a number from 2000 to 2999) configured with the rule [ rule-id ] { deny | permit } source source-address source-wildcard command, the command matches whose destination network addresses match the source-address source-wildcard argument without matching the masks of the destination addresses.
Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters ip-address: Specifies a peer by its IP address. ipv6-address: Specifies a peer by its IPv6 address. group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. as-number as-number: Specifies an AS for a peer by its number in the range of 1 to 4294967295.
# In BGP-VPN instance view, add peer 10.1.1.1 to the EBGP peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] group test external [Sysname-bgp-vpn1] peer 10.1.1.1 group test as-number 2004 # In BGP view, add peer 1::1 to the EBGP peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] group test external [Sysname-bgp] peer 1::1 group test as-number 2004 # In BGP-VPN instance view, add peer 1::1 to the EBGP peer group test.
Usage guidelines This command enables you to temporarily tear down the BGP session to a specific peer or peer group so that you can perform network upgrade and maintenance without needing to delete and reconfigure the peer or peer group. To recover the session, execute the undo peer ignore command. If a session has been established to a peer, executing the peer ignore command for the peer tears down the session and clears all related routing information.
Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. ip-address: Specifies a peer by its IP address. The peer must have been created. ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created.
Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. ip-address: Specifies a peer by its IP address. The peer must have been created. ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created. Usage guidelines Memory usage includes the following levels of thresholds: normal, level 1, level 2, and level 3.
Default The router sets itself as the next hop for routes sent to an EBGP peer or peer group, but does not set itself as the next hop for routes sent to an IBGP peer or peer group. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP VPNv4 address family view, BGP IPv6 unicast address family view Predefined user roles network-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters.
Syntax In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view/BGP VPNv4 address family view/BGP VPNv6 address family view: peer { group-name | ip-address } preferred-value value undo peer { group-name | ip-address } preferred-value In BGP IPv6 unicast address family view: peer { group-name | ipv6-address } preferred-value value undo peer { group-name | ipv6-address } preferred-value In BGP-VPN IPv6 unicast address family view: peer { group-name | ipv6-address } preferred-value valu
[Sysname-bgp-ipv4] peer 1.1.1.1 preferred-value 50 # In BGP VPNv4 address family view, specify the preferred value as 50 for routes from peer 1.1.1.1. system-view [Sysname] bgp 100 [Sysname-bgp] address-family vpnv4 [Sysname-bgp-vpnv4] peer 1.1.1.1 preferred-value 50 # In BGP-VPN IPv6 unicast address family view, specify the preferred value as 50 for routes from peer 1::1.
Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP VPNv4 address family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view, BGP VPNv6 address family view Predefined user roles network-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. ip-address: Specifies a peer by its IPv4 address. The peer must have been created.
peer public-as-only Use peer public-as-only to remove private AS numbers in BGP updates sent to an EBGP peer or peer group. Use undo peer public-as-only to restore the default.
• If the AS_PATH attribute carries AS numbers of the peer or peer group, the command does not take effect. The device sends the BGP update to the peer or peer group without removing the private AS numbers. This command is only applicable to an EBGP peer or peer group. Examples # In BGP IPv4 unicast address family view, remove private AS numbers in BGP updates sent to EBGP peer group test.
Predefined user roles network-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. ip-address: Specifies a peer by its IP address. The peer must have been created. ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created. Usage guidelines Using route reflectors can solve the issue brought by too many IBGP connections.
Syntax In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view/BGP VPNv4 address family view/BGP VPNv6 address family view: peer { group-name | ip-address } route-limit prefix-number [ { alert-only | reconnect reconnect-time } | percentage-value ] * undo peer { group-name | ip-address } route-limit In BGP IPv6 unicast address family view: peer { group-name | ipv6-address } route-limit prefix-number [ { alert-only | reconnect reconnect-time } | percentage-value ] * undo peer { group-
# In BGP-VPN IPv4 unicast address family view, specify the maximum number of routes that can be received from peer 1.1.1.1 to 10000, and configure the router to tear down the connection to the peer if the number is exceeded. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] ipv4-family unicast [Sysname-bgp-ipv4-vpn1] peer 1.1.1.
Predefined user roles network-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. ip-address: Specifies a peer by its IP address. The peer must have been created. ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created. route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.
Syntax peer { group-name | ip-address | ipv6-address } route-update-interval interval undo peer { group-name | ip-address | ipv6-address } route-update-interval Default The interval for sending the same update to an IBGP peer is 15 seconds and the interval for sending the same update to an EBGP peer is 30 seconds. Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters.
undo peer { group-name | ip-address | ipv6-address } substitute-as Default The AS number of a peer or peer group in the AS_PATH attribute is not replaced. Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. ip-address: Specifies a peer by its IP address. The peer must have been created. ipv6-address: Specifies a peer by its IPv6 address.
Predefined user roles network-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. ip-address: Specifies a peer by its IP address. The peer must have been created. ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created. keepalive keepalive: Sets a keepalive interval in the range of 0 to 21845 seconds. hold holdtime: Sets a holdtime in the range of 3 to 65535 seconds.
[Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] peer test timer keepalive 0 hold 0 Related commands • display bgp peer ipv4 unicast • display bgp peer ipv6 unicast • timer preference Use preference to configure preferences for BGP routes. Use undo preference to restore the default.
system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family unicast [Sysname-bgp-ipv4] preference 20 20 200 # In BGP IPv4 unicast address family view, configure the preference for BGP route 1.1.1.0/24 as 200. system-view [Sysname] ip prefix-list route permit 1.1.1.
Examples # In BGP IPv4 unicast address family view, disable route reflection between clients. system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family unicast [Sysname-bgp-ipv4] undo reflect between-clients # In BGP VPNv4 address family view, disable route reflection between clients. system-view [Sysname] bgp 100 [Sysname-bgp] address-family vpnv4 [Sysname-bgp-vpnv4] undo reflect between-clients # In BGP-VPN IPv4 unicast address family view, disable route reflection between clients.
ip-address: Specifies the cluster ID in the format of an IPv4 address in dotted decimal notation. Usage guidelines The route reflector and clients form a cluster. Typically a cluster has one route reflector. The ID of the route reflector is the cluster ID. You can configure more than one route reflector in a cluster to improve network reliability and prevent a single point of failure. Use this command to configure the same cluster ID for all route reflectors in the cluster to avoid routing loops.
Views User view Predefined user roles network-admin Parameters ip-address: Soft-resets the BGP session to the specified peer. The ip-address argument refers to the IP address of a peer. all: Soft-resets all BGP sessions. external: Soft-resets all EBGP sessions. group group-name: Soft-resets the BGP sessions to the peers of the specified peer group. The group-name argument refers to the name of a peer group, a case-sensitive string of 1 to 47 characters. internal: Soft-resets all IBGP sessions.
Syntax refresh bgp { ipv6-address | all | external | group group-name | internal } { export | import } ipv6 [ unicast ] [ vpn-instance vpn-instance-name ] Views User view Predefined user roles network-admin Parameters ipv6-address: Soft-resets the BGP session to the specified peer. The ipv6-address argument refers to the IPv6 address of a peer. all: Soft-resets all BGP sessions. external: Soft-resets all EBGP sessions.
reset bgp all Use reset bgp all to reset all BGP sessions. Syntax reset bgp all Views User view Predefined user roles network-admin Usage guidelines To validate a new route selection policy, use this command to reset BGP sessions. BGP re-establishes the BGP sessions, advertises routes, and applies the new policy to routes. This operation breaks down BGP sessions for a short while. Examples # Reset all BGP sessions.
• If only the network-address argument is specified, the system ANDs the network address with the mask of a route. If the result matches the network address of the route, the command clears dampening information of the route, and releases the suppressed route.
reset bgp flap-info ipv4 unicast Use reset bgp flap-info ipv4 unicast to clear the flap statistics of BGP IPv4 unicast routes. Syntax reset bgp flap-info ipv4 [ unicast ] [ vpn-instance vpn-instance-name ] [ network-address [ mask | mask-length ] | as-path-acl as-path-acl-number | peer peer-address ] Views User view Predefined user roles network-admin Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN by its name, a case-sensitive string of 1 to 31 characters.
reset bgp flap-info ipv6 unicast Use reset bgp flap-info ipv6 unicast to clear the flap statistics of BGP IPv6 unicast routes. Syntax reset bgp flap-info ipv6 [ unicast ] [ vpn-instance vpn-instance-name ] [ network-address prefix-length | as-path-acl as-path-acl-number | peer ipv6-address ] Views User view Predefined user roles network-admin Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN by its name, a case-sensitive string of 1 to 31 characters.
Parameters as-number: Resets BGP sessions to peers in the AS. ip-address: Specifies the IP address of a peer with which to reset the session. all: Resets all BGP sessions of IPv4 unicast address family. external: Resets all the EBGP sessions of IPv4 unicast address family. group group-name: Resets sessions with peers in the specified BGP peer group. internal: Resets all the IBGP sessions of IPv4 unicast address family.
Usage guidelines To validate a newly configured route selection policy, you must use this command to reset BGP sessions. BGP re-establishes the BGP sessions, advertises routes, and applies the new policy to routes. This operation breaks down BGP sessions for a short while. Examples # Reset all BGP sessions for IPv6 unicast address family for the public network. reset bgp all ipv6 router id (system view) Use router id to configure a global router ID.
Related commands router-id (BGP view, BGP-VPN instance view) router-id (BGP view, BGP-VPN instance view) Use router-id to specify a router ID for BGP or for a BGP VPN instance. Use undo router-id to remove the router ID for BGP or for a BGP VPN instance. Syntax router-id router-id undo router-id Default BGP uses the global router ID configured by router id in system view.
Use undo summary automatic to remove the configuration. Syntax summary automatic undo summary automatic Default Automatic route summarization is not performed for redistributed IGP subnet routes. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view Predefined user roles network-admin Usage guidelines After the summary automatic command is configured, BGP summarizes IGP subnets redistributed by the import-route command.
Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters keepalive keepalive: Configures a keepalive interval in the range of 0 to 21845 seconds. hold holdtime: Configures a holdtime in seconds, whose value is 0 or in the range of 3 to 65535. Usage guidelines After establishing a BGP session, two routers send keepalive messages at the specified keepalive interval to each other to keep the session.
[Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] timer keepalive 0 hold 0 Related commands • display bgp peer ipv4 unicast • display bgp peer ipv6 unicast • peer timer 318
Policy-based routing commands apply next-hop Use apply next-hop to set a next hop. Use undo apply next-hop to remove the configuration. Syntax apply next-hop [ vpn-instance track-entry-number ] }&<1-n> vpn-instance-name ] { ip-address [ direct ] [ track undo apply next-hop [ [ vpn-instance vpn-instance-name ] { ip-address }&<1-n> ] Default No next hop is set.
Syntax display ip policy-based-route [ policy policy-name ] Views Any view Predefined user roles network-admin network-operator Parameters policy policy-name: Specifies a policy by its name, a case-sensitive string of 1 to 19 characters. Usage guidelines If no policy is specified, this command displays information about all policies. If a policy name is specified, this command displays information about the specified policy. Examples # Display all policy information.
Predefined user roles network-admin network-operator Parameters interface-type interface-number: Specifies an interface by its type and number. slot slot-number: Specifies a card by its slot number. (In standalone mode.) chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument specifies the ID of the IRF member device. The slot-number argument specifies the slot number of the card. (In IRF mode.
Table 70 Command output Field Description PBR configuration and statistics on VLAN-interface 1. Policy based routing information for interface Vlan-interface1(failed) failed indicates that the policy (including all its nodes) failed to be assigned to the driver. For a global interface (with only a one-dimensional interface number, for example, VLAN-interface 1), failed can be displayed only when you specify the slot slot-number option or the chassis chassis-number slot slot-number option for the command.
pr01 Vlan-interface1 Table 71 Command output Field Description Interface Name Interface where the policy is applied. Related commands ip policy-based-route if-match acl Use if-match acl to configure an ACL match criterion. Use undo if-match acl to remove the ACL match criterion. Syntax if-match acl acl-number undo if-match acl Default No ACL match criterion is configured.
Views Interface view Predefined user roles network-admin Parameters policy-name: Specifies a policy by its name, a case-sensitive string of 1 to 19 characters. The specified policy must already exist. Usage guidelines You can apply only one policy to an interface. Before you apply a new policy, you must first remove the current policy from the interface. Examples # Apply policy aaa to VLAN-interface 2.
Usage guidelines If the specified policy node already exists, the command directly places you into policy node view. A policy that has been applied to an interface cannot be removed. To remove it, you must first cancel the application.
IPv6 static routing commands delete ipv6 static-routes all Use delete ipv6 static-routes all to delete all IPv6 static routes. Syntax delete ipv6 [ vpn-instance vpn-instance-name ] static-routes all Views System view Default level 2: System level Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. Without this option, the command deletes all IPv6 static routes for the public network.
ipv6 route-static vpn-instance s-vpn-instance-name ipv6-address prefix-length { interface-type interface-number [ next-hop-address ] [ bfd { control-packet | echo-packet } | permanent ] | next-hop-address [ public ] [ bfd control-packet bfd-source ip-address | permanent ] | vpn-instance d-vpn-instance-name next-hop-address [ bfd control-packet bfd-source ip-address | permanent ] } [ preference preference-value ] [ tag tag-value ] [ description description-text ] undo ipv6 route-static vpn-instance s-vpn-ins
Usage guidelines An IPv6 static route that has the destination address configured as ::/0 (a prefix length of 0) is the default IPv6 route. If the destination address of an IPv6 packet does not match any entry in the routing table, this default route is used to forward the packet. If the output interface is a non-P2P interface (such as an Ethernet interface or a VLAN interface), the next hop address must be specified.
Related commands display ipv6 routing-table protocol 329
RIPng commands checkzero Use checkzero to enable the zero field check on RIPng packets. Use undo checkzero to disable the zero field check. Syntax checkzero undo checkzero Default The zero field check function is enabled. Views RIPng view Predefined user roles network-admin Usage guidelines Some fields in RIPng packet headers must be zero. These fields are called "zero fields." You can enable zero field check on incoming RIPng packets.
Predefined user roles network-admin Parameters value: Specifies a default metric for redistributed routes, in the range of 0 to 16. Usage guidelines When you use the import-route command to redistribute routes from another routing protocol without specifying a metric, the metric specified by the default cost command applies. Examples # Configure a default metric of 2 for redistributed routes.
Number of trigger updates sent: 1 Table 72 Command output Field Description Public VPN-instance name/Private VPN-instance name The RIPng process runs under a public VPN instance or a specific VPN instance. RIPng process RIPng process ID. Preference RIPng preference. Checkzero Indicates whether zero field check for RIPng packet headers is enabled. Default Cost Default metric of redistributed routes. Maximum number of balanced paths Maximum number of load-balanced routes.
Table 73 Command output Field Description cost Route metric value. imported Indicates the route is redistributed from another routing protocol. RIPng-interface Route learned from the interface. via Next hop IPv6 address. display ripng interface Use display ripng interface to display interface information for a RIPng process.
Field Description Indicates whether the poison reverse function is enabled: Poison-reverse • On—Enabled. • Off—Disabled. MetricIn/MetricOut Additional metric to incoming and outgoing routes. • Only—The interface advertises only a default route. • Originate—The interface advertises a default route and other RIPng routes. Default route • Off—In this state, the interface does not advertise a default route.
Field Description G–Garbage-collect The route is in Garbage-collect state. Peer Neighbor connected to the interface. Destination IPv6 destination address. via Next hop IPv6 address. cost Routing metric value. tag Route tag. secs Time a route entry has stayed in the current state. filter-policy export Use filter-policy export to configure RIPng to filter outbound routes. Only routes not filtered can be advertised in update messages. Use undo filter-policy export to remove the configuration.
• To deny/permit a route with the specified destination and prefix, use the rule [ rule-id ] { deny | permit } ipv6 source sour sour-prefix destination dest dest-prefix command. The source keyword specifies the destination address of a route and the destination keyword specifies the prefix of the route. The specified prefix must be contiguous. Otherwise, the prefix configuration does not take effect. Examples # Use IPv6 prefix list to filter outbound RIPng updates.
• To deny/permit a route with the specified destination, use the rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard command. • To deny/permit a route with the specified destination and prefix, use the rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard destination dest-addr dest-wildcard command. The source keyword specifies the destination address of a route and the destination keyword specifies the prefix of the route. The subnet mask must be contiguous.
import-route Use import-route to redistribute routes from another routing protocol. Use undo import-route to disable route redistribution. Syntax import-route protocol [ process-id ] [ allow-ibgp ] [ cost cost | route-policy route-policy-name ] * undo import-route protocol [ process-id ] Default RIPng does not redistribute routes from another routing protocol. Views RIPng view Predefined user roles network-admin Parameters protocol: Specifies a routing protocol from which RIPng redistributes routes.
Views RIPng view Predefined user roles network-admin Parameters number: Specifies the maximum number of ECMP routes. Usage guidelines The value range for the number argument and the default setting depend on the max-ecmp-num command. If you set the maximum number of ECMP routes to m in the max-ecmp-num command, the number argument in the maximum load-balancing command is in the range of 1 to m and defaults to m. Examples # Specify the maximum number of ECMP routes as 2.
• If no preference is set by the routing policy, the preference of all RIPng routes is set by the preference command. Examples # Set the preference for RIPng routes to 120. system-view [Sysname] ripng 100 [Sysname-ripng-100] preference 120 reset ripng process Use reset ripng process to reset a RIPng process. Syntax reset ripng process-id process Views User view Predefined user roles network-admin Parameters process-id: Specifies a RIPng process by its ID in the range of 1 to 65535.
reset ripng 100 statistics ripng Use ripng to create a RIPng process and enter RIPng view. Use undo ripng to disable a RIPng process. Syntax ripng [ process-id ] [ vpn-instance vpn-instance-name ] undo ripng [ process-id ] Default No RIPng process is enabled. Views System view Predefined user roles network-admin Parameters process-id: Specifies a RIPng process by its ID in the range of 1 to 65535. The default value is 1.
Predefined user roles network-admin Parameters only: Advertises only an IPv6 default route (::/0). originate: Advertises an IPv6 default route (::/0) and other routes. cost: Specifies a cost for the default route, in the range of 1 to 15. The default is 1. Usage guidelines This command enables the interface to advertise a RIPng default route in a route update regardless of whether the default route exists in the local IPv6 routing table.
[Sysname-Vlan-interface100] ripng 100 enable ripng metricin Use ripng metricin to configure an interface to add a metric to inbound RIPng routes. Use undo ripng metricin to restore the default. Syntax ripng metricin value undo ripng metricin Default The additional metric of an inbound route is 0. Views Interface view Predefined user roles network-admin Parameters value: Add an additional metric to inbound routes, in the range of 0 to 16.
Examples # Configure RIPng on VLAN-interface 100 to add a metric of 12 to outbound routes. system-view [Sysname] interface vlan-interface 100 [Sysname-Vlan-interface100] ripng metricout 12 ripng poison-reverse Use ripng poison-reverse to enable the poison reverse function. Use undo ripng poison-reverse to disable the poison reverse function. Syntax ripng poison-reverse undo ripng poison-reverse Default The poison reverse function is disabled.
Usage guidelines The split horizon function prevents routing loops. If you want to disable this function, make sure the operation is indispensable. If both poison reverse and split horizon are enabled, only the poison reverse function takes effect. Examples # Enable the split horizon function on VLAN-interface 100.
Use undo timers to restore the default. Syntax timers { garbage-collect garbage-collect-value | suppress suppress-value | timeout timeout-value | update update-value } * undo timers { garbage-collect | suppress | timeout | update } * Default The garbage-collect timer is 120 seconds, the suppress timer is 120 seconds, the timeout timer is 180 seconds, and the update timer is 30 seconds.
OSPFv3 commands abr-summary (OSPFv3 area view) Use abr-summary to configure an IPv6 summary route on an area border router (ABR). Use undo abr-summary to remove an IPv6 summary route. Syntax abr-summary ipv6-address prefix-length [ not-advertise ] [ cost value ] undo abr-summary ipv6-address prefix-length Default No route summarization is configured on an ABR. Views OSPFv3 area view Predefined user roles network-admin Parameters ipv6-address: Specifies the destination IPv6 address of the summary route.
Syntax area area-id undo area area-id Default No OSPFv3 area is created. Views OSPFv3 view Predefined user roles network-admin Parameters area-id: Specifies an area by its ID, an IPv4 address or a decimal integer in the range of 0 to 4294967295 that is changed to an IPv4 address by the system. Examples # Create OSPFv3 area 0 and enter its view. system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] area 0 [Sysname-ospfv3-1-area-0.0.0.
• Configure a bandwidth reference value, and OSPFv3 computes the cost automatically based on the bandwidth reference value: Interface OSPFv3 cost = Bandwidth reference value/Interface bandwidth. If the calculated cost is greater than 65535, the value of 65535 is used. If no cost value is configured for an interface, OSPFv3 computes the interface cost value automatically. Examples # Specify the reference bandwidth value as 1000 Mbps.
Use undo default-route-advertise to restore the default. Syntax default-route-advertise [ [ always | permit-calculate-other ] | cost cost | route-policy route-policy-name | type type ] * undo default-route-advertise Default No default route is redistributed into the OSPFv3 routing domain.
display ospfv3 abr-asbr Use display ospfv3 abr-asbr to display information about the routes to OSPF ABR and ASBR. Syntax display ospfv3 [ process-id ] abr-asbr Views Any view Predefined user roles network-admin network-operator Parameters process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. If no OSPFv3 process ID is specified, this command displays information about all the routes to the OSPFv3 ABR and ASBR.
display ospfv3 brief Use display ospfv3 brief to display brief information about an OSPFv3 process. Syntax display ospfv3 [ process-id ] brief Views Any view Predefined user roles network-admin network-operator Parameters process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. If no process ID is specified, this command displays brief information about all OSPFv3 processes. Examples # Display brief information about all OSPFv3 processes.
Table 77 Command output Field Description OSPFv3 Process 1 with Router ID 1.1.1.1 OSPFv3 process is 1, and router ID is 1.1.1.1. Router type: • ABR. Router Type • ASBR. • Null. Multi-VPN-Instance is not enabled The OSPF process does not support multiple VPN instances. SPF-schedule-interval Interval for SPF calculations. LSU advertisement rate: • Interval—Specifies the interval for sending LSUs. Transmit pacing • Count—Specifies the maximum number of LSUs sent each time.
Number of neighbors under helper: 0 Number of restarting neighbors : 0 Table 78 Command output Field Description OSPF Process 1 with Router ID 3.3.3.3 The GR status of OSPF process 1 with router ID 3.3.3.3 is displayed. Indicates whether OSPFv3 GR is enabled: • enabled. Graceful-restart capability • disabled. Indicates whether OSPFv3 GR Helper is enabled: • enabled. Helper-policy support • disabled. GR status: • Normal—Non-GR status. Current GR state • Under GR—Restarter status.
Examples # Display OSPFv3 information about VLAN-interface 1. display ospfv3 interface vlan-interface 1 OSPFv3 Process 1 with Router ID 1.1.1.1 Area: 0.0.0.0 ------------------------------------------------------------------------Vlan-interface1 is up, line protocol is up Interface ID 65697 Instance ID 0 IPv6 Prefixes fe80::200:12ff:fe34:1 (Link-Local Address) 2001::1 Cost: 1 State: BDR Type: Broadcast MTU: 1500 Priority: 1 Designated Router: 2.2.2.2 Backup Designated Router: 1.1.1.
Field Description Time intervals in seconds configured on the interface: • Hello—Hello interval. • Dead—Dead interval. • Wait—After this timer expires, the interface quits Timer interval configured from the waiting state. • Retransmit—LSA retransmission interval. • Transmit Delay—Transmission delay of the interface. Neighbor Count Number of Neighbors on the interface. Adjacent neighbor count Number of Adjacencies on the interface.
self-originate: Displays locally originated LSAs. statistics: Displays LSA statistics. total: Displays total number of LSAs in the LSDB. Usage guidelines If no OSPFv3 process is specified, this command displays LSDB information for all processes. Examples # Display OSPFv3 LSDB information. display ospfv3 lsdb OSPFv3 Process 1 with Router ID 1.1.1.
# Display Link LSA information in the LSDB. display ospfv3 lsdb link OSPFv3 Process 1 with Router ID 1.1.1.1 Link-LSA (Interface Vlan-interface1) ------------------------------------------------------------------------LS age : 833 LS Type : Link-LSA Link State ID : 0.15.0.8 Originating Router: 2.2.2.
Total 2 0 0 0 2 4 0 0 Table 82 Command output Field Description Area ID Area ID. Router Number of Router-LSAs. Network Number of Network-LSAs. InterPre Number of inter-Area-Prefix-LSAs. InterRou Number of Inter-Area-Router-LSAs. IntraPre Number of Intra-Area-Prefix-LSAs. Link Total number of Link-LSAs. Grace Number of Grace-LSAs. ASE Total number of AS-external-LSAs. display ospfv3 peer Use display ospfv3 peer to display information about OSPFv3 neighbors.
Examples # Display the neighbor information for OSPFv3 process 1 on an interface. display ospfv3 1 peer vlan-interface 1 OSPFv3 Process 1 with Router ID 1.1.1.1 Area: 0.0.0.1 ------------------------------------------------------------------------Router ID Pri State Dead-Time Interface Inst ID 2.2.2.2 1 00:00:36 0 Init/ - Vlan1 Table 83 Command output Field Description Router ID Router ID of a neighbor. Pri Priority of neighbor router. State Neighbor state.
Field Description DR DR on the interface's network segment. BDR BDR on the interface’s network segment. MTU Interface MTU. Options Options. Dead timer due in 33 sec This dead timer will expire in 33 seconds. Neighbor is up for 00:24:19 The neighbor has been up for 00:24:19. Neighbor state change count Count of neighbor state changes. Database Summary List Number of LSAs sent in DD packet. Link State Request List Number of LSAs in the link state request list.
Syntax display ospfv3 [ process-id ] [ area area-id ] request-queue [ interface-type interface-number ] [ neighbor-id ] Views Any view Predefined user roles network-admin network-operator Parameters process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. area area-id: Specifies an area by its ID, an IPv4 address or a decimal integer in the range of 0 to 4294967295 that is translated into an IPv4 address by the system.
Field Description Nbr-ID Neighbor ID. Request list Request list information. Type LSA type. AdvRouter Advertising router. SeqNum LSA sequence number. Age LSA age. CkSum Checksum. display ospfv3 retrans-queue Use display ospfv3 retrans-queue to display retransmission list information.
Area: 0.0.0.0 Interface Vlan-interface1 ------------------------------------------------------------------------Nbr-ID 1.2.2.2 Retransmit List Type LinkState ID AdvRouter SeqNum Age CkSum 0x2009 0.0.0.0 1.3.3.3 0x80000001 3600 0x49fb Table 87 Command output Field Description Area Area ID. Interface Interface type and sequence number. Nbr-ID Neighbor ID. Retransmit List Retransmission list information. Type LSA type. AdvRouter Advertising router. SeqNum LSA sequence number.
------------------------------------------------------------------------E1 - Type 1 external route, IA - Inter area route, E2 - Type 2 external route, * I - Intra area route - Selected route *Destination: 1001::/64 Type : I Cost : 1 NextHop : Direct Interface: Vlan2 Total: 1 Intra area: 1 Inter area: 0 ASE: 0 Table 88 Command output Field Description Destination Destination network segment. Type Route type. Cost Route cost value. NextHop Next hop address.
OSPFv3 Process 1 with Router ID 1.1.1.
Field Description AS-external-LSA Number of AS-external-LSAs. Link-LSA Number of Link-LSAs. Intra-Area-Prefix-LSA Number of Intra-Area-Prefix-LSAs. Grace-LSA Number of Grace-LSAs. Unknown-LSA Number of Unknown-LSAs. Total Total number. Routes Statistics Number of routes. Intra Area Intra-area routes. Inter Area Inter-area routes. ASE/NSSA External routes. display ospfv3 vlink Use display ospfv3 vlink to display OSPFv3 virtual link information.
Table 90 Command output Field Description Virtual-link Neighbor-ID ID of the neighbor on the virtual link. Neighbor-State Neighbor state: Down, Init, 2-Way, ExStart, Exchange, Loading, or Full. Interface IP address and name of the local interface on the virtual link. Cost Interface route cost. State Interface state. Type Virtual link. Transit Area Transit area ID. (This field is displayed when a virtual link is present on the interface.
Examples # Use IPv6 prefix list my-prefix-list to filter inbound Inter-Area-Prefix-LSAs, and use IPv6 ACL 2000 to filter outbound Inter-Area-Prefix-LSAs in OSPF Area 1. system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] area 1 [Sysname-ospfv3-1-area-0.0.0.1] filter prefix-list my-prefix-list import [Sysname-ospfv3-1-area-0.0.0.1] filter 2000 export filter-policy export (OSPFv3 view) Use filter-policy export to configure OSPFv3 to filter redistributed routes.
Using the filter-policy export command filters only routes redistributed by the import-route command. If the import-route command is not configured to redistribute routes from other protocols and other OSPFv3 processes, use of the filter-policy export command does not take effect. Examples # Use IPv6 prefix list abc to filter redistributed routes.
route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to filter inbound routes. Usage guidelines To reference an advanced ACL (with a number from 3000 to 3999) in the command, configure the ACL in one of the following ways: • To deny/permit a route with the specified destination, use rule [ rule-id ] { deny | permit } ipv6 source sour sour-prefix.
Usage guidelines To prevent service interruption after a master/backup switchover, a GR Restarter running OSPFv3 must complete the following tasks: • Keep the GR Restarter forwarding entries stable during reboot. • Establish all adjacencies and obtain complete topology information after reboot. Examples # Enable the GR capability for OSPFv3 process 1.
Use undo graceful-restart helper strict-lsa-checking to disable strict LSA checking for the GR Helper. Syntax graceful-restart helper strict-lsa-checking undo graceful-restart helper strict-lsa-checking Default Strict LSA checking for the GR Helper is disabled. Views OSPFv3 view Predefined user roles network-admin Usage guidelines With GR Helper enabled, when an LSA change on the GR Helper is detected, the GR Helper device exits the GR Helper mode.
Examples # Configure the GR restart interval for OSPFv3 process 1 as 100 seconds. system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] graceful-restart interval 100 Related commands ospfv3 timer dead import-route (OSPFv3 view) Use import-route to redistribute routes. Use undo import-route to disable route redistribution.
an internal router to a Type-2 external route’s destination equals the cost from the ASBR to the Type-2 external route's destination. The import-route command cannot redistribute default routes. The import-route bgp4+ command redistributes only EBGP routes. The import-route bgp4+ allow-ibgp command redistributes both EBGP and IBGP routes, and might cause routing loops. Therefore, use it with caution.
lsa-generation-interval Use lsa-generation-interval to configure the OSPFv3 LSA generation interval. Use undo lsa-generation-interval to restore the default. Syntax lsa-generation-interval maximum-interval [ minimum-interval [ incremental-interval ] ] undo lsa-generation-interval Default The maximum interval is 5 seconds, the minimum interval is 0 milliseconds, and the incremental interval is 0 milliseconds.
Syntax maximum load-balancing maximum undo maximum load-balancing Views OSPFv3 view Predefined user roles network-admin Parameters maximum: Specifies the maximum number of ECMP routes. When the maximum number is 1, OSPFv3 does not perform load balancing. Usage guidelines The value range for the maximum argument and the default setting depend on the max-ecmp-num command.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN is specified, the OSPFv3 process runs on the public network. Usage guidelines Specify a router ID for the OSPFv3 process. Otherwise, the OSPFv3 process cannot generate LSAs. Examples # Enable OSPFv3 process 120 and configure the Router ID as 1.1.1.1. system-view [Sysname] ospfv3 120 [Sysname-ospfv3-120] router-id 1.1.1.
Default BFD for OSPFv3 is disabled. Views Interface view Predefined user roles network-admin Parameters instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0. Usage guidelines BFD provides a mechanism to quickly detect the connectivity of links between OSPFv3 neighbors, improving the convergence speed of OSPFv3. OSPFv3 uses BFD to implement bidirectional control detection. Examples # Enable BFD on VLAN-interface 11 in instance 1.
[Sysname-Vlan-interface10] ospfv3 cost 33 instance 1 ospfv3 dr-priority Use ospfv3 dr-priority to set the router priority for an interface in an instance. Use undo ospfv3 dr-priority to restore the default. Syntax ospfv3 dr-priority priority [ instance instance-id ] undo ospfv3 dr-priority [ instance instance-id ] Default An interface has a router ID of 1. Views Interface view Predefined user roles network-admin Parameters priority: Specifies a router priority in the range of 0 to 255.
Parameters instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0. Usage guidelines A neighbor relationship can be established only if the interface's MTU is the same as that of the peer. Examples # Configure VLAN-interface 10 that belongs to instance 1 to ignore MTU check during DD packet exchange.
directly connected, configure the P2MP network type so that the two routers can exchange routing information through another router. When the network type of an interface is NBMA or P2MP unicast, you must use the peer command to specify the neighbor. When the network type of an interface is P2MP unicast, all OSPF packets are unicast by the interface. Examples # Configure the OSPFv3 network type for VLAN-interface 20 as NBMA.
ospfv3 timer dead Use ospfv3 timer dead to configure the OSPFv3 neighbor dead time. Use undo ospfv3 timer dead to restore the default. Syntax ospfv3 timer dead seconds [ instance instance-id ] undo ospfv3 timer dead [ instance instance-id ] Default The OSPFv3 neighbor dead time is 40 seconds for P2P and broadcast interfaces, and is 120 seconds for P2MP and NBMA interfaces.
Views Interface view Predefined user roles network-admin Parameters seconds: Specifies the hello interval in the range of 1 to 65535 seconds. instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0. Usage guidelines The shorter the hello interval is, the faster the topology converges and the more resources are consumed. Make sure the hello interval on two neighboring interfaces is the same. Examples # Configure the hello interval as 20 seconds for VLAN-interface 10.
system-view [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] ospfv3 timer poll 120 Related commands ospfv3 timer hello ospfv3 timer retransmit Use ospfv3 timer retransmit to configure the LSA retransmission interval for an interface. Use undo ospfv3 timer retransmit to restore the default. Syntax ospfv3 timer retransmit seconds [ instance instance-id ] undo ospfv3 timer retransmit [ instance instance-id ] Default The interval defaults to 5 seconds.
Default The transmission delay is 1 second. Views Interface view Predefined user roles network-admin Parameters seconds: Specifies the transmission delay in the range of 1 to 3600 seconds. instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0. Usage guidelines Each LSA in the LSDB has an age that is incremented by 1 every second, but the age does not change during transmission.
Usage guidelines If multiple routing protocols find multiple routes to the same destination, the router uses the route found by the protocol with the highest preference. Examples # Set a preference of 150 for OSPFv3 routes. system-view [Sysname] OSPFv3 [Sysname-OSPFv3-1] preference 150 silent-interface(OSPFv3 view) Use silent-interface to disable the specified interface from receiving and sending OSPFv3 packets. Use undo silent-interface to restore the default.
router-id Use router-id to configure a router ID. Use undo router-id to remove the configured router ID. Syntax router-id router-id undo router-id Default No router ID is configured. Views OSPFv3 view Predefined user roles network-admin Parameters router-id: Specifies a router ID, in IPv4 address format. Usage guidelines The router ID is the unique identifier for the device to run OSPFv3 in the AS. An OSPFv3 process cannot run without a router ID. Different processes must have different router IDs.
Predefined user roles network-admin Parameters maximum-interval: Specifies the maximum OSPFv3 route calculation interval in the range of 1 to 60 seconds. minimum-interval: Specifies the minimum OSPFv3 route calculation interval in the range of 10 to 60000 milliseconds. incremental-interval: Specifies the incremental OSPFv3 route calculation interval in the range of 10 to 60000 milliseconds.
no-summary: Enables the ABR of a stub area to advertise only a default route in an Inter-Area-Prefix-LSA into the stub area. No AS-external-LSA, Inter-Area-Prefix-LSA, or other Inter-Area-Router-LSA is advertised in the area. The stub area of this kind is also known as a "totally stub area." Usage guidelines To remove the no-summary configuration on an ABR, execute the stub command again to overwrite it. To configure an area as a stub area, issue the stub command on all routers attached to the area.
Usage guidelines For a non-backbone area without a direct connection to the backbone area or for a backbone area that cannot maintain connectivity, you can use the vlink-peer command to create logical links. A virtual link can be considered as an interface with OSPFv3 enabled, because parameters such as hello, dead, retransmit and trans-delay are configured in the similar way. Both ends of a virtual link are ABRs that are configured with the vlink-peer command.
IPv6 IS-IS commands IPv6 IS-IS supports all the features of IPv4 IS-IS except that it advertises IPv6 routing information. This chapter describes only IPv6 IS-IS exclusive commands. For other IS-IS configuration commands, see "IS-IS commands." display isis redistribute ipv6 Use display isis redistribute ipv6 to display information about redistributed IPv6 IS-IS routes.
Type : direct Destination: 12:1::/64 IntCost : 0 Tag State : Active : Table 91 Command output Field Description Route information for IS-IS(1) Redistributed route information for IS-IS process 1. Level-1 IPv6 Redistribute Table Redistributed route information of IS-IS Level-1. Level-2 IPv6 Redistribute Table Redistributed route information of IS-IS Level-2. Redistributed route types: • • • • • • Type Direct. IS-ISv6. Static. OSPFv3. BGP4+. RIPng. Destination IPv6 destination address.
Examples # Display IPv6 IS-IS route information.
# Display detailed IPv6 IS-IS routing information.
Field Description Next Hop Next hop. Interface Outbound interface. ExitIndex Outbound interface index. ipv6 default-route-advertise Use ipv6 default-route-advertise to generate a Level-1 or Level-2 IPv6 IS-IS default route. Use undo ipv6 default-route-advertise to disable generating a default route. Syntax ipv6 default-route-advertise [ [ level-1 | level-1-2 | level-2 ] | route-policy route-policy-name ] * undo ipv6 default-route-advertise Default No IPv6 IS-IS default route is generated.
ipv6 enable Use ipv6 enable to enable IPv6 for an IS-IS process. Use undo ipv6 enable to disable IPv6. Syntax ipv6 enable undo ipv6 enable Default IPv6 is disabled for an IS-IS process. Views IS-IS view Predefined user roles network-admin Examples # Create IS-IS process 1, and enable IPv6 for the process. system-view [Sysname] isis 1 [Sysname-isis-1] network-entity 10.0001.1010.1020.1030.
route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to filter redistributed routes. protocol: Filters routes redistributed from the specified routing protocol, which can be bgp4+, direct, isisv6, ospfv3, ripng, or static. If no protocol is specified, the command filters routes redistributed from all routing protocols. process-id: Specifies a process by its ID in the range of 1 to 65535.
Syntax ipv6 filter-policy { acl6-number | prefix-list prefix-list-name | route-policy route-policy-name } import undo ipv6 filter-policy import Default IPv6 IS-IS does not filter received routes. Views IS-IS view Predefined user roles network-admin Parameters acl6-number: Specifies an IPv6 ACL by its number in the range of 2000 to 3999 to filter received routes. ipv6-prefix-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter received routes.
Related commands ipv6 filter-policy export ipv6 import-route Use ipv6 import-route to enable IPv6 IS-IS to redistribute routes from another routing protocol. Use undo ipv6 import-route to disable route redistribution. Syntax ipv6 import-route protocol [ process-id ] [ allow-ibgp ] [ cost cost | [ level-1 | level-1-2 | level-2 ] | route-policy route-policy-name| tag tag ] * undo ipv6 import-route protocol [ process-id ] Default IPv6 does not redistribute routes from any other routing protocol.
system-view [Sysname] isis 1 [Sysname-isis-1] ipv6 import-route static cost 15 ipv6 import-route isisv6 level-1 into level-2 Use ipv6 import-route isisv6 level-1 into level-2 to enable route advertisement from Level-1 to Level-2. Use undo ipv6 import-route isisv6 level-1 into level-2 to restore the default.
Syntax ipv6 import-route isisv6 level-2 into level-1 [ filter-policy { acl6-number | prefix-list prefix-list-name | route-policy route-policy-name } | tag tag ] * undo ipv6 import-route isisv6 level-2 into level-1 Default Route advertisement from Level-2 to Level-1 is disabled. Views IS-IS view Predefined user roles network-admin Parameters filter-policy: Specifies a filtering policy. acl6-number: Specifies an IPv6 ACL by its number in the range of 2000 to 3999.
Predefined user roles network-admin Parameters number: Specifies the maximum number of redistributed Level 1/Level 2 IPv6 routes, in the range of 1 to 65536. Examples # Configure IS-IS process 1 to redistribute up to 1000 Level 1/Level 2 IPv6 routes. system-view [Sysname] isis 1 [Sysname-isis-1] ipv6 import-route limit 1000 ipv6 maximum load-balancing Use ipv6 maximum load-balancing to configure the maximum number of equal-cost routes for load balancing.
Use undo ipv6 preference to restore the default. Syntax ipv6 preference { preference | route-policy route-policy-name } * undo ipv6 preference Default The preference for IPv6 IS-IS is 15. Views IS-IS view Predefined user roles network-admin Parameters preference: Specifies a preference for IPv6 IS-IS, in the range of 1 to 255. route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.
prefix-length: Specifies the length of the IPv6 prefix, in the range of 0 to 128. avoid-feedback: Avoids learning the summary route by route calculation. generate_null0_route: Generates a NULL 0 route to avoid routing loops. level-1: Summarizes only the routes redistributed to Level-1. level-1-2: Summarizes all the routes redistributed to both Level-1 and Level-2. level-2: Summarize only the routes redistributed to Level-2. tag: Specifies an administrative tag in the range of 1 to 4294967295.
Use undo isis ipv6 enable to disable the configuration. Syntax isis ipv6 enable [ process-id ] undo isis ipv6 enable Default IPv6 is disabled for an IS-IS process. Views Interface view Predefined user roles network-admin Parameters process-id: Specifies an IS-IS process by its ID in the range of 1 to 65535. The default is 1. Examples # Enable global IPv6, create IS-IS routing process 1, enable IPv6 for the process, and enable IPv6 for the process on VLAN-interface 100.
IPv6 policy-based routing commands apply next-hop Use apply next-hop to set a next hop. Use undo apply next-hop to remove the configuration. Syntax apply next-hop [ vpn-instance vpn-instance-name ] { ipv6-address [ direct ] [ track track-entry-number ] } &<1-n> undo apply next-hop [ [ vpn-instance vpn-instance-name ] { ipv6-address }&<1-n> ] Default No next hop is set.
Syntax display ipv6 policy-based-route [ policy policy-name ] Views Any view Predefined user roles network-admin network-operator Parameters policy policy-name: Specifies a policy by its name, a case-sensitive string of 1 to 19 characters. Usage guidelines If no policy is specified, this command displays information about all policies. If a policy name is specified, this command displays information about the specified policy. Examples # Display all IPv6 policy information.
Predefined user roles network-admin network-operator Parameters interface-type interface-number: Specifies an interface by its type and number. slot slot-number: Specifies a card by its slot number. (In standalone mode.) chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument specifies the ID of the IRF member device. The slot-number argument specifies the slot number of the card. (In IRF mode.
Table 95 Command output Field Description IPv6 PBR configuration and statistics on VLAN-interface 1. Policy based routing information for interface Vlan-interface1(failed) failed indicates the policy (including all its nodes) failed to be assigned to the driver. For a global interface (with only one-dimensional interface number, for example, VLAN-interface 1), failed can be displayed only when you specify the slot slot-number or chassis chassis-number slot slot-number option for the command.
pr01 Vlan-interface1 Table 96 Command output Field Description policy Name Policy name. Interface Name Interface where the policy is applied. Related commands ipv6 policy-based-route (interface view) if-match acl Use if-match acl to configure an ACL match criterion. Use undo if-match acl to remove the ACL match criterion. Syntax if-match acl acl-number undo if-match acl Default No ACL match criterion is configured.
Views Interface view Predefined user roles network-admin Parameters policy-name: Specifies a policy by its name, a case-sensitive string of 1 to 19 characters. The specified policy must already exist. Usage guidelines You can apply only one policy to an interface. Before you apply a new policy, remove the current policy from the interface. Examples # Apply policy aaa to VLAN-interface 2.
node node-number: Specifies the number of the IPv6 policy node, in the range of 0 to 255. A smaller number has a higher priority. Usage guidelines To remove an IPv6 policy that has already applied to an interface, you must remove the policy from the interface first. If a policy node is specified, the undo ipv6 policy-based-route command removes the specified policy node. If a match mode is specified, the command removes all nodes configured with the match mode.
Routing policy commands Common routing policy commands apply as-path Use apply as-path to set the AS_PATH attribute for BGP routes. Use undo apply as-path to restore the default. Syntax apply as-path as-number&<1-32> [ replace ] undo apply as-path Default No AS_PATH attribute is set. Views Routing policy node view Predefined user roles network-admin Parameters as-number&<1-32>: Specifies an AS by its number in the range of 1 to 4294967295.
Syntax apply comm-list { comm-list-number | comm-list-name } delete undo apply comm-list Default No COMMUNITY attributes are deleted from BGP routes. Views Routing policy node view Predefined user roles network-admin Parameters comm-list-number: Specifies a basic community list by its number in the range of 1 to 99 or an advanced community list by its number in the range of 100 to 199.
community-number&<1-32>: Specifies a community sequence number in the range of 1 to 4294967295. &<1-32> indicates that the argument before it can be entered up to 32 times. aa:nn&<1-32>: Specifies a community number; both aa and nn are in the range of 0 to 65535. &<1-32> indicates that the argument before it can be entered up to 32 times. internet: Sets the INTERNET community attribute for BGP routes. Routes with this attribute can be advertised to all BGP peers. By default, all routes have this attribute.
value: Specifies a cost in the range of 0 to 4294967295. Examples # Configure node 10 in permit mode for routing policy policy1 to set a cost of 120 for OSPF external routes. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match route-type external-type1or2 [Sysname-route-policy-policy1-10] apply cost 120 apply cost-type Use apply cost-type to set a cost type for routing information. Use undo apply cost-type to restore the default.
apply extcommunity Use apply extcommunity to apply the specified extended community attribute. Use undo apply extcommunity to restore the default. Syntax apply extcommunity { rt route-target }&<1-32> [ additive ] undo apply extcommunity Default No extended community attribute is set for BGP routes. Views Routing policy node view Predefined user roles network-admin Parameters { rt route-target }&<1-32>: Sets the RT extended community attribute, a string of 3 to 21 characters.
Views Routing policy node view Predefined user roles network-admin Parameters level-1: Redistributes routes into IS-IS Level-1. level-1-2: Redistributes routes into both IS-IS Level-1 and Level-2. level-2: Redistributes routes into IS-IS Level-2. Examples # Configure node 10 in permit mode for routing policy policy1 to redistribute routes that have a tag of 8 to IS-IS level-2.
apply mpls-label Use apply mpls-label to set MPLS labels for routing information. Use undo apply mpls-label to restore the default. Syntax apply mpls-label undo apply mpls-label Default No MPLS label is set for routing information. Views Routing policy node view Predefined user roles network-admin Usage guidelines If this command fails to assign an MPLS label to a route, the route is not advertised. Examples # Configure node 10 in permit mode for routing policy policy1 to set MPLS labels for routes.
Examples # Configure node 10 in permit mode for routing policy policy1 to set the ORIGIN attribute for routes matching AS path list 1 to IGP. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match as-path 1 [Sysname-route-policy-policy1-10] apply origin igp apply preference Use apply preference to set a preference for a routing protocol. Use undo apply preference to restore the default.
Default No preferred value is set for BGP routes. Views Routing policy node view Predefined user roles network-admin Parameters preferred-value: Specifies a preferred value in the range of 0 to 65535. Examples # Configure node 10 in permit mode for routing policy policy1 to set a preferred value of 66 for BGP routes matching AS path list 1.
Syntax continue [ node-number ] undo continue Default No next node is specified. Views Routing policy node view Predefined user roles network-admin Parameters node-number: Specifies the routing policy node number in the range of 0 to 65535. Usage guidelines The specified next node must have a larger number than the current node. Example # Specify the next node 20 for node 10 of routing policy policy1.
Table 97 Command output Field Description ListID AS path list ID. Mode • permit. • deny. Expression Regular expression used to match routes. Match mode: display ip community-list Use display ip community-list to display BGP community list information.
Field Description Match mode: permit • permit. • deny. display ip extcommunity-list Use display ip extcommunity-list to display BGP extended community list information. Syntax display ip extcommunity-list [ ext-comm-list-number ] Views Any view Predefined user roles network-admin network-operator Parameters ext-comm-list-number: Specifies an extended community list by its number in the range of 1 to 199. Without this argument, the command displays information about all BGP extended community lists.
Predefined user roles network-admin network-operator Parameters route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters. Without this argument, this command displays information about all routing policies. Examples # Display information about routing policy 1.
Parameters as-path-number&<1-32>: Specifies an AS path list by its number in the range of 1 to 256. &<1-32> indicates that the argument before it can be entered up to 32 times. Examples # Define AS path list 2 to permit BGP routes containing AS number 200 or 300 to pass. Configure node 10 in permit mode for routing policy test to match AS path list 2. system-view [Sysname] ip as-path 2 permit _*200.
system-view [Sysname] ip community-list 1 permit 100 200 [Sysname] route-policy test permit node 10 [Sysname-route-policy-test-10] if-match community 1 Related commands • apply community • ip community-list if-match cost Use if-match cost to match routing information having the specified cost. Use undo if-match cost to restore the default. Syntax if-match cost value undo if-match cost Default No cost match criterion is configured.
Views Routing policy node view Predefined user roles network-admin Parameters ext-comm-list-number&<1-32>: Specifies an extended community list by its number in the range of 1 to 199. &<1-32> indicates that the argument before it can be entered up to 32 times. Examples # Configure node 10 in permit mode for routing policy policy1 to match BGP routes whose extended community attribute matches extended community lists 100 and 150.
system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match interface vlan-interface 1 if-match local-preference Use if-match local-preference to match BGP routes having the specified local preference. Use undo if-match local-preference to restore the default. Syntax if-match local-preference preference undo if-match local-preference Default No local preference match criterion is configured.
Examples # Configure node 10 in permit mode for routing policy policy1 to match routes having MPLS labels. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match mpls-label if-match route-type Use if-match route-type to configure a route-type match criterion. Use undo if-match route-type to remove the configuration.
Use undo if-match tag to restore the default. Syntax if-match tag value undo if-match tag Default No tag match criterion is configured. Views Routing policy node view Predefined user roles network-admin Parameters value: Specifies a tag in the range of 0 to 4294967295. Examples # Configure node 10 in permit mode for routing policy policy1 to match RIP, OSPF, and IS-IS routing information having a tag of 8.
Usage guidelines BGP routing updates contain an AS_PATH attribute field that identifies the ASs through which the routes have passed. An AS path regular expression, for example, ^200. *100$, matches the AS_PATH attribute that starts with AS 200 and ends with AS 100. For the meanings of special characters used in regular expressions, see Fundamentals Configuration Guide. Examples # Create AS path list 1 to permit routes whose AS_PATH attribute starts with 10.
adv-comm-list-name: Specifies the advanced community list name, a case-sensitive string of 1 to 63 characters that cannot comprise only letters. adv-comm-list-num: Specifies the advanced community list number in the range of 100 to 199. regular-expression: Specifies a regular expression for the advanced community list, a string of 1 to 63 characters. For more information about regular expressions, see Fundamentals Configuration Guide. deny: Specifies the match mode for the community list as deny.
Default No extended community list is defined. Views System view Predefined user roles network-admin Parameters ext-comm-list-number: Specifies a number for the extended community list, in the range of 1 to 199. deny: Specifies the match mode for the extended community list as deny. permit: Specifies the match mode for the extended community list as permit. { rt route-target }&<1-32>: Specifies the RT extended community attribute, a string of 3 to 21 characters.
Predefined user roles network-admin Parameters route-policy-name: Specifies a name for the routing policy, a case-sensitive string of 1 to 63 characters. deny: Specifies the deny match mode for the routing policy node. If a route meets all the if-match clauses of the node, it is denied without matching against the next node. If not, it matches against the next node. permit: Specifies the permit match mode for the routing policy node.
Parameters backup-interface interface-type interface-number: Specifies a backup output interface. If the specified interface is a non-P2P interface (such as an Ethernet interface or a VLAN interface), you must also specify a backup next hop. backup-nexthop ip-address: Specifies a backup next hop. Usage guidelines This command sets a backup link in the routing policy for FRR. Using the routing policy, a routing protocol can designate a backup link for specific routes to implement FRR.
If you do not provide the public keyword or vpn-instance vpn-instance-name option for this command, the next hop belongs to the public network. Examples # Configure node 10 in permit mode for routing policy policy1 to set next hop 193.1.1.8 for routes matching AS path list 1. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match as-path 1 [Sysname-route-policy-policy1-10] apply ip-address next-hop 193.1.1.
Field Description le Less-equal, the upper mask length. Related commands • ip prefix-list • reset ip prefix-list if-match ip Use if-match ip to match IPv4 routes whose destination, next hop, or source matches the specified IPv4 prefix list. Use undo if-match ip to remove the configuration.
Syntax ip prefix-list prefix-list-name [ index index-number ] { deny | permit } ip-address mask-length [ greater-equal min-mask-length ] [ less-equal max-mask-length ] undo ip prefix-list prefix-list-name [ index index-number ] Default No IPv4 prefix list is configured. Views System view Predefined user roles network-admin Parameters prefix-list-name: Specifies a name for the IPv4 prefix list, a case-sensitive string of 1 to 63 characters.
reset ip prefix-list Use reset ip prefix-list to clear IPv4 prefix list statistics. Syntax reset ip prefix-list [ prefix-list-name ] Views User view Predefined user roles network-admin Parameters prefix-list-name: Specifies an IP prefix list by its name, a case-sensitive string of 1 to 63 characters. Without this argument, this command clears statistics for all IPv4 prefix lists. Examples # Clear the statistics for IPv4 prefix list abc.
Examples # Configure node 10 for routing policy policy1 to set next hop 3ffe:506::1 for IPv6 routes matching AS path list 1. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match as-path 1 [Sysname-route-policy-policy1-10] apply ipv6 next-hop 3ffe:506::1 display ipv6 prefix-list Use display ipv6 prefix-list to display IPv6 prefix list statistics.
Related commands • ipv6 prefix-list • reset ipv6 prefix-list if-match ipv6 Use if-match ipv6 to match IPv6 routes whose destination, next hop, or source matches the specified IPv6 prefix list. Use undo if-match ipv6 to remove the configuration. Syntax if-match ipv6 { address | next-hop | route-source } { acl acl6-number | prefix-list prefix-list-name undo if-match ipv6 { address | next-hop | route-source } [ acl | prefix-list ] Default No IPv6 prefix list match criterion is configured.
Default No IPv6 prefix list is configured. Views System view Predefined user roles network-admin Parameters prefix-list-name: Specifies a name for the IPv6 prefix list, a case-sensitive string of 1 to 63 characters. index-number: Specifies an index number for an IPv6 prefix list item, in the range of 1 to 65535. An item with a smaller number is matched first. deny: Specifies the deny mode.
reset ipv6 prefix-list Use reset ipv6 prefix-list to clear IPv6 prefix list statistics. Syntax reset ipv6 prefix-list [ prefix-list-name ] Views User view Predefined user roles network-admin Parameters prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters. Without this argument, this command clears statistics for all IPv6 prefix lists. Examples # Clear the statistics for IPv6 prefix list abc.
Support and other resources Contacting HP For worldwide technical support information, see the HP support website: http://www.hp.
• HP manuals http://www.hp.com/support/manuals • HP download drivers and software http://www.hp.com/support/downloads • HP software depot http://www.software.hp.com • HP Education http://www.hp.com/learn Conventions This section describes the conventions used in this documentation set. Command conventions Convention Description Boldface Bold text represents commands and keywords that you enter literally as shown. Italic Italic text represents arguments that you replace with actual values.
Convention TIP Description An alert that provides helpful information. Network topology icons Represents a generic network device, such as a router, switch, or firewall. Represents a routing-capable device, such as a router or Layer 3 switch. Represents a generic switch, such as a Layer 2 or Layer 3 switch, or a router that supports Layer 2 forwarding and other Layer 2 features. Represents an access controller, a unified wired-WLAN module, or the switching engine on a unified wired-WLAN switch.
Index ABCDEFGHILMNOPRSTV default med,207 A default-cost (OSPF area view),64 abr-summary (OSPF area view),60 default-route,31 advertise-rib-active,193 default-route imported,208 aggregate,193 default-route-advertise (IS-IS view),136 area (OSPF view),61 default-route-advertise (OSPF view),65 area-authentication-mode,132 delete static-routes all,26 asbr-summary,61 description (OSPF/OSPF area view),66 authentication-mode,62 display bgp dampening parameter ipv4 unicast,209 auto-cost enable,133
display ipv6 routing-table prefix-list,19 fast-reroute,155 display ipv6 routing-table protocol,20 fast-reroute (OSPF view),94 display ipv6 routing-table statistics,22 filter (OSPF area view),94 display isis brief,137 filter-policy export,38 display isis graceful-restart status,138 filter-policy export,156 display isis interface,139 filter-policy export (OSPF view),95 display isis lsdb,142 filter-policy import,157 display isis name-table,145 filter-policy import,39 display isis peer,145 filt
isis circuit-type p2p,169 O isis cost,170 opaque-capability enable,109 isis dis-name,171 ospf,110 isis dis-priority,171 ospf authentication-mode,110 isis enable,172 ospf bfd enable,112 isis peer-ip-ignore,173 ospf cost,113 isis silent,173 ospf dr-priority,113 isis small-hello,174 ospf fast-reroute lfa-backup,114 isis timer csnp,174 ospf mib-binding,114 isis timer hello,175 ospf mtu-enable,115 isis timer holding-multiplier,176 ospf network-type,115 isis timer lsp,177 ospf timer dead,11
rip default-route,49 stub-router,129 rip input,50 summary,56 rip metricin,50 summary (IS-IS view),188 rip metricout,51 switch-mode route-iterative,24 rip output,52 T rip poison-reverse,53 timer lsp-generation,189 rip split-horizon,53 timer lsp-max-age,189 rip summary-address,54 timer lsp-refresh,190 rip version,54 timer spf,191 router id,124 timers,57 S transmit-pacing,129 set-overload,187 V silent-interface,55 validate-source-address,58 silent-interface (OSPF view),125 version,58