HP FlexFabric 5930 Switch Series Layer 3 - IP Routing Command Reference Part number: 5998-4570 Software version: Release 2406 & Release 2407P01 Document version: 6W101-20140404
Legal and notice information © Copyright 2014 Hewlett-Packard Development Company, L.P. No part of this documentation may be reproduced or transmitted in any form or by any means without prior written consent of Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Contents Basic IP routing commands ········································································································································· 1 address-family ipv4 ·················································································································································· 1 address-family ipv6 ·················································································································································· 1
default-route-advertise (OSPF view) ····················································································································· 59 description (OSPF/OSPF area view)··················································································································· 60 display ospf ···························································································································································· 61 display ospf abr-asbr ········
ospf timer hello ···················································································································································· 126 ospf timer poll ······················································································································································ 127 ospf timer retransmit ············································································································································ 127 ospf
display bgp routing-table ipv4 unicast as-path-acl ·························································································· 188 display bgp routing-table ipv4 unicast community-list ····················································································· 189 display bgp routing-table ipv4 unicast peer ····································································································· 190 display bgp routing-table ipv4 unicast statistics·······················
peer route-limit ····················································································································································· 256 peer route-policy ·················································································································································· 257 peer route-update-interval ··································································································································· 259 peer subs
display ospfv3 peer ············································································································································ 316 display ospfv3 request-queue ····························································································································· 319 display ospfv3 retrans-queue ····························································································································· 320 display ospfv3 routing ······
apply cost ····························································································································································· 367 apply cost-type ····················································································································································· 368 apply extcommunity ············································································································································ 368 apply
Basic IP routing commands address-family ipv4 Use address-family ipv4 to create a RIB IPv4 address family and enter RIB IPv4 address family view. Use undo address-family ipv4 to remove a RIB IPv4 address family and all configurations in the view. Syntax address-family ipv4 undo address-family ipv4 Default No RIB IPv4 address family is created. Views RIB view Predefined user roles network-admin Examples # Create a RIB IPv4 address family and enter RIB IPv4 address family view.
Examples # Create a RIB IPv6 address family and enter RIB IPv6 address family view. system-view [Sysname] rib [Sysname-rib] address-family ipv6 [Sysname-rib-ipv6] display ecmp mode Use display ecmp mode to display the ECMP mode. Syntax display ecmp mode Views Any view Predefined user roles network-admin network-operator Examples # Display the ECMP mode.
display ip routing-table Destinations : 13 Routes : 13 Destination/Mask Proto Cost NextHop Interface 0.0.0.0/32 Direct 0 Pre 0 127.0.0.1 InLoop0 1.1.1.0/24 Static 60 0 192.168.47.4 Vlan1 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0 127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0 192.168.1.0/24 Direct 0 0 192.168.1.40 Vlan11 192.168.1.0/32 Direct 0 0 192.168.1.
SubProtID: 0x0 Age: 08h34m37s Cost: 0 Preference: 0 Tag: 0 State: Active NoAdv OrigTblID: 0x0 OrigVrf: default-vrf TableID: 0x2 OrigAs: 0 NibID: 0x10000000 LastAs: 0 AttrID: 0xffffffff Neighbor: 0.0.0.0 Flags: 0x1000c OrigNextHop: 127.0.0.1 Label: NULL RealNextHop: 127.0.0.1 BkLabel: NULL BkNextHop: N/A Tunnel ID: Invalid BkTunnel ID: Invalid Interface: InLoopBack0 BkInterface: N/A Destination: 1.1.1.
Field Description Route status: State • • • • • • • Active—Active unicast route. Adv—Route that can be advertised. Inactive—Inactive route. NoAdv—Route that the router must not advertise. Vrrp—Routes generated by VRRP. Nat—Routes generated by NAT. TunE—Tunnel. OrigTblID Original routing table ID. OrigVrf Original VPN that the route belongs to. TableID ID of the routing table. OrigAs Original AS number. NibID ID of the next hop. LastAs Last AS number. AttrID Attribute ID.
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. acl-number: Specifies a basic ACL by its number in the range of 2000 to 2999. verbose: Displays detailed information about all routes permitted by the basic ACL. Without this keyword, the command displays only brief information about active routes permitted by the basic ACL.
BkLabel: NULL BkNextHop: N/A Tunnel ID: Invalid BkTunnel ID: Invalid Interface: Vlan-interface1 BkInterface: N/A Destination: 192.168.1.0/32 Protocol: Direct Process ID: 0 SubProtID: 0x0 Cost: 0 Age: 04h20m37s Preference: 0 Tag: 0 State: Active NoAdv OrigTblID: 0x0 OrigVrf: default-vrf TableID: 0x2 OrigAs: 0 NibID: 0x10000003 LastAs: 0 AttrID: 0xffffffff Neighbor: 0.0.0.0 Flags: 0x1008c OrigNextHop: 192.168.1.111 Label: NULL RealNextHop: 192.168.1.
For command output, see Table 2. display ip routing-table ip-address Use display ip routing-table ip-address to display information about routes to a specific destination address. Use display ip routing-table ip-address1 to ip-address2 to display information about routes to a range of destination addresses.
If the two operations yield the same result for an entry and the entry has a subnet mask less than or equal to the entered subnet mask, the entry is displayed. • display ip routing-table ip-address longer-match: { { 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.
Summary Count : 1 Destination/Mask Proto Pre 11.0.0.0/16 Static 60 Cost NextHop Interface 0 0.0.0.0 NULL0 # Display brief information about the routes to destination addresses in the range of 1.1.1.0 to 5.5.5.0. display ip routing-table 1.1.1.0 to 5.5.5.0 Summary Count : 6 Destination/Mask Proto Cost NextHop Interface 1.1.1.1/32 Direct 0 Pre 0 127.0.0.1 InLoop0 2.2.2.0/24 Direct 0 0 2.2.2.1 Vlan2 3.3.3.0/24 Direct 0 0 3.3.3.1 Vlan2 3.3.3.1/32 Direct 0 0 127.0.0.
# Display brief information about the active route permitted by the IP prefix list. [Sysname] display ip routing-table prefix-list test Routes Matched by Prefix list : test Summary Count : 1 Destination/Mask Proto 1.1.1.0/24 Direct 0 Pre Cost NextHop Interface 0 1.1.1.2 Vlan2 For command output, see Table 1. # Display detailed information about all routes permitted by the IP prefix list.
protocol: Specifies a routing protocol. It can be bgp, direct, ospf, or static. inactive: Displays information about inactive routes. Without this keyword, the command displays information about both active and inactive routes. verbose: Displays detailed routing table information. Without this keyword, the command displays brief routing information. Examples # Display brief information about direct routes.
display ip routing-table statistics Use display ip routing-table statistics to display IPv4 route statistics. Syntax display ip 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 Parameters attribute-id: Specifies a route attribute by its ID in the range of 0 to FFFFFFFF. Examples # Display route attribute information in the IPv6 RIB.
No. Protocol Lifetime FD State Start/End -------------------------------------------------1 DIRECT6 480 29 End No/No 2 STATIC6 480 32 End No/No 3 BGP4+ 480 31 End No/No For command output, see Table 11. display ipv6 rib nib Use display ipv6 rib nib to display next hop information in the IPv6 RIB.
# Display detailed next hop information in the IPv6 RIB.
Parameters nib-id: Specifies a NIB by its ID in the range of 1 to FFFFFFFF. verbose: Displays detailed next hop information for IPv6 direct routes. Without this keyword, the command displays brief next hop information for IPv6 direct routes. Examples # Display brief next hop information for IPv6 direct routes.
IFIndex: 0x111 RefCnt: 1 Flag: 0x2 LocalAddr: :: FlushRefCnt: 0 Version: 1 1 nexthop(s): PrefixIndex: 0 OrigNexthop: :: RelyDepth: 0 RealNexthop: :: Interface: NULL0 LocalAddr: :: TunnelCnt: 0 Vrf: vpn1 TunnelID: N/A NibID: 0x20000001 Type: 0x1 Sequence: 1 Flushed: Yes UserKey0: 0x0 VrfNthp: 1 UserKey1: 0x0 Nexthop: ::1 IFIndex: 0x112 RefCnt: 1 Flag: 0x2 LocalAddr: ::1 FlushRefCnt: 0 Version: 1 1 nexthop(s): PrefixIndex: 0 OrigNexthop: ::1 RelyDepth: 0 RealNexthop: ::1 Interface: InLo
display ipv6 routing-table Use display ipv6 routing-table to display IPv6 routing table information. Syntax display ipv6 routing-table [ vpn-instance vpn-instance-name ] [ 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. Without this option, the command displays routing information for the public network.
Field Description Protocol that installed the route. Route types include: • • • • • • • Protocol O_INTRA—OSPF intra area route. O_INTER—OSPF inter area route. O_ASE1—OSPF external type 1 route. O_ASE2—OSPF external type 2 route. O_NSSA1—OSPF NSSA external type 1 route. O_NSSA2—OSPF NSSA external type 2 route. O_SUM—OSPF summary route. Cost Cost of the route. Summary Count Number of routes. # Display detailed information about all routes in the routing table.
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 NibID: 0x20000001 LastAs: 0 AttrID: 0xffffffff Neighbor: :: Flags: 0x10014 OrigNextHop: :: Label: NULL RealNextHop: :: BkLabel: NULL BkNextHop: N/A Tunnel ID: Invalid BkTunnel ID: Invalid Interface: NULL0 BkInterface: N/A Table 7 Command output Field Description Destination IPv6 address and pr
Field Description 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. display ipv6 routing-table acl Use display ipv6 routing-table acl to display routing information permitted by a specific IPv6 basic ACL.
Destination : 1:1::/64 Protocol NextHop : :: Preference: 60 : Static Interface : NULL0 Cost : 0 For command output, see Table 6. # Display detailed information about all routes permitted by IPv6 ACL 2000.
Syntax display ipv6 routing-table [ vpn-instance vpn-instance-name ] ipv6-address [ prefix-length ] [ longer-match ] [ verbose ] display ipv6 routing-table [ vpn-instance vpn-instance-name ] ipv6-address1 to ipv6-address2 [ 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.
• display ipv6 routing-table ipv6-address prefix-length longer-match: { { The system ANDs the entered destination IPv6 address with the entered prefix length. The system ANDs the destination IPv6 address in each active route entry with the entered prefix length. If the two operations yield the same result for multiple entries with a prefix length less than or equal to the entered prefix length, the one with the longest prefix length is displayed.
Interface : NULL0 Cost : 0 Destination: 300::/64 Protocol : Static NextHop : :: Preference: 60 Interface : NULL0 Cost : 0 For command output, see Table 6. 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.
# Display detailed information about all routes permitted by the IPv6 prefix list.
display ipv6 routing-table protocol direct Summary Count : 3 Direct Routing Table Status : Summary Count : 3 Destination: ::1/128 Protocol : Direct NextHop : ::1 Preference: 0 Interface : InLoop0 Cost : 0 Destination: FE80::/10 Protocol : Direct NextHop : :: Preference: 0 Interface : InLoop0 Cost : 0 Destination: FF00::/8 Protocol : Direct NextHop : :: Preference: 0 Interface : NULL0 Cost : 0 Destination: 2::2/128 Protocol : Static NextHop : fe80::2 P
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. Examples # Display IPv6 route statistics for the public network.
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 9 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. display rib attribute Use display rib attribute to display route attribute information in the RIB.
Communities value: N/A AS-path number: 0 AS-path value: N/A Detailed information of attribute 0x1: Flag: 0x0 Protocol: BGP Address family: IPv4 Reference count: 0 Local prefrence: 0 Ext-communities number: 1 Ext-communities value: Communities number: 0 Communities value: N/A AS-path number: 0 AS-path value: N/A Table 10 Command output Field Description Protocol Protocol that generates the attribute. Ext-communities number Number of the extended community attribute values.
display rib graceful-restart RIB GR state : Phase2-calculation end RCOM GR State : Flush end Protocol GR state: No. Protocol Lifetime FD State Start/End -------------------------------------------------1 DIRECT 100 30 End No/No 2 STATIC 480 34 End No/No 3 OSPF 480 36 End No/No 4 BGP 480 31 End No/No 5 LDP 480 35 End No/No 6 SLSP 480 29 End No/No Table 11 Command output Field Description RIB GR status: • Start—GR starts.
Field Description Protocol GR state: • • • • • • State Init—Initialization state. Listen—Listening state. Idle. Active. Start—GR starts. End—GR completes. Message sending state: Start/End • No—The message has not been sent. • Yes—The message has been sent. display rib nib Use display rib nib to display next hop information in the RIB.
Type: 0x1 UserKey0: 0x0 UserKey1: 0x0 IFIndex: 0x112 NibID: 0x10000002 Type: 0x5 UserKey0: 0x0 UserKey1: 0x0 IFIndex: 0x112 NibID: 0x26000000 Flushed: Yes VrfNthp: 1 Nexthop: 127.0.0.1 LocalAddr: 127.0.0.1 Sequence: 2 Flushed: Yes VrfNthp: 1 Nexthop: 127.0.0.1 LocalAddr: 127.0.0.
Field Description Type of the sub-next hop: NthpType • IP—IP forwarding. • MPLS—MPLS forwarding. # Display detailed next hop information in the RIB. display rib nib verbose Total number of nexthop(s): 176 NibID: 0x10000000 Type: 0x1 UserKey0: 0x0 UserKey1: 0x0 IFIndex: 0x111 RefCnt: 6 Flag: 0x84 Sequence: 0 Flushed: Yes VrfNthp: 1 Nexthop: 0.0.0.0 LocalAddr: 0.0.0.0 FlushRefCnt: 2 Version: 1 1 nexthop(s): PrefixIndex: 0 OrigNexthop: 0.0.0.0 RelyDepth: 0 RealNexthop: 0.0.0.
Interface: GE0/1/3 LocalAddr: 13.1.1.1 TunnelCnt: 1 Vrf: default-vrf TunnelID: 1025 NibID: 0x16000000 Sequence: 0 Type: 0x2000 Flushed: Yes SubNibID: 0x11000009 SubSeq: 13 NthpCnt: 1 Samed: 0 NthpType: IP SubNibID: 0x1100000d NthpCnt: 1 SubSeq: 14 Samed: 0 NthpType: IP 2 nexthop(s): PrefixIndex: 0 OrigNexthop: 10.1.1.2 RelyDepth: 0 RealNexthop: 10.1.1.2 Interface: Vlan10 LocalAddr: 10.1.1.1 TunnelCnt: 0 Vrf: default-vrf TunnelID: N/A PrefixIndex: 1 OrigNexthop: 11.1.1.
display route-direct nib Use display route-direct nib to display next hop information for direct routes. Syntax display route-direct nib [ nib-id ] [ verbose ] Views Any view Predefined user roles network-admin network-operator Parameters nib-id: Specifies a NIB by its ID in the range of 1 to FFFFFFFF. verbose: Displays detailed next hop information for direct routes. Without this keyword, the command displays brief next hop information for direct routes.
Field Description UserKey0 Reserved data 1. UserKey1 Reserved data 2. VrfNthp VPN to which the next hop belongs. Nexthop Next hop address. IFIndex Interface index. # Display detailed next hop information for direct routes. display route-direct nib verbose Total number of nexthop(s): 116 NibID: 0x10000000 Type: 0x1 UserKey0: 0x0 UserKey1: 0x0 IFIndex: 0x111 RefCnt: 2 Flag: 0x2 Sequence: 0 Flushed: Yes VrfNthp: 1 Nexthop: 0.0.0.0 LocalAddr: 0.0.0.
Field Description OrigNexthop Original next hop. RealNexthop Real next hop. Interface Output interface. localAddr Local interface address. RelyDepth Recursion depth. TunnelCnt Number of tunnels after route recursion. TunnelID ID of the tunnel after route recursion. RefCnt Reference count of the next hop. FlushRefCnt Reference count of the next hop that is flushed to the FIB. Flag Flag of the next hop. Version Version of the next hop.
Default The enhanced ECMP mode is disabled. Views System view Predefined user roles network-admin Examples # Enable the enhanced ECMP mode. system-view [Sysname] ecmp mode enhanced The configuration will take effect at the next reboot. Continue? [Y/N]:y Reboot device to make the configuration take effect. fib lifetime Use fib lifetime to set the maximum lifetime for IPv4 or IPv6 routes in the FIB. Use undo fib lifetime to restore the default.
max-ecmp-num Use max-ecmp-num to configure the maximum number of ECMP routes. Syntax max-ecmp-num number Default The maximum number of ECMP routes is 8. Views System view Predefined user roles network-admin Parameters number: Specifies the maximum number of ECMP routes, in the range of 1 to 32. Examples # Configure the maximum number of ECMP routes as 10. system-view [Sysname] max-ecmp-num 10 The configuration will take effect at the next reboot.
Usage guidelines When GR is enabled, make sure the protocol can complete GR and install all route entries to the RIB within the lifetime configured in this command. Examples # Set the maximum lifetime for OSPF routes and labels in the RIB to 60 seconds. system-view [Sysname] rib [Sysname-rib] address-family ipv4 [Sysname-rib-ipv4] protocol ospf lifetime 60 reset ip routing-table statistics protocol Use reset ip routing-table statistics protocol to clear IPv4 route statistics.
Parameters vpn-instance vpn-instance-name: Clears 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 the route statistics for the public network. protocol: Clears route statistics for an IPv6 routing protocol. It can be bgp4+, direct, ospfv3, or static. all: Clears route statistics for all IPv6 routing protocols. Examples # Clear all IPv6 route statistics for the public network.
Predefined user roles network-admin Usage guidelines Do not configure the switch-routing-mode ipv6-128 command and the switch-mode 4 command at the same time. This command takes effect at next reboot. Make sure the reboot does not impact your network. This command is available only in Release 2407P01 and later. Examples # Enable support for IPv6 routes with prefixes longer than 64 bits. system-view [Sysname] switch-routing-mode ipv6-128 Reboot device to make the configuration take effect.
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.
network-operator Parameters nib-id: Specifies a NIB by its ID in the range of 1 to FFFFFFFF. verbose: Displays detailed static route next hop information. Without this keyword, the command displays brief static route next hop information. Examples # Display brief static route next hop information. display route-static nib Total number of nexthop(s): 44 NibID: 0x11000000 Sequence: 0 Type: 0x21 Flushed: Yes UserKey0: 0x111 VrfNthp: 0 UserKey1: 0x0 IFIndex: 0x111 Nexthop: 0.0.0.
UserKey0: 0x111 VrfNthp: 0 UserKey1: 0x0 Nexthop: 0.0.0.0 IFIndex: 0x111 RefCnt: 2 Flag: 0x2 LocalAddr: 0.0.0.0 FlushRefCnt: 0 Version: 1 1 nexthop(s): PrefixIndex: 0 OrigNexthop: 0.0.0.0 RelyDepth: 0 RealNexthop: 0.0.0.0 Interface: NULL0 TunnelCnt: 0 LocalAddr: 0.0.0.0 Vrf: default-vrf TunnelID: N/A NibID: 0x11000001 Type: 0x41 Sequence: 1 Flushed: Yes UserKey0: 0x0 VrfNthp: 5 UserKey1: 0x0 Nexthop: 2.2.2.2 IFIndex: 0x0 RefCnt: 1 Flag: 0x12 LocalAddr: 0.0.0.
Field Description RefCnt Reference count of the next hop. FlushRefCnt Reference count of the next hop that is flushed to the FIB. Flag Flag of the next hop. Version Version of the next hop. display route-static routing-table Use display route-static routing-table to display static routing table information.
Permanent: 0 Tag: 0 Destination: 0.0.0.0/0 NibID: 0x1100000b NextHop: 2.2.2.11 MainNibID: N/A BkNextHop: N/A BkNibID: N/A Interface: N/A TableID: 0x2 BkInterface: N/A Flag: 0x82d01 DbIndex: 0xd Type: Normal TrackIndex: 0xffffffff Preference: 60 BfdMode: N/A Permanent: 0 BfdSrcIp: N/A BfdIfIndex: 0x0 BfdVrfIndex: 0 Label: NULL vrfIndexDst: 0 vrfIndexNH: 0 Tag: 0 ... # Display information about the static route with destination address 1.2.3.4/32. display route-static routing-table 1.2.
Field Description DbIndex Index of the database to which the route belongs. Route type: Type • Normal. • DHCP. • NAT. BfdSrcIp Source IP address of the indirect BFD session. BfdIfIndex Index of the interface where BFD is enabled. BfdVrfIndex Index of the VPN instance where BFD is enabled. BFD session mode: BfdMode • N/A—No BFD session is configured. • Ctrl—Control packet mode • Echo—Echo packet mode. TrackIndex NQA Track index. vrfIndexDst Index of the destination VPN.
Views System view Predefined user roles network-admin Parameters vpn-instance s-vpn-instance-name: Specifies a source MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. Each VPN has its own routing table, and the configured static route is installed in the routing tables of the specified VPNs. dest-address: Specifies the destination IP address of the static route, in dotted decimal notation. mask-length/mask: Specifies the mask length or mask of the IP address.
• If the output interface is a Null 0 interface, no next hop address is required. • If the output interface is a broadcast interface (such as an Ethernet interface or a VLAN interface) that might have multiple next hops, you must specify the output interface and the next hop address at the same time. Follow these guidelines when you configure a static route: • Enabling BFD for a flapping route could worsen the situation. Therefore, use it with caution.
OSPF commands 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-length | mask } [ advertise | not-advertise ] [ cost cost ] undo abr-summary ip-address { mask-length | mask } 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, an IP address or a decimal integer in the range of 0 to 4294967295 that is translated into the IP address format by the system. Examples # Create area 0 and enter area 0 view.
mask: Specifies the mask in dotted decimal notation. cost cost: Specifies the cost of the summary route, in the range of 1 to 16777214. Without this option, the cost of Type-1 external routes defaults to the largest cost among routes that are summarized, and the cost of Type-2 external routes 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.
undo authentication-mode Default No authentication is performed for an area. Views OSPF area view Predefined user roles network-admin Parameters hmac-md5: Specifies the HMAC-MD5 authentication mode. md5: Specifies the MD5 authentication mode. simple: Specifies the simple authentication mode. key-id: Specifies a key by its ID in the range of 0 to 255. cipher: Sets a ciphertext key. plain: Sets a plaintext key. password: Specifies a password.
[Sysname-ospf-100-area-0.0.0.0] authentication-mode md5 15 plain abc Related commands ospf authentication-mode bandwidth-reference (OSPF view) Use bandwidth-reference to specify a reference bandwidth value for link cost calculation. Use undo bandwidth-reference to restore the default value. Syntax bandwidth-reference value undo bandwidth-reference Default The default value is 100 Mbps.
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.
cost cost: Specifies a cost for the default route, in the range of 0 to 16777214. If no cost is specified, the default cost specified by the default cost command applies. route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.
Parameters description: Configures a description for the OSPF process in OSPF view, or for the OSPF area in OSPF area view. The description argument specifies a string of 1 to 80 characters. 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.
Originating router-LSAs with maximum metric Condition: On startup while BGP is converging, State: Inactive Advertise stub links with maximum metric in router-LSAs Advertise summary-LSAs with metric 16711680 Advertise external-LSAs with metric 16711680 ISPF is enabled SPF-schedule-interval: 5 50 200 LSA generation interval: 5 LSA arrival interval: 1000 Transmit pacing: Interval: 20 Count: 3 Default ASE parameters: Metric: 1 Tag: 1 Type: 2 Route preference: 10 ASE route preference: 150 SPF computation count:
Backup designated router: 192.168.1.1 Timers: Hello 10 , Dead 40 , Poll 40 , Retransmit 5 , Transmit Delay 1 FRR backup: Enabled Enabled by network configuration Table 19 Command output Field Description OSPF Process 1 with Router ID 192.168.1.2 OSPF process ID and OSPF router ID. RouterID Router ID. Router type: Router type • • • • ABR. ASBR. NSSA. Null. Route tag Tag of redistributed routes. Multi-VPN-Instance is not enabled The OSPF process does not support multi-VPN-instance.
Field Description Route calculation trigger type: • • • • • Calculation trigger type Full—Calculation of all routes is triggered. Area topology change—Topology change in an area. Intra router change—Incremental intra-area route change. ASBR change—Incremental ASBR route change. 7to5 translator—Type-7-to-Type-5 LSA translator role change. • Full IP prefix—Calculation of all IP prefixes is triggered. • Full intra AS—Calculation of all intra-AS prefixes is triggered.
Field Description Current process reset type: Current reset type • • • • • N/A—The process is not reset. Normal—Normal reset. GR quit—Normal reset when GR quits abnormally. Delete—Delete OSPF process. VPN delete—Delete VPN. Next process reset type: Next reset type • • • • • N/A—The process is not reset. Normal—Normal reset. GR quit—Normal reset when GR quits abnormally. Delete—Delete OSPF process. VPN delete—Delete VPN.
Field Description Reset phase of each module: • Main control module: { N/A—Not reset. { Delete area. { Delete process. • Neighbor maintenance (P) module: { N/A—Not reset. { Delete neighbor. { Delete interface. { Delete vlink—Delete virtual link. { Delete shamlink—Delete sham link. • LSDB synchronization (L) module: Reset phase of module { N/A—Not reset. { Stop timer. { Delete ASE—Delete all ASE LSAs. { Delete ASE maps—Delete ASE LSA maps. { Clear process data.
Field Description Authentication type of the area: Authtype • None—No authentication. • Simple—Simple authentication. • MD5—MD5 authentication. Type of the area: Area flag • • • • • Normal. 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. MTU Interface MTU. Priority Router priority.
Usage guidelines If you use this command on routers in a stub area, the commands displays no ASBR information. Examples # Display brief information about routes to the ABR or ASBR. display ospf abr-asbr OSPF Process 1 with Router ID 192.168.1.2 Routing Table to ABR and ASBR Type Destination Area Cost Nexthop RtType Inter 3.3.3.3 0.0.0.0 3124 10.1.1.2 ASBR Intra 2.2.2.2 0.0.0.0 1562 10.1.1.2 ABR # Display detailed information about routes to the ABR or ASBR.
Predefined user roles network-admin network-operator Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. Without this argument, the command displays information about ABR summary routes for all OSPF processes. area area-id: Specifies an OSPF 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.
ABR Summary Addresses Total summary address count: 1 Area: 0.0.0.1 Total summary addresses: 1 Net : 100.0.0.0 Mask : 255.0.0.0 Status : Advertise Cost : (Not Configured) Routes count: 1 Destination NetMask Metric 100.1.1.0 255.255.255.0 1000 Table 22 Command output Field Description Destination Destination address of a summarized route. NetMask Network mask of a summarized route. Metric Metric of a summarized route.
Examples # Display information about all summarized redistributed routes for OSPF process 1. display ospf 1 asbr-summary OSPF Process 1 with Router ID 2.2.2.2 Summary Addresses Total Summary Address Count: 1 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 OSPF 2 2 1 30.1.1.0 255.255.255.
display ospf event-log spf Use display ospf event-log spf to display OSPF route calculation log information for a process. Syntax display ospf [ process-id ] event-log spf 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. Without this argument, the command displays OSPF route calculation log information for all processes.
Field Description Reasons why the route calculation is performed: • • • • • Intra-area LSA—Intra-area LSA changes. Inter-area LSA—Inter-area LSA changes. External LSA—External LSA changes. Configuration—Configuration changes. Area 0 full neighbor number—Number of FULL-state neighbors in Area 0 changes. • Area 0 up interface number—Number of interfaces in up state in Area 0 Reason changes. • • • • • • LSDB overflow state—Overflow status changes. AS number—AS number changes.
Current GR state : Normal Graceful Restart period : 40 seconds Number of neighbors under Helper: 0 Number of restarting neighbors : 0 Last exit reason: Restarter : None Helper : None Area: 0.0.0.0 Authtype: None Area flag: Normal Area up Interface count: 2 Interface: 40.4.0.
Field Description Helper capability that the process supports: • Enable (IETF)—Supports IETF GR helper capability. • Enable (Nonstandard)—Supports non IETF GR helper capability. Helper capability • Enable (IETF and nonstandard)—Supports both IETF GR helper capability and non IETF GR helper capability. • Disable—Does not support GR helper capability.
Field Description Neighbor GR state: • Normal—Normal state. • Under GR—GR is in process. • Under Helper—The process is acting as GR helper. GR state Last Helper exit reason Reason that the helper exited last time. Virtual-link Neighbor-ID Router ID of the virtual link's neighbor. Neighbor-State Neighbor state: Down, Init, 2-Way, ExStart, Exchange, Loading, and Full. Interface Output interface of the virtual link.
IP Address Type State Cost Pri DR BDR 172.16.0.1 Broadcast DR 1 1 172.16.0.1 0.0.0.0 Table 26 Command output Field Description Area Area ID of the interface. IP address Interface IP address (regardless of whether TE is enabled or not). Type Interface network type: PTP, PTMP, Broadcast, or NBMA. Interface state: • DOWN—No protocol traffic can be sent or received on the interface.
Table 27 Command output Field Description Interface Information about the interface, such as the IP address. Timers OSPF timers: hello, dead, poll, retransmit, and transmit delay. FRR backup Indicates whether LFA calculation is enabled on an interface. Enabled by interface configuration (including secondary IP addresses) OSPF is enabled on the interface (including secondary IP addresses). MD5 authentication enabled Authentication mode. The last key Current MD5 authentication key ID.
router: Displays Type-1 LSA (Router LSA) information in the LSDB. summary: Displays Type-3 LSA (Network Summary LSA) information in the LSDB. link-state-id: Specifies a link state ID in the IP address format. originate-router advertising-router-id: Displays information about LSAs originated by the specified router. self-originate: Displays information about self-originated LSAs. Examples # Display OSPF LSDB information. display ospf lsdb OSPF Process 1 with Router ID 192.168.0.
OSPF Process 1 with Router ID 192.168.1.1 Area: 0.0.0.0 Link State Database Type : Network LS ID : 192.168.0.2 Adv Rtr : 192.168.2.1 LS Age : 922 Len : 32 Options : Seq# : 80000003 Checksum Net Mask E : 0x8d1b : 255.255.255.0 Attached Router 192.168.1.1 Attached Router 192.168.2.1 Area: 0.0.0.1 Link State Database Type : Network LS ID : 192.168.1.2 Adv Rtr : 192.168.1.2 LS Age : 782 Len : 32 Options : Seq# : 80000003 Checksum Net Mask NP : 0x2a77 : 255.255.255.
Field Description Checksum LSA checksum. Net Mask Network mask. Attached Router ID of the router that established adjacency with the DR, and ID of the DR itself. display ospf nexthop Use display ospf nexthop to display OSPF next hop information. Syntax display ospf [ process-id ] nexthop 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.
display ospf peer Use display ospf peer to display information about OSPF neighbors. Syntax display ospf [ process-id ] peer [ verbose ] [ interface-type interface-number ] [ neighbor-id ] Views Any view Predefined user roles network-admin network-operator Parameters process-id: Specifies an OSPF process by ID in the range of 1 to 65535. Without this argument, the command displays OSPF neighbor information for all OSPF processes. verbose: Displays detailed neighbor information.
Table 31 Command output Field Description Neighbor information of the interface in the specified area: Area areaID interface IPAddress(InterfaceName)'s neighbors • areaID—Area to which the neighbor belongs. • IPAddress—Interface IP address. • InterfaceName—Interface name. Router ID Neighbor router ID. Address Neighbor router address. GR state: GR State • • • • Normal. Restarter. Complete. Helper. Neighbor state: • Down—Initial state of a neighbor conversation.
Field Description LSA options: • • • • • • Options O—Opaque LSA advertisement capability. E—AS External LSA reception capability. EA—External extended LSA reception capability. DC—On-demand link support. N—NSSA external LSA support. P—Capability of an NSSA ABR to translate Type-7 LSAs into Type-5 LSAs. Dead timer due in 33 sec This dead timer will expire in 33 seconds. Neighbor is up for 02:03:35 The neighbor has been up for 02:03:35. Authentication Sequence Authentication sequence number.
Field Description State Neighbor state: Down, Init, Attempt, 2-Way, Exstart, Exchange, Loading, or Full. Sham link 11.11.11.11 -> 22.22.22.22 Sham link from 11.11.11.11 to 22.22.22.22. display ospf peer statistics Use display ospf peer statistics to display OSPF neighbor statistics. Syntax display ospf [ process-id ] peer statistics 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.
Field Description Exchange Number of neighboring routers in Exchange state in the same area. Loading Number of neighboring routers in Loading state in the same area. Full Number of neighboring routers in Full state in the same area. Total Total number of neighbors under the same state: Down, Attempt, Init, 2-Way, ExStart, Exchange, Loading, or Full. Sham links' neighbors Statistics about sham links' neighbors.
Field Description Address Neighbor interface IP address. Interface Local interface IP address. Area Area ID. Request list Request list information. Type LSA type. LinkState ID Link state ID. AdvRouter Advertising router. Sequence LSA sequence number. Age LSA age. display ospf retrans-queue Use display ospf retrans-queue to display retransmission queue information.
Table 35 Command output Field Description The Router's Neighbor is Router ID Neighbor router ID. Address Neighbor interface IP address. Interface Interface address of the router. Area Area ID. Retrans List Retransmission list. Type LSA type. LinkState ID Link state ID. AdvRouter Advertising router. Sequence LSA sequence number. Age LSA age. display ospf routing Use display ospf routing to display OSPF routing information.
If no interface is specified, this command displays OSPF routing information for all interfaces. If no next hop is specified, this command displays all OSPF routing information. Examples # Display OSPF routing information. display ospf routing OSPF Process 1 with Router ID 192.168.1.2 Routing Tables Routing for Network Destination Cost Type NextHop AdvRouter Area 192.168.1.0/24 1562 Stub 192.168.1.2 192.168.1.2 0.0.0.0 172.16.0.0/16 1563 Inter 192.168.1.1 192.168.1.1 0.0.0.
IfType: Broadcast BkIfType: N/A Interface: Vlan10 BkInterface: N/A NibID: 0x0 Status: Local 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.
Syntax display ospf [ process-id ] [ area area-id ] spf-tree [ verbose ] 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. Without this argument, the command displays topology information for all OSPF processes. area area-id: Specifies an OSPF 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.
Table 38 Command output Field Description SPF node, represented by a router ID when the node type is Router, or the IP address of the DR when the node type is Network. Node flag: • • • • • SpfNode I—The node is in initialization state. A—The node is on the candidate list. S—The node is on the SPF tree. R—The node is directly connected to the root node. D—The node is to be deleted. SPF link, representing the peer node. Link type: • RT2RT—Router to router. • NET2RT—Network to router.
192.168.119.130 Interface: Vlan-interface2 BkNextHop: 1 0.0.0.0 Interface: Vlan-interface2 -->LinkId(114.114.114.111) AdvId : 100.0.0.4 LsId : 192.168.119.130 LinkCost LinkData: 0.0.0.0 LinkType : NET2RT : 0 NextHopCnt: 1 LinkNewCost: 0 LinkFlag : C -->LinkId(100.0.0.4) AdvId : 100.0.0.4 LsId : 192.168.119.130 LinkCost LinkData: 0.0.0.0 LinkType : NET2RT : 0 NextHopCnt: 1 LinkNewCost: 0 LinkFlag : P Table 39 Command output Field Description LsId Link state ID.
Field Description Link flag: • • • • • • LinkFlag I—The link is in initialization state. P—The peer is the parent node. C—The peer is the child node. D—The link is to be deleted. H—The next hop is changed. V—When the peer node is deleted or added, the peer node is not on the SPF tree or is deleted. • N—The link is newly added, and both end nodes are on the SPF tree. • G—The link is on the area change list. display ospf statistics Use display ospf statistics to display OSPF statistics.
LSAs originated by this router Router : 4 Network : 0 Sum-Net : 0 Sum-Asbr: 0 External: 0 NSSA : 0 Opq-Link: 0 Opq-Area: 0 Opq-As : 0 LSAs originated: 4 LSAs received: 7 Routing table: Intra area: 2 Inter area: 3 ASE/NSSA: 0 Table 40 Command output Field Description I/O statistics Statistics about input/output packets and LSAs. Type OSPF packet type. Input Packets received. Output Packets sent. Hello Hell packet. DB Description Database Description packet.
Field Description Inter area Number of inter-area routes. ASE Number of ASE routes. # Display OSPF error statistics. display ospf statistics error OSPF Process 1 with Router ID 192.168.1.
Field Description HELLO: Hello-time mismatch Hello packets with mismatched hello timer. HELLO: Dead-time mismatch Hello packets with mismatched dead timer. HELLO: Ebit option mismatch Hello packets with mismatched E-bit in the option field. DD: MTU option mismatch DD packets with mismatched MTU. DD: Unknown LSA type DD packets with unknown LSA type. DD: Ebit option mismatch DD packets with mismatched E-bit in the option field. ACK: Bad ack Bad LSAck packets for LSU packets.
MD5 authentication enabled. The last key is 3. The rollover is in progress, 2 neighbor(s) left. Table 42 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, 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.
undo dscp Default The DSCP value for outgoing OSPF packets is 48. Views OSPF view Predefined user roles network-admin Parameters dscp-value: Specifies a DSCP value in the range of 0 to 63 for outgoing OSPF packets. Examples # Set the DSCP value for outgoing OSPF packets to 63 in OSPF process 1. system-view [Sysname] ospf 1 [Sysname-ospf-1] dscp 63 enable link-local-signaling Use enable link-local-signaling to enable the OSPF link-local signaling (LLS) capability.
Syntax enable out-of-band-resynchronization undo enable out-of-band-resynchronization Default The OSPF out-of-band resynchronization capability is disabled. Views OSPF view Predefined user roles network-admin Usage guidelines Before you configure this command, enable the link-local signaling capability. Examples # Enable the out-of-band resynchronization capability for OSPF process 1.
Usage guidelines Do not use OSPF FRR and BFD for OSPF at the same time. Otherwise, OSPF FRR might fail to work. Do not use the fast-reroute lfa command together with the vlink-peer command. When both OSPF FRR and PIC are configured, OSPF FRR takes effect. Examples # Enable FRR to calculate a backup next hop for all routes by using LFA algorithm in OSPF process 1. system-view [Sysname] ospf 1 [Sysname-ospf-1] fast-reroute lfa filter (OSPF area view) NOTE: This command is available only on an ABR.
[Sysname-ospf-100] area 1 [Sysname-ospf-100-area-0.0.0.1] filter prefix-list my-prefix-list import [Sysname-ospf-100-area-0.0.0.1] filter 2000 export filter-policy export (OSPF view) Use filter-policy export to configure OSPF to filter redistributed routes. Use undo filter-policy export to remove the configuration.
[Sysname-acl-basic-2000] quit [Sysname] ospf 100 [Sysname-ospf-100] filter-policy 2000 export # Configure ACL 3000 to permit only route 113.0.0.0/16. 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.
• 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. The source keyword specifies the destination address of a route and the destination keyword specifies the subnet mask of the destination address. The specified subnet mask must be contiguous. Otherwise, the mask configuration does not take effect. Examples # Use ACL 2000 to filter received routes.
planned-only: Enables planned only GR. Without this keyword, this command enables both planned GR and unplanned GR. Usage guidelines GR includes planned GR and unplanned GR: • Planned GR—Manually restart OSPF or perform an active/standby switchover. Before OSPF restart or active/standby switchover, the GR restarter sends Grace-LSAs to GR helpers. • Non-planned GR—OSPF restarts or an active/standby switchover occurs because of device failure.
Views OSPF view Predefined user roles network-admin Parameters planned-only: Enable only planned GR for the GR helper. Without this keyword, this command enables both planned GR and unplanned GR for the GR helper. Usage guidelines The planned-only keyword is available only for the IETF GR helper. Examples # Enable GR helper capability for OSPF process 1.
Use undo graceful-restart interval to restore the default GR interval. Syntax graceful-restart interval interval-value undo graceful-restart interval Default The GR interval is 120 seconds. Views OSPF view Predefined user roles network-admin Parameters interval-value: Specifies the GR interval in the range of 40 to 1800 seconds. 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.
cost: Specifies a cost for the route, in the range of 1 to 65535. Examples # Advertise host route 1.1.1.1 with a cost of 100. system-view [Sysname] ospf 100 [Sysname-ospf-100] area 0 [Sysname-ospf-100-area-0.0.0.0] host-advertise 1.1.1.1 100 import-route (OSPF view) Use import-route to redistribute AS-external routes from another routing protocol. Use undo import-route to disable route redistribution from another routing protocol.
tag tag: Specifies a tag for marking external LSAs, in the range of 0 to 4294967295. The default is 1. type type: Specifies a cost type, 1 or 2. The default is 2. Usage guidelines This command redistributes routes destined for other ASs from another protocol. AS external routes include the following types: • Type-1 external route • Type-2 external route A Type-1 external route has high reliability. Its cost is comparable with the cost of OSPF internal routes.
Default OSPF ISPF is enabled. Views OSPF view Predefined user roles network-admin Usage guidelines Upon topology changes, ISPF recomputes only the affected part of the SPT, instead of the entire SPT. Examples # Enable ISPF for OSPF process 100. system-view [Sysname] ospf 100 [Sysname-ospf-100] ispf enable log-peer-change Use log-peer-change to enable the logging of OSPF neighbor state changes. Use undo log-peer-change to disable the logging of OSPF neighbor state changes.
lsa-arrival-interval Use lsa-arrival-interval to specify the LSA arrival interval. Use undo lsa-arrival-interval to restore the default. Syntax lsa-arrival-interval interval undo lsa-arrival-interval Default The LSA arrival interval is 1000 milliseconds. Views OSPF view Predefined user roles network-admin Parameters interval: Specifies the LSA arrival interval in the range of 0 to 60000 milliseconds.
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. Usage guidelines When the number of LSAs in the LSDB exceeds the upper limit, the LSDB is in an overflow state. In this state, OSPF does not receive any external LSAs and deletes the external LSAs generated by itself to save system resources. You can configure the interval that OSPF exits overflow state.
Usage guidelines When network changes are not frequent, LSAs are generated at the minimum-interval. If network changes become frequent, the LSA generation interval is incremented by incremental-interval × 2n-2 (n is the number of generation times) each time a LSA generation occurs until the maximum-interval is reached. The minimum interval and the incremental interval cannot be greater than the maximum interval.
Syntax maximum load-balancing maximum undo maximum load-balancing Views OSPF view Predefined user roles network-admin Parameters maximum: Specifies the maximum number of ECMP routes. No ECMP load balancing is available when the number is set to 1. Usage guidelines The default setting and value range for this command depend on the setting of the max-ecmp-num command.
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. If only the interface's secondary IP address is in the network, the interface cannot run OSPF.
nssa-only: Limits the default route advertisement to the NSSA area by setting the P-bit of Type-7 LSAs to 0. By default, the P-bit of Type-7 LSAs is set to 1. If the router acts as both an ASBR and an ABR and FULL state neighbors exist in the backbone area, the P-bit of Type-7 LSAs originated by the router is set to 0. route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.
Default The feature is enabled. Views OSPF view Predefined user roles network-admin 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 OSPF and enter OSPF view. Use undo ospf to disable OSPF.
[Sysname] ospf 100 router-id 10.10.10.1 [Sysname-ospf-100] ospf area Use ospf area to enable OSPF on an interface. Use undo ospf area to remove the configuration. Syntax ospf process-id area area-id [ exclude-subip ] undo ospf process-id area [ exclude-subip ] Default OSPF is not enabled on an interface. Views Interface view Predefined user roles network-admin Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
For simple authentication: ospf authentication-mode simple { cipher cipher-string | plain plain-string } undo ospf authentication-mode simple Default No authentication is performed. Views Interface view Predefined user roles network-admin Parameters hmac-md5: Specifies HMAC-MD5 authentication. md5: Specifies MD5 authentication. simple: Specifies simple authentication. key-id: Specifies a key by its ID in the range of 1 to 255. cipher: Sets a ciphertext key. cipher-string: Specifies a ciphertext key.
Examples # Enable MD5 authentication for the network 131.119.0.0/16 in Area 1. Set the interface key ID to 15, and plaintext key to 123456. system-view [Sysname] ospf 100 [Sysname-ospf-100] area 1 [Sysname-ospf-100-area-0.0.0.1] network 131.119.0.0 0.0.255.255 [Sysname-ospf-100-area-0.0.0.1] authentication-mode md5 [Sysname-ospf-100-area-0.0.0.
Usage guidelines Do not use OSPF FRR and BFD for OSPF at the same time. Otherwise, OSPF FRR might fail to take effect. Examples # Enable BFD for OSPF on VLAN-interface 11. system-view [Sysname] ospf [Sysname-ospf-1] area 0 [Sysname-ospf-1-area-0.0.0.0] network 192.168.0.0 0.0.255.255 [Sysname] interface vlan-interface 11 [Sysname-Vlan-interface11] ospf bfd enable ospf cost Use ospf cost to set an OSPF cost for an interface. Use undo ospf cost to restore the default.
Use undo ospf dr-priority to restore the default value. Syntax ospf dr-priority priority undo ospf dr-priority Default The router priority is 1. Views Interface view Predefined user roles network-admin Parameters priority: Specifies 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.
Deleting an OSPF process that has been bound to MIB also unbinds the OSPF process from MIB, and re-binds MIB to the OSPF process with the smallest process ID. 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. Syntax ospf mtu-enable undo ospf mtu-enable Default The MTU in DD packets is 0.
• 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. Views Interface view Predefined user roles network-admin Parameters broadcast: Specifies the network type as broadcast. nbma: Specifies the network type as NBMA. p2mp: Specifies the network type as P2MP. unicast: Specifies the P2MP interface to unicast OSPF packets. By default, a P2MP interface multicasts OSPF packets.
Syntax ospf prefix-suppression [ disable ] undo ospf prefix-suppression Default Prefix suppression is disabled. Views Interface view Predefined user roles network-admin Parameters disable: Disables prefix suppression on an interface. Usage guidelines To disable prefix suppression on an interface associated with an OSPF process that has been enabled with prefix suppression, execute the ospf prefix-suppression disable command on that interface. For more information, see "prefix-suppression.
Usage guidelines If an interface receives no hello packet from a neighbor within the dead interval, the interface considers the neighbor down. The dead interval on an interface is at least four times the hello interval. Routers attached to the same segment must have the same dead interval. Examples # Configure the dead interval for VLAN-interface 10 as 60 seconds.
ospf timer poll Use ospf timer poll to set the poll interval on an NBMA interface. Use undo ospf timer poll to restore the default. Syntax ospf timer poll seconds undo ospf timer poll Default The poll interval is 120 seconds on an interface. Views Interface view Predefined user roles network-admin Parameters seconds: Specifies the poll interval in the range of 1 to 2147483647 seconds. Usage guidelines When an NBMA interface finds its neighbor is down, it sends hello packets at the poll interval.
Predefined user roles network-admin Parameters interval: Specifies the LSA retransmission interval in the range of 1 to 3600 seconds. Usage guidelines After sending an LSA, an interface waits for an acknowledgement packet. If the interface receives no acknowledgement within the retransmission interval, it retransmits the LSA. To avoid unnecessary retransmissions, set an appropriate retransmission interval. For example, you can set a large retransmission interval value on a low-speed link.
peer Use peer to specify a neighbor in an NBMA or P2MP network. Use undo peer to remove the configuration. Syntax peer ip-address [ cost value | dr-priority dr-priority ] undo peer ip-address Default No neighbor is specified. Views OSPF view Predefined user roles network-admin Parameters ip-address: Specifies a neighbor by its IP address. cost value: Specifies the cost to reach the neighbor, in the range of 1 to 65535.
Syntax pic [ additional-path-always ] undo pic Default OSPF PIC is enabled. Views OSPF view Predefined user roles network-admin Parameters additional-path-always: Allows the indirect suboptimal route as the backup route. Usage guidelines Prefix Independent Convergence (PIC) enables the device to speed up network convergence by ignoring the number of prefixes. PIC applies to only inter-area routes and external routes. When both OSPF PIC and OSPF FRR are configured, OSPF FRR takes effect.
value: Specifies the preference value in the range of 1 to 255. The smaller the value, the higher the preference. Usage guidelines If multiple routing protocols find routes to the same destination, the router uses the route found by the protocol with the highest preference. Examples # Set a preference of 200 for OSPF external routes. system-view [Sysname] ospf 100 [Sysname-ospf-100] preference ase 200 # Use a routing policy to set a preference of 100.
Examples # Use a routing policy to assign the medium priority to the specified route prefixes. system-view [Sysname] ip prefix-list test index 10 permit 100.1.1.
Related commands ospf prefix-suppression reset ospf counters Use reset ospf counters to clear OSPF statistics. Syntax reset ospf [ process-id ] counters Views User view Predefined user roles network-admin Parameters process-id: Clears the statistics for an OSPF process specified by its ID in the range of 1 to 65535. Examples # Clear OSPF statistics for all processes. reset ospf counters reset ospf process Use reset ospf process to restart all OSPF processes or a specified process.
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. Syntax reset ospf [ process-id ] redistribution Views User view Predefined user roles network-admin Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. Usage guidelines If no process ID is specified, this command restarts route redistribution for all OSPF processes.
1. Selects the route with the highest preference: { { If RFC 2328 is compatible with RFC 1583, all these routes have equal preference. If RFC 2328 is not compatible with RFC 1583, the intra-area route in a non-backbone area is preferred to reduce the burden of the backbone area. The inter-area route and intra-area route in the backbone area have equal preference. 2. Selects the route with lower cost if two routes have equal preference. 3.
after a physical interface address is selected as the router ID, or a higher interface IP address is configured as the router ID. After a router ID is changed, you must use the reset command to enable it. Examples # Configure a global router ID as 1.1.1.1. 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 snmp-agent trap enable ospf [ authentication-failure | bad-packet | config-error | grhelper-status-change | grrestarter-status-change | if-state-change | lsa-maxage | lsa-originate | lsdb-approaching-overflow | lsdb-overflow | neighbor-state-change | nssatranslator-status-change | retransmit | virt-authentication-failure | virt-bad-packet | virt-config-error | virt-retransmit | virtgrhelper-status-change | virtif-state-change | virtneighbor-state-change ] * undo snmp-agent trap enable ospf [ authenti
virtneighbor-state-change: Specifies notifications about the neighbor state change of a virtual interface. Examples # Disable SNMP notifications for OSPF. system-view [Sysname] undo snmp-agent trap enable ospf snmp trap rate-limit Use snmp trap rate-limit to configure the maximum number of output SNMP notifications within a specified time interval. Use undo snmp trap rate-limit to restore the default.
Views OSPF view Predefined user roles network-admin Parameters maximum-interval: Specifies the maximum OSPF SPF calculation interval in the range of 1 to 60 seconds. minimum-interval: Specifies the minimum OSPF SPF calculation interval in the range of 10 to 60000 milliseconds. incremental-interval: Specifies the incremental OSPF SPF calculation interval in the range of 10 to 60000 milliseconds.
Parameters default-route-advertise-always: Used only on a stub ABR. With this keyword, the ABR advertises a default route in a Type-3 LSA into the stub area regardless of whether FULL-state neighbors exist in the backbone area. Without this keyword, the ABR advertises a default route in a Type-3 LSA into the stub area only when at least one FULL-state neighbor exists in the backbone area. no-summary: Used only on a stub ABR.
wait-for-bgp seconds: Specifies the router as a stub router during BGP route convergence after reboot, and specifies the timeout time in the range of 5 to 86400 seconds. The default timeout time is 600 seconds. summary-lsa max-metric-value: Specifies a cost for the Type-3 LSAs, in the range of 1 to 16777215. The default cost value is 16711680. Usage guidelines The router LSAs sent by the stub router over different links contain different link type values.
[Sysname] ospf 1 [Sysname-ospf-1] transmit-pacing interval 30 count 10 vlink-peer (OSPF area view) Use vlink-peer to configure a virtual link. Use undo vlink-peer to remove a virtual link.
Usage guidelines As defined in RFC 2328, all non-backbone areas must maintain connectivity to the backbone. You can use the vlink-peer command to configure a virtual link to connect an area to the backbone. When you configure this command, follow these guidelines: • The smaller the hello interval is, the faster the network converges, and the more network resources are consumed. • A retransmission interval that is too small can cause unnecessary retransmissions.
BGP commands address-family ipv4 Use address-family ipv4 to create the BGP IPv4 unicast address family or BGP-VPN IPv4 unicast address family and enter its view. Use undo address-family ipv4 to remove the BGP IPv4 unicast address family or BGP-VPN IPv4 unicast address family and all configurations in address family view. Syntax address-family ipv4 [ unicast ] undo address-family ipv4 [ unicast ] Default The BGP IPv4 unicast address family or the BGP-VPN IPv4 unicast address family is not created.
address-family ipv6 Use address-family ipv6 to create the BGP IPv6 unicast address family or BGP-VPN IPv6 unicast address family and enter its view. Use undo address-family ipv6 to remove the BGP IPv6 unicast address family or BGP-VPN IPv6 unicast address family and all configurations in address family view. Syntax address-family ipv6 [ unicast ] undo address-family ipv6 [ unicast ] Default The BGP IPv6 unicast address family or BGP-VPN IPv6 unicast address family is not created.
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.
Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast address family view Predefined user roles network-admin Parameters ip-address: Specifies a summary address. mask: Specifies a mask for the summary address, in dotted decimal notation. mask-length: Specifies a mask length for the summary address, in the range of 0 to 32. ipv6-address: Specifies an IPv6 summary address.
Keywords Function attribute-policy Sets attributes except the AS-PATH attribute for the summary route. The peer route-policy command can achieve the same purpose. detail-suppressed Disables advertisement of all more specific routes. To disable advertisement of some more specific routes, use the suppress-policy keyword or the peer filter-policy command. Summarizes only routes matching a routing policy.
[Sysname-route-policy-srcrt-0] quit [Sysname] bgp 100 [Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] aggregate 1.1.0.0 255.255.0.0 origin-policy srcrt # In BGP IPv4 unicast address family view, create a summary route 1.1.0.0/16 in the BGP routing table, and disable BGP to advertise the specific route 1.1.1.0/24. system-view [Sysname] ip prefix-list spert permit 1.1.1.0 24 [Sysname] ip prefix-list spert deny 0.0.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 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. Instead, it implements load balancing by modifying route selection rules.
undo bestroute as-path-neglect Default BGP considers the AS_PATH during best route selection. 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 Examples # In BGP IPv4 unicast address family view, ignore AS_PATH in route selection.
With the bestroute compare-med command configured, the router puts routes received from the same AS into a group. The router then selects the route with the lowest MED from the same group, and compares routes from different groups. This mechanism avoids the above-mentioned problem. Examples # In BGP IPv4 unicast address family view, enable MED comparison for routes on a per-AS basis.
number 65008 that does not belong to the confederation, BGP does not compare it with other routes. As a result, the first route becomes the optimal route. Examples # In BGP IPv4 unicast address family view, enable MED comparison for routes received from confederation peers.
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. Use undo compare-different-as-med to disable the comparison. Syntax compare-different-as-med undo compare-different-as-med Default The comparison is disabled.
[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. Syntax confederation id as-number undo confederation id Default No confederation ID is configured. Views BGP view Predefined user roles network-admin Parameters as-number: Specifies an AS number that identifies the confederation, in the range of 1 to 4294967295.
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 nonstandard to restore the default. Syntax confederation nonstandard undo confederation nonstandard Default The device is compatible with only routers compliant with RFC 3065 in the confederation.
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>. The as-number argument specifies a sub-AS number in the range of 1 to 4294967295, and &<1-32> indicates up to 32 numbers can be specified.
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. reuse: Specifies a reuse threshold value for suppressed routes, in the range of 1 to 20000. A suppressed route whose penalty value decreases under the value is reused. By default, the reuse value is 750.
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.
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.
# In BGP-VPN IPv6 unicast address family view, enable default route redistribution from OSPFv3 process 1 into the IPv6 BGP routing table.
Field Description Reuse value Reuse threshold. Related commands dampening display bgp dampening parameter ipv6 unicast Use display bgp dampening parameter ipv6 unicast to display BGP IPv6 unicast route dampening parameters.
display bgp group ipv4 unicast Use display bgp group ipv4 unicast to display BGP IPv4 unicast peer group information. 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 instance by its name, a case-sensitive string of 1 to 31 characters.
Routing policy configured: No routing policy is configured Members: Peer 1.1.1.10 AS MsgRcvd 600 0 MsgSent OutQ PrefRcv Up/Down 0 0 State 0 00:00:55 Established Table 46 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.
Syntax display bgp group ipv6 [ 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 instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, the command displays BGP IPv6 unicast peer group information for the public network.
No routing policy is configured Members: 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 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.
Syntax display bgp network { ipv4 | ipv6 } [ unicast ] [ vpn-instance vpn-instance-name ] 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.
Local AS number: 100 Network Mask 50.1.1.0 255.255.255.0 Route-policy Short-cut No 40.1.1.0 255.255.255.0 Yes Table 48 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. Indicates whether the route is a shortcut route: • Yes. • No.
Table 49 Command output Field Description RefCount Number of BGP routes with these path attributes. 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 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 50 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 51 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. ip-address: Specifies a peer by its IP address. 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 instance by its name, a case-sensitive string of 1 to 31 characters.
Field Description Up/Down Lasting time of the current BGP session state. State Current state of the BGP session between the local router and the peer. # Display detailed information about BGP IPv6 unicast peer 1::2 for the public network. 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 BGP current state Current state of the BGP session between the local router and the peer. Up for Lasting time of the BGP session. BGP current event Current event of the BGP session between the local router and the peer. BGP last state Previous state of the BGP session. Port TCP port numbers of the local router and its peer. Configured Timer configured on the local router in seconds, including the holdtime (Active Hold Time) and keepalive interval (Keepalive Time).
Table 55 Command output Field Description Peer IP address of the peer. Date Date on which the Notification was sent or received. Time Time at which the Notification was sent or received. BGP session state: State • Up—The BGP session is in Established state. • Down—The BGP session is down. Error code of the Notification, indicating the cause of why the BGP session is down. Notification Error/SubError • Error—Refers to the error code, which identifies the type of the Notification.
de 20.1.1.0/24 10.1.1.2 00:56:27 100i Table 56 Command output Field Description Status codes: Status codes • • • • • • • • * – valid—Valid route. > – best—Best route. d – dampened—Dampened route. 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.
Parameters 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 instance 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.
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 : 10.1.1.1 Flaps : 5 Duration: 00:03:25 Reuse : 00:39:28 Path/Ogn: 100i de Network : 2:: From PrefixLen : 64 : 1::1 Duration: 00:03:25 Flaps : 5 Reuse : 00:39:28 Path/Ogn: 100i Table 59 Command output Field Description Status codes: Status codes • • • • • • • • * – valid—Valid route. > – best—Best route. d – dampened—Dampened route. h – history—History route. s – suppressed—Suppressed route.
display bgp routing-table ipv4 unicast Use display bgp routing-table ipv4 unicast to display BGP IPv4 unicast routing information. 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 instance by its name, a case-sensitive string of 1 to 31 characters.
s - suppressed, S - stale, i - internal, e - external Origin: i - IGP, e - EGP, ? - incomplete * > Network NextHop MED 10.2.1.0/24 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 e * > * 192.168.1.0 e LocPrf PrefVal Path/Ogn Table 60 Command output Field Description Status codes: Status codes • • • • • • • • * – valid—Valid route. > – best—Best route. d – dampened—Dampened route. h – history—History route. s – suppressed—Suppressed route.
Imported route. Original nexthop: 10.2.1.1 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 61 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.
BGP routing table information of 10.2.1.0/24: Advertised to peers (1 in total): 10.2.1.2 Table 62 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 60. 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 60. 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 - dampened, 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 instance 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 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 Origin of the route: • igp—Originated in the AS. The origin of summary routes and routes advertised with the network command is IGP. Origin • egp—Learned through EGP. • incomplete—Unknown origin. The origin of routes redistributed from IGP protocols is INCOMPLETE. BGP path attributes: Attribute value • • • • MED—MED value. localpref—Local preference value. pref-val—Preferred value. pre—Route preference. Current state of the route: • • • • • State valid. internal. external.
display bgp routing-table ipv6 unicast as-path-acl Use display bgp routing-table ipv6 unicast as-path-acl to display BGP IPv6 unicast routes permitted by an AS path list. Syntax display bgp routing-table ipv6 [ unicast ] [ vpn-instance vpn-instance-name ] as-path-acl as-path-acl-number 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.
Related commands ip as-path display bgp routing-table ipv6 unicast community-list Use display bgp routing-table ipv6 unicast community-list to display BGP IPv6 unicast routing information matching a specified BGP community list.
Path/Ogn: 100i * >e Network : 3:: PrefixLen : 64 NextHop : 1::2 LocPrf : PrefVal : 0 OutLabel : NULL MED : Path/Ogn: 100i For command output, see Table 64. Related commands ip community-list display bgp routing-table ipv6 unicast inlabel Use display bgp routing-table ipv6 unicast inlabel to display incoming labels for BGP IPv6 unicast routing information.
Table 67 Command output Field Description Status codes Status codes. For more information, see Table 64. Origin Origin of the route. For more information, see Table 64. Network Destination network address. PrefixLen Prefix length of the destination network address. NextHop Next hop IPv6 address. display bgp routing-table ipv6 unicast outlabel Use display bgp routing-table ipv6 unicast outlabel to display outgoing labels for BGP IPv6 unicast routing information.
Field Description Origin Origin of the route. For more information, see Table 64. Network Destination network address. PrefixLen Prefix length of the destination network address. NextHop Next hop IPv6 address. 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.
BGP local router ID is 192.168.1.136 Status codes: * - valid, > - best, d - dampened, h - history, s - suppressed, S - stale, i - internal, e - external Origin: i - IGP, e - EGP, ? - incomplete * > Network : 2:: PrefixLen : 64 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.
Syntax display bgp routing-table ipv6 [ 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 instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, the command displays the BGP IPv6 unicast route statistics for the public network.
With this feature, BGP performs one-time policy filtering and encapsulation for a prefix before advertising the prefix to all the peers in the update group. For example, BGP advertises 1000 prefixes to 1000 peers that have the same export policy (in data centers for example). Without the update group feature, BGP matches the export policy 1000 × 1000 times. With the update group feature, BGP matches the export policy only 1000 × 1 times, improving encapsulation efficiency 1000 times.
Field Description Fake AS: number A fake local AS number is configured for the peers in the update group. Public-AS-Only: Yes BGP route updates advertised to the peers in the update group only carry the public AS number without the private AS number. Substitute-AS: Yes AS number substitution is enabled. Minimum time between advertisements: number seconds Minimum time between advertisements. Advertising community: Yes Community advertisement to peers in the update group is enabled.
vpn-instance vpn-instance-name: Displays BGP IPv6 unicast address family update group information for the MPLS L3VPN instance specified by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, the command displays BGP IPv6 unicast address family update group information for the public network. Usage guidelines If no parameters are specified, this command displays all BGP IPv6 unicast address family update group information for the public network.
Table 71 Command output Field Description Update-group ID ID of the update group. BGP link type: Type • • • • IBGP link. EBGP link. Confed IBGP link—Confederation IBGP link. Confed EBGP link—Confederation EBGP link. Label capability: Supported The peers in the update group support labeled routes. 4-byte AS number: Supported 4-byte AS number suppression is disabled for the peers in the update group. The peers in the update group support 4-byte AS numbers.
ebgp-interface-sensitive Use ebgp-interface-sensitive to enable quick reestablishment of direct EBGP sessions. Use undo ebgp-interface-sensitive to disable the function. Syntax ebgp-interface-sensitive undo ebgp-interface-sensitive Default Quick reestablishment of direct EBGP sessions is enabled. Views BGP view Predefined user roles network-admin Usage guidelines This command enables BGP to quickly handle direct EBGP link failures.
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 acl-number: Specifies an IPv4 ACL by its number in the range of 2000 to 3999 to match routes by destination. acl6-number: Specifies an IPv6 ACL by its number in the range of 2000 to 3999 to match routes by destination.
[Sysname-bgp-ipv4] filter-policy 2000 export # In BGP-VPN IPv6 unicast address family view, use ACL 2000 to filter advertised BGP IPv6 routes. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] address-family ipv6 unicast [Sysname-bgp-ipv6-vpn1] filter-policy 2000 export # Configure ACL 3000 to permit only route 113.0.0.0/16 to pass, and use ACL 3000 to filter advertised BGP routes.
Predefined user roles network-admin Parameters acl-number: Specifies an ACL by its number in the range of 2000 to 3999 to match routes by destination. acl6-number: Specifies an ACL6 by its number in the range of 2000 to 3999 to match routes by destination. prefix-list prefix-list-name: Specifies an IPv4 prefix list by its name, a case-sensitive string of 1 to 63 characters, to match routes by destination.
[Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] filter-policy 3000 import Related commands • filter-policy export • peer as-path-acl • peer filter-policy • peer prefix-list • peer route-policy graceful-restart Use graceful-restart to enable BGP Graceful Restart capability. Use undo graceful-restart to disable BGP Graceful Restart capability. Syntax graceful-restart undo graceful-restart Default BGP Graceful Restart capability is disabled.
graceful-restart timer restart Use graceful-restart timer restart to configure the GR timer. Use undo graceful-restart timer restart to restore the default. Syntax graceful-restart timer restart timer undo graceful-restart timer restart Default The GR timer is 150 seconds. Views BGP view Predefined user roles network-admin Parameters timer: Specifies the GR time in the range of 3 to 600 seconds. Usage guidelines The GR restarter sends the GR timer to the GR helper in an Open message.
Default The time to wait for the End-of-RIB marker is 180 seconds. Views BGP view Predefined user roles network-admin Parameters timer: Specifies the time to wait for the End-of-RIB marker, in the range of 3 to 3600 seconds. Usage guidelines BGP uses this timer to control the time to receive updates from the peer. The timer is not advertised to the peer. After the GR restarter and GR helper reestablish a BGP session, they start this timer.
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. Usage guidelines In a large-scale network, many peers can use the same route selection policy. You can configure a peer group and add these peers into this group. In this way, peers can share the same policy as the peer group.
[Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] group test external [Sysname-bgp-vpn1] peer test as-number 200 [Sysname-bgp-vpn1] peer 1::1 group test [Sysname-bgp-vpn1] peer 1::2 group test Related commands • display bgp group ipv4 unicast • display bgp group ipv6 unicast • peer enable • peer group ignore-first-as Use ignore-first-as to configure BGP to ignore the first AS number of EBGP route updates. Use undo ignore-first-as to restore the default.
In BGP IPv6 unicast address family view/BGP-VPN IPv6 unicast address family view: import-route protocol [ process-id [ allow-direct | med med-value | route-policy route-policy-name ] * ] undo import-route protocol [ process-id ] Default BGP does not redistribute IGP routes.
[Sysname-bgp-ipv4] import-route ospf 1 med 100 Related commands • display ip routing-table protocol • display ipv6 routing-table protocol ip vpn-instance (BGP view) Use ip vpn-instance to enter BGP-VPN instance view. Use undo ip vpn-instance to remove all configurations in BGP-VPN instance view.
log-peer-change Use log-peer-change to enable the logging of BGP session state changes. Use undo log-peer-change to disable the function. Syntax log-peer-change undo log-peer-change Default Logging of BGP session state changes is enabled. Views BGP view Predefined user roles network-admin Usage guidelines After you execute the log-peer-change command, BGP logs session establishment and disconnection events.
undo network ipv6-address prefix-length Default BGP does not advertise any local network. 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 ip-address: Specifies an IPv4 network address. If the mask or mask-length is not specified, natural mask is used. mask: Specifies a mask in dotted decimal notation.
# In BGP-VPN IPv6 unicast address family view, inject local network 2002::/64 to the IPv6 BGP routing table. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] address-family ipv6 unicast [Sysname-bgp-ipv6-vpn1] network 2002:: 64 network short-cut Use network short-cut to increase the preference for a received EBGP route. This EBGP route is called shortcut route. Use undo network short-cut to cancel the configuration.
network shortcut command to configure the EBGP route to have the same preference as the local route so the EBGP route is more likely to become the optimal route. You can use the preference command to modify the preferences for external and local BGP routes. Examples # In BGP IPv4 unicast address family view, increase the preference of EBGP route 10.0.0.0/16. system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] network 10.0.0.0 255.255.0.
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 The COMMUNITY attribute is a group of specific data carried in update messages. A route can carry one or more COMMUNITY attribute values (each is represented by a 4-byte integer).
undo peer { group-name | ip-address } advertise-ext-community In BGP IPv6 unicast address family view: peer { group-name | ipv6-address } advertise-ext-community undo peer { group-name | ipv6-address } advertise-ext-community Default No extended community attribute is advertised to a peer or peer group.
# In BGP IPv6 unicast address family view, advertise the extended community attribute to peer group test.
number: Specifies the number of times for which the local AS number can appear, in the range of 1 to 10. The default number is 1. If the number of times for which the local AS number appears in a route is more than the specified number, BGP considers that a routing loop occurs and discards the route. Usage guidelines By default, BGP does not receive routes that contain the local AS number in the AS_PATH attribute to avoid routing loops.
Usage guidelines You can also create a peer and add it to a peer group by using the peer group command. To modify the AS number of a peer, do not execute the peer as-number command repeatedly. Instead, you must first delete the peer and configure it again. After you create a peer, you must use the peer enable command to enable BGP to exchange routing information with the specified peer. Examples # In BGP view, create BGP peer 1.1.1.1 and specify its AS number as 100.
Usage guidelines • This command applies to only a peer group with no peers in it. • When you specify an AS number for a peer group and want to add peers to it, make sure the AS number of the peers is the same as the peer group. • If you have specified no AS number for a peer group, peers added to it can use their own AS numbers. Examples # In BGP view, specify the AS number for peer group test as 100.
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. ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created. as-path-acl-number: Specifies an AS path list by its number in the range of 1 to 256. export: Filters outgoing routes. import: Filters incoming routes.
Use undo peer bfd to restore the default. Syntax peer { ip-address | ipv6-address } bfd [ multi-hop | single-hop ] undo peer { ip-address | ipv6-address } bfd Default BFD is disabled. Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters 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. multi-hop: Enables multi-hop BFD. single-hop: Enables single-hop BFD.
[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.
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.1.1 capability-advertise conventional # In BGP-VPN instance view, disable multi-protocol extension and route refresh for peer 1::1.
policy. This method allows you to refresh the BGP routing table and apply the new route selection policy without tearing down BGP sessions. BGP route refresh requires that both the local router and the peer support route refresh. If both the peer capability-advertise route-refresh and peer capability-advertise conventional commands are executed, the last configuration takes effect. Examples # In BGP view, enable BGP route refresh for peer 1.1.1.1.
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. By default, a device sends an Open message to the peer device for session establishment. The Open message indicates that the device supports 4-byte AS numbers.
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. interface-type interface-number: Specifies an interface by its type and number.
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.
[Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] address-family ipv4 unicast [Sysname-bgp-ipv4-vpn1] peer test default-route-advertise # In BGP IPv6 unicast address family view, advertise a default route to peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv6 unicast [Sysname-bgp-ipv6] peer test default-route-advertise peer description Use peer description to configure a description for a peer or peer group.
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. Syntax peer { group-name | ip-address | ipv6-address } ebgp-max-hop [ hop-count ] undo peer { group-name | ip-address | ipv6-address } ebgp-max-hop Default BGP does not establish an EBGP session to an indirectly-connected 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.
The undo peer enable command disables BGP to exchange routing information for the corresponding address family with the peer. Examples # In BGP IPv4 unicast address family view, enable BGP to exchange IPv4 unicast routing information with peer 1.1.1.1. system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] peer 1.1.1.1 enable # In BGP-VPN IPv4 unicast address family view, enable BGP to exchange IPv4 unicast routing information with peer 1.1.1.1.
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. as-number: Specifies a fake AS number in the range of 1 to 4294967295.
In BGP-VPN IPv6 unicast address family view: peer { group-name | ipv6-address } filter-policy acl6-number { export | import } undo peer { group-name | ipv6-address } filter-policy { export | import } Default No ACL-based filtering is configured.
# In BGP-VPN IPv6 unicast address family view, apply ACL6 2000 to filter routes advertised to the peer group test.
{ { • If you have specified the AS number of the peer group with the peer as-number command, the peer to be added must have the same AS number as the peer group. To add a peer to an IBGP peer group, the peer must be an IBGP peer. Use the peer group command to create a peer and add it to the peer group.
Related commands • group • peer as-number • peer enable peer ignore Use peer ignore to disable BGP session establishment with a peer or peer group. Use undo peer ignore to restore the default. Syntax peer { group-name | ip-address | ipv6-address } ignore undo peer { group-name | ip-address | ipv6-address } ignore Default BGP can establish a session to a peer or peer group.
[Sysname-bgp-vpn1] peer 1::1 ignore peer ignore-originatorid Use peer ignore-originatorid to configure BGP to ignore the ORIGINATOR_ID attribute in BGP route updates. Use undo peer ignore-originatorid to restore the default. Syntax peer { group-name | ip-address | ipv6-address } ignore-originatorid undo peer { group-name | ip-address | ipv6-address } ignore-originatorid Default BGP does not ignore the ORIGINATOR_ID attribute in BGP route updates.
peer keep-all-routes Use peer keep-all-routes to save all route updates from a peer or peer group, regardless of whether the routes have passed the configured routing policy. Use undo peer keep-all-routes to restore the default.
[Sysname-bgp-ipv4-vpn1] peer 1.1.1.1 keep-all-routes # In BGP IPv6 unicast address family view, save all route updates from peer 1::1.
[Sysname] bgp 100 [Sysname-bgp] peer 1.1.1.1 as-number 200 [Sysname-bgp] peer 1.1.1.1 low-memory-exempt # In BGP-VPN instance view, configure BGP to protect EBGP peer 1.1.1.1 when the memory usage reaches level 2 threshold. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] peer 1.1.1.1 as-number 200 [Sysname-bgp-vpn1] peer 1.1.1.
Examples # In BGP IPv4 unicast address family view, specify the router as the next hop for routes sent to peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] peer test next-hop-local # In BGP-VPN IPv4 unicast address family view, specify the router as the next hop for routes sent to peer group test.
password: Specifies a password, a case-sensitive string of 33 to 137 characters in cipher text, or 1 to 80 characters in plain text. Usage guidelines You can enable MD5 authentication to enhance security using the following methods: • Perform MD5 authentication when establishing TCP connections. Only the two parties that have the same password configured can establish TCP connections. • Perform MD5 calculation on TCP segments to avoid modification to the encapsulated BGP packets.
In BGP-VPN IPv6 unicast address family view: peer { group-name | ipv6-address } preferred-value value undo peer { group-name | ipv6-address } preferred-value Default The preferred 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 group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters.
• route-policy peer prefix-list Use peer prefix-list to reference a prefix list to filter routes received from or advertised to a peer or peer group. Use undo peer prefix-list to remove the configuration.
Examples # In BGP IPv4 unicast address family view, use the IPv4 prefix list list1 to filter routes advertised to the peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] peer test prefix-list list1 export # In BGP-VPN IPv6 unicast address family view, use the IPv6 prefix list list1 to filter routes advertised to the peer group test.
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 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.
Syntax In BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view: peer { group-name | ip-address } reflect-client undo peer { group-name | ip-address } reflect-client In BGP IPv6 unicast address family view: peer { group-name | ipv6-address } reflect-client undo peer { group-name | ipv6-address } reflect-client Default Neither the route reflector nor the client is configured.
peer route-limit Use peer route-limit to specify the maximum number of routes that can be received from a peer or peer group. Use undo peer route-limit to restore the default.
reconnect reconnect-time: Specifies a reconnect time, after which, the router re-establishes a session to the peer or peer group when the number of routes received from the peer or peer group reaches the prefix-number. The value range for the reconnect-time argument is 1 to 65535 seconds.
peer { group-name | ipv6-address } route-policy route-policy-name { export | import } undo peer { group-name | ipv6-address } route-policy { export | import } Default No routing policy is applied to routes from/to the peer or peer group.
• peer prefix-list • route-policy peer route-update-interval Use peer route-update-interval to specify an interval for sending the same update to a peer or peer group. Use undo peer route-update-interval to restore the default.
peer substitute-as Use peer substitute-as to replace the AS number of a peer or peer group in the AS_PATH attribute with the local AS number. Use undo peer substitute-as to restore the default. Syntax peer { group-name | ip-address | ipv6-address } substitute-as 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.
Syntax peer { group-name | ip-address | ipv6-address } timer keepalive keepalive hold holdtime undo peer { group-name | ip-address | ipv6-address } timer Default The keepalive interval is 60 seconds, and the holdtime is 180 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. The peer group must have been created. ip-address: Specifies a peer by its IP address.
# In BGP view, configure both the keepalive interval and holdtime for peer group test as 0 seconds, indicating the session will never time out. system-view [Sysname] bgp 100 [Sysname-bgp] peer test timer keepalive 0 hold 0 # In BGP-VPN instance view, configure both the keepalive interval and holdtime for peer group test as 0 seconds, indicating the session will never time out.
Configuring the preferences for BGP routes changes the possibility for the routes to become the optimal route. To reference a routing policy to set the preference, you must configure the preference with the apply preference command in the routing policy in advance. Otherwise, all matching routes use the default preference. Examples # In BGP IPv4 unicast address family view, configure preferences for EBGP, IBGP, and local routes as 20, 20, and 200.
Predefined user roles network-admin Usage guidelines When a route reflector is configured, and the clients of a route reflector are fully meshed, route reflection is unnecessary because it consumes more bandwidth resources. You can use the undo reflect between-clients command to disable route reflection instead of modifying network configuration or changing network topology. After route reflection is disabled between clients, routes can still be reflected between a client and a non-client.
Predefined user roles network-admin Parameters cluster-id: Specifies the cluster ID in the format of an integer, in the range of 1 to 4294967295. 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.
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.
refresh bgp ipv6 unicast Use refresh bgp ipv6 unicast to manually soft-reset BGP sessions for the IPv6 unicast address family. 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.
• peer keep-all-routes 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 apply 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 the network-address, mask, and mask-length arguments are not specified, the command clears all BGP IPv4 unicast route dampening information of the public network or the specified VPN, and releases all suppressed BGP IPv4 unicast routes. • 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.
Related commands • dampening • display bgp routing-table dampened ipv6 unicast reset bgp flap-info ipv4 unicast Use reset bgp flap-info ipv4 unicast to clear the flap statistics of BGP IPv4 unicast routes.
Related commands • dampening • display bgp routing-table flap-info ipv4 unicast reset bgp flap-info ipv6 unicast Use reset bgp flap-info ipv6 unicast to clear the flap statistics of BGP IPv6 unicast routes.
Views User view Predefined user roles network-admin 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.
internal: Resets all the IBGP sessions of IPv6 unicast address family. 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 instance is specified, this command resets the BGP sessions for IPv6 unicast address family for the public network. Usage guidelines To apply 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.
Examples # Configure a global router ID as 1.1.1.1. system-view [Sysname] router id 1.1.1.1 Related commands router-id router-id (BGP view) Use router-id to configure a router ID for BGP. Use undo router-id to remove the router ID for BGP. Syntax router-id router-id undo router-id Default BGP uses the global router ID configured by router id in system view. Views BGP view Predefined user roles network-admin Parameters router-id: Specifies a router ID for BGP, in IP address format.
router-id (BGP-VPN instance view) Use router-id to configure a router ID for a BGP VPN instance. Use undo router-id to remove the router ID for a BGP VPN instance. Syntax router-id { router-id | auto-select } undo router-id Default A BGP VPN instance uses the router ID configured in BGP view. If no router ID is configured in BGP view, the BGP VPN instance uses the global router ID configured in system view.
Related commands • router-id (system view) • router-id (BGP view) snmp-agent trap enable bgp Use snmp-agent trap enable bgp to enable SNMP notifications for BGP. Use undo snmp-agent trap enable bgp to disable SNMP notifications for BGP. Syntax snmp-agent trap enable bgp undo snmp-agent trap enable bgp Default SNMP notifications for BGP are enabled.
Predefined user roles network-admin Usage guidelines After the summary automatic command is configured, BGP summarizes IGP subnets redistributed by the import-route command. Automatic summary routes can be manually summarized, but cannot be added to the IP routing table. Examples # In BGP IPv4 unicast address family view, configure automatic route summarization for redistributed IGP subnet routes.
Usage guidelines After establishing a BGP session, two routers send keepalive messages at the specified keepalive interval to each other to keep the session. If a router receives no keepalive or update message from the peer within the holdtime, it tears down the session. Use the timer command to configure the keepalive interval and holdtime for all BGP peers. Use the peer timer command to configure the keepalive interval and holdtime for a peer or peer group.
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 ] { ip-address [ direct ] }&<1-n> 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.
Parameters interface-type interface-number: Specifies an interface by its type and number. Examples # Display PBR configuration and statistics on VLAN-interface 1. display ip policy-based-route interface Vlan-interface 1 Policy based routing information for interface Vlan-interface1: Policy name: aaa node 0 deny: Matched: 0 node 1 permit: if-match acl 3999 Matched: 0 node 2 permit: if-match acl 2000 apply next-hop 2.2.2.2 Matched: 0 node 5 permit: if-match acl 3101 apply next-hop 1.1.1.
Field Description apply next-hop Specify a next hop for permitted packets. Matched: 0 Total matched Number of successful matches on the node . Total number of successful matches on all nodes. Related commands reset ip policy-based-route statistics display ip policy-based-route local Use display ip policy-based-route local to display local PBR configuration and statistics.
Table 74 Command output Field Description Policy based routing information for local Local PBR configuration and statistics. node 0 deny/node 2 permit Match mode of the node: permit or deny. if-match acl Match packets against the ACL. apply next-hop Specify a next hop for permitted packets. Matched: 0 Number of successful matches on the node. Total matched Total number of successful matches on all nodes.
Syntax if-match acl { acl-number | name acl-name } undo if-match acl Default No ACL match criterion is configured. Views Policy node view Predefined user roles network-admin Parameters acl-number: Specifies an ACL by its number in the range of 2000 to 2999 for a basic ACL, and in the range of 3000 to 3999 for an advanced ACL. name acl-name: Specifies an ACL by its name, a case-insensitive string of 1 to 63 characters starting with letter a to z or A to Z. The ACL name cannot be all.
Usage guidelines You can apply only one policy locally. Before you apply a new policy, you must first remove the current policy. Local PBR is used to route locally generated packets. Do not configure local PBR unless required. Examples # Configure local PBR based on policy aaa.
policy-based-route Use policy-based-route to create a policy node and enter policy node view. Use undo policy-based-route to remove a policy or policy node. Syntax policy-based-route policy-name [ deny | permit ] node node-number undo policy-based-route policy-name [ deny | node node-number | permit ] Default No policy node is created. Views System view Predefined user roles network-admin Parameters policy-name: Specifies a policy by its name, a case-sensitive string of 1 to 19 characters.
Views User view Predefined user roles network-admin 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, the command clears all PBR statistics. If a policy is specified, the command clears the PBR statistics for the specified policy. To view PBR statistics, use the display ip policy-based-route interface command. Examples # Clear all PBR statistics.
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.
Parameters nib-id: Specifies a NIB by its ID in the range of 1 to FFFFFFFF. verbose: Displays detailed IPv6 static route next hop information. Without this keyword, the command displays brief IPv6 static route next hop information. Examples # Displays brief IPv6 static route next hop information.
UserKey1: 0x0 IFIndex: 0x0 RefCnt: 1 Flag: 0x12 Nexthop: 2::3 LocalAddr: :: FlushRefCnt: 0 Version: 1 1 nexthop(s): PrefixIndex: 0 RelyDepth: 2 Interface: NULL0 TunnelCnt: 0 OrigNexthop: 2::3 RealNexthop: :: LocalAddr: :: Vrf: default-vrf TunnelID: N/A NibID: 0x21000001 Type: 0x41 UserKey0: 0x0 UserKey1: 0x0 IFIndex: 0x0 RefCnt: 1 Flag: 0x12 Sequence: 1 Flushed: Yes VrfNthp: 0 Nexthop: 3::4 LocalAddr: :: FlushRefCnt: 0 Version: 1 1 nexthop(s): PrefixIndex: 0 RelyDepth: 1 Interface: NULL0 TunnelCnt: 0
Field Description Version Version of the next hop. display ipv6 route-static routing-table Use display ipv6 route-static routing-table to display IPv6 static routing table information. Syntax display ipv6 route-static routing-table [ vpn-instance vpn-instance-name ] [ ipv6-address prefix-length ] 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.
BkNibID: N/A TableID: 0xa Flag: 0x80d0a DbIndex: 0x1 Type: Normal TrackIndex: 0xffffffff Preference: 60 BfdMode: N/A Permanent: 0 Interface: NULL0 BkInterface: N/A BfdSrcIp: N/A BfdIfIndex: 0x0 BfdVrfIndex: 0 Label: NULL vrfIndexDst: 0 vrfIndexNH: 0 Tag: 0 ... # Display information about the IPv6 static route with destination IPv6 address 1::1/128.
Field Description BfdIfIndex Index of the interface where BFD is enabled. BfdVrfIndex Index of the VPN instance where BFD is enabled. BFD session mode: BfdMode • N/A—No BFD session is configured. • Ctrl—Control packet mode • Echo—Echo packet mode. TrackIndex NQA Track index. vrfIndexDst Index of the destination VPN. vrfIndexNH Index of the VPN to which the next hop belongs. Permanent Permanent static route flag. 1 indicates a permanent static route.
interface-type interface-number: Specifies an output interface by its type and number. If the output interface is an NBMA interface or broadcast interface (such as an Ethernet interface or a VLAN interface), rather than a point-to-point (P2P) interface, the next hop address must be specified. next-hop-address: Specifies the next hop IPv6 address. bfd: Enables BFD to detect reachability of the static route's next hop. When the next hop is unreachable, the system immediately switches to the backup route.
Related commands display ipv6 routing-table protocol ipv6 route-static default-preference Use ipv6 route-static default-preference to configure a default preference for IPv6 static routes. Use undo ipv6 route-static default-preference to restore the default. Syntax ipv6 route-static default-preference default-preference-value undo ipv6 route-static default-preference Default The default preference of IPv6 static routes is 60.
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.
default-route-advertise (OSPFv3 view) Use default-route-advertise to redistribute a default route into the OSPFv3 routing domain. 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.
Related commands import-route (OSPFv3 view) display ospfv3 Use display ospfv3 to display OSPFv3 process information. Syntax display ospfv3 [ process-id ] [ verbose ] 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 information about all OSPFv3 processes. verbose: Displays detailed OSPFv3 process information.
Current calculation phase: Calculation area topology Redistribute timer: Off Redistribute schedule type: RIB Redistribute route count: 0 Process reset state: N/A Current reset type: N/A Next reset type: N/A Reset prepare message replied: -/-/-/Reset process message replied: -/-/-/Reset phase of module: M-N/A, P-N/A, S-N/A, C-N/A, R-N/A Area: 0.0.0.
ExChange/Loading Neighbors: 0 LSA Count: 0 Table 79 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: • • • • Router type ABR. ASBR. NSSA. Null. Multi-VPN-Instance is not enabled The OSPFv3 process does not support multiple VPN instances. SPF-schedule-interval Interval for SPF calculations. LSU advertisement rate: • Interval—Specifies the interval for sending LSUs.
Field Description Route calculation trigger type: • Full—Calculation of all routes is triggered. • Area topology change—Topology change in an area. • Intra router change—Incremental intra-area route change. • ASBR change—Incremental ASBR route change. • Full IP prefix—Calculation of all IP prefixes is triggered. • Full intra AS—Calculation of all intra-AS prefixes is Calculation trigger type triggered. • Inc intra AS—Calculation of incremental intra-AS prefixes is triggered.
Field Description Current route calculation phase: • Calculation area topology—Calculating area topology. • • • • Current calculation phase Calculation router—Calculating routes on routers. Calculation intra AS—Calculating intra-AS routes. Calculation ASBR—Calculating routes on ASBRs. Calculation inter AS—Calculating AS-external routes. • Calculation end—Ending phase of calculation. • N/A—Route calculation is not triggered. Redistribute timer Route redistribution timer status: on or off.
Field Description Reset phase of each module: • LSDB synchronization (S) module: { N/A—Not reset. { Delete ASE—Delete all ASE LSAs. { Delete area LSA—Delete LSAs from an area. { Delete area IF—Delete interfaces from an area. • Route calculation (C) module: Reset phase of module { N/A—Not reset. { Delete topology—Delete area topology. { Delete router—Delete routes of routers. { Delete intra AS—Delete intra-AS routes { Delete inter AS—Delete AS-external routes.
display ospfv3 abr-asbr OSPFv3 Process 1 with Router ID 1.1.1.1 Destination :1.1.1.2 Rtr Type : ABR Area :0.0.0.0 Path Type: Intra NextHop :FE80:1:1::1 Cost : 1 Destination :1.1.1.3 Rtr Type : ASBR Area :0.0.0.0 Path Type: Intra NextHop :FE80:2:1::1 Cost : 1 Table 80 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. Destination Router ID of an ABR or ASBR. Rtr Type Router type: ABR, or ASBR.
ipv6-address prefix-length: Specifies an IPv6 address. The ipv6-address argument specifies an IPv6 prefix. The prefix-length argument specifies a prefix length in the range of 0 to 128. Without these arguments, the command displays information about all summary routes on the ABR. verbose: Displays detailed ABR summary route information. Without this keyword, the command displays brief ABR summary route information. Examples # Display brief ABR summary route information in OSPFv3 process 1.
1000:4:11:3::/96 1 Table 82 Command output Field Description Destination Destination address of a summarized route. Metric Metric of a summarized route. display ospfv3 graceful-restart Use display ospfv3 graceful-restart to display GR information for an OSPFv3 process. Syntax display ospfv3 [ process-id ] graceful-restart 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.
Field Description Indicates whether OSPFv3 GR is enabled: • Enabled. • Disabled. Graceful-restart capability Indicates whether OSPFv3 GR helper is enabled: • Enabled. • Disabled. Helper-policy support GR status: • Normal—Non-GR status. • Under GR—Restarter status. • Under Helper—Helper status. Current GR state Graceful-restart period GR restart interval. Number of neighbors under helper Number of neighbors in GR helper status.
------------------------------------------------------------------------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: • • • • • Timer interval configured Hello—Hello interval. Dead—Dead interval. Poll—Polling interval on an NBMA network. 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. Previous state Previous state of the interface: Down, Waiting, P-2-P, DR, BDR, or DROther.
type: Specifies an LSA type, a hexadecimal string of 0 to FFFF. Without this argument, the command displays all unknown LSAs. link-state-id: Specifies a link state ID in IPv4 format. originate-router router-id: Specifies the ID of an advertising router. self-originate: Displays locally originated LSAs. statistics: Displays LSA statistics. total: Displays total number of LSAs in the LSDB. verbose: Displays detailed information. Without this keyword, the command displays brief information.
Field Description Link Number of links. Intra-Area-Prefix-LSA Type-9 LSA. Reference Type of referenced LSA. # 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.
OSPFv3 Process 1 with Router ID 1.1.1.1 ------------------------------------------------------------------------Area ID Router Network IntePre InteRou IntraPre NSSA 0.0.0.1 2 0 0 0 2 0 0.0.0.3 1 0 0 0 1 1 Total 2 0 0 0 3 1 ------------------------------------------------------------------------Total Link Grace ASE 4 0 0 Table 87 Command output Field Description Area ID Area ID. Router Number of Type-1 LSAs. Network Number of Type-2 LSAs. IntePre Number of Type-3 LSAs.
Network-LSA (Area 0.0.0.1) ------------------------------------------------------------------------Link State ID Origin Router Age SeqNum 0.15.0.8 2.2.2.2 0019 0x80000007 0x599e CkSum SendCnt: 0 RxmtCnt: 0 Status: Stale Intra-Area-Prefix-LSA (Area 0.0.0.1) ------------------------------------------------------------------------Link State ID Origin Router Age SeqNum 0.0.0.2 2.2.2.2 3600 0x80000002 0x2eed SendCnt: 0 RxmtCnt: 0 2.2.2.2 0018 SendCnt: 0 RxmtCnt: 0 0.0.0.
OSPFv3 Process 1 with Router ID 1.1.1.1 Nexthop : FE80::20C:29FF:FED7:F308 Interface: Vlan2 RefCount: 4 Status NbrID NbrIntID : 21 : 1.1.1.1 : Valid Nexthop : FE80::20C:29FF:FED7:F312 Interface: Vlan12 RefCount: 3 Status NbrID NbrIntID : 38 : 1.1.1.1 : Valid Table 89 Command output Field Description Nexthop Next hop address. Interface Output interface. RefCount Reference count (routes that reference the next hop). Status Next hop status: valid or invalid. NbrId Neighbor router ID.
Usage guidelines If no process-id is specified, this command displays neighbor information for all processes. If no area is specified, this command displays neighbor information for all areas. If no interface or no neighbor is specified, this command displays neighbor information for all interfaces. 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.
Table 91 Command output Field Description Router ID Neighbor router ID. Address Link-local address of the interface. State Neighbor state. Mode Neighbor mode for LSDB synchronization. Priority Neighboring router priority. 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.
Field Description Down In this state, neighbor initial state, the router has not received any information from a neighboring router for a period of time. Attempt This state is available only in an NBMA network. In this state, the OSPF router has not received any information from a neighbor for a period but can send Hello packets at a longer interval to keep neighbor relationship.
If no neighbor is specified, this command displays the OSPFv3 request list information for all OSPFv3 neighbors. Examples # Display OSPFv3 request list information. display ospfv3 request-queue OSPFv3 Process 1 with Router ID 1.1.1.1 Area: 0.0.0.0 Interface Vlan-interface1 ------------------------------------------------------------------------Nbr-ID 1.3.3.3 Request List Type LinkState ID AdvRouter SeqNum Age CkSum 0x4005 0.0.34.127 1.3.3.3 0x80000001 0027 0x274d 0x4005 0.0.34.
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. interface-type interface-number: Specifies an interface by its type and number. neighbor-id: Specifies a neighbor's router ID.
Syntax display ospfv3 [ process-id ] routing [ ipv6-address prefix-length ] 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. Without this argument, the command displays the OSPFv3 route information for all processes. ipv6-address prefix-length: Specifies an IPv6 address. The ipv6-address argument specifies an IPv6 prefix.
Table 95 Command output Field Description Destination Destination network segment. Type Route type. Cost Route cost value. Nexthop Next hop address. Interface Output interface. AdvRouter Advertising router. Area Area ID. Tag Tag of external routes. Preference Route preference. Total Total number of routes. Intra Area Number of intra-area routes. Inter Area Number of inter-area routes. ASE Number of Type-5 external routes. NSSA Number of Type-7 external routes.
OSPFv3 Process 1 with Router ID 1.1.1.1 Flags: S-Node is on SPF tree R-Node is directly reachable I-Node or Link is init D-Node or Link is to be deleted P-Neighbor is parent A-Node is in candidate list C-Neighbor is child H-Nexthop changed N-Link is a new path V-Link is involved Area: 0.0.0.0 SPFNode >1.1.1.1 Type Flag Shortest Path Tree SPFLink Type Cost Flag -->2.2.2.2 RT2RT 1 C -->2.2.2.
OSPFv3 Process 1 with Router ID 1.1.1.1 Flags: S-Node is on SPF tree R-Node is directly reachable I-Node or Link is init D-Node or Link is to be deleted P-Neighbor is parent A-Node is in candidate list C-Neighbor is child H-Nexthop changed N-Link is a new path V-Link is involved Area: 0.0.0.0 Shortest Path Tree >SPFNode[0] AdvID : 1.1.1.1 LsID : 0.0.0.0 NodeType : Router Distance : 1 NodeFlag : S R Nexthop count: 1 -->NbrID : 1.1.1.
Field Description NhFlag Next hop flag: valid or invalid. Nexthop Next hop. RefCount Reference count (routes that reference the next hop) SPFLink count Number of SPF links. IntID Interface ID. Link type: • RT2RT—Router to router. • NET2RT—Network to router. • RT2NET—Router to network. LinkType LinkCost Link cost. LinkNewCost New link cost. Link flag: • • • • • • LinkFlag I—The link is in initialization state. P—The peer is the parent node. C—The peer is the child node.
error: Displays error statistics. Without this keyword, the command displays OSPFv3 packet, LSA, and route statistics. Examples # Display OSPFv3 statistics. display ospfv3 statistics OSPFv3 Process 1 with Router ID 1.1.1.
Field Description Ls Ack Link state acknowledgement packet. Local Originated LSAs Statistics Statistics about generated LSAs. Router-LSA Number of Type-1 LSAs. Network-LSA Number of Type-2 LSAs. Inter-Area-Prefix-LSA Number of Type-3 LSAs. Inter-Area-Router-LSA Number of Type-4 LSAs. AS-external-LSA Number of Type-5 LSAs. NSSA-LSA Number of Type-7 LSAs. Link-LSA Number of Type-8 LSAs. Intra-Area-Prefix-LSA Number of Type-9 LSAs. Grace-LSA Number of Type-11 LSAs.
Table 99 Command output Field Description Transmit error Packets with error when being transmitted. Neighbor state low Packets received in low neighbor state. Packet too small Packets too small in length. Bad version Packets with wrong version. Bad checksum Packets with wrong checksum. Unknown neighbor Packets received from unknown neighbors. Bad area ID Packets with invalid area ID. Bad packet Packets illegal. Packet dest error Packets with wrong destination addresses.
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. Without this argument, the command displays the OSPFv3 virtual link information for all OSPFv3 processes. Examples # Display OSPFv3 virtual link information. display ospfv3 vlink OSPFv3 Process 1 with Router ID 1.1.1.1 Virtual-link Neighbor-id: 12.2.2.
Syntax filter { acl6-number | prefix-list prefix-list-name | route-policy route-policy-name } { export | import } undo filter { export | import } Default Inter-Area-Prefix-LSAs are not filtered. Views OSPFv3 area 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 inbound/outbound Inter-Area-Prefix-LSAs.
Parameters acl6-number: Specifies an IPv6 ACL by its number in the range of 2000 to 3999 to filter redistributed routes by destination address. prefix-list-name: Specifies an IPv6 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 bgp4+, direct, ospfv3, or static. If no protocol is specified, this command filters all redistributed routes.
Syntax filter-policy { acl6-number [ gateway prefix-list-name ] | prefix-list prefix-list-name [ gateway 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. Views OSPFv3 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 routes by destination.
[Sysname-acl6-adv-3000] rule 10 permit ipv6 source 2001::1 128 destination ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 128 [Sysname-acl6-adv-3000] rule 100 deny ipv6 [Sysname-acl6-adv-3000] quit [Sysname] ospfv3 [Sysname-ospfv3-1] filter-policy 3000 import graceful-restart helper enable Use graceful-restart helper enable to enable the GR helper capability for OSPFv3. Use undo graceful-restart helper enable to disable the GR helper capability for OSPFv3.
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 # Enable strict LSA checking for the GR helper in OSPFv3 process 1. system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] graceful-restart helper strict-lsa-checking Related commands graceful-restart helper enable import-route (OSPFv3 view) Use import-route to redistribute routes.
cost cost: Specifies a cost for redistributed routes, in the range of 1 to 16777214. The default is 1. nssa-only: Limits the route advertisement to the NSSA area by setting the P-bit of Type-7 LSAs to 0. By default, the P-bit of Type-7 LSAs is set to 1. If the router acts as both an ASBR and an ABR and FULL state neighbors exist in the backbone area, the P-bit of Type-7 LSAs originated by the router is set to 0. This keyword applies to NSSA routers.
Views OSPFv3 view Predefined user roles network-admin Usage guidelines This feature enables the device to deliver logs about neighbor state changes to its information center, which processes logs according to user-defined output rules (whether to output logs and where to output). For more information about the information center, see Network Management and Monitoring Configuration Guide. Examples # Disable the logging of neighbor state changes for OSPFv3 process 100.
The minimum interval and the incremental interval cannot be greater than the maximum interval. Examples # Configure the maximum LSA generation interval as 2 seconds, minimum interval as 100 milliseconds, and incremental interval as 100 milliseconds.
nssa Use nssa to configure the current area as an NSSA area. Use undo nssa to restore the default. Syntax nssa [ default-route-advertise [ cost cost | nssa-only | route-policy route-policy-name | tag tag | type type ] * | no-import-route | no-summary | [ translate-always | translate-never ] | suppress-fa | translator-stability-interval value ] * undo nssa Default No area is configured as an NSSA area.
translator-stability-interval value: Specifies the stability interval of the translator, during which the translator can maintain its translating capability after a device with a higher priority becomes the new translator. The value argument is the stability interval in the range of 0 to 900 seconds and defaults to 0 (which means the translator does not maintain its translating capability when a new translator arises).
ospfv3 area Use ospfv3 area to enable an OSPFv3 process and specify an area for on an interface. Use undo ospfv3 area to disable an OSPFv3 process. Syntax ospfv3 process-id area area-id [ instance instance-id ] undo ospfv3 process-id area area-id [ instance instance-id ] Default No OSPFv3 process is enabled on an interface. Views Interface view Predefined user roles network-admin Parameters process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535.
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.
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. instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0. Usage guidelines An interface's router priority determines its privilege in DR/BDR selection.
Examples # Configure VLAN-interface 10 that belongs to instance 1 to ignore MTU check during DD packet exchange. system-view [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] ospfv3 mtu-ignore instance 1 ospfv3 network-type Use ospfv3 network-type to set the network type for an OSPFv3 interface. Use undo ospfv3 network-type to restore the default.
When the network type of an interface is P2MP unicast, all OSPFv3 packets are unicast by the interface. Examples # Configure the OSPFv3 network type for VLAN-interface 20 as NBMA. system-view [Sysname] interface vlan-interface 20 [Sysname-Vlan-interface20] ospfv3 network-type nbma Related commands ospfv3 dr-priority ospfv3 peer Use ospfv3 peer to specify a neighbor and the DR priority of the neighbor. Use undo ospfv3 peer to remove the configuration.
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 dead time in the range of 1 to 65535 seconds.
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.
[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.
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. Therefore, it is necessary to add a transmission delay into the age time, especially for low-speed links.
Examples # Set a preference of 150 for OSPFv3 routes. system-view [Sysname] OSPFv3 [Sysname-OSPFv3-1] preference 150 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.
Default An interface can receive and send OSPFv3 packets. Views OSPFv3 view Predefined user roles network-admin Parameters interface-type interface-number: Specifies an interface by its type and number. all: Specifies all interfaces. Usage guidelines Multiple processes can disable the same interface from receiving and sending OSPFv3 packets, but the silent-interface command takes effect only on interfaces enabled with the current process.
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. Usage guidelines Based on the LSDB, an OSPFv3 router uses SPF to calculate a shortest path tree with itself being the root.
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. Examples # Configure OSPFv3 area 1 as a stub area. system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] area 1 [Sysname-ospfv3-1-area-0.0.0.
vlink-peer (OSPFv3 area view) Use vlink-peer to configure a virtual link. Use undo vlink-peer to remove a virtual link. Syntax vlink-peer router-id [ dead seconds | hello seconds | instance instance-id | retransmit seconds | trans-delay seconds ] * undo vlink-peer router-id [ dead | hello | retransmit | trans-delay ] * Default No virtual link is configured. Views OSPFv3 area view Predefined user roles network-admin Parameters router-id: Specifies the router ID of the neighbor on the virtual link.
[Sysname] ospfv3 1 [Sysname-ospfv3-1] area 1 [Sysname-ospfv3-1-area-0.0.0.1] vlink-peer 10.10.0.
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 ] } &<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.
Parameters interface-type interface-number: Specifies an interface by its type and number. Examples # Display IPv6 PBR configuration and statistics on VLAN-interface 1.
Field Description apply next-hop Specify a next hop for permitted IPv6 packets. Matched: 0 Number of successful matches on the node . Total matched Total number of successful matches on all nodes. Related commands reset ipv6 policy-based-route statistics display ipv6 policy-based-route local Use display ipv6 policy-based-route local to display IPv6 local PBR configuration and statistics.
Table 103 Command output Field Description Policy based routing information for local IPv6 local PBR configuration and statistics. node 0 deny/node 2 permit Match mode of the node, permit or deny. if-match acl Match packets against the ACL. apply next-hop Specify a next hop for permitted packets. Matched: 0 Number of successful matches on the node. Total matched Total number of successful matches on all nodes.
Use undo if-match acl to remove the ACL match criterion. Syntax if-match acl { acl6-number | name acl6-name } undo if-match acl Default No ACL match criterion is configured. Views IPv6 policy node view Predefined user roles network-admin Parameters acl6-number: Specifies an ACL by its number in the range of 2000 to 3999. The value range of a basic ACL is 2000 to 2999 and that of an advanced ACL is 3000 to 3999.
Parameters policy-name: Specifies a policy by its name, a case-sensitive string of 1 to 19 characters. The specified IPv6 policy must already exist. Usage guidelines You can apply only one policy locally. Before you apply a new policy, you must first remove the current policy. IPv6 local PBR is used to route locally generated packets. Do not configure IPv6 local PBR unless required. Examples # Configure IPv6 local PBR based on policy aaa.
[Sysname-Vlan-interface2] ipv6 policy-based-route aaa Related commands • display ipv6 policy-based-route setup • ipv6 policy-based-route (system view) ipv6 policy-based-route (system view) Use ipv6 policy-based-route to create an IPv6 policy or policy node and enter IPv6 policy node view. If the specified IPv6 policy node already exists, the command directly places you into IPv6 policy node view. Use undo ipv6 policy-based-route to remove an IPv6 policy or IPv6 policy node.
reset ipv6 policy-based-route statistics Use reset ipv6 policy-based-route statistics to clear IPv6 PBR statistics. Syntax reset ipv6 policy-based-route statistics [ policy policy-name ] Views User view Predefined user roles network-admin 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, the command clears all IPv6 PBR statistics.
Routing policy configuration commands Common routing policy configuration 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.
Use undo apply comm-list to restore the default. 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.
Parameters none: Removes the COMMUNITY attributes of BGP routes. 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.
Parameters +: Increases a cost value. -: Decreases a cost value. value: Specifies a cost in the range of 0 to 4294967295. Examples # Configure node 10 in permit mode 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.
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. &<1-32> indicates that the argument before it can be entered up to 32 times. A route-target has the following forms: • 16-bit AS number:32-bit self-defined number.
Predefined user roles network-admin Parameters preference: Specifies a local preference in the range of 0 to 4294967295. Examples # Configure node 10 in permit mode for routing policy policy1 to set a local preference of 130 for routes matching AS path list 1.
Use undo apply preference to restore the default. Syntax apply preference preference undo apply preference Default No preference is set for a routing protocol. Views Routing policy node view Predefined user roles network-admin Parameters preference: Specifies a preference in the range of 1 to 255. Usage guidelines If you have set preferences for routing protocols with the preference command, the apply preference command sets a new preference for the matching routing protocol.
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. 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 preferred-value 66 apply prefix-priority Use apply prefix-priority to set a prefix priority for routes. Use undo apply prefix-priority to restore the default.
Default No routing tag is set for OSPF routing information. Views Routing policy node view Predefined user roles network-admin Parameters value: Specifies the tag value in the range of 0 to 4294967295. Examples # Configure node 10 in permit mode for routing policy policy1 to set a tag of 100. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] apply tag 100 continue Use continue to specify the next node to be matched.
display ip as-path Use display ip as-path to display BGP AS path list information. Syntax display ip as-path [ as-path-number ] Views Any view Predefined user roles network-admin network-operator Parameters as-path-number: Specifies an AS path list by its number in the range of 1 to 256. Without this argument, the command displays information about all BGP AS path lists. Examples # Display information about BGP AS path list 1.
Parameters basic-community-list-number: Specifies a basic community list by its number in the range of 1 to 99. adv-community-list-number: Specifies an advanced community list by its number in the range of 100 to 199. name comm-list-name: Specifies a community list by its name, a case-sensitive string of 1 to 63 characters that cannot comprise only numbers. Usage guidelines If no community list is specified, this command displays information about all BGP community lists.
Extended Community List Number 1 permit rt : 9:6 Table 107 Command output Field Description Extended Community List Number Extended community list. Match mode: permit • permit. • deny. rt Route Target (RT) extended community attribute. display route-policy Use display route-policy to display routing policy information.
Field Description continue Specify the next node to be matched. apply Action. if-match as-path Use if-match as-path to match BGP routes whose AS_PATH attribute matches a specified AS path list. Use undo if-match as-path to remove the configuration. Syntax if-match as-path as-path-number&<1-32> undo if-match as-path [ as-path-number&<1-32> ] Default No match criterion is configured.
undo if-match community [ { basic-community-list-number | name comm-list-name } [ whole-match ] | adv-community-list-number ]&<1-32> Default No community list match criterion is configured. Views Routing policy node view Predefined user roles network-admin Parameters basic-community-list-number: Specifies a basic community list by its number in the range of 1 to 99. adv-community-list-number: Specifies an advanced community list by its number in the range of 100 to 199.
Predefined user roles network-admin Parameters value: Specifies a cost in the range of 0 to 4294967295. Examples # Configure node 10 in permit mode for routing policy policy1 to permit routing information with a cost of 8. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match cost 8 if-match extcommunity Use if-match extcommunity to match BGP routes whose extended community attribute matches a specified extended community list.
if-match interface Use if-match interface to match routes having the specified output interface. Use undo if-match interface to remove the configuration. Syntax if-match interface { interface-type interface-number }&<1-16> undo if-match interface [ interface-type interface-number ]&<1-16> Default No match criterion is configured. Views Routing policy node view Predefined user roles network-admin Parameters interface-type interface-number: Specifies an interface by its type and number.
Parameters preference: Specifies a local preference in the range of 0 to 4294967295. Examples # Create node 10 in permit mode for routing policy policy1 to match BGP routes having a local preference of 2. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match preference 2 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.
if-match tag Use if-match tag to match routing information having the specified tag. 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 OSPF routing information having a tag of 8.
permit: Specifies the match mode for the AS path list as permit. regular-expression: Specifies an AS path regular expression, a string of 1 to 63 characters. 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.
advanced: Specifies a name for the advanced communist list. basic-comm-list-name: Specifies the basic community list name, a case-sensitive string of 1 to 63 characters that cannot comprise only letters. 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.
Syntax ip extcommunity-list ext-comm-list-number { deny | permit } { rt route-target }&<1-32> undo ip extcommunity-list ext-comm-list-number [ { deny | permit } [ rt route-target ]&<1-32> ] 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.
Default No routing policy is created. Views System view 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 matches 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.
Default No next hop is set for IPv4 routes. Views Routing policy node view Predefined user roles network-admin Parameters ip-address: Specifies the next hop IP address. public: Specifies the public network. vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. Usage guidelines This command cannot set a next hop for redistributed routes.
Permitted 0 Denied 0 index: 10 deny 6.6.6.0/24 ge 26 le 28 Table 109 Command output Field Description Prefix-list Name of the IPv4 prefix list. Permitted Number of routes matching the criterion. Denied Number of routes not matching the criterion. index Index of an item. Match mode of the item: deny • permit. • deny. 6.6.6.0/24 IP address and mask. ge Greater-equal, the lower mask length. le Less-equal, the upper mask length.
acl acl-number: Specifies an ACL by its number in the range of 2000 to 3999 for address, and in the range of 2000 to 2999 for next-hop and route-source. prefix-list prefix-list-name: Specifies an IP prefix list by its name, a case-sensitive string of 1 to 63 characters. Examples # Configure node 10 of routing policy policy1 to match IPv4 routing information whose next hop matches IP prefix list p1.
Usage guidelines An IPv4 prefix list is used to filter IPv4 addresses. It can contain multiple items, each of which specifies a range of IPv4 prefixes. The relation between the items is logic OR. If an item is passed, the IPv4 prefix list is passed. If no item is passed, the IP prefix list cannot be passed. If both ip-address and mask-length are specified as 0.0.0.0 0, only the default route will be matched. To match all routes, use 0.0.0.0 0 less-equal 32.
Syntax apply ipv6 next-hop ipv6-address undo apply ipv6 next-hop Default No next hop is set for IPv6 routes. Views Routing policy node view Predefined user roles network-admin Parameters ipv6-address: Specifies the next hop IPv6 address. Usage guidelines This command cannot set a next hop for redistributed routes. Examples # Configure node 10 for routing policy policy1 to set next hop 3ffe:506::1 for IPv6 routes matching AS path list 1.
index: 10 permit 6::/64 ge 66 le 88 Table 110 Command output Field Description Prefix-list6 Name of the IPv6 prefix list. Permitted Number of routes matching the criterion. Denied Number of routes not matching the criterion. index Index number of an item. permit • permit. • deny. 6::/64 IPv6 address and prefix length for matching. ge Greater-equal, the lower prefix length. le Less-equal, the upper prefix length.
prefix-list prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters. Examples # Configure node 10 of routing policy policy1 to permit routing information whose next hop matches IPv6 prefix list p1. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match ipv6 next-hop prefix-list p1 ipv6 prefix-list Use ipv6 prefix-list to configure an IPv6 prefix list or an item for it.
Usage guidelines An IPv6 prefix list can have multiple items, and each of them specifies a range of IPv6 prefixes. The relation between items is logic OR. If a route passes an item, it passes the IPv6 prefix list. If ipv6-address prefix-length is specified as :: 0, only the default route matches. To match all routes, configure :: 0 less-equal 128. Examples # Permit IPv6 addresses with a mask length between 32 bits and 64 bits.
Support and other resources Contacting HP For worldwide technical support information, see the HP support website: http://www.hp.
Conventions This section describes the conventions used in this documentation set. Command conventions Convention Description Boldface Bold text represents commands and keywords that you enter literally as shown. Italic Italic text represents arguments that you replace with actual values. [] Square brackets enclose syntax choices (keywords or arguments) that are optional. { x | y | ... } Braces enclose a set of required syntax choices separated by vertical bars, from which you select one.
Network topology icons Represents a generic network device, such as a router, switch, or firewall. Represents a routing-capable device, such as a router or Layer 3 switch. Represents a generic switch, such as a Layer 2 or Layer 3 switch, or a router that supports Layer 2 forwarding and other Layer 2 features. Represents an access controller, a unified wired-WLAN module, or the switching engine on a unified wired-WLAN switch. Represents an access point.
Index ABCDEFGHILMNOPRSTVW A C abr-summary (OSPF area view),53 compare-different-as-med,154 abr-summary (OSPFv3 area view),296 confederation id,155 address-family ipv4,144 confederation nonstandard,156 address-family ipv4,1 confederation peer-as,156 address-family ipv6,1 continue,373 address-family ipv6,145 D advertise-rib-active,145 dampening,157 aggregate,146 default,58 apply as-path,365 default local-preference,159 apply comm-list delete,365 default med,160 apply community,366 defau
display bgp routing-table ipv4 unicast peer,190 display ospf,61 display bgp routing-table ipv4 unicast statistics,192 display ospf abr-asbr,67 display bgp routing-table ipv6 unicast,192 display ospf abr-summary,68 display bgp routing-table ipv6 unicast as-path-acl,196 display ospf asbr-summary,70 display bgp routing-table ipv6 unicast community-list,197 display ospf event-log spf,72 display ospf graceful-restart,73 display bgp routing-table ipv6 unicast inlabel,198 display ospf interface,76 disp
ecmp mode enhanced,39 import-route (OSPFv3 view),335 enable link-local-signaling,99 ip as-path,382 enable out-of-band-resynchronization,99 ip community-list,383 F ip extcommunity-list,384 ip local policy-based-route,284 fast-reroute (OSPF view),100 ip policy-based-route,285 fib lifetime,40 ip prefix-list,389 filter (OSPF area view),101 ip route-static,50 filter (OSPFv3 area view),330 ip route-static default-preference,52 filter-policy export,207 ip vpn-instance (BGP view),217 filter-policy
ospf dr-priority,121 peer ignore-originatorid,245 ospf mib-binding,122 peer keep-all-routes,246 ospf mtu-enable,123 peer low-memory-exempt,247 ospf network-type,123 peer next-hop-local,248 ospf prefix-suppression,124 peer password,249 ospf timer dead,125 peer preferred-value,250 ospf timer hello,126 peer prefix-list,252 ospf timer poll,127 peer public-as-only,253 ospf timer retransmit,127 peer reflect-client,254 ospf trans-delay,128 peer route-limit,256 ospfv3,340 peer route-policy,257
rib,43 stub (OSPFv3 area view),352 route-policy,385 stub-router,140 router id,135 Subscription service,395 router id (system view),273 summary automatic,276 router-id,350 switch-routing-mode ipv6-128,43 router-id (BGP view),274 T router-id (BGP-VPN instance view),275 timer,277 S transmit-pacing,353 silent-interface (OSPF view),136 transmit-pacing,141 silent-interface(OSPFv3 view),350 V snmp trap rate-limit,138 vlink-peer (OSPF area view),142 snmp-agent trap enable bgp,276 vlink-peer (