HP MSR Router Series Layer 3 - IP Routing Command Reference(V7) Part number: 5998-5693 Software version: CMW710-R0106 Document version: 6PW100-20140607
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
graceful-restart ······················································································································································· 69 host-route ································································································································································ 69 import-route ························································································································································
display ospf peer statistics ·································································································································· 127 display ospf request-queue ································································································································· 128 display ospf retrans-queue·································································································································· 129 display ospf routing······
prefix-suppression ················································································································································ 176 reset ospf event-log ·············································································································································· 177 reset ospf process ················································································································································ 178 reset os
import-route isis level-2 into level-1 ···················································································································· 243 import-route limit ·················································································································································· 244 isis ········································································································································································· 244 isi
timer spf ································································································································································ 282 topology ······························································································································································· 283 virtual-system ·····················································································································································
peer as-number (for a BGP peer) ······················································································································· 385 peer as-number (for a BGP peer group) ··········································································································· 386 peer as-path-acl ··················································································································································· 387 peer bfd ····························
apply default-next-hop········································································································································· 451 apply default-output-interface ····························································································································· 452 apply ip-df ···························································································································································· 453 apply loadshar
default-cost (OSPFv3 area view) ························································································································ 496 default-route-advertise (OSPFv3 view) ··············································································································· 497 display ospfv3 ····················································································································································· 498 display ospfv3 abr-asbr ········
auto-cost enable··················································································································································· 558 bandwidth-reference ··········································································································································· 559 circuit-cost ····························································································································································· 560 defau
apply ip-precedence ··········································································································································· 609 apply isis ······························································································································································ 610 apply local-preference ········································································································································ 611 apply mpls
if-match ip precedence ······································································································································· 648 mtr-policy ······························································································································································ 649 routing-table limit ················································································································································· 649 topol
Basic IP routing commands In this chapter, "MSR2000" refers to MSR2003. "MSR3000" collectively refers to MSR3012, MSR3024, MSR3044, MSR3064. "MSR4000" collectively refers to MSR4060 and MSR4080. 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.
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 ip routing-table Use display ip routing-table to display routing table information.
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.40 Vlan11 192.168.1.40/32 Direct 0 0 127.0.0.1 InLoop0 192.168.1.255/32 Direct 0 0 192.168.1.40 Vlan11 224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0 224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0 255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0 Table 1 Command output Field Description Destinations Number of destination addresses. Routes Number of routes.
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 FtnIndex: 0x0 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.
Predefined user roles network-admin network-operator Parameters topology topo-name: Specifies a topology by its name, a case-sensitive string of 1 to 31 characters. Without this option, the command displays routing information for 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. Without this option, the command displays routing information for the public network.
Cost: 0 IpPre: N/A Preference: 0 QosLocalID: N/A Tag: 0 State: Active Adv OrigTblID: 0x0 OrigVrf: default-vrf TableID: 0x2 OrigAs: 0 NibID: 0x10000003 LastAs: 0 AttrID: 0xffffffff Neighbor: 0.0.0.0 Flags: 0x10080 OrigNextHop: 192.168.1.111 Label: NULL RealNextHop: 192.168.1.111 BkLabel: NULL BkNextHop: N/A Tunnel ID: Invalid BkTunnel ID: Invalid Interface: GigabitEthernet2/1/1 BkInterface: N/A FtnIndex: 0x0 Destination: 192.168.1.
Destination: 192.168.1.255/32 Protocol: Direct Process ID: 0 SubProtID: 0x0 Age: 04h20m37s Cost: 0 Preference: 0 IpPre: N/A QosLocalID: N/A 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.
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. ip-address: Specifies a destination IP address in dotted decimal notation. mask: Specifies the IP address mask in dotted decimal notation. mask-length: Specifies the mask length, an integer in the range of 0 to 32. longer-match: Displays the route entry with the longest mask.
Examples # Display brief information about the routes to the destination IP address 11.0.0.1. display ip routing-table 11.0.0.1 Summary Count : 3 Destination/Mask Proto Cost NextHop Interface 11.0.0.0/8 Static 60 Pre 0 0.0.0.0 NULL0 11.0.0.0/16 Static 60 0 0.0.0.0 NULL0 11.0.0.0/24 Static 60 0 0.0.0.0 NULL0 # Display brief information about the routes to the destination IP address 11.0.0.1 and mask length 20. display ip routing-table 11.0.0.
display ip routing-table prefix-list Use display ip routing-table prefix-list to display routes permitted by an IP prefix list.
# Display detailed information about all routes permitted by the IP prefix list. [Sysname] display ip routing-table prefix-list test verbose Routes Matched by Prefix list : test Summary Count : 1 Destination: 1.1.1.0/24 Protocol: Direct Process ID: 0 SubProtID: 0x1 Age: 04h20m37s Cost: 0 Preference: 0 IpPre: N/A QosLocalID: N/A Tag: 0 State: Active Adv OrigTblID: 0x0 OrigVrf: default-vrf TableID: 0x2 OrigAs: 0 NibID: 0x10000003 LastAs: 0 AttrID: 0xffffffff Neighbor: 0.0.0.
protocol: Specifies a routing protocol. It can be bgp, direct, isis, ospf, rip, 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. standby slot slot-number: Displays backup information about routes installed by the protocol for a card.
3.0.0.0/8 Static 60 0 2.2.2.2 GE2/1/1 For command output, see Table 1. display ip routing-table statistics Use display ip routing-table statistics to display IPv4 route statistics.
Field Description active Number of active routes. added Number of routes added to the routing table after the router started up or the routing table was last cleared. deleted Number of routes marked as deleted, which will be cleared after a period. Total Total number of routes. display ipv6 rib attribute Use display ipv6 rib attribute to display route attribute information in the IPv6 RIB.
For command output, see Table 9. display ipv6 rib graceful-restart Use display ipv6 rib graceful-restart to display IPv6 RIB GR state information. Syntax display ipv6 rib graceful-restart Views Any view Predefined user roles network-admin network-operator Examples # Display IPv6 RIB GR state information. display ipv6 rib graceful-restart RIB GR state : Phase2-calculation end RCOM GR State : Flush end Protocol GR state: No.
Parameters self-originated: Displays information about next hops of self-originated routes in the IPv6 RIB. nib-id: Specifies a NIB by its ID in the range of 1 to FFFFFFFF. verbose: Displays detailed next hop information in the IPv6 RIB. Without this keyword, the command displays brief next hop information in the IPv6 RIB. protocol protocol-name: Specifies a protocol by its name, which can be bgp+, direct6, isisv6, ospfv3, ripng, or static6.
Type: 0x1 Flushed: Yes UserKey0: 0x0 VrfNthp: 1 UserKey1: 0x0 IFIndex: 0x112 RefCnt: 4 Nexthop: ::1 LocalAddr: ::1 FlushRefCnt: 1 Flag: 0x84 Version: 1 1 nexthop(s): PrefixIndex: 0 OrigNexthop: ::1 RelyDepth: 0 RealNexthop: ::1 Interface: InLoop0 LocalAddr: ::1 TunnelCnt: 0 Vrf: vpn1 TunnelID: N/A ... For command output, see Table 11 and Table 12. display ipv6 route-direct nib Use display ipv6 route-direct nib to display next hop information for IPv6 direct routes.
UserKey1: 0x0 IFIndex: 0x112 Nexthop: ::1 LocalAddr: ::1 ... Table 4 Command output Field Description NibID ID of the NIB. Sequence Sequence number of the NIB. Type Type of the NIB. Flushed Indicates whether the route with the NIB has been flushed to the FIB. UserKey0 Reserved data 1. UserKey1 Reserved data 2. VrfNthp VPN to which the next hop belongs. Nexthop Next hop address. IFIndex Interface index. LocalAddr Local interface address.
RelyDepth: 0 Interface: InLoop0 RealNexthop: ::1 LocalAddr: ::1 TunnelCnt: 0 Vrf: vpn1 TunnelID: N/A ... Table 5 Command output Field Description x nexthop(s) Number of next hops. Tnl-Policy Tunnel policy. PrefixIndex Prefix index of the next hop for an ECMP route. Vrf VPN name. 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.
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. verbose: Displays detailed routing table information, including information about both active and inactive routes. Without this keyword, the command displays only brief information about active routes. standby slot slot-number: Displays backup IPv6 routing table information for a card.
Field Description Protocol that installed the route. The following route types are available: • • • • • • • • • • 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. IS_L1—IS-IS Level-1 route. IS_L2—IS-IS Level-2 route. IS_SUM—IS-IS summary route. Cost Cost of the route. Summary Count Number of routes.
Flags: 0x10084 OrigNextHop: :: Label: NULL RealNextHop: :: BkLabel: NULL BkNextHop: N/A Tunnel ID: Invalid Interface: NULL0 BkTunnel ID: Invalid BkInterface: InLoop0 FtnIndex: 0x0 Destination: FF00::/8 Protocol: Direct Process ID: 0 SubProtID: 0x0 Age: 00h53m50s Cost: 0 Preference: 0 IpPre: N/A QosLocalID: N/A Tag: 0 State: Active NoAdv OrigTblID: 0x0 OrigVrf: default-vrf TableID: 0xa OrigAs: 0 NibID: 0x20000001 LastAs: 0 AttrID: 0xffffffff Neighbor: :: Flags: 0x10014 OrigNextH
Field Description 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. Neighbor Address of the neighbor determined by the routing protocol. Flags Flags of the route. OrigNextHop Next hop address of the route. RealNextHop Real next hop of the route. BkLabel Backup label. BkNexthop Backup next hop.
verbose: Displays detailed information about all routes permitted by the basic IPv6 ACL. Without this keyword, the command displays only brief information about active routes permitted by the basic IPv6 ACL. standby slot slot-number: Displays backup information permitted by the IPv6 basic ACL for a card. Without this option, the command displays information permitted by the IPv6 basic ACL.
Destination: 1:1::/64 Protocol: Static Process ID: 0 SubProtID: 0x2 Age: 08h57m19s Cost: 0 Preference: 60 IpPre: N/A QosLocalID: N/A Tag: 0 State: Active Adv OrigTblID: 0x0 OrigVrf: default-vrf TableID: 0xa OrigAs: 0 NibID: 0x20000002 LastAs: 0 AttrID: 0xffffffff Neighbor: :: Flags: 0x10084 OrigNextHop: :: Label: NULL RealNextHop: :: BkLabel: NULL BkNextHop: N/A Tunnel ID: Invalid BkTunnel ID: Invalid Interface: NULL0 BkInterface: N/A FtnIndex: 0x0 For command output, see Table 7.
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. ipv6-address: Specifies a destination IPv6 address. prefix-length: Specifies the prefix length in the range of 0 to 128. longer-match: Displays the route entry with the longest prefix. ipv6-address1 to ipv6-address2: Specifies a destination IPv6 address range.
Examples # Display brief information about the routes to the destination IPv6 address 10::1 127.
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.
For command output, see Table 6. # Display detailed information about all routes permitted by the IPv6 prefix list.
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. standby slot slot-number: Displays backup information about IPv6 routes installed by the protocol for a card. Without this option, the command displays information about IPv6 routes installed by the protocol.
Static Routing table Status : Summary Count : 0 For command output, see Table 6. display ipv6 routing-table statistics Use display ipv6 routing-table statistics to display IPv6 route statistics.
Field Description added Number of routes added to the routing table after the router started up or the routing table was last cleared. deleted Number of routes marked as deleted, which will be cleared after a period. Total Total number of routes. display rib attribute Use display rib attribute to display route attribute information in the RIB.
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 preference: 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 9 Command output Field Description Protocol Protocol that generates the attribute. Ext-communities number Number of the extended community attribute values.
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 ISIS 480 32 End No/No 5 BGP 480 31 End No/No 6 LDP 480 35 End No/No 7 SLSP 480 29 End No/No Table 10 Command output Field Description RIB GR status: • Start—GR starts. • IGP end—All IGP protocols complete GR.
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.
NibID: 0x10000000 Type: 0x1 UserKey0: 0x0 UserKey1: 0x0 IFIndex: 0x111 NibID: 0x10000001 Type: 0x1 UserKey0: 0x0 UserKey1: 0x0 IFIndex: 0x112 NibID: 0x10000002 Type: 0x5 UserKey0: 0x0 UserKey1: 0x0 IFIndex: 0x112 NibID: 0x26000000 Sequence: 0 Flushed: Yes VrfNthp: 1 Nexthop: 0.0.0.0 LocalAddr: 0.0.0.0 Sequence: 1 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 IFIndex Interface index. LocalAddr Local interface address. SubNibID ID of the sub-next hop. SubSeq Sequence number of the sub-next hop. NthpCnt Number of sub-next hops. Samed Number of the same sub-next hops. Type of the sub-next hop: NthpType • IP—IP forwarding. • MPLS—MPLS forwarding. # Display detailed next hop information in the RIB.
UserKey1: 0x0 IFIndex: 0x0 RefCnt: 9 Flag: 0x84 Nexthop: 22.22.22.22 LocalAddr: 0.0.0.0 FlushRefCnt: 3 Version: 1 Policy: tnl-policy1 1 nexthop(s): PrefixIndex: 0 RelyDepth: 1 Interface: GE2/1/3 OrigNexthop: 22.22.22.22 RealNexthop: 13.1.1.2 LocalAddr: 13.1.1.
Field Description 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. display route-direct nib Use display route-direct nib to display next hop information for direct routes.
Table 13 Command output Field Description NibID ID of the NIB. Sequence Sequence number of the NIB. Type Type of the NIB. Flushed Indicates whether the route with the NIB has been flushed to the FIB. 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.
Table 14 Command output Field Description x nexthop(s) Number of next hops. PrefixIndex Prefix index of the next hop for an ECMP route. Vrf VPN name. 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.
system-view [Sysname] rib [Sysname-rib] address-family ipv4 [Sysname-rib-ipv4] fib lifetime 60 non-stop-routing Use non-stop-routing to enable RIB NSR. Use undo non-stop-routing to restore the default. Syntax non-stop-routing undo non-stop-routing The following matrix shows the support of MSR routers for the command: Hardware Command compatibility MSR2000 No MSR3000 No MSR4000 Yes Default RIB NSR is disabled.
Views RIB IPv4 address family view, RIB IPv6 address family view Predefined user roles network-admin Parameters second: Sets the maximum lifetime for routes and labels in the RIB, in the range of 1 to 900 seconds. 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.
Examples # Clear all IPv4 route statistics for the public network. reset ip routing-table statistics protocol all reset ipv6 routing-table statistics protocol Use reset ipv6 routing-table statistics protocol to clear IPv6 route statistics.
Predefined user roles network-admin Examples # Enter RIB view.
Static routing commands delete static-routes all Use delete static-routes all to delete all static routes. Syntax delete [ topology topo-name | vpn-instance vpn-instance-name ] static-routes all Views System view Predefined user roles network-admin Parameters topology topo-name: Specifies a topology 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.
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 static route next hop information. Without this keyword, the command displays brief static route next hop information. Examples # Displays brief static route next hop information.
# Displays detailed static route next hop information. display route-static nib verbose Total number of nexthop(s): 7 NibID: 0x11000000 Type: 0x41 Sequence: 0 Flushed: Yes UserKey0: 0x0 VrfNthp: 0 UserKey1: 0x0 Nexthop: 168.32.1.255 IFIndex: 0x0 LocalAddr: 0.0.0.0 TopoNthp: 0 RefCnt: 1 Flag: 0x12 FlushRefCnt: 0 Version: 1 1 nexthop(s): PrefixIndex: 0 OrigNexthop: 168.32.1.255 RelyDepth: 1 RealNexthop: 168.32.1.255 Interface: GE2/1/1 TunnelCnt: 0 TunnelID: N/A LocalAddr: 168.32.85.
Syntax display route-static routing-table [ topology topo-name | vpn-instance vpn-instance-name ] [ ip-address { mask-length | mask } ] Views Any view Predefined user roles network-admin network-operator Parameters topology topo-name: Specifies a topology by its name, a case-sensitive string of 1 to 31 characters. Without this option, the command displays all static routes for the public network.
Type: Normal TrackIndex: 0xffffffff Preference: 60 BfdMode: N/A BfdVrfIndex: 0 Label: NULL vrfIndexDst: 0 vrfIndexNH: 0 Permanent: 0 Tag: 0 ... # Display information about the static route with destination address 1.2.3.4/32. display route-static routing-table 1.2.3.4 32 *Destination: 1.2.3.4/32 NibID: 0x11000017 NextHop: 4.4.4.4 MainNibID: 0x11000015 BkNextHop: 5.5.5.
Field Description 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. ip route-static Use ip route-static to configure a static route.
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. topology topo-name: Specifies a topology by its name, a case-sensitive string of 1 to 31 characters.
tag tag-value: Sets a tag value for marking the static route, in the range of 1 to 4294967295. The default is 0. Tags of routes are used for route control in routing policies. For more information about routing policies, see Layer 3—IP Routing Configuration Guide. description description-text: Configures a description for the static route, which comprises 1 to 60 characters, including special characters like the space, but excluding the question mark (?).
Syntax ip route-static default-preference default-preference-value undo ip route-static default-preference Default The default preference of static routes is 60. Views System view Predefined user roles network-admin Parameters default-preference-value: Specifies a default preference for static routes, in the range of 1 to 255. Usage guidelines If no preference is specified for a static route, the default preference applies.
[Sysname] ip route-static fast-reroute auto ip route-static primary-path-detect bfd echo Use ip route-static primary-path-detect bfd echo to enable BFD echo packet mode for static route FRR. Use undo ip route-static primary-path-detect bfd to restore the default. Syntax ip route-static primary-path-detect bfd echo undo ip route-static primary-path-detect bfd Default BFD echo packet mode for static route FRR is disabled.
RIP commands checkzero Use checkzero to enable zero field check on RIPv1 messages. Use undo checkzero to disable zero field check. Syntax checkzero undo checkzero Default The zero field check function is enabled. Views RIP view Predefined user roles network-admin Usage guidelines When the zero field check is enabled, the router discards RIPv1 messages in which zero fields contain non-zero values. If all messages are trustworthy, disable this feature to reduce the workload of the CPU.
Parameters value: Specifies a default metric for redistributed routes, in the range of 0 to 16. Usage guidelines When you use the import-route command to redistribute routes from another routing protocol without specifying a metric, the metric specified by the default cost command applies. Examples # Configure a default metric of 3 for redistributed routes.
Related commands rip default-route display rip Use display rip to display state and configuration information for a RIP process. Syntax display rip [ process-id ] Views Any view Predefined user roles network-admin network-operator Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535. If no process is specified, the command displays state and configuration information for all RIP processes.
Table 18 Command output Field Description Public VPN-instance name/Private VPN-instance name Public network or VPN where the RIP process runs. RIP process RIP process ID. RIP version RIP version 1 or 2. Preference RIP preference. Checkzero Indicates whether the zero field check is enabled for RIPv1 messages. Default cost Default cost of redistributed routes. Summary Indicates whether route summarization is enabled. Host routes Indicates whether to receive host routes.
Syntax display rip process-id database [ ip-address { mask-length | mask } ] Views Any view Predefined user roles network-admin network-operator Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535. ip-address { mask-length | mask }: Displays active routes for the specified IP address. Without this argument, the command displays all actives routes for a RIP process. Examples # Display active routes for RIP process 100. display rip 100 database 1.0.0.
Predefined user roles network-admin network-operator Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535. interface-type interface-number: Specifies an interface by its type and number. If no interface is specified, the command displays information about all RIP interfaces for the RIP process. Examples # Display information about all interfaces for RIP process 1. display rip 1 interface Interface: GigabitEthernet2/1/2 Address/Mask: 1.1.1.
Field Description Indicates whether to send a default route to RIP neighbors: • • • • Default route Only—Advertises only a default route. Originate—Advertises both a default route and other routes. No-originate—Advertises only non-default routes. Off—Advertises no default route. Default route cost Metric for a default route. Current number of packets /Maximum number of packets Number of RIP packets to be sent/maximum number of RIP packets that can be sent within a certain interval.
Local route Destination/Mask Nexthop Cost Tag Flags Sec 4.4.4.4/32 0.0.0.0 0 0 RDOF - 1.1.1.0/24 0.0.0.0 0 0 RDOF - # Display specified routing information for RIP process 1. display rip 1 route 3.0.0.0 8 verbose Route Flags: R – RIP A - Aging, S - Suppressed, G - Garbage-collect, D – Direct O - Optimal, F - Flush to RIB ---------------------------------------------------------------------------Peer 1.1.1.
Table 22 Command output Field Description Peer IP address of a neighbor. Optimal Total number of optimal routes. Aging Total number of aging routes. Garbage Total number of routes in the Garbage-collection state. Local Total number of locally generated direct routes. Total Total number of routes learned from all RIP neighbors. fast-reroute Use fast-reroute to configure RIP FRR. Use undo fast-reroute to restore the default.
[Sysname-route-policy-frr-10] apply fast-reroute backup-interface gigabitethernet 2/1/1 backup-nexthop 193.1.1.8 [Sysname-route-policy-frr-10] quit [Sysname] rip 100 [Sysname-rip-100] fast-reroute route-policy frr filter-policy export Use filter-policy export to configure RIP to filter redistributed routes. Use undo filter-policy export to remove the filtering.
The source keyword specifies the destination address of a route and the destination keyword specifies the subnet mask of the route. The specified subnet mask must be contiguous. Otherwise, the mask configuration does not take effect. Examples # Use ACL 2000 to filter redistributed routes. system-view [Sysname] acl number 2000 [Sysname-acl-basic-2000] rule deny source 192.168.10.0 0.0.0.
Predefined user roles network-admin Parameters acl-number: Specifies an ACL by its number in the range of 2000 to 3999 to filter received routes. prefix-list prefix-list-name: Specifies an IP prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter received routes. gateway prefix-list-name: Specifies an IP prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter routes based on their next hops.
graceful-restart Use graceful-restart to enable GR for RIP. Use undo graceful-restart to disable RIP GR capability. Syntax graceful-restart undo graceful-restart Default RIP GR is disabled. Views RIP view Predefined user roles network-admin Examples # Enable GR for RIP process 1. system-view [Sysname] rip 1 [Sysname-rip-1] graceful-restart host-route Use host-route to enable host route reception. Use undo host-route to disable host route reception.
system-view [Sysname] rip 1 [Sysname-rip-1] undo host-route import-route Use import-route to enable route redistribution from another routing protocol. Use undo import-route to disable route redistribution. Syntax import-route protocol [ process-id | all-processes | allow-ibgp ] [ allow-direct | cost cost | route-policy route-policy-name | tag tag ] * undo import-route protocol [ process-id | all-processes ] Default RIP does not redistribute routes from any other routing protocol.
This command redistributes only active routes. To view route state information, use the display ip routing-table protocol command. The undo import-route protocol all-processes command removes only the configuration made by the import-route protocol all-processes command. It does not remove the configuration made by the import-route protocol process-id command. Examples # Redistribute static routes into RIP, and set the cost for redistributed routes to 4.
undo network network-address Default RIP is disabled on an interface. Views RIP view Predefined user roles network-admin Parameters network-address: Specifies a subnet address where an interface resides. wildcard-mask: Specifies an IP address wildcard mask. A wildcard mask can be thought of as a subnet mask, with 1s and 0s inverted. For example, a wildcard mask of 255.255.255.0 corresponds to a subnet mask of 0.0.0.255.
Predefined user roles network-admin Parameters time: Specifies the sending interval in the range of 10 to 100 milliseconds. count: Specifies the maximum number of RIP packets sent at each interval, in the range of 1 to 30. Examples # Configure all interfaces running RIP process 1 to send up to 10 RIP packets every 60 milliseconds.
preference Use preference to specify a preference for RIP routes. Use undo preference to restore the default. Syntax preference [ route-policy route-policy-name ] value undo preference Default The preference of RIP routes is 100. Views RIP view Predefined user roles network-admin Parameters route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters. value: Specifies a preference for RIP routes, in the range of 1 to 255.
Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535. Usage guidelines After executing the command, you are prompted to confirm the operation. Examples # Reset RIP process 100. reset rip 100 process Reset RIP process? [Y/N]:y reset rip statistics Use reset rip statistics to clear statistics for a RIP process.
Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535. The default is 1. vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN is specified, the RIP process runs on the public network. Usage guidelines You must enable a RIP process before configuring global parameters for it. This restriction does not apply to configuring interface parameters.
Usage guidelines A newly configured key overwrites the old one, if any. Although you can specify an authentication mode for RIPv1 in interface view, the configuration does not take effect because RIPv1 does not support authentication. For security purposes, all keys, including keys configured in plain text, are saved in cipher text. Examples # Configure MD5 authentication on GigabitEthernet 2/1/1, and specify a plaintext key rose in the format defined in RFC 2453.
[Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] rip bfd enable rip bfd enable destination Use rip bfd enable destination to enable BFD single-hop echo detection for a specific destination. Use undo rip bfd enable to disable BFD for RIP. Syntax rip bfd enable destination ip-address undo rip bfd enable Default BFD single-hop echo detection for a specific destination is disabled on an interface.
Views Interface view Predefined user roles network-admin mdc-admin Parameters only: Advertises only a default route. originate: Advertises both a default route and other routes. cost: Specifies a cost for the default route, in the range of 1 to 15. The default is 1. no-originate: Advertises only non-default routes. Usage guidelines An interface that is enabled to advertise a default route does not receive any default route from RIP neighbors.
Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535. exclude-subip: Excludes secondary IP addresses from being enabled with RIP. Without this keyword, RIP is also enabled on secondary IP addresses of a RIP-enabled interface. Usage guidelines The rip enable command has a higher priority than the network command. Examples # Enable RIP process 100 on GigabitEthernet 2/1/1.
Default The maximum length of RIP packets is 512 bytes. Views Interface view Predefined user roles network-admin Parameters value: Sets the maximum length of RIP packets, in the range of 32 to 65535 bytes. Usage guidelines If the configured value in the rip max-packet-length command is greater than the MTU of an interface, the interface MTU value is used as the maximum length of RIP packets. The supported maximum length of RIP packets varies by vendor.
Parameters route-policy route-policy-name: Uses the specified routing policy to add an additional metric for the routes matching it. The route-policy-name argument is a case-sensitive string of 1 to 63 characters. value: Adds an additional metric to inbound routes, in the range of 0 to 16. Usage guidelines When a valid RIP route is received, the system adds a metric to it and then installs it into the routing table. The metric of the route received on the configured interface is then increased.
Predefined user roles network-admin Parameters route-policy route-policy-name: Uses the specified routing policy to add an additional metric for the routes matching it. The route-policy-name argument is a case-sensitive string of 1 to 63 characters. value: Adds an additional metric to outbound routes, in the range of 1 to 16. Usage guidelines With the command configured on an interface, the metric of RIP routes sent on the interface will be increased.
Predefined user roles network-admin Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535. Usage guidelines If the specified process ID does not exist, the MIB binding configuration fails. Deleting a RIP process bound to MIB operation deletes the MIB binding configuration. After the RIP process is deleted, MIB operation is bound to the RIP process with the smallest process ID. Examples # Bind MIB operation to RIP process 100.
Default The poison reverse function is disabled. Views Interface view Predefined user roles network-admin Examples # Enable the poison reverse function on GigabitEthernet 2/1/1. system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] rip poison-reverse rip primary-path-detect bfd echo Use rip primary-path-detect bfd echo to enable BFD single-hop echo detection for RIP FRR. Use undo rip primary-path-detect bfd to restore the default.
Syntax rip split-horizon undo rip split-horizon Default The split horizon function is enabled. Views Interface view Predefined user roles network-admin Usage guidelines • The split horizon function prevents routing loops. If you want to disable the function, make sure the operation is necessary. • On NBMA networks, such as FR and X.25 where multiple VCs are configured on the primary and secondary interfaces, disable split horizon to ensure correct route advertisement.
Usage guidelines This command takes effect only when automatic route summarization is disabled. Examples # Advertise a summary route on GigabitEthernet 2/1/1. system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] rip summary-address 10.0.0.0 255.255.255.0 Related commands summary rip version Use rip version to specify a RIP version on an interface. Use undo rip version to restore the default.
• Sends RIPv2 multicast messages. • Receives RIPv2 broadcast, multicast, and unicast messages. Examples # Configure RIPv2 in broadcast mode on GigabitEthernet 2/1/1. system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] rip version 2 broadcast Related commands version silent-interface Use silent-interface to disable an interface from sending RIP messages. The interface can still receive RIP messages. Use undo silent-interface to restore the default.
Syntax summary undo summary Default Automatic RIPv2 route summarization is enabled. Views RIP view Predefined user roles network-admin Usage guidelines Automatic RIPv2 route summarization can reduce the routing table size to enhance the scalability and efficiency for large networks. Examples # Disable automatic RIPv2 route summarization. system-view [Sysname] rip [Sysname-rip-1] undo summary Related commands • rip summary-address • rip version timers Use timers to configure RIP timers.
timeout-value: Specifies the timeout timer in the range of 1 to 3600 seconds. update-value: Specifies the update timer in the range of 1 to 3600 seconds. Usage guidelines RIP uses the following timers: • Update timer—Specifies the interval between routing updates. • Timeout timer—Specifies the route aging time. If no update for a route is received before the timer expires, RIP sets the metric of the route to 16. • Suppress timer—Specifies how long a RIP route stays in suppressed state.
[Sysname-rip-100] undo validate-source-address version Use version to specify a global RIP version. Use undo version to restore the default. Syntax version { 1 | 2 } undo version Default No global RIP version is configured. An RIP interface can send RIPv1 broadcasts and receive RIPv1 broadcasts and unicasts, and RIPv2 broadcasts, multicasts, and unicasts. Views RIP view Predefined user roles network-admin Parameters 1: Specifies the RIP version as RIPv1. 2: Specifies the RIP version as RIPv2.
OSPF commands In this chapter, "MSR2000" refers to MSR2003. "MSR3000" collectively refers to MSR3012, MSR3024, MSR3044, MSR3064. "MSR4000" collectively refers to MSR4060 and MSR4080. 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.
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. 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. 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.
route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters. When the routing policy is matched and one of the following conditions is met, the command redistributes a default route in a Type-5 LSA into the OSPF routing domain: • A default route exists in the routing table. • The always keyword is specified. The routing policy modifies values in the Type-5 LSA. type type: Specifies a type for the Type-5 LSA: 1 or 2.
Usage guidelines The description specified by this command is used to identify an OSPF process or area. Examples # Describe OSPF process 100 as abc. system-view [Sysname] ospf 100 [Sysname-ospf-100] description abc # Describe OSPF Area 0 as bone area. system-view [Sysname] ospf 100 [Sysname-ospf-100] area 0 [Sysname-ospf-100-area-0.0.0.0] description bone area display ospf Use display ospf to display OSPF process information.
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: 22 RFC 1583 compatible Graceful restart interval: 120 SNMP trap rate limit interval: 2 Count: 300 This pr
FRR backup: Enabled Enabled by network configuration Table 23 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. OSPF extended community attribute type codes: Ext-community type • domain ID—Domain ID code.
Field Description Count Number of sent SNMP notifications. ExChange/Loading neighbors Neighbors in ExChange/Loading state. Full neighbors Neighbors in Full state. 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.
Field Description Process reset state: Process reset state • N/A—The process is not reset. • Under reset—The process is in the reset progress. • Under RIB smooth—The process is synchronizing the RIB. 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.
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 Type of the area: Area flag • • • • • Normal. Stub. StubNoSummary (totally stub area). NSSA. NSSANoSummary (totally NSSA area). State of the translator that translates Type-7 LSAs to Type-5 LSAs: 7/5 translator state • Enabled—The translator is specified through commands. • Elected—The translator is designated through election. • Disabled—The device is not a translator. 7/5 translate stability timer interval Stability interval for Type-7 LSA-to-Type-5 LSA translation.
verbose: Displays detailed information. Without this keyword, the command displays brief information. 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.
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 information about ABR summary routes for all OSPF processes. area area-id: Specifies an OSPF area by its ID. The area ID is an IP address or a decimal integer in the range of 0 to 4294967295 that is translated into the IP address format.
display ospf abr-summary verbose OSPF Process 1 with Router ID 2.2.2.2 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 26 Command output Field Description Destination Destination address of a summarized route. NetMask Network mask of a summarized route.
Usage guidelines If no IP address is specified, this command displays all summarized redistributed routes. 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.
Related commands asbr-summary display ospf event-log Use display ospf event-log to display OSPF log information for a process. Syntax display ospf [ process-id ] event-log { peer | 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 log information for all processes. peer: Specifies neighbor log information.
Table 28 Command output Field Description Date/Time Time when the route calculation starts. Duration Duration of the route calculation, in seconds. Intra Number of intra-area routes newly installed to the IP routing table. Inter Number of inter-area routes newly installed to the IP routing table. External Number of external routes newly installed to the IP routing table. Reasons why the route calculation is performed: • • • • • • • • • • • • • Reason Intra-area LSA—Intra-area LSA changes.
Field Description Reasons for neighbor state changes: Reason • • • • • • • • • • • • • • • • • • • • • • • • • • • ResetConnect—The connection is lost due to insufficient memory. IntChange—The interface parameter has changed. VlinkChange—The virtual link parameter has changed. ShamlinkChange—The sham link parameter has changed. ResetOspf—The OSPF process is reset. UndoOspf—The OSPF process is deleted. UndoAres—The OSPF area is deleted. UndoNetwork—The interface is disabled.
Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. Without this argument, the command displays FRR backup next hop information for all processes. area area-id: Specifies an OSPF area by its ID. The area ID is an IP address or a decimal integer in the range of 0 to 4294967295 that is translated into the IP address format. Without this option, the command displays FRR backup next hop information for all OSPF areas. Examples # Display OSPF FRR backup next hop information.
Examples # Display detailed GR information. display ospf graceful-restart verbose OSPF Process 1 with Router ID 1.1.1.
Field Description Indicates whether GR is enabled: • Enable(IETF)—IETF GR is enabled. • Enable(Nonstandard)—Non-IETF GR is enabled. • Disable—GR is disabled. Graceful Restart capability GR modes that the process supports (the modes are displayed only when GR is enabled): • Planned and un-planned—Supports both planned and unplanned GR. Graceful Restart support • Planned only—Supports only planned GR. • Partial—Supports partial GR. • Global—Supports global GR.
Field Description Area up Interface count Number of up interfaces in the area. Interface Interface in the area. Restarter state Restarter state on the interface. State Interface state. Type Interface network type. Neighbor count of this interface Neighbors of an interface. Neighbor Neighbor router ID. IP address Neighbor IP address. Neighbor GR state: • Normal—Normal state. • Under GR—GR is in process. • Under Helper—The process is acting as GR helper.
display ospf interface OSPF Process 1 with Router ID 192.168.1.1 Interfaces Area: 0.0.0.0 IP Address Type State Cost Pri DR BDR 192.168.1.1 PTP P-2-P 1562 1 0.0.0.0 0.0.0.0 IP Address Type State Cost Pri DR BDR 172.16.0.1 Broadcast DR 1 1 172.16.0.1 0.0.0.0 Area: 0.0.0.1 Table 32 Command output Field Description Area Area ID of the interface. IP address Interface IP address (regardless of whether TE is enabled or not).
Backup designated router: 0.0.0.0 Timers: Hello 10, Dead 40, Poll 40, Retransmit 5, Transmit Delay 1 FRR backup: Enabled Enabled by interface configuration (including secondary IP addresses) MD5 authentication enabled. The last key is 3. The rollover is in progress, 2 neighbor(s) left. Table 33 Command output Field Description Interface Information about the interface, such as the IP address. Timers OSPF timers: hello, dead, poll, retransmit, and transmit delay.
network: Displays Type-2 LSA (Network LSA) information in the LSDB. nssa: Displays Type-7 LSA (NSSA External LSA) information in the LSDB. opaque-area: Displays Type-10 LSA (Opaque-area LSA) information in the LSDB. opaque-as: Displays Type-11 LSA (Opaque-AS LSA) information in the LSDB. opaque-link: Displays Type-9 LSA (Opaque-link LSA) information in the LSDB. router: Displays Type-1 LSA (Router LSA) information in the LSDB. summary: Displays Type-3 LSA (Network Summary LSA) information in the LSDB.
Field Description Sequence Sequence number of the LSA. Metric Cost of the LSA. *Opq-Link Opaque LSA generated by a virtual link. # Display Type-2 LSA (Network LSA) information in the LSDB. display ospf 1 lsdb network OSPF Process 1 with Router ID 192.168.1.1 Area: 0.0.0.0 Link State Database Type : Network LS ID : 192.168.0.2 Adv Rtr : 192.168.2.1 LS Age : 922 Len : 32 Options : Seq# : 80000003 Checksum Net Mask E : 0x8d1b : 255.255.255.0 Attached Router 192.168.1.
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. Seq# LSA sequence number. 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.
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. display ospf non-stop-routing status Use display ospf non-stop-routing status to display OSPF NSR status information.
Field Description Upgrade phase: • • • • • • • Upgrade phase Prepare—Upgrade preparation phase. Restore Smooth—Upgrade phase. Preroute—Route pre-calculation phase. Calculating—Route calculation phase. Redisting—Route redistribution phase. Original and age—LSA generation and aging phase. Normal—Normal status. display ospf peer Use display ospf peer to display information about OSPF neighbors.
Neighbor is up for 02:03:35 Authentication Sequence: [ 0 ] Neighbor state change count: 6 BFD status: Disabled Sham link 11.11.11.11 -> 22.22.22.22's neighbor in area 0.0.0.1 Router ID: 22.22.22.22 State: Full Address: 22.22.22.22 Mode: Nbr is master Priority: 1 BFD status: Disabled Table 38 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.
Field Description BDR BDR on the interface's network segment. MTU Interface MTU. 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.
Field Description Interface Interface connected to the neighbor. 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.
Field Description ExStart Number of neighboring routers in ExStart state in the same area. 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 in 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 42 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: GE2/1/2 BkInterface: N/A NibID: 0x1300000c Status: Normal Cost: 1562 Destination: 172.16.0.0/16 Priority: Low Type: Inter AdvRouter: 192.168.1.1 Area: 0.0.0.0 SubProtoID: 0x1 Preference: 10 NextHop: 192.168.1.
Field Description Cost Cost to destination. SpfCost SPF cost. display ospf spf-tree Use display ospf spf-tree to display OSPF topology information. 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.
>100.0.0.4 Router S -->192.168.119.130 RT2NET 10 C Table 45 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.
Mask SPFLinkCnt : 2 Distance : 10 SPFDistance : 100 VlinkData: 0.0.0.0 ParentLinkCnt: 1 NextHop : 255.255.255.0 NodeFlag: S R : 1 192.168.119.130 Interface: GE2/1/2 BkNextHop: 1 0.0.0.0 Interface: GE2/1/2 -->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.
Field Description LinkCost Link cost. NextHopCnt Number of next hops. LinkData Link data. 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. 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.
DB Description 2 3 Link-State Req 1 1 Link-State Update 3 3 Link-State Ack 3 2 LSAs originated by this router Router : 4 Network : 0 Sum-Net : 0 Sum-Asbr: 0 External: 0 NSSA : 0 Opq-Link: 0 Opq-Area: 0 Opq-As : 0 LSAs originated: 4 LSAs received: 7 Routing table: Intra area: 2 Inter area: 3 ASE/NSSA: 0 Table 47 Command output Field Description I/O statistics Statistics about input/output packets and LSAs. Type OSPF packet type. Input Packets received. Output Packets sent.
Field Description LSA originated Number of LSAs originated. LSA received Number of LSAs received. Routing table Routing table information. Intra area Number of intra-area routes. 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 Transmit error Packets with error when being transmitted. Interface down Shutdown times of the interface. Unknown neighbor Packets received from unknown neighbors. HELLO: Netmask mismatch Hello packets with mismatched mask. 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.
Virtual Links Virtual-link Neighbor-ID -> 2.2.2.2, Neighbor-State: Full Interface: 10.1.2.1 (GigabitEthernet2/1/1) Cost: 1562 State: P-2-P Type: Virtual Transit Area: 0.0.0.1 Timers: Hello 10 , Dead 40 , Retransmit 5 , Transmit Delay 1 MD5 authentication enabled. The last key is 3. The rollover is in progress, 2 neighbor(s) left. Table 49 Command output Field Description Virtual-link Neighbor-ID ID of the neighbor on the virtual link.
dscp Use dscp to configure a DSCP value for outgoing OSPF packets. Use undo dscp to restore the default. Syntax dscp dscp-value 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.
enable out-of-band-resynchronization Use enable out-of-band-resynchronization to enable the OSPF out-of-band resynchronization (OOB-Resynch) capability. Use undo enable out-of-band-resynchronization to disable the OSPF out-of-band resynchronization capability. Syntax enable out-of-band-resynchronization undo enable out-of-band-resynchronization Default The OSPF out-of-band resynchronization capability is disabled.
Parameters peer: Specifies the number of neighbor logs. spf: Specifies the number of route calculation logs. count: Specifies the number of OSPF logs, in the range of 0 to 65535. Examples # Specify the number of route calculation logs as 50 in OSPF process 100. system-view [Sysname] ospf 100 [Sysname-ospf-100] event-log spf size 50 fast-reroute (OSPF view) Use fast-reroute to configure OSPF FRR. Use undo fast-reroute to restore the default.
filter (OSPF area view) NOTE: This command is available only on an ABR. Use filter to configure OSPF to filter inbound/outbound Type-3 LSAs on an ABR. Use undo filter to disable Type-3 LSA filtering. Syntax filter { acl-number | prefix-list prefix-list-name | route-policy route-policy-name } { export | import } undo filter { export | import } Default Type-3 LSAs are not filtered.
Default Redistributed routes are not filtered. Views OSPF view Predefined user roles network-admin Parameters acl-number: Specifies an ACL by its number in the range of 2000 to 3999 to filter redistributed routes by destination address. prefix-list-name: Specifies an IP prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter redistributed routes by destination address.
Related commands import-route filter-policy import (OSPF view) Use filter-policy import to configure OSPF to filter routes calculated using received LSAs. Use undo filter-policy import to restore the default. Syntax filter-policy { acl-number [ gateway prefix-list-name ] | gateway prefix-list-name | prefix-list prefix-list-name [ gateway prefix-list-name ] | route-policy route-policy-name } import undo filter-policy import Default Routes calculated using received LSAs are not filtered.
[Sysname] ospf 100 [Sysname-ospf-100] filter-policy 2000 import # Configure ACL 3000 to permit only route 113.0.0.0/16. Use ACL 3000 to filter received routes. system-view [Sysname] acl number 3000 [Sysname-acl-adv-3000] rule 10 permit ip source 113.0.0.0 0 255.255.0.0 0 [Sysname-acl-adv-3000] rule 100 deny ip [Sysname-acl-adv-3000] quit [Sysname] ospf 100 [Sysname-ospf-100] filter-policy 3000 import graceful-restart (OSPF view) Use graceful-restart to enable OSPF GR.
Before enabling non-IETF GR for OSPF, enable OSPF LLS with the enable link-local-signaling command and OOB-Resynch with the enable out-of-band-resynchronization command. If you do not provide the nonstandard or ietf keyword, the command enables non-IETF GR for OSPF. OSPF GR and OSPF NSR are mutually exclusive, so do not configure the graceful-restart command and the non-stop-routing command at the same time. Examples # Enable IETF GR for OSPF process 1.
Examples # Enable GR helper capability for OSPF process 1. system-view [Sysname] ospf 1 [Sysname-ospf-1] graceful-restart helper enable graceful-restart helper strict-lsa-checking Use graceful-restart helper strict-lsa-checking to enable strict LSA checking capability for GR helper. Use undo graceful-restart helper strict-lsa-checking to disable strict LSA checking capability for GR helper.
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. Examples # Configure the GR interval for OSPF process 1 as 100 seconds.
Use undo import-route to disable route redistribution from another routing protocol. Syntax import-route protocol [ process-id | all-processes | allow-ibgp ] [ allow-direct | cost cost | nssa-only | route-policy route-policy-name | tag tag | type type ] * undo import-route protocol [ process-id | all-processes ] Default OSPF does not redistribute AS-external routes from any other routing protocol.
A Type-2 external route has low credibility. OSPF considers the cost from the ASBR to the destination of a Type-2 external route is much bigger than the cost from the ASBR to an OSPF internal router. The cost of a Type-2 external route equals the cost from the ASBR to the Type-2 external route's destination. The import-route command cannot redistribute default external routes. The import-route bgp command redistributes only EBGP routes.
[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. Syntax log-peer-change undo log-peer-change Default The logging of OSPF neighbor state changes is enabled. Views OSPF view Predefined user roles network-admin Usage guidelines This command enables output of OSPF neighbor state changes to the information center.
Parameters interval: Specifies the LSA arrival interval in the range of 0 to 60000 milliseconds. Usage guidelines If an LSA that has the same LSA type, LS ID, originating router ID as the previous LSA is received within the interval, OSPF discards the LSA. This feature helps protect resources from being over consumed due to frequent network changes.
Examples # Configure the maximum LSA generation interval as 2 seconds, minimum interval as 100 milliseconds and incremental interval as 100 milliseconds. system-view [Sysname] ospf 100 [Sysname-ospf-100] lsa-generation-interval 2 100 100 Related commands lsa-arrival-interval lsdb-overflow-interval Use lsdb-overflow-interval to configure the interval that OSPF exits overflow state. Use undo lsdb-overflow-interval to restore the default.
Syntax lsdb-overflow-limit number undo lsdb-overflow-limit Default The number of external LSAs is not limited. Views OSPF view Predefined user roles network-admin Parameters number: Specifies the upper limit of external LSAs in the LSDB, in the range of 1 to 1000000. Examples # Specify the upper limit of external LSAs as 400000.
network (OSPF area view) Use network to enable OSPF on the interface attached to the specified network in the area. Use undo network to disable OSPF for the interface attached to the specified network in the area. Syntax network ip-address wildcard-mask undo network ip-address wildcard-mask Default OSPF is not enabled for any interface. Views OSPF area view Predefined user roles network-admin Parameters ip-address: Specifies the IP address of a network.
Hardware Command compatibility MSR2000 No MSR3000 No MSR4000 Yes Default OSPF NSR is disabled. Views OSPF view Predefined user roles network-admin Usage guidelines OSPF NSR and OSPF GR are mutually exclusive, so do not configure the non-stop-routing command and the graceful-restart command at the same time. Examples # Enable NSR for OSPF process 100. system-view [Sysname] ospf 100 [Sysname-ospf-100] non-stop-routing nssa Use nssa to configure the current area as an NSSA area.
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. 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 is set to 0.
undo opaque-capability 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.
system-view [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.
undo ospf authentication-mode { hmac-md5 | md5 } key-id For simple authentication: ospf authentication-mode simple { cipher cipher-string | plain plain-string } undo ospf authentication-mode simple Default No authentication is 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.
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 15 plain 123456 [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 GigabitEthernet 2/1/1. system-view [Sysname] ospf [Sysname-ospf-1] area 0 [Sysname-ospf-1-area-0.0.0.0] network 192.168.0.0 0.0.255.255 [Sysname-ospf-1-area-0.0.0.0] quit [Sysname-ospf-1] quit [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] ospf bfd enable ospf cost Use ospf cost to set an OSPF cost for an interface.
ospf dr-priority Use ospf dr-priority to set the router priority for DR/BDR election on an interface. Use undo ospf dr-priority to restore the default value. Syntax ospf dr-priority priority undo ospf dr-priority Default The 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.
Usage guidelines If you enable LFA on an interface, it can be selected as a backup interface. After you disable LFA on the interface, it cannot be selected as a backup. Examples # Disable GigabitEthernet 2/1/1 from calculating a backup next hop by using the LFA algorithm. system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] undo ospf fast-reroute lfa-backup ospf mib-binding Use ospf mib-binding to bind an OSPF process to MIB.
Default The MTU in DD packets is 0. Views Interface view Predefined user roles network-admin Usage guidelines After a virtual link is established through a Virtual-Template or Tunnel, two devices on the link from different vendors might have different MTU values. To make them consistent, restore the interfaces' MTU to the default value 0. After you configure this command, the interface checks whether the MTU in a received DD packet is greater than its own MTU. If yes, the interface discards the packet.
p2p: Specifies the network type as P2P. peer-address-check: Checks whether the peer interface and the local interface are on the same network segment. Two P2P interfaces can establish a neighbor relationship only when they are on the same network segment. Usage guidelines If a router on a broadcast network does not support multicast, configure the network type for the connected interfaces as NBMA.
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." Examples # Enable prefix suppression on GigabitEthernet 2/1/2.
[Sysname-ospf-1] quit [Sysname] bfd echo-source-ip 1.1.1.1 [Sysname] interface gigabitethernet 2/1/2 [Sysname-GigabitEthernet2/1/2] ospf primary-path-detect bfd echo ospf timer dead Use ospf timer dead to set the neighbor dead interval. Use undo ospf timer dead to restore the default. Syntax ospf timer dead seconds undo ospf timer dead Default The dead interval is 40 seconds for broadcast and P2P interfaces. The dead interval is 120 seconds for P2MP and NBMA interfaces.
Default The hello interval is 10 seconds for P2P and broadcast interfaces, and is 30 seconds for P2MP and NBMA interfaces. Views Interface view Predefined user roles network-admin Parameters seconds: Specifies the hello interval in the range of 1 to 65535 seconds. Usage guidelines The shorter the hello interval, the faster the topology converges, and the more resources are consumed. Make sure the hello interval on two neighboring interfaces is the same.
Examples # Set the poll timer interval on GigabitEthernet 2/1/1 to 130 seconds. system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] ospf timer poll 130 Related commands ospf timer hello ospf timer retransmit Use ospf timer retransmit to set the LSA retransmission interval on an interface. Use undo ospf timer retransmit to restore the default.
Default The LSA transmission delay is 1 second. Views Interface view Predefined user roles network-admin Parameters seconds: Specifies the LSA transmission delay in the range of 1 to 3600 seconds. Usage guidelines Each LSA in the LSDB has an age that is incremented by 1 every second, but the age does not change during transmission. Adding a transmission delay into the age time is important in low speed networks. Examples # Set the LSA transmission delay to 3 seconds on GigabitEthernet 2/1/1.
The cost set with the peer command applies only to P2MP neighbors. If no cost is specified, the cost to the neighbor equals the local interface's cost. A router uses the priority set with the peer command to determine whether to send a hello packet to the neighbor rather than for DR election. The DR priority set with the ospf dr-priority command is used for DR election. Examples # Specify the neighbor 1.1.1.1. system-view [Sysname] ospf 100 [Sysname-ospf-100] peer 1.1.1.
Use undo preference to restore the default. Syntax preference [ ase ] [ route-policy route-policy-name ] value undo preference [ ase ] Default The preference is 10 for OSPF internal routes and 150 for OSPF external routes (or ASE routes). Views OSPF view Predefined user roles network-admin Parameters ase: Sets a preference for OSPF external routes. Without this keyword, the command sets a preference for OSPF internal routes.
Default Prefix prioritization is disabled. Views OSPF view Predefined user roles network-admin Parameters route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to set a priority for the specified route prefixes. Usage guidelines Prefix prioritization enables the device to install prefixes in descending priority order: critical, high, medium, and low. The prefix priorities are assigned through routing policies.
Usage guidelines If you want to use prefix suppression, HP recommends that you configure prefix suppression on all OSPF routers. To disable an OSPF process from advertising the prefixes of loopback and passive interfaces, configure prefix suppression on the interfaces by using the ospf prefix-suppression command. When prefix suppression is enabled: • On P2P and P2MP networks, OSPF does not advertise Type-3 links in Router LSAs. Other routing information can still be advertised to ensure traffic forwarding.
reset ospf process Use reset ospf process to restart all OSPF processes or a specified process. Syntax reset ospf [ process-id ] process [ graceful-restart ] 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. graceful-restart: Resets the OSPF process by using GR. Usage guidelines If no process is specified, this command restarts all OSPF processes.
Examples # Restart route redistribution. reset ospf redistribution reset ospf statistics Use reset ospf statistics to clear OSPF statistics. Syntax reset ospf [ process-id ] statistics 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.
{ 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. Selects the route with larger originating area ID if two routes have equal cost. To avoid routing loops, HP recommends setting identical RFC 1583-compatibility on all routers in a routing domain.
• 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.
undo snmp trap rate-limit Default OSPF outputs up to seven SNMP notifications within 10 seconds. Views OSPF view Predefined user roles network-admin Parameters trap-interval: Specifies the SNMP notification output interval in the range of 1 to 60 seconds. trap-number: Specifies the number of SNMP notifications output by OSPF at each interval, in the range of 0 to 300. Examples # Configure OSPF to output up to 10 SNMP notifications within 5 seconds.
config-error: Specifies notifications about error configuration of an interface. grhelper-status-change: Specifies notifications about GR helper state change. grrestarter-status-change: Specifies notifications about GR restarter state change. if-state-change: Specifies notifications about interface state change. lsa-maxage: Specifies LSA max age notifications. lsa-originate: Specifies notifications about locally generated LSAs.
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. Usage guidelines Based on the LSDB, an OSPF router uses SPF to calculate a shortest path tree with itself as the root.
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. With this keyword, the ABR advertises only a default route in a Type-3 LSA into the stub area without advertising any other Type-3 LSAs. The area is a totally stub area.
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. A value of 3 represents a link to a stub network, and the cost of the link is not changed. A value of 1, 2, or 4 represents a point-to-point link, a link to a transit network, or a virtual link. The cost of these links is set to 65535.
vlink-peer (OSPF 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 | { { hmac-md5 | md5 } key-id { cipher cipher-string | plain plain-string } | simple { cipher cipher-string | plain plain-string } } | retransmit seconds | trans-delay seconds ] * undo vlink-peer router-id [ dead | hello | { hmac-md5 | md5 } key-id | retransmit | simple | trans-delay ] * Default No virtual link is configured.
• 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. A large value is appropriate for a low speed link. • Specify an appropriate transmission delay with the trans-delay keyword. For security purposes, all keys, including keys configured in plain text, are saved in cipher text.
IS-IS commands In this chapter, "MSR2000" refers to MSR2003. "MSR3000" collectively refers to MSR3012, MSR3024, MSR3044, MSR3064. "MSR4000" collectively refers to MSR4060 and MSR4080. address-family ipv4 Use address-family ipv4 to create the IS-IS IPv4 address family and enter its view. Use undo address-family ipv4 to delete the IS-IS IPv4 address family. Syntax address-family ipv4 [ unicast ] undo address-family ipv4 [ unicast ] Default The IS-IS IPv4 address family is not created.
Views IS-IS view Predefined user roles network-admin Usage guidelines When area authentication mode and password are configured, a Level-1 or Level-1-2 router adds the password in the specified mode into transmitted Level-1 packets (including LSPs, CSNPs, and PSNPs). It also checks the password in the received Level-1 packets. To prevent packet exchange failure in case of an authentication password change, configure IS-IS not to check the authentication information in the received packets.
key-id: Uniquely identifies an SA in the range of 1 to 65535. The sender inserts the Key ID into the authentication TLV, and the receiver authenticates the packet by using the SA that is selected based on the Key ID. hmac-sha-1: Specifies the HMAC-SHA-1 algorithm. hmac-sha-224: Specifies the HMAC-SHA-224 algorithm. hmac-sha-256: Specifies the HMAC-SHA-256 algorithm. hmac-sha-384: Specifies the HMAC-SHA-384 algorithm. hmac-sha-512: Specifies the HMAC-SHA-512 algorithm. cipher: Sets a ciphertext password.
Default This function is disabled. Views IS-IS view, IS-IS IPv4 unicast topology view Predefined user roles network-admin Usage guidelines After automatic link cost calculation is enabled, the link cost is automatically calculated based on the bandwidth reference value of an interface. When the cost-style is wide or wide-compatible, the cost value of an interface is calculated by using the following formula: Cost = (Reference bandwidth value / Link bandwidth) × 10.
Views IS-IS view, IS-IS IPv4 unicast topology view Predefined user roles network-admin Parameters value: Specifies the bandwidth reference value in the range of 1 to 2147483648 Mbps. Examples # Configure the bandwidth reference of IS-IS process 1 as 200 Mbps. system-view [Sysname] isis 1 [Sysname-isis-1] bandwidth-reference 200 Related commands • auto-cost enable • isis cost circuit-cost Use circuit-cost to set a global IS-IS link cost. Use undo circuit-cost to remove the configuration.
[Sysname] isis 1 [Sysname-isis-1] circuit-cost 11 level-1 Related commands • cost-style • isis cost cost-style Use cost-style to set a cost style. Use undo cost-style to restore the default. Syntax cost-style { narrow | wide | wide-compatible | { compatible | narrow-compatible } [ relax-spf-limit ] } undo cost-style Default Only narrow cost style packets can be received and sent.
default-route-advertise (IS-IS view) Use default-route-advertise to advertise a default route of 0.0.0.0/0. Use undo default-route-advertise to restore the default. Syntax default-route-advertise [ avoid-learning | [ level-1 | level-1-2 | level-2 ] | route-policy route-policy-name | tag tag ] * undo default-route-advertise Default Default route advertisement is disabled.
display isis Use display isis to display configuration information for an IS-IS process. Syntax MSR2000/MSR3000: display isis [ process-id ] MSR4000: display isis [ process-id ] [ standby slot slot-number ] Views Any view Predefined user roles network-admin network-operator Parameters process-id: Specifies a process by its ID in the range of 1 to 65535. Without this argument, the command displays configuration information for all IS-IS processes.
IPv4-Unicast : Topology red Topology ID : 6 Preference : 15 Maximum imported routes : 1000000 SPF intervals : 5 50 200 Overload status : Overloaded manually Table 51 Command output Field Description Network-entity Network entity name. Is-level IS-IS routing level. Cost-style Cost style. IS-IS FRR status: • Disable—IS-IS FRR is disabled. • Auto—IS-IS FRR automatically calculates a backup next Fast-reroute hop.
Field Description Overload bit status: • Overloaded manually—The overload bit is set manually. • Overloaded on startup—The overload bit is set on system startup. • Overloaded on startup waiting for nbr system-id up timeout1—The overload bit is set within the timeout1 interval waiting the neighbor system-id to come up. Overload status • Overloaded on startup after nbr system-id up timeout1—The overload bit is set within the timeout1 interval after the neighbor system-id comes up.
Jul 18 20:46:40 2012 -Slot=0 Process 1 enter GR phase (LSP stability). Jul 18 20:46:40 2012 -Slot=0 Process 1 enter GR phase (LSP generation). Jul 18 20:46:40 2012 -Slot=0 Process 1 enter GR phase (Finish). Jul 18 20:46:40 2012 -Slot=0 Process 1 GR complete. Table 52 Command output Field Description GR phase: • • • • • • • • GR phase Initialization. LSDB synchronization. First SPF computation. Redistribution. Second SPF computation. LSP stability—Ready to generate LSPs. LSP generation. Finish.
Level-1 restart information --------------------------Total number of interfaces: 1 Number of waiting LSPs: 0 Level-2 restart information --------------------------Total number of interfaces: 1 Number of waiting LSPs: 0 Table 53 Command output Field Description Current GR state: • RESTARTING—In this state, forwarding can be ensured. Restart status • STARTING—In this state, forwarding cannot be ensured. • COMPLETE—GR is completed. Current Restart phase: • • • • • • • • Restart phase Initialization.
MSR4000: display isis interface [ interface-type interface-number ] [ verbose ] [ process-id ] [ standby slot slot-number ] Views Any view Predefined user roles network-admin network-operator Parameters interface-type interface-number: Displays information for a specified IS-IS interface. Without this argument, the command displays information about all interfaces. verbose: Displays detailed information about an interface. Without this keyword, the command displays brief information about an interface.
CSNP timer value : L1 10 Hello timer value : 10 L2 10 Hello multiplier value : LSP timer value : L12 LSP max transmition count : L12 Cost : L1 100 L2 100 IPv6 cost Priority : L1 10 L2 10 : L1 64 L2 64 Retransmit timer value : L12 LDP state : L1 Init L2 No-LDP LDP sync state MPLS TE status : L1 Init L2 Achieved : L1 Disabled L2 Disabled IPv4 BFD : Disabled IPv6 BFD : Disabled FRR LFA backup : Enabled IPv4 prefix-suppression : Disabled IPv6 prefix-suppressio
Field Description Hello timer value Interval for sending Hello packets. Hello multiplier value Number of invalid Hello packets. Lsp timer value Minimum interval for sending LSP packets. LSP max transmition count Number of LSP packets sent each time. Cost Cost of the interface. IPv6 cost IPv6 link cost of the interface. Priority DIS priority. Retransmit timer value Retransmission interval for LSPs on a P2P link. MPLS TE status MPLS TE status: Enabled or Disabled.
display isis interface statistics Interface Statistics information for ISIS(1) -------------------------------------------Type IPv4 Up/Down IPv6 Up/Down LAN 1/0 0/0 P2P 0/0 0/0 Table 55 Command output Field Description Network type of the interface: Type • LAN for broadcast network. • P2P for point-to-point network. IPv4 UP Number of IS-IS interfaces in up state. IPv4 Down Number of IS-IS interfaces in down state. IPv6 UP Number of IS-ISv6 interfaces in up state.
lspname: Specifies the LSP name, in the form of Symbolic name.Pseudo ID-fragment num, where Pseudo ID is separated by a dot from Symbolic name and by a hyphen from fragment num. If the Pseudo ID is 0, specify the LSP name in the form Symbolic name-fragment num. verbose: Displays LSDB detailed information. Without this keyword, the command displays brief information about LSDB. process-id: Specifies an IS-IS process by its ID in the range of 1 to 65535.
MT ID 0002 0/0/0 MT ID 0006 0/0/0 +NBR ID 0000.0000.0011.
Reservable bandwidth: 0 bytes/sec Unreserved bandwidth for each TE class: TE class 0: 0 bytes/sec TE class 1: 0 bytes/sec TE class 2: 0 bytes/sec TE class 3: 0 bytes/sec TE class 4: 0 bytes/sec TE class 5: 0 bytes/sec TE class 6: 0 bytes/sec TE class 7: 0 bytes/sec TE class 8: 0 bytes/sec TE class 9: 0 bytes/sec TE class 10: 0 bytes/sec TE class 11: 0 bytes/sec TE class 12: 0 bytes/sec TE class 13: 0 bytes/sec TE class 14: 0 bytes/sec TE class 15: 0 bytes/sec TE cost: 10 Bandwidth
Field Description MT ID 0000 0/0/0 MT ID 0002 0/0/0 MT ID 0006 0/0/0 Topology supported by the originating router (0/0/0 indicates ATT/P/OL): • 0000—Base topology. • 0002—IPv6 unicast topology. • 0006—IPv4 unicast topology. NBR ID Neighbor ID of the originating router. IPv4 unicast NBR ID IPv4 unicast neighbor information about the originating router. IPv6 unicast NBR ID IPv4 unicast neighbor information about the originating router. Admin group Link management group attribute.
Syntax display isis mesh-group [ process-id ] Views Any view Predefined user roles network-admin network-operator Parameters process-id: Displays IS-IS mesh-group configuration for an IS-IS process specified by its ID in the range of 1 to 65535. Without this argument, the command displays IS-IS mesh group configuration information for all IS-IS processes. Examples # Add Serial 2/1/0 and Serial 2/1/1 to mesh group 100.
network-operator Parameters process-id: Displays the host name to system ID mapping table for an IS-IS process specified by its ID in the range of 1 to 65535. Without this argument, the command displays the host name to system ID mapping table for all IS-IS processes. Examples # Display the IS-IS host name to system ID mapping table. display isis name-table Name table information for IS-IS(1) ----------------------------------System ID Hostname Type Level 6789.0000.
Predefined user roles network-admin network-operator Parameters slot slot-number: Specifies a card by its slot number. Examples # Display IS-IS NSR log information. display isis non-stop-routing event-log slot 0 IS-IS loginfo : Jul 20 08:34:05 2012 -Slot=0 Enter HA Block status Jul 19 22:34:05 2012 -Slot=0 Exit HA Block status Jul 19 22:37:53 2012 -Slot=0 Process 1 enter NSR phase (Initialization). Jul 19 22:37:53 2012 -Slot=0 Process 1 enter NSR phase (Smooth).
Hardware Command compatibility MSR4000 Yes Views Any view Predefined user roles network-admin network-operator Examples # Display IS-IS NSR status. display isis non-stop-routing status Nonstop Routing information for IS-IS(1) ---------------------------------------NSR phase: Finish Table 60 Command output Field Description NSR phase: • • • • • • • • NSR phase Initialization. Smooth. First SPF computation. Redistribution. Second SPF computation. LSP stability—Ready to generate LSPs.
Parameters statistics: Displays IS-IS neighbor statistics. verbose: Displays detailed IS-IS neighbor information. Without this keyword, the command displays brief IS-IS neighbor information. process-id: Displays IS-IS neighbor information for an IS-IS process specified by its ID in the range of 1 to 65535. Without this argument, the command displays neighbor information for all IS-IS processes. standby slot slot-number: Displays backup IS-IS neighbor information for a card.
System ID: 0000.0000.0002 Interface: GE2/1/3 State: Up Circuit Id: HoldTime: 27s 001 Type: L1L2 PRI: -- Area address(es): 49 Peer IP address(es): 192.168.220.30 Peer local circuit ID: 1 Peer circuit SNPA address: 000c-29fd-ed69 Uptime: 00:05:07 Adj protocol: IPv4 Adj P2P three-way handshake: Yes Peer extended circuit ID: 2 Graceful Restart capable Restarting signal: No Suppress adjacency advertisement: No Table 61 Command output Field Description System Id System ID of the neighbor.
Field Description Suppress adjacency advertisement SA flag. Local topology List of topologies supported by the local interface. Remote topology List of topologies supported by the neighbor interface. # Display IS-IS neighbor statistics.
topology topo-name: Specifies a topology by its name, a case-sensitive string of 1 to 31 characters. Without this option, the command displays redistributed IS-IS routing information for the public network. ip-address mask-length: Specifies the destination IP address and mask length. process-id: Specifies the IS-IS process by its ID in the range of 1 to 65535. level-1: Displays the IS-IS Level-1 routing information. level-2: Displays the IS-IS Level-2 routing information.
display isis route Use display isis route to display IS-IS IPv4 routing information. Syntax display isis route [ ipv4 [ topology topo-name ] [ ip-address mask-length ] ] [ [ level-1 | level-2 ] | verbose ] * [ process-id ] Views Any view Predefined user roles network-admin network-operator Parameters ipv4: Displays IS-IS IPv4 routing information (the default). topology topo-name: Specifies a topology by its name, a case-sensitive string of 1 to 31 characters.
Level-2 IPv4 Forwarding Table ----------------------------- IPv4 Destination IntCost ExtCost ExitInterface NextHop Flags ------------------------------------------------------------------------------8.8.8.0/24 10 NULL D/L/- Flags: D-Direct, R-Added to Rib, L-Advertised in LSPs, U-Up/Down Bit Set Table 64 Command output Field Description Route information for ISIS(1) Route information for IS-IS process 1. ISIS(1) IPv4 Level-1 Forwarding Table IS-IS IPv4 routing information for Level-1.
8.8.8.5 Nib ID GE2/1/2 0x00000003 : 0x0 Flags: D-Direct, R-Added to Rib, L-Advertised in LSPs, U-Up/Down Bit Set Level-2 IPv4 Forwarding Table ----------------------------- IPV4 Dest : 8.8.8.0/24 Int. Cost : 10 Ext. Cost : NULL Admin Tag : - Src Count : 2 Flag : D/L/- Flags: D-Direct, R-Added to Rib, L-Advertised in LSPs, U-Up/Down Bit Set Table 65 Command output Field Description Route information for ISIS(1) Route information for IS-IS process 1.
network-operator Parameters ipv4: Displays IS-IS IPv4 topology information. Without this keyword, the command displays IS-IS IPv4 topology information. topology topo-name: Specifies a topology by its name, a case-sensitive string of 1 to 31 characters. Without this option, the command displays IS-IS IPv4 topology information for the public network. level-1: Displays Level-1 IS-IS topology information. If no level is specified, the command displays both Level-1 and Level 2 topology information.
SpfNode NodeFlag SpfLink LinkCost LinkFlag ------------------------------------------------------------------------------0000.0000.0032.00 0000.0000.0032.01 0000.0000.0064.00 S/-/-/-/-/-->0000.0000.0032.01 10 -/-/C/-/-/-/-/-/- -->0000.0000.0064.00 10 -/-/C/-/-/-/-/-/- -->0000.0000.0064.00 0 -/-/C/-/-/-/-/-/- -->0000.0000.0032.00 0 -/-/-/P/-/-/-/-/- -->0000.0000.0032.00 10 -/-/-/P/-/-/-/-/- -->0000.0000.0032.
Te Distance : 10 NodeFlag : S/-/-/-/-/- RelayNibID : 0x14000000 TE tunnel count: 1 Destination: 4.4.4.4 Interface TE cost Final cost : 10 : 10 Add nexthop: YES Nexthop count : 0000.0000.0004.00 Nexthop : 4.4.4.4 BkNeighbor : N/A : YES Interface : Tun0 BkInterface: N/A BkNexthop : N/A Neighbor : 0000.0000.0004.00 Nexthop : 1.1.1.
Level-2 Shortest Path Tree -------------------------SpfNode : 0000.0000.0001.00 Distance : 0 TE distance : 0 NodeFlag : S/-/-/-/-/- RelayNibID : 0x0 TE tunnel count: 0 Nexthop count : 0 SpfLink count : 1 -->0000.0000.0004.04 LinkCost : 10 LinkNewCost : 10 LinkFlag : -/-/C/-/-/-/-/-/- LinkSrcCnt : 1 Type: Adjacent Interface: N/A Cost: 10 Nexthop SpfNode : 0000.0000.0004.
TE distance : 10 NodeFlag : S/-/-/R/-/- RelayNibID : 0x0 TE tunnel count: 0 Nexthop count : 0 SpfLink count : 2 -->0000.0000.0001.00 LinkCost : 0 LinkNewCost : 0 LinkFlag : -/-/-/P/-/-/-/-/- LinkSrcCnt : 1 Type: Remote Interface: N/A Cost: 0 Nexthop : N/A -->0000.0000.0004.00 LinkCost : 0 LinkNewCost : 0 LinkFlag : -/-/C/-/-/-/-/-/- LinkSrcCnt : 1 Type: Remote Interface: Vlan50 Cost: 0 Nexthop : 1.1.1.
Field Description Interface Primary output interface of the node or the link advertising source. BkNexthop Backup next hop. BkInterface Backup output interface. Neighbor ID of the primary next hop neighbor. BkNeighbor ID of the backup next hop neighbor. SpfLink Topology link. SpfLink count Number of topology links. LinkCost Link cost. LinkNewCost New link cost. Link flag: LinkFlag LinkSrcCnt • • • • • • • • • I—The link is isolated. D—The link is to be deleted.
topology topo-name: Specifies a topology by its name, a case-sensitive string of 1 to 31 characters. Without this option, the command displays IS-IS statistics for the public network. level-1: Displays IS-IS Level-1 statistics. level-1-2: Displays IS-IS Level-1-2 statistics. level-2: Displays IS-IS Level-2 statistics. process-id: Displays statistics for an IS-IS process specified by its ID in the range of 1 to 65535.
Learnt routes information: Total IPv4 Learnt Routes in IPv4 Routing Table: 0 Total IPv6 Learnt Routes in IPv6 Routing Table: 0 Imported routes information: IPv4 Imported Routes: Static: 0 Direct: 0 ISIS: 0 BGP: 0 RIP: 0 OSPF: 0 Total Number: 0 IPv6 Imported Routes: Static: 0 Direct: 0 ISISv6: 0 BGP4+: RIPng: OSPFv3: 0 0 Total Number: 0 0 Lsp information: LSP Source ID: No. of used LSPs 7777.8888.
display osi [ slot slot-number ] Views Any view Predefined user roles network-admin network-operator Parameters slot slot-number: Specifies a card by its slot number. Without this option, the command displays OSI connection information about all cards. Examples # Display OSI connection information.
Field Description Sending buffer(cc/hiwat/lowat/state) Sending buffer information, including the current used space, maximum space, minimum space, and status. Type Type 2 socket, corresponding to unreliable connectionless-oriented transport layer protocols. Enabled interfaces Input interfaces and matched multicast MAC addresses. Only packets received from Ethernet link-layer interfaces need to match the multicast MAC addresses.
Table 69 Command output Field Received packets Description Total Total number of received link layer packets. Relay received Number of inbound packets on LPUs relayed from other cards. This count is not included in the total count of received packets. Relay forwarded Number of inbound packets relayed to LPUs. Invalid service slot Number of discarded packets due to unavailable LPUs.
Usage guidelines When domain authentication mode and password are configured, a Level-2 or Level-1-2 router adds the password in the specified mode into transmitted Level-2 packets (including LSPs, CSNPs, and PSNPs). It also checks the password in the received Level-2 packets. To prevent packet exchange failure in case of an authentication password change, configure IS-IS not to check the authentication information in the received packets.
hmac-sha-384: Specifies the HMAC-SHA-384 algorithm. hmac-sha-512: Specifies the HMAC-SHA-512 algorithm. cipher: Sets a ciphertext password. cipher-string: Specifies a ciphertext password of 33 to 53 characters. plain: Sets a plaintext password. plain-string: Specifies a plaintext password of 1 to 16 characters. ip: Checks IP-related fields in LSPs. osi: Checks OSI-related fields in LSPs.
Parameters auto: Calculates a backup next hop automatically for all routes. route-policy route-policy-name: Uses the specified routing policy to designate a backup next hop. The route-policy-name argument is a case-sensitive string of 1 to 63 characters. Usage guidelines Do not use FRR and BFD at the same time. Otherwise, FRR might fail to take effect. Example # Enable IS-IS FRR to automatically calculate a backup next hop for all routes.
• To deny/permit a route with the specified destination, use the rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard command. • To deny/permit a route with the specified destination and mask, use the rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard destination dest-addr dest-wildcard command. The source keyword specifies the destination address of a route and the destination keyword specifies the subnet mask of the route. The specified subnet mask must be contiguous.
Parameters acl-number: Specifies an ACL by its number in the range of 2000 to 3999 to filter routes calculated using received LSPs. prefix-list prefix-list-name: Specifies an IPv4 prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter routes calculated using received LSPs by destination address. route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to filter received routes.
Syntax flash-flood [ flood-count flooding-count | max-timer-interval flooding-interval | [ level-1 | level-2 ] ] * undo flash-flood [ level-1 | level-2 ] Default IS-IS LSP flash flooding is disabled. Views IS-IS view Predefined user roles network-admin Parameters flood-count flooding-count: Specifies the maximum number of LSPs to be flooded before the next SPF calculation, in the range of 1 to 15. The default is 5.
Usage guidelines IS-IS GR and IS-IS NSR are mutually exclusive. Therefore, do not configure the graceful-restart command and the non-stop-routing command at the same time. Examples # Enable GR for IS-IS process 1. system-view [Sysname] isis 1 [Sysname-isis-1] graceful-restart Related commands graceful-restart suppress-sa graceful-restart suppress-sa Use graceful-restart suppress-sa to suppress the Suppress-Advertisement (SA) bit during restart.
Syntax graceful-restart t1 seconds count count undo graceful-restart t1 Default The T1 timer is 3 seconds and can expire 10 times. Views IS-IS view Predefined user roles network-admin Parameters seconds: Specifies the T1 timer in the range of 3 to 10 seconds. count: Specifies the number of times that the T1 timer can expire, in the range of 1 to 20. Usage guidelines The T1 timer specifies the number of times that GR restarter can send a Restart TLV with the RR bit set.
Predefined user roles network-admin Parameters seconds: Specifies the T2 timer in the range of 30 to 65535 seconds. Usage guidelines The T2 timer specifies the LSDB synchronization interval. Each LSDB has a T2 timer. The Level-1-2 router has two T2 timers: a Level-1 timer and a Level-2 timer. If the LSDBs have not achieved synchronization before the two timers expire, the GR process fails. Examples # Configure the T2 timer of IS-IS process 1 as 50 seconds.
system-view [Sysname] isis 1 [Sysname-isis-1] graceful-restart t3 500 Related commands • graceful-restart • graceful-restart t1 • graceful-restart t2 ignore-att Use ignore-att to configure IS-IS not to calculate the default route through the ATT bit. Use undo ignore-att to remove the configuration. Syntax ignore-att undo ignore-att Default IS-IS calculates the default route through the ATT bit.
Predefined user roles network-admin Parameters protocol: Redistributes routes from a routing protocol, which can be BGP, direct, IS-IS, OSPF, RIP, or static. process-id: Specifies a process by its ID in the range of 1 to 65535. It is available only when the protocol is isis, ospf, or rip. all-processes: Redistributes routes from all the processes of the specified routing protocol. This keyword takes effect only when the protocol is rip, ospf, or isis. allow-ibgp: Allows redistribution of IBGP routes.
Examples # Redistribute static routes into IS-IS, and set the cost for redistributed routes to 15. system-view [Sysname] isis 1 [Sysname-isis-1] address-family ipv4 [Sysname-isis-1-ipv4] import-route static cost 15 Related commands import-route limit import-route isis level-1 into level-2 Use import-route isis level-1 into level-2 to enable route advertisement from Level-1 to Level-2. Use undo import-route isis level-1 into level-2 to disable route advertisement from Level-1 to Level-2.
[Sysname] isis 1 [Sysname-isis-1] address-family ipv4 [Sysname-isis-1-ipv4] import-route isis level-1 into level-2 Related commands • import-route • import-route isis level-1 into level-2 import-route isis level-2 into level-1 Use import-route isis level-2 into level-1 to enable route advertisement from Level-2 to Level-1. Use undo import-route isis level-2 into level-1 to disable route advertisement from Level-2 to Level-1.
[Sysname-isis-1-ipv4] import-route isis level-2 into level-1 Related commands • import-route • import-route isis level-1 into level-2 import-route limit Use import-route limit to configure the maximum number of redistributed Level 1/Level 2 IPv4 routes. Use undo import-route limit to restore the default.
Syntax isis [ process-id ] [ vpn-instance vpn-instance-name ] undo isis [ process-id ] Default The system does not run any IS-IS process. Views System view Predefined user roles network-admin Parameters process-id: Specifies an IS-IS process by its ID in the range of 1 to 65535. The default is 1. vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN is specified, the IS-IS process runs on the public network.
level-2: Configures IS-IS not to check the authentication information in the received Level-2 hello packets. Usage guidelines When peer authentication mode and password are configured, an IS-IS interface adds the password in the specified mode into transmitted hello packets. It also checks the password in the received hello packets.
hmac-sha-224: Specifies the HMAC-SHA-224 algorithm. hmac-sha-256: Specifies the HMAC-SHA-256 algorithm. hmac-sha-384: Specifies the HMAC-SHA-384 algorithm. hmac-sha-512: Specifies the HMAC-SHA-512 algorithm. cipher: Sets a ciphertext password. cipher-string: Specifies a ciphertext password, a case-sensitive string of 33 to 53 characters. plain: Sets a plaintext password. plain-string: Specifies a plaintext password, a case-sensitive string of 1 to 16 characters. level-1: Configures the password for Level-1.
Syntax isis bfd enable undo isis bfd enable Default IS-IS BFD is disabled. Views Interface view Predefined user roles network-admin Examples # Enable BFD for IS-IS on GigabitEthernet 2/1/1. system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] isis enable [Sysname-GigabitEthernet2/1/1] isis bfd enable isis circuit-level Use isis circuit-level to set the circuit level for the interface. Use undo isis circuit-level to restore the default.
system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] isis enable [Sysname-GigabitEthernet2/1/1] isis circuit-level level-1 Related commands is-level isis circuit-type p2p Use isis circuit-type p2p to configure the network type of an interface as P2P. Use undo isis circuit-type to remove the configuration. Syntax isis circuit-type p2p undo isis circuit-type Default The network type of an interface depends on the physical media.
undo isis cost [ level-1 | level-2 ] Default No IS-IS cost is configured for an interface. Views Interface view, IPv4 unicast topology view Predefined user roles network-admin Parameters value: Specifies an IS-IS cost in the range of 1 to 16777215. level-1: Applies the cost to Level-1. level-2: Applies the cost to Level-2. Usage guidelines If neither level-1 nor level-2 is included, the cost applies to both level-1 and level-2.
Parameters symbolic-name: Specifies a DIS name, a case-insensitive string of 1 to 64 characters. Usage guidelines This command takes effect only on routers that have dynamic system ID to host name mapping enabled. Examples # Configure the DIS name as LOCALAREA.
Examples # Configure the Level-2 DIS priority as 127 for GigabitEthernet 2/1/1. system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] isis dis-priority 127 level-2 isis enable Use isis enable to enable an IS-IS process on an interface. Use undo isis enable to disable IS-IS. Syntax isis enable [ process-id ] undo isis enable Default No IS-IS process is enabled on an interface.
Default LFA calculation is enabled on an interface. Views Interface view Predefined user roles network-admin Usage guidelines When this command is configured, the interface does not participate in the LFA calculation, and cannot be elected as a backup interface. Examples # Disable LFA calculation on interface GigabitEthernet 2/1/1. system-view [Sysname] isis 1 [Sysname-isis-1] network-entity 10.0001.1010.1020.1030.
To solve this problem, use this command to add relevant interfaces to a mesh group. An interface in a mesh group only floods a received LSP to interfaces not in the same mesh group. You can also use this command to block an interface. A blocked interface sends LSPs only after receiving LSP requests. The mesh-group feature takes effect only on point-to-point links. Examples # Add the frame relay subinterface Serial2/1/1.1 to mesh-group 3.
Use undo isis peer-ip-check to restore the default. Syntax isis peer-ip-check undo isis peer-ip-check Default An IS-IS PPP interface can have a peer on a different network. Views Interface view Predefined user roles network-admin Usage guidelines When the isis peer-ip-check command is configured, an IS-IS PPP interface can establish a neighbor relationship only with a peer on the same network. Examples # Enable source address check for hello packets on interface Serial 2/1/0.
[Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] isis prefix-suppression isis primary-path-detect bfd echo Use isis primary-path-detect bfd echo to enable BFD single-hop echo detection for IS-IS FRR or IS-IS PIC. Use undo isis primary-path-detect bfd to restore the default. Syntax isis primary-path-detect bfd echo undo isis primary-path-detect bfd Default BFD single-hop echo detection is disabled for IS-IS FRR or IS-IS PIC.
undo isis silent Default An interface is not disabled from sending and receiving IS-IS packets. Views Interface view Predefined user roles network-admin Usage guidelines The feature is not supported on the loopback interface. Examples # Disable GigabitEthernet 2/1/1 from sending and receiving IS-IS packets. < system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] isis silent isis small-hello NOTE: This command is not available in loopback interface view.
Syntax isis tag tag undo isis tag Default The interface is not configured with a tag value. Views Interface view Predefined user roles network-admin Parameters tag: Specifies the tag value in the range of 1 to 4294967295. Usage guidelines This command takes effect when the link cost style is wide, wide-compatible, or compatible. When IS-IS advertises a prefix with a tag value, IS-IS adds the tag to the IP reachability information TLV of the prefix.
Usage guidelines If no level is specified, the CSNP interval applies to both Level-1 and Level-2. This command only applies to the DIS of a broadcast network, which sends CSNP packets periodically for LSDB synchronization. Examples # Configure Level-2 CSNP packets to be sent every 15 seconds over GigabitEthernet 2/1/1.
Examples # Configure Level-2 hello packets to be sent every 20 seconds over GigabitEthernet 2/1/1. system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] isis timer hello 20 level-2 Related commands isis timer holding-multiplier isis timer holding-multiplier Use isis timer holding-multiplier to specify the IS-IS hello multiplier. Use undo isis timer holding-multiplier to remove the configuration.
system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] isis timer holding-multiplier 6 level-2 Related commands isis timer hello isis timer lsp NOTE: This command is not available in loopback interface view. Use isis timer lsp to configure the minimum interval for sending LSPs on the interface and specify the maximum number of LSPs that can be sent per time. Use undo isis timer lsp to restore the default.
isis timer retransmit Use isis timer retransmit to configure the interval for retransmitting LSP packets over a point-to-point link. Use undo isis timer retransmit to restore the default. Syntax isis timer retransmit seconds undo isis timer retransmit Default The retransmission interval on a P2P link is 5 seconds. Views Interface view Predefined user roles network-admin Parameters seconds: Specifies the interval for retransmitting LSP packets, in the range of 1 to 300 seconds.
Views IPv4 unicast topology view Predefined user roles network-admin Usage guidelines The routing management module maintains IS-IS IPv4 unicast topology view on the interface. This command enables IS-IS in IPv4 unicast topology view on the interface. To configure this command, you must complete the following tasks: • Enable IS-IS on the interface. • Create an IS-IS IPv4 unicast topology. Examples # Enable IS-IS for IS-IS IPv4 unicast topology voice on the interface.
level-1-2: Specifies Level-1-2, which means IS-IS calculates routes and maintains the LSDBs for both Level-1 and Level-2. level-2: Specifies Level-2, which means IS-IS calculates routes and maintains the LSDB for Level-2 only. Usage guidelines If only one area exists, configure all the routers as either Level-1 or Level-2, because the routers do not need to maintain two identical LSDBs at the same time. If the only area is an IP network, configure all the routers as Level-2 for scalability.
is-name map Use is-name map to configure a system ID to host name mapping for a remote IS. Use undo is-name map to remove the mapping. Syntax is-name map sys-id map-sys-name undo is-name map sys-id Views IS-IS view Predefined user roles network-admin Parameters sys-id: Specifies the system ID or pseudonode ID of a remote IS. map-sys-name: Specifies a host name for the remote IS, a case-insensitive string of 1 to 64 characters. Usage guidelines Each remote IS system ID corresponds to only one name.
Usage guidelines When a network topology is changed, ISPF recomputes only the affected part of the SPT, instead of the entire SPT. Examples # Enable IS-IS ISPF. system-view [Sysname] isis 1 [Sysname-isis-1] address-family ipv4 [Sysname-isis-1-ipv4] ispf enable log-peer-change Use log-peer-change to enable the logging of neighbor state changes. Use undo log-peer-change to disable the logging.
Default LSP fragment extension is disabled. Views IS-IS view Predefined user roles network-admin Parameters level-1: Applies the fragment extension to Level-1 LSPs. level-1-2: Applies the fragment extension to both Level-1 and Level-2 LSPs. level-2: Applies the fragment extension to Level-2 LSPs. Usage guidelines If no level is specified, the command enables LSP fragment extension for both Level-1 and Level-2. Examples # Enable LSP fragment extension for Level-2.
Examples # Configure the maximum size of the generated Level-2 LSPs as 1024 bytes. system-view [Sysname] isis 1 [Sysname-isis-1] lsp-length originate 1024 level-2 lsp-length receive Use lsp-length receive to configure the maximum size of received LSPs. Use undo lsp-length receive to restore the default. Syntax lsp-length receive size undo lsp-length receive Default The maximum size of received LSPs is 1497 bytes.
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 2. system-view [Sysname] isis 100 [Sysname-isis-100] address-family ipv4 [Sysname-isis-1-ipv4] maximum load-balancing 2 network-entity Use network-entity to configure the Network Entity Title (NET) for an IS-IS process. Use undo network-entity to delete a NET. Syntax network-entity net undo network-entity net Default No NET is configured.
[Sysname-isis-1] network-entity 10.0001.1010.1020.1030.00 Related commands • isis • isis enable non-stop-routing Use non-stop-routing to enable IS-IS NSR. Use undo non-stop-routing to disable IS-IS NSR.
Views IS-IS 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. When both IS-IS PIC and IS-IS FRR are configured, only IS-IS FRR takes effect. Examples # Configure IS-IS PIC to support the indirect suboptimal route as the backup route.
Examples # Configure the preference for IS-IS as 25. system-view [Sysname] isis 1 [Sysname-isis-1] address-family ipv4 [Sysname-isis-1-ipv4] preference 25 prefix-priority Use prefix-priority to assign convergence priorities to specific IS-IS routes. Use undo prefix-priority to remove the configuration.
reset isis all Use reset isis all to clear all IS-IS data structure information. Syntax reset isis all [ process-id ] [ graceful-restart ] Views User view Predefined user roles network-admin Parameters process-id: Specifies an IS-IS process by its ID in the range of 1 to 65535 to clear the data structure information for an IS-IS process. graceful-restart: Recovers the data through graceful restart after the data is cleared.
reset isis non-stop-routing event-log Use reset isis non-stop-routing event-log to clear IS-IS NSR log information. Syntax reset isis non-stop-routing event-log slot slot-number The following matrix shows the support of MSR routers for the command: Hardware Command compatibility MSR2000 No MSR3000 No MSR4000 Yes Views User view Predefined user roles network-admin Parameters slot slot-number: Specifies a card by its slot number. Examples # Clear IS-IS NSR log information on card 1.
reset osi statistics Use reset osi statistics to clear OSI packet statistics. Syntax reset osi statistics Views User view Predefined user roles network-admin Usage guidelines To obtain OSI packet statistics from the specified time point, first clear the existing statistics. Examples # Clear OSI packet statistics. reset osi statistics Related commands display osi statistics set-att Use set-att to set the ATT bit of Level-1 LSPs. Use undo set-att to remove the configuration.
set-overload Use set-overload to set the overload bit. Use undo set-overload to clear the overload bit. Syntax set-overload [ on-startup [ [ start-from-nbr system-id [ timeout1 [ nbr-timeout ] ] ] | timeout2 | wait-for-bgp [ timeout3 ] ] [ allow { external | interlevel } * ] undo set-overload Default The overload bit is not set. Views IS-IS view, IS-IS IPv4 unicast topology view Predefined user roles network-admin Parameters on-startup: Sets the overload bit upon system startup.
Examples # Set overload flag on the current router. system-view [Sysname] isis 1 [Sysname-isis-1] set-overload snmp context-name Use snmp context-name to set the context name for the SNMP object for managing IS-IS. Use undo snmp context-name to restore the default. Syntax snmp context-name context-name undo snmp context-name Default No context name is set for the SNMP object for managing IS-IS.
lsp-corrupt | lsp-parse-error | lsp-size-exceeded | manual-address-drop | max-seq-exceeded | maxarea-mismatch | own-lsp-purge | protocol-support | rejected-adjacency | skip-sequence-number | version-skew ] * undo snmp-agent trap enable isis [ adjacency-state-change | area-mismatch | authentication | authentication-type | buffsize-mismatch | id-length-mismatch | lsdboverload-state-change | lsp-corrupt | lsp-parse-error | lsp-size-exceeded | manual-address-drop | max-seq-exceeded | maxarea-mismatch | own-lsp-
Examples # Disable IS-IS notification sending. system-view [Sysname] undo snmp-agent trap enable isis summary Use summary to configure a summary route. Use undo summary to remove a summary route. Syntax summary ip-address { mask-length | mask } [ avoid-feedback | generate_null0_route | [ level-1 | level-1-2 | level-2 ] | tag tag ] * undo summary ip-address { mask-length | mask } [ level-1 | level-1-2 | level-2 ] Default No summarization is configured.
system-view [Sysname] isis 1 [Sysname-isis-1] address-family ipv4 [Sysname-isis-1-ipv4] summary 202.0.0.0 255.0.0.0 timer lsp-generation Use timer lsp-generation to configure LSP generation interval. Use undo timer lsp-generation to remove the configuration.
timer lsp-max-age Use timer lsp-max-age to set the LSP maximum age in the LSDB. Use undo timer lsp-max-age to restore the default. Syntax timer lsp-max-age seconds undo timer lsp-max-age Default The LSP maximum age is 1200 seconds. Views IS-IS view Predefined user roles network-admin Parameters seconds: Specifies the LSP maximum aging time in the range of 1 to 65535 seconds. Usage guidelines Each LSP has an age that decreases in the LSDB. Any LSP with an age of 0 is deleted from the LSDB.
Parameters seconds: Specifies the LSP refresh interval in the range of 1 to 65534 seconds. Usage guidelines To prevent valid routes from aging out and to synchronize LSPs in the network, each router needs to refresh its LSPs at a configurable interval and send them to other routers. A smaller refresh interval speeds up network convergence but consumes more bandwidth.
When network changes are not frequent, the minimum-interval is adopted. If network changes become frequent, the SPF calculation interval is incremented by the incremental-interval each time a generation happens until the maximum-interval is reached. The minimum interval and the incremental interval cannot be greater than the maximum interval. Examples # Configure the maximum interval as 10 seconds, the minimum interval as 100 milliseconds, and the incremental interval as 300 milliseconds.
virtual-system Use virtual-system to configure a virtual system ID for the IS-IS process. Use undo virtual-system to remove a virtual system ID. Syntax virtual-system virtual-system-id undo virtual-system virtual-system-id Default No virtual system ID is configured. Views IS-IS view Predefined user roles network-admin Parameters virtual-system-id: Specifies a virtual system ID for the IS-IS process. Examples # Set a virtual system ID of 2222.2222.2222 for IS-IS process 1.
BGP commands In this chapter, "MSR2000" refers to MSR2003. "MSR3000" collectively refers to MSR3012, MSR3024, MSR3044, MSR3064. "MSR4000" collectively refers to MSR4060 and MSR4080. address-family ipv4 Use address-family ipv4 to create the BGP IPv4 unicast address family, BGP-VPN IPv4 unicast address family, or BGP IPv4 multicast address family, and enter its view.
By default, the unicast keyword is used if neither the multicast keyword nor the unicast keyword is specified. Examples # In BGP view, create the BGP IPv4 unicast address family and enter its view. system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] # In BGP-VPN instance view, create the BGP-VPN IPv4 unicast address family and enter its view.
Parameters unicast: Specifies the IPv6 unicast address family. If the command is executed with the unicast keyword in BGP view, it opens BGP IPv6 unicast address family view. If executed in BGP-VPN instance view, the command opens BGP-VPN IPv6 unicast address family view. multicast: Specifies the IPv6 multicast address family. Usage guidelines Configurations made in BGP IPv6 unicast address family view apply to only the BGP IPv6 unicast routes and peers of the public network.
Views BGP view, 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 Usage guidelines The advertise-rib-active command does not apply to the following routes: • Routes redistributed by the import-route command • Routes advertised by the network command • Default routes redistributed by the default-route imported command • VPNv4 routes • VPNv6 routes • IPv
undo aggregate ipv6-address prefix-length Default No summary route is configured. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast address family view, BGP IPv4 multicast address family view, BGP IPv6 multicast 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.
Table 70 Functions of the keywords Keywords Function as-set Enables the summary route to carry the AS path information of all summarized routes. This feature can help avoid routing loops. However, if many routes are summarized and are changed frequently, do not specify this keyword. This configuration causes the summary route to flap with the more specific routes. attribute-policy Sets attributes except the AS-PATH attribute for the summary route.
system-view [Sysname] ip prefix-list spert deny 1.1.1.0 24 [Sysname] ip prefix-list spert permit 0.0.0.0 0 less-equal 32 [Sysname] route-policy srcrt permit node 0 [Sysname-route-policy-srcrt-0] if-match ip address prefix-list spert [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.
Syntax balance [ ebgp | eibgp | ibgp ] number undo balance [ ebgp | eibgp | ibgp ] Default Load balancing is not enabled. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view, BGP IPv4 multicast address family view, BGP IPv6 multicast address family view Predefined user roles network-admin Parameters ebgp: Enables load balancing over EBGP routes.
bestroute as-path-neglect Use bestroute as-path-neglect to configure BGP to not consider the AS_PATH during optimal route selection. Use undo bestroute as-path-neglect to configure BGP to consider the AS_PATH during optimal route selection. Syntax bestroute as-path-neglect undo bestroute as-path-neglect Default BGP considers the AS_PATH during optimal route selection.
Predefined user roles network-admin Usage guidelines By default, BGP does not compare MEDs for routes from the same AS. When a router learns a new route, it compares the route with the optimal route in its BGP routing table. If the new route is more optimal, it becomes the optimal route in the BGP routing table. In this way, route learning sequence might affect optimal route selection.
Usage guidelines This command enables BGP to compare the MEDs of routes received from confederation peers. However, if a route from a confederation peer has an AS number that does not belong to the confederation, BGP does not compare the route with other routes. For example, a confederation has three AS numbers 65006, 65007, and 65009. BGP receives three routes from different confederation peers.
Parameters as-number: Specifies a local AS by its number in the range of 1 to 4294967295. Usage guidelines A router can reside in only one AS, so the router can run only one BGP process. A router supports 4-byte AS number. Examples # Enable BGP, set the local AS number to 100, and enter BGP view. system-view [Sysname] bgp 100 [Sysname-bgp] compare-different-as-med Use compare-different-as-med to enable MED comparison for routes from peers in different ASs.
[Sysname-bgp-ipv4-vpn1] compare-different-as-med # In BGP IPv6 unicast address family view, enable MED comparison for routes from peers in different ASs. system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv6 unicast [Sysname-bgp-ipv6] compare-different-as-med confederation id Use confederation id to configure a confederation ID. Use undo confederation id to remove the specified confederation ID.
[Sysname-bgp] group Confed38 external [Sysname-bgp] peer Confed38 as-number 38 [Sysname-bgp] peer 10.1.1.1 group Confed38 [Sysname-bgp] group Remote98 external [Sysname-bgp] peer Remote98 as-number 98 [Sysname-bgp] peer 200.1.1.1 group Remote98 Related commands • confederation nonstandard • confederation peer-as confederation nonstandard Use confederation nonstandard to enable compatibility with routers not compliant with RFC 3065 in the confederation.
Use undo confederation peer-as to remove specified confederation peer sub-ASs. Syntax confederation peer-as as-number-list undo confederation peer-as [ as-number-list ] Default No confederation peer sub-ASs are specified. Views BGP view Predefined user roles network-admin Parameters as-number-list: Specifies a sub-AS number list. Up to 32 sub-ASs can be configured in one command line. The expression is as-number-list = as-number &<1-32>.
Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view, BGP IPv4 multicast address family view, BGP IPv6 multicast address family view Predefined user roles network-admin Parameters half-life-reachable: Specifies a half-life for active routes, in the range of 1 to 45 minutes. By default, the value is 15 minutes.
[Sysname-bgp-vpn1] address-family ipv6 unicast [Sysname-bgp-ipv6-vpn1] dampening 10 10 1000 2000 10000 Related commands display bgp dampening parameter 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.
Related commands • apply local-preference • route-policy default med Use default med to specify a default MED value. Use undo default med to restore the default. Syntax default med med-value undo default med Default The default med-value is 0.
• import-route • route-policy 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.
[Sysname-bgp-ipv6] default-route imported [Sysname-bgp-ipv6] import-route ospfv3 1 # In BGP-VPN IPv6 unicast address family view, enable default route redistribution from OSPFv3 process 1 into the IPv6 BGP routing table.
Half-life time for unreachable routes (in seconds) : 900 Suppression threshold : 2000 Table 71 Command output Field Description Maximum suppression time Maximum time (in seconds) for the penalty value to decrease from the ceiling value to the reuse value. Ceiling value Penalty ceiling value. Reuse value Reuse threshold. Related commands dampening display bgp group Use display bgp group to display BGP peer group information.
group-name group-name: Specifies a BGP peer group by its name, a case-sensitive string of 1 to 47 characters. If no group is specified, this command displays brief information about all BGP peer groups for the specified address family. Usage guidelines By default, the unicast keyword is used if none of the unicast, multicast, and mdt keywords are specified. Examples # Display brief information about all BGP IPv4 unicast peer groups for the public network.
Keepalive time: 60 seconds Minimum time between advertisements: 30 seconds Peer preferred value: 0 IPsec profile name: profile001 Site-of-Origin: Not specified Routing policy configured: 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 72 Command output Field Description BGP peer group Name of the BGP peer group. Remote AS AS number of the peer group.
Field Description MsgSent Number of messages sent. OutQ Number of messages to be sent. For the IPv4, IPv6, VPNv4, and VPNv6 address families, this field displays the number of prefixes received from the peer. PrefRcv For MPLS L2VPN, this field displays the number of label blocks received from the peer. For VPLS, this field displays the total number of label blocks and VPLS PEs discovered by BGP. For the IPv4 MDT address family, this field displays the number of MDT messages received from the peer.
BGP local router ID: 192.168.1.135 Local AS number: 100 Network Mask 20.1.1.0 255.255.255.0 40.1.1.0 255.255.255.0 30.1.1.0 255.255.255.0 Route-policy Short-cut No abc No Yes # Display information about routes advertised by the network command and shortcut routes configured by the network short-cut command in the IPv6 unicast address family for the public network. display bgp network ipv6 BGP local router ID: 192.168.1.
Syntax display bgp non-stop-routing status The following matrix shows the support of MSR routers for the command: Hardware Command compatibility MSR2000 No MSR3000 No MSR4000 Yes Views Any view Predefined user roles network-admin network-operator Examples # Display BGP NSR status information.
Syntax display bgp paths [ as-regular-expression ] Views Any view Predefined user roles network-admin network-operator Parameters as-regular-expression: Displays information about BGP path attributes whose AS_PATH attribute matches the specified regular expression. The as-regular-expression argument is a string of 1 to 256 characters. Without this argument, this command displays information about all BGP path attributes. Examples # Display information about all BGP path attributes.
display bgp peer ipv6 { multicast | [ unicast ] [ vpn-instance vpn-instance-name ] } [ { ipv6-address | group-name group-name } log-info | [ ipv6-address ] verbose ] display bgp peer ipv6 [ unicast ] [ ip-address log-info | [ ip-address ] verbose ] display bgp peer vpnv4 [ vpn-instance vpn-instance-name ] [ { ip-address | group-name group-name } log-info | [ ip-address ] verbose ] display bgp peer { l2vpn | vpnv6 } [ { ip-address | group-name group-name } log-info | [ ip-address ] verbose ] MSR4000: display
log-info: Displays log information. verbose: Displays detailed information. standby: Displays BGP peer or peer group information for a standby BGP process. If you do not specify a standby BGP process, the command displays information for the active BGP process. slot slot-number: Specifies the slot number of the card where the standby process resides. (MSR4000.
Field Description For the IPv4, IPv6, VPNv4, and VPNv6 address families, this field displays the number of prefixes that have been received from the peer and added into the local BGP routing table. For MPLS L2VPN, this field displays the number of label blocks received from the peer. PrefRcv For VPLS, this field displays the total number of label blocks and VPLS PEs discovered by BGP. For the IPv4 MDT address family, this field displays the number of MDT messages received from the peer.
Keepalive 10:38:50-2013.7.23 1 1 10:38:50-2013.7.
Update - - - - - - - - - Notification - - - - - - - - - Keepalive - - - RouteRefresh - - - - - - - - - - - - Total Maximum allowed prefix number: 4294967295 Threshold: 75% Minimum time between advertisements is 30 seconds Optional capabilities: Multi-protocol extended capability has been enabled Route refresh capability has been enabled Peer Preferred Value: 0 BFD: Enabled Site-of-Origin: Not specified Routing policy configured: No routing policy is configured # Display
Message statistics: Msg type Open Update Last rcvd time/ Current rcvd count/ History rcvd count/ Last sent time Current sent count History sent count 18:59:15-2013.4.24 1 1 18:59:15-2013.4.24 1 2 - 0 0 18:59:16-2013.4.24 1 1 0 0 18:59:15-2013.4.24 0 1 18:59:15-2013.4.24 1 1 18:59:15-2013.4.
Address family L2VPN VPWS (Draft): advertised and received InQ updates: 0, OutQ updates: 0 NLRI statistics: Rcvd: UnReach NLRI 0, Reach NLRI 0 Sent: UnReach NLRI 0, Reach NLRI 3 Message statistics: Msg type Open Update Last rcvd time/ Current rcvd count/ History rcvd count/ Last sent time Current sent count History sent count 18:59:15-2013.4.24 1 1 18:59:15-2013.4.24 1 2 - 0 0 18:59:16-2013.4.24 1 1 Notification - 0 0 18:59:15-2013.4.24 0 1 18:59:15-2013.4.
Field Description 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 Timers configured on the local router in seconds, including the holdtime (Active Hold Time) and keepalive interval (Keepalive Time). Received Received timer (configured on the peer) in seconds, including the holdtime (Active Hold Time).
Field Description Routing policy configured for the peer. If no routing policy is specified, this field displays No routing policy is configured. Routing policy configured This field does not apply to BGP L2VPN. # Display the log information of the public BGP IPv4 unicast peer 1.1.1.1 for the active BGP process. display bgp peer ipv4 1.1.1.1 log-info Peer : 1.1.1.
Parameters ipv4: Displays dampened BGP IPv4 routes. ipv6: Displays dampened BGP IPv6 routes. multicast: Displays dampened BGP multicast routes. unicast: Displays dampened BGP unicast routes. 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 routes for the public network.
Table 79 Command output Field Description Status codes: Status codes • • • • • • • • * – valid—Valid route. > – best—Optimal 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. • e – EGP—Learned through EGP.
Parameters ipv4: Displays BGP IPv4 route flap statistics. ipv6: Displays BGP IPv6 route flap statistics. multicast: Displays BGP multicast route flap statistics. unicast: Displays BGP unicast route flap statistics. 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 route flap statistics for the public network. network-address: Specifies a destination network address.
Network de 20.1.1.0/24 From Flaps Duration Reuse Path/Ogn 10.1.1.2 1 00:02:36 00:53:58 100i # Display BGP IPv6 unicast route flap statistics for the public network. display bgp routing-table flap-info ipv6 Total number of routes: 2 BGP local router ID is 192.168.1.135 Status codes: * - valid, > - best, d - dampened, h - history, s - suppressed, S - stale, i - internal, e - external Origin: i - IGP, e - EGP, ? - incomplete de Network : 2:: From PrefixLen : 64 : 10.1.1.
Field Description AS_PATH and ORIGIN attributes of the route: Path/Ogn • AS_PATH attribute—Records the ASs the route has passed. • ORIGIN attribute—Identifies the origin of the route. Related commands • dampening • reset bgp flap-info display bgp routing-table ipv4 multicast Use display bgp routing-table ipv4 multicast to display BGP IPv4 multicast routing information.
as-path-acl as-path-acl-number: Displays BGP IPv4 multicast routes that match the AS path list specified by its number in the range of 1 to 256. community-list: Displays BGP IPv4 multicast routes that match a community list. basic-community-list-number: Specifies a basic community list by its number in the range of 1 to 99. comm-list-name: Specifies a community list by its name, a case-sensitive string of 1 to 63 characters.
* > 5.5.5.5/32 127.0.0.1 0 32768 ? * > 192.168.1.0 192.168.1.62 0 32768 ? * > 192.168.1.62/32 127.0.0.1 0 32768 ? # Display information about BGP IPv4 multicast routes that match an AS path list for the active BGP process. display bgp routing-table ipv4 multicast as-path-acl 20 Total number of routes: 3 BGP local router ID is 192.168.1.
* > 5.5.5.5/32 127.0.0.1 0 100 ? * > 192.168.1.0 192.168.1.62 0 100 ? # Display information about all BGP IPv4 multicast routes received by the active BGP process from the peer 192.168.1.139. display bgp routing-table ipv4 multicast peer 192.168.1.139 received-routes Total number of routes: 2 BGP local router ID is 192.168.1.
Field Description Origin of the route: • i – IGP—Originated in the AS. The origin of summary routes and routes advertised with the network command is IGP. Origin • e – EGP—Learned through EGP. • ?– incomplete—Unknown origin. The origin of routes redistributed from IGP protocols is INCOMPLETE. Network Destination network address. NextHop Next hop IP address. MED MULTI_EXIT_DISC attribute. LocPrf Local preference value. PrefVal Preferred value of the route.
From : 192.168.1.62 (192.168.1.62) Rely nexthop : 192.168.1.62 Original nexthop: 192.168.1.62 OutLabel : NULL AS-path : (null) Origin : incomplete Attribute value : MED 0, localpref 100, pref-val 0 State : valid, internal, IP precedence : N/A QoS local ID : N/A Table 82 Command output Field Description Number of routes: Paths • available—Number of valid routes. • best—Number of optimal routes. From IP address of BGP peer that advertised the route.
# Display statistics for BGP IPv4 multicast routes advertised by the active BGP process to the peer 192.168.1.62. display bgp routing-table ipv4 multicast peer 192.168.1.62 advertised-routes statistics Advertised routes total: 2 # Display statistics for BGP IPv4 multicast routes received by the active BGP process from the peer 192.168.1.62. display bgp routing-table ipv4 multicast peer 192.168.1.
BGP local router ID: 192.168.1.139 Local AS number: 100 Paths: 1 best BGP routing table information of 8.8.8.8/32: Advertised to peers (1 in total): 192.168.1.62 Table 85 Command output Field Description BGP local router ID Local BGP router ID. Local AS number Local AS number. Paths Number of optimal routes to the destination. BGP routing table information of 8.8.8.8/32 Advertisement information for network 8.8.8.8/32.
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 IPv4 unicast routing information for the public network. network-address: Specifies a destination network address. mask: Specifies a network mask, in dotted decimal notation. mask-length: Specifies a mask length in the range of 0 to 32.
The active BGP process backs up BGP peers and routing information to the standby BGP process only when BGP NSR is enabled. If BGP NSR is disabled, this command does not display anything when you execute it with the standby keyword. The command with the unicast keyword has the same effect as that without the unicast keyword. Examples # Display brief information about all public BGP IPv4 unicast routes for the active BGP process.
* > 10.2.1.0/24 10.2.1.1 0 0 i * > 192.168.1.0 192.168.1.135 0 0 i # Display information about all public BGP IPv4 unicast routes received by the active BGP process from the peer 10.2.1.2. display bgp routing-table ipv4 peer 10.2.1.2 received-routes Total number of routes: 2 BGP local router ID is 192.168.100.
Field Description Network Destination network address. NextHop Next hop IP address. MED MULTI_EXIT_DISC attribute. LocPrf Local preference value. PrefVal Preferred value of the route. AS_PATH and ORIGIN attributes of the route: • AS_PATH—Records the ASs the route has passed. • ORIGIN—Identifies the origin of the route. Path/Ogn # Display detailed information about public BGP IPv4 unicast routes destined to network 10.2.1.0/24 for the active BGP process.
Paths: 2 available, 1 best BGP routing table information of 1.1.1.1/32: From : 10.2.1.1 (192.168.100.3) Rely nexthop : 10.2.1.1 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, IP precedence : N/A QoS local ID : N/A Backup route. From : 10.2.1.2 (192.168.100.2) Rely nexthop : 10.2.1.2 Original nexthop: 10.2.1.
Table 87 Command output Field Description Number of routes: Paths • available—Number of valid routes. • best—Number of optimal routes. Original nexthop Original next hop of the route. If the route was obtained from a BGP update message, the original next hop is the next hop IP address in the message. OutLabel Outgoing label of the route. AS-path AS_PATH attribute of the route. Origin of the route: • igp—Originated in the AS.
# Display statistics for public BGP IPv4 unicast routes advertised by the standby BGP process to the peer 10.2.1.2. display bgp routing-table ipv4 peer 10.2.1.2 advertised-routes statistics standby slot 1 Advertised routes total: 2 # Display statistics for public BGP IPv4 unicast routes received by the standby BGP process from the peer 10.2.1.2. display bgp routing-table ipv4 peer 10.2.1.
BGP local router ID: 192.168.100.1 Local AS number: 100 Paths: 1 best BGP routing table information of 10.2.1.0/24: Advertised to peers (1 in total): 10.2.1.2 Table 90 Command output Field Description BGP local router ID Local BGP router ID. Local AS number Local AS number. Paths Number of optimal routes to the destination. BGP routing table information of 10.2.1.0/24 Advertisement information for network 10.2.1.0/24.
Parameters network-address prefix-length: Specifies the destination network address and prefix length. The value range for the prefix-length argument is 0 to 128. If this argument is not specified, the command displays brief information about all BGP IPv6 multicast routing information. advertise-info: Displays advertisement information for BGP IPv6 multicast routes. If you do not specify this keyword, this command displays the BGP IPv6 multicast routing table.
MED : 0 Path/Ogn: ? * i Network : 1:: PrefixLen : 64 NextHop : 1::1 LocPrf : 100 PrefVal : 0 OutLabel : NULL MED : 0 Path/Ogn: ? * > Network : 1::2 PrefixLen : 128 NextHop : ::1 LocPrf : PrefVal : 32768 OutLabel : NULL MED : 0 Path/Ogn: ? * > Network : 2::2 PrefixLen : 128 NextHop : ::1 LocPrf : PrefVal : 32768 OutLabel : NULL MED : 0 Path/Ogn: ? * >i Network : 5::5 PrefixLen : 128 NextHop : 1::1 LocPrf : 100 PrefVal : 0 OutLabel : NULL MED : 0 Path/Ogn: ? # Dis
* > Network : 1::2 PrefixLen : 128 NextHop : ::1 LocPrf : PrefVal : 32768 OutLabel : NULL MED : 0 Path/Ogn: ? * > Network : 2::2 PrefixLen : 128 NextHop : ::1 LocPrf : PrefVal : 32768 OutLabel : NULL MED : 0 Path/Ogn: ? * >i Network : 5::5 PrefixLen : 128 NextHop : 1::1 LocPrf : 100 PrefVal : 0 OutLabel : NULL MED : 0 Path/Ogn: ? # Display information about BGP IPv6 multicast routes that match a BGP community list for the active BGP process.
NextHop : ::1 LocPrf : PrefVal : 32768 OutLabel : NULL MED : 0 Path/Ogn: ? * >i Network : 5::5 PrefixLen : 128 NextHop : 1::1 LocPrf : 100 PrefVal : 0 OutLabel : NULL MED : 0 Path/Ogn: ? # Display information about all BGP IPv6 multicast routes advertised by the active BGP process to the peer 1::1. display bgp routing-table ipv6 multicast peer 1::1 advertised-routes Total number of routes: 2 BGP local router ID is 192.168.1.
NextHop : 1::1 LocPrf : 100 PrefVal : 0 OutLabel : NULL MED : 0 Path/Ogn: ? # Display brief information about all BGP IPv6 multicast routes for the standby BGP process. display bgp routing-table ipv6 multicast standby slot 1 Total number of routes: 5 BGP local router ID is 192.168.1.
Table 91 Command output Field Description Status codes: • • • • • • • • Status codes * – valid—Valid route. > – best—Optimal 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 advertised with the network command is IGP. Origin • e – EGP—Learned through EGP.
State : valid, local, best, IP precedence : N/A QoS local ID : N/A # Display detailed information about the BGP IPv6 multicast route destined to address 2::2/128 for the standby BGP process. display bgp routing-table ipv6 multicast 2::2 128 standby slot 1 BGP local router ID: 192.168.1.139 Local AS number: 100 Paths: 1 available, 0 best BGP routing table information of 2::2/128: Imported route.
Field Description Current state of the route: • • • • • • State valid. internal. external. local. synchronize. best. From IP address of the BGP peer that advertised the route. Rely Nexthop Next hop found by route recursion. If no next hop is found, this field displays not resolved. IP precedence IP precedence in the range of 0 to 7. QoS local ID QoS local ID in the range of 1 to 4095.
Table 94 Command output Field Description Advertised routes total Total number of advertised routes. Received routes total Total number of received routes. # Display BGP IPv6 multicast route statistics for the active BGP process. display bgp routing-table ipv6 multicast statistics Total number of routes: 5 # Display BGP IPv6 multicast route statistics for the standby BGP process.
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 routing information for the public network. network-address prefix-length: Specifies the destination network address and prefix length. The value range for the prefix-length argument is 0 to 128.
Total number of routes: 1 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 * >e Network : 3:: PrefixLen : 64 NextHop : 1::2 LocPrf : PrefVal : 0 OutLabel : NULL MED : Path/Ogn: 100i # Display information about BGP IPv6 unicast routes that match an AS path list for the active BGP process.
PrefVal : 0 MED OutLabel : NULL : Path/Ogn: 100i * >e Network : 3:: PrefixLen : 64 NextHop : 1::2 LocPrf : PrefVal : 0 OutLabel : NULL MED : Path/Ogn: 100i # Display information about all BGP IPv6 unicast routes advertised by the active BGP process to the peer 1::1. display bgp routing-table ipv6 peer 1::1 advertised-routes Total number of routes: 1 BGP local router ID is 192.168.1.
s - suppressed, S - stale, i - internal, e - external Origin: i - IGP, e - EGP, ? - incomplete * e Network : 3:: PrefixLen : 64 NextHop : 1::2 LocPrf : PrefVal : 0 OutLabel : NULL MED : Path/Ogn: 100i Table 96 Command output Field Description Status codes: Status codes • • • • • • • • * – valid—Valid route. > – best—Optimal route. d – dampened—Dampened route. h – history—History route. s – suppressed—Suppressed route. S – stale—Stale route. i – internal—Internal route.
BGP routing table information of 2::/64: From : 10.1.1.1 (192.168.1.136) Relay nexthop : ::FFFF:10.1.1.1 Original nexthop: ::FFFF:10.1.1.1 OutLabel : NULL AS-path : 100 Origin : igp Attribute value : MED 0, pref-val 0 State : valid, external, best, IP precedence : N/A QoS local ID : N/A From : 1::1 (192.168.1.
Table 97 Command output Field Description Number of routes: • available—Number of valid routes. • best—Number of optimal routes. Paths Original nexthop Original next hop of the route. If the route was obtained from a BGP update message, the original next hop is the next hop IP address in the message. OutLabel Outgoing label of the route. AS-path AS_PATH attribute of the route. Origin of the route: • igp—Originated in the AS.
1::2 Table 98 Command output Field Description Paths Number of optimal routes destined to the specified network. BGP routing table information of 2::/64 Advertisement information of BGP routes destined to network 2::/64. Advertised to peers (2 in total) Peers to which the route has been advertised, and the number of peers. # Display statistics for the BGP IPv6 unicast routes advertised by the active BGP process to the peer 1::1.
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. Syntax display bgp routing-table ipv6 [ unicast ] inlabel Views Any view Predefined user roles network-admin network-operator Usage guidelines The command with the unicast keyword has the same effect as that without the unicast keyword. Examples # Display incoming labels for all BGP IPv6 unicast routing information.
Field Description InLabel Incoming label of the IPv6 unicast route, which is assigned by the local 6PE device. 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.
* >i Network : 20:: PrefixLen : 64 NextHop : ::FFFF:3.3.3.3 OutLabel : 1278 # Display outgoing labels for all public BGP IPv6 unicast routes of the standby BGP process. display bgp routing-table ipv6 outlabel standby slot 1 Total number of routes: 2 BGP local router ID is 2.2.2.2 Status codes: * - valid, > - best, d - dampened, h - history, s - suppressed, S - stale, i - internal, e - external Origin: i - IGP, e - EGP, ? - incomplete * >i Network : 4::4 PrefixLen : 128 NextHop : ::FFFF:3.
Predefined user roles network-admin network-operator Parameters ipv4: Displays BGP update group information for IPv4 address family. ipv6: Displays BGP update group information for IPv6 address family. vpnv4: Displays BGP update group information for VPNv4 address family. l2vpn: Displays BGP update group information for L2VPN address family. vpnv6: Displays BGP update group information for VPNv6 address family. mdt: Displays BGP update group information for MDT address family.
# Display update group information for the BGP IPv4 unicast peer 1.1.1.2 on the public network. display bgp update-group ipv4 1.1.1.2 Update-group ID: 0 Type: EBGP link 4-byte AS number: Supported Site-of-Origin: Not specified Minimum time between advertisements: 30 seconds OutQ: 0 Members: 2 1.1.1.2 1.1.1.3 # Display information about all public BGP update groups for IPv6 multicast address family.
1.1.1.3 # Display all update group information for the BGP L2VPN address family. display bgp update-group l2vpn Update-group ID: 0 Type: IBGP link 4-byte AS number: Supported Site-of-Origin: Not specified L2VPN signaling (VPLS): Supported L2VPN signaling (VPWS): RFC mode L2VPN auto-discovery: RFC mode Minimum time between advertisements: 15 seconds OutQ: 0 Members: 2 2.2.2.9 3.3.3.9 # Display update group information for the BGP L2VPN peer 1.1.1.3. display bgp update-group l2vpn 1.1.
Field Description 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. 4-byte AS number: Suppressed 4-byte AS number suppression is enabled for the peers in the update group.
Field Description L2VPN auto-discovery: Non-standard mode Peers in the update group support using non-standard NLRI to exchange VPLS PE information. 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 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 route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters. Usage guidelines There are two methods to configure BGP FRR: • Method 1—Execute the pic command in BGP address family view.
filter-policy { acl6-number | prefix-list ipv6-prefix-name } export [ protocol process-id ] undo filter-policy export [ protocol process-id ] Default Advertised BGP routes are not filtered.
• To filter routes with a specific destination address and mask, use an advanced ACL that contains rules defined with the rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard destination dest-addr dest-wildcard command. • If an ACL is used, BGP advertises only routes that match a permit rule in the ACL. The sour-addr sour-wildcard argument combination matches the destination address of a route without matching the mask in the route.
Syntax In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view/BGP VPNv4 address family view/BGP IPv4 multicast address family view: filter-policy { acl-number | prefix-list prefix-list-name } import undo filter-policy import In BGP IPv6 unicast address family view/BGP-VPN IPv6 unicast address family view/BGP VPNv6 address family view/BGP IPv6 multicast address family view: filter-policy { acl6-number | prefix-list ipv6-prefix-name } import undo filter-policy import Default Receive
Examples # In BGP IPv4 unicast address family view, use ACL 2000 to filter received BGP routes. system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] filter-policy 2000 import # In BGP-VPN IPv6 unicast address family view, use ACL6 2000 to filter received BGP routes.
Usage guidelines Graceful Restart (GR) ensures continuous forwarding when BGP restarts or an active/standby switchover occurs. BGP peers exchange Open messages containing GR information. If both parties have GR capability, they establish a GR-capable session. After you execute this command, the device reestablishes BGP sessions. Examples # Enable Graceful Restart capability for BGP process 100.
Examples # Configure the GR timer as 300 seconds. system-view [Sysname] bgp 100 [Sysname-bgp] graceful-restart [Sysname-bgp] graceful-restart timer restart 300 Related commands • graceful-restart • graceful-restart timer wait-for-rib graceful-restart timer wait-for-rib Use graceful-restart timer wait-for-rib to configure the time to wait for the End-of-RIB marker. Use undo graceful-restart timer wait-for-rib to restore the default.
Related commands • graceful-restart • graceful-restart timer restart group Use group to create a peer group. Use undo group to delete a peer group. Syntax group group-name [ external | internal ] undo group group-name Default No peer group is created. Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters group-name: Specifies a name for the peer group, a case-sensitive string of 1 to 47 characters. external: Creates an EBGP peer group.
system-view [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 10.1.1.1 group test [Sysname-bgp-vpn1] peer 10.1.2.1 group test # In BGP view, create an EBGP peer group test with AS number 200, and add EBGP peers 1::1 and 1::2 into the group.
Examples # Configure BGP to ignore the first AS number of EBGP route updates. system-view [Sysname] bgp 100 [Sysname-bgp] ignore-first-as import-route Use import-route to enable BGP to redistribute routes from an IGP protocol. Use undo import-route to disable route redistribution from an IGP protocol.
allow-direct keyword, do not configure the if-match route-type rule for the routing policy. Otherwise, the allow-direct keyword does not take effect. med med-value: Specifies a MED value for redistributed routes, in the range of 0 to 4294967295. If no MED is specified, the metric of a redistributed route is used as its MED.
• display ipv6 routing-table protocol ip vpn-instance (BGP view) Use ip vpn-instance to create an BGP-VPN instance and enter BGP-VPN instance view. Use undo ip vpn-instance to remove an BGP-VPN instance and all its configurations. Syntax ip vpn-instance vpn-instance-name undo ip vpn-instance vpn-instance-name Default No BGP-VPN instance exists.
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.
network ipv6-address prefix-length [ route-policy route-policy-name ] 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, BGP IPv4 multicast address family view, BGP IPv6 multicast address family view Predefined user roles network-admin Parameters ip-address: Specifies an IPv4 network address.
[Sysname-bgp-ipv6] network 2002:: 64 # 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.
Usage guidelines Different routing protocols might find different routes to the same destination. However, not all of those routes are optimal. For route selection, routing protocols, direct routes, and static routes are assigned different preferences. The route with the highest preference is preferred. By default, the preference of an EBGP route is lower than a local route. If a device has an EBGP route and a local route to reach the same destination, the device does not select the EBGP route.
Predefined user roles network-admin Usage guidelines BGP NSR ensures continuous routing by synchronizing BGP state and data information from the active BGP process to the standby BGP process. The standby BGP process can seamlessly take over all services. Examples # Enable BGP NSR.
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).
peer { group-name | ip-address } advertise-ext-community undo peer { group-name | ip-address } advertise-ext-community In BGP IPv6 unicast address family view: peer { group-name | ip-address | ipv6-address } advertise-ext-community undo peer { group-name | ip-address | ipv6-address } advertise-ext-community In BGP IPv6 multicast address family view: peer { group-name | ipv6-address } advertise-ext-community undo peer { group-name | ipv6-address } advertise-ext-community Default No extended community attrib
# In BGP-VPN IPv4 unicast address family view, advertise the extended community attribute to peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] address-family ipv4 unicast [Sysname-bgp-ipv4-vpn1] peer test advertise-ext-community # In BGP IPv6 unicast address family view, advertise the extended community attribute to peer group test.
Predefined user roles network-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. ip-address: Specifies a peer by its IP address. The peer must have been created. ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created. 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.
Use undo peer to delete a BGP peer. Syntax peer { ip-address | ipv6-address } as-number as-number undo peer { ip-address | ipv6-address } Default No BGP peer is created. Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters ip-address: Specifies the IP address of a peer. ipv6-address: Specifies the IPv6 address of a peer. as-number: Specifies an AS number for the peer, in the range of 1 to 4294967295.
Use undo peer as-number to delete the AS number of a peer group. Syntax peer group-name as-number as-number undo peer group-name as-number Default No AS number is specified for a peer group. Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters group-name: Specifies a name for a peer group, a case-sensitive string of 1 to 47 characters. The peer group must have been created. as-number: Specifies an AS number for a peer group, in the range of 1 to 4294967295.
Syntax In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view/BGP VPNv4 address family view/BGP IPv4 multicast address family view: peer { group-name | ip-address } as-path-acl as-path-acl-number { export | import } undo peer { group-name | ip-address } as-path-acl { export | import } In BGP IPv6 unicast address family view: peer { group-name | ip-address | ipv6-address } as-path-acl as-path-acl-number { export | import } undo peer { group-name | ip-address | ipv6-address } as-path
system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] address-family ipv4 unicast [Sysname-bgp-ipv4-vpn1] peer test as-path-acl 1 export # In BGP IPv6 unicast address family view, specify the AS path list 1 to filter routes outgoing to the peer group test.
• If a directly connected EBGP peer is specified and the peer ebgp-max-hop command is not configured, this command enables single-hop BFD for the EBGP peer. If the EBGP peer is not directly connected or the peer ebgp-max-hop command is configured, this command enables multi-hop BFD for the EBGP peer. For more information about multi-hop and single-hop BFD, see High Availability Configuration Guide. BFD helps speed up BGP routing convergence upon link failures.
Default BGP multi-protocol extension and route refresh are enabled. 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.
undo peer { group-name | ip-address | ipv6-address } capability-advertise route-refresh Default BGP route refresh is enabled. 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.
peer capability-advertise suppress-4-byte-as Use peer capability-advertise suppress-4-byte-as to enable 4-byte AS number suppression. Use undo peer capability-advertise suppress-4-byte-as to disable the function. Syntax peer { group-name | ip-address | ipv6-address } capability-advertise suppress-4-byte-as undo peer { group-name | ip-address | ipv6-address } capability-advertise suppress-4-byte-as Default The 4-byte AS number suppression function is disabled.
peer connect-interface Use peer connect-interface to specify a source interface (IP address/IPv6 address) for establishing TCP connections to a peer or peer group. Use undo peer connect-interface to restore the default.
To specify an indirectly connected interface (except loopback interfaces) on an EBGP peer as the source interface, use the peer ebgp-max-hop command. The command allows the establishment of an EBGP session to the indirectly connected peer. If an interface has multiple IP addresses, BGP uses the primary IP address to establish TCP connections. If an interface has multiple IPv6 addresses, BGP selects a source IPv6 address.
Default No default route is advertised to a peer or peer group. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP VPNv4 address family view, BGP IPv6 unicast address family view, BGP IPv4 multicast address family view, BGP IPv6 multicast 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.
Syntax peer { group-name | ip-address| ipv6-address } description description-text undo peer { group-name | ip-address | ipv6-address } description Default No description information is configured for a peer or peer group. Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. ip-address: Specifies a peer by its IP address.
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. hop-count: Specifies the maximum number of hop counts, in the range of 1 to 255. The default is 64. Usage guidelines EBGP peers must be directly connected.
In BGP IPv6 unicast address family view: peer { group-name | ip-address | ipv6-address } enable undo peer { group-name | ip-address | ipv6-address } enable In BGP-VPN IPv6 unicast address family view/BGP IPv6 multicast address family view: peer { group-name | ipv6-address } enable undo peer { group-name | ipv6-address } enable Default BGP cannot exchange routing information with a peer or peer group.
• In BGP-VPN IPv6 unicast address family view, the command enables the capability to exchange IPv6 unicast routing information. It also adds the learned routes to the IPv6 BGP routing table of the specified VPN instance. • In BGP VPNv6 address family view, the command enables the capability to exchange VPNv6 routing information. In an IPv6 MPLS L3VPN network, execute the command on PE devices in BGP VPNv6 address family view.
[Sysname-bgp-ipv6-vpn1] peer 1::1 enable # In BGP L2VPN address family view, enable BGP to exchange L2VPN information with peer 1.1.1.1. system-view [Sysname] bgp 100 [Sysname-bgp] address-family l2vpn [Sysname-bgp-l2vpn] peer 1.1.1.1 enable # In BGP IPv4 MDT address family view, enable BGP to exchange BGP MDT information with peer 1.1.1.1. system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv4 mdt [Sysname-bgp-mdt] peer 1.1.1.
Examples # In BGP view, advertise a fake AS number of 200 to the peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] peer test fake-as 200 # In BGP-VPN instance view, advertise a fake AS number of 200 to the peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] peer test fake-as 200 peer filter-policy Use peer filter-policy to filter routes advertised to or received from a peer or peer group by using an ACL.
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. acl-number: Specifies an ACL by its number in the range of 2000 to 3999. acl6-number: Specifies an IPv6 ACL by its number in the range of 2000 to 3999.
• filter-policy import • peer as-path-acl • peer prefix-list • peer route-policy peer group Use peer group to add a peer to a peer group. Use undo peer group to delete a specified peer from a peer group. Syntax peer { ip-address | ipv6-address } group group-name [ as-number as-number ] undo peer { ip-address | ipv6-address } group group-name Default No peer exists in a peer group.
{ If no AS number is specified for an IBGP peer group, you do not need to specify the as-number keyword when you execute the peer group command. This is because the AS number of the IBGP peer group is the local AS number. To specify the as-number keyword for the peer group command, make sure that the AS number is the same as the local AS number. If you have specified the AS number of a peer group with the peer as-number command, only the peers with the same AS number can be added to the peer group.
undo peer { group-name | ip-address | ipv6-address } ignore Default BGP can establish a session to a peer or peer group. Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. ip-address: Specifies a peer by its IP address. The peer must have been created. ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created.
Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. ip-address: Specifies a peer by its IP address. ipv6-address: Specifies a peer by its IPv6 address. Usage guidelines IMPORTANT: Before using this command, make sure it does not cause any routing loops to the network. By default, BGP drops incoming route updates whose ORIGINATOR_ID attribute is the same as the local router ID.
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. ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created. profile-name: Specifies an IPsec profile by its name, a case-sensitive string of 1 to 63 characters. Usage guidelines IPsec can protect IPv6 BGP packets from data eavesdropping, tampering, and attacks caused by forged IPv6 BGP packets.
Syntax In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view/BGP VPNv4 address family view/BGP IPv4 multicast address family view: peer { group-name | ip-address } keep-all-routes undo peer { group-name | ip-address } keep-all-routes In BGP IPv6 unicast address family view: peer { group-name | ip-address | ipv6-address } keep-all-routes undo peer { group-name | ip-address | ipv6-address } keep-all-routes In BGP IPv6 multicast address family view: peer { group-name | ipv6-address }
# In BGP IPv6 unicast address family view, save all route updates from peer 1::1. system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv6 unicast [Sysname-bgp-ipv6] peer 1::1 keep-all-routes Related commands • peer capability-advertise route-refresh • refresh bgp peer label-route-capability Use peer label-route-capability to enable BGP to exchange labeled routes with a peer or peer group.
[Sysname] bgp 100 [Sysname-bgp] address-family ipv4 [Sysname-bgp-ipv4] peer 2.2.2.2 label-route-capability # In BGP-VPN IPv4 unicast address family view, enable BGP to exchange labeled IPv4 routes with peer 2.2.2.2. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] address-family ipv4 unicast [Sysname-bgp-ipv4-vpn1] peer 2.2.2.2 label-route-capability # In BGP IPv6 unicast address family view, enable BGP to exchange labeled IPv6 routes with peer 2.2.2.2.
Examples # In BGP 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] 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.
ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created. Usage guidelines To make sure that an IBGP peer can find the next hop, you can use this command to specify the router as the next hop for routes sent to the IBGP peer. Examples # In BGP IPv4 unicast address family view, specify the router as the next hop for routes sent to peer group test.
ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created. cipher: Sets a ciphertext password. simple: Sets a plaintext password. 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.
undo peer { group-name | ip-address } preferred-value In BGP IPv6 unicast address family view: peer { group-name | ip-address | ipv6-address } preferred-value value undo peer { group-name | ip-address | ipv6-address } preferred-value In BGP-VPN IPv6 unicast address family view/BGP IPv6 multicast 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.
[Sysname-bgp] address-family vpnv4 [Sysname-bgp-vpnv4] peer 1.1.1.1 preferred-value 50 # In BGP-VPN IPv6 unicast address family view, specify the preferred value as 50 for routes from peer 1::1.
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. prefix-list-name: Specifies an IPv4 prefix list by its name, a case-sensitive string of 1 to 63 characters.
Syntax In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view/BGP VPNv4 address family view/BGP VPNv6 address family view/BGP IPv4 multicast address family view: peer { group-name | ip-address } public-as-only undo peer { group-name | ip-address } public-as-only In BGP IPv6 unicast address family view/BGP IPv6 multicast address family view: peer { group-name | ip-address | ipv6-address } public-as-only undo peer { group-name | ip-address | ipv6-address } public-as-only In BGP-VPN I
[Sysname] bgp 100 [Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] peer test public-as-only # In BGP VPNv4 address family view, remove private AS numbers in BGP updates sent to EBGP peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] address-family vpnv4 [Sysname-bgp-vpnv4] peer test public-as-only # In BGP-VPN IPv6 unicast address family view, remove private AS numbers in BGP updates sent to EBGP peer group test.
Predefined user roles network-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. ip-address: Specifies a peer by its IP address. The peer must have been created. ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created. Usage guidelines Using route reflectors can solve the issue brought by too many IBGP connections.
Related commands • reflect between-clients • reflector cluster-id 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.
• The number of routes received from the peer or peer group reaches the prefix-number. You can use the reset bgp command to reestablish the session. alert-only: If the number of routes received from the peer or peer group reaches the prefix-number, the router generates a log message instead of tearing down the session to the peer or peer group. The router can continue to receive routes from the peer or peer group.
Syntax In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view/BGP VPNv4 address family view/BGP VPNv6 address family view/BGP IPv4 multicast address family view: peer { group-name | ip-address } route-policy route-policy-name { export | import } undo peer { group-name | ip-address } route-policy { export | import } In BGP-VPN VPNv4 address family view: peer { group-name | ip-address } route-policy route-policy-name import undo peer { group-name | ip-address } route-policy import In
Examples # In BGP IPv4 unicast address family view, apply routing policy test-policy to routes outgoing to the peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] peer test route-policy test-policy export # In BGP-VPN IPv6 unicast address family view, apply the routing policy test-policy to routes outgoing to the peer group test.
interval: Specifies a minimum interval for sending the same update message, in the range of 0 to 600 seconds. Usage guidelines A BGP router sends an update message to its peers when a route is changed. If the route changes frequently, the BGP router sends many updates for the route, resulting in routing flaps. By configuring the interval for sending the same update to a peer or peer group, you can avoid such routing flaps.
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. site-of-origin: Specifies the SoO attribute, a string of 3 to 21 characters.
peer source-address Use peer source-address to specify a source IP or IPv6 address for establishing TCP connections to a peer or peer group. Use undo peer source-address to restore the default.
To specify the address of an indirectly connected interface as the source address, use the peer ebgp-max-hop command. The command allows the establishment of an EBGP session to the indirectly connected peer. You can specify both a source IP address and a source IPv6 address for a peer group. BGP uses the source IP address to establish TCP connections to IPv4 peers in the group. It also uses the source IPv6 address to establish TCP connections to IPv6 peers in the group.
Usage guidelines In MPLS L3VPN, if EBGP is used between PE and CE, sites in different geographical areas must have different AS numbers assigned to ensure correct route advertisement. If different CEs use the same AS number, you must configure the relevant PE to replace the AS number of the CE as its own AS number. This ensures correct advertisement of private network routes. Examples # In BGP view, substitute the local AS number for the AS number of peer 1.1.1.1.
If a router receives no keepalive or update message from the peer within the holdtime, it tears down the session. The timers configured with this command are preferred to the timers configured with the timer command. If the holdtime settings on the local and peer routers are different, the smaller one is used. If the holdtime is configured as 0, no keepalive message will be sent to the peer, and the peer session will never time out.
undo peer { group-name | ip-address | ipv6-address } ttl-security hops Default GTSM is disabled for BGP. 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.
Syntax pic undo pic Default BGP FRR is disabled. 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 Usage guidelines FRR is used in a dual-homing network to protect a primary route with a backup route. It uses ARP (for IPv4), echo-mode BFD (for IPv4), or ND (for IPv6) to detect the connectivity of the primary route.
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, BGP IPv4 multicast address family view, BGP IPv6 multicast address family view Predefined user roles network-admin Parameters external-preference: Specifies a preference for EBGP routes, in the range of 1 to 255. internal-preference: Specifies a preference for IBGP routes, in the range of 1 to 255.
[Sysname-bgp-vpn1] address-family ipv6 unicast [Sysname-bgp-ipv6-vpn1] preference 20 20 200 primary-path-detect bfd Use primary-path-detect bfd to configure BGP FRR to use BFD to detect next hop connectivity for the primary route. Use undo primary-path-detect bfd to restore the default. Syntax primary-path-detect bfd echo undo primary-path-detect bfd Default BGP FRR uses ARP to detect the connectivity to the next hop of the primary route.
address family view, BGP IPv4 multicast address family view, BGP IPv6 multicast address family view, BGP IPv4 MDT address family view 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.
Related commands • peer reflect-client • reflector cluster-id reflector cluster-id Use reflector cluster-id to configure the cluster ID for a route reflector. Use undo reflector cluster-id to restore the default. Syntax reflector cluster-id { cluster-id | ip-address } undo reflector cluster-id Default A route reflector uses its router ID as the cluster ID.
[Sysname-bgp-vpnv4] reflector cluster-id 80 # In BGP-VPN IPv4 unicast address family view, configure the cluster ID on the local router (a reflector in the cluster) as 80. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] address-family ipv4 unicast [Sysname-bgp-ipv4-vpn1] reflector cluster-id 80 # In BGP IPv6 unicast address family view, configure the cluster ID on the local router (a reflector in the cluster) as 80.
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.
Examples # Soft-reset all inbound BGP sessions for the IPv4 unicast address family. refresh bgp all import ipv4 # Soft-reset all inbound BGP sessions for the IPv6 unicast address family. refresh bgp all import ipv6 # Soft-reset all outbound BGP sessions for the IPv4 multicast address family. refresh bgp all export ipv4 multicast # Soft-reset all outbound BGP sessions for the IPv6 multicast address family.
ipv6: Resets BGP sessions for IPv6 address family. mdt: Resets BGP sessions for MDT address family. multicast: Resets BGP sessions for multicast address family. unicast: Resets BGP sessions for unicast address family. vpnv4: Resets BGP sessions for VPNv4 address family. vpnv6: Resets BGP sessions for VPNv6 address family. l2vpn: Resets BGP sessions for L2VPN address family. vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.
reset bgp dampening Use reset bgp dampening to clear BGP route dampening information and release suppressed BGP routes.
Examples # Clear dampening information for the public BGP IPv4 unicast route to network 20.1.0.0/16, and release the suppressed route. reset bgp dampening ipv4 20.1.0.0 255.255.0.0 # Clear dampening information for the public BGP IPv6 unicast route to network 2345::/16, and release the suppressed route. reset bgp dampening ipv6 2345:: 16 # Clear dampening information for the BGP IPv4 multicast route to network 1.2.3.4/32, and release the suppressed route.
as-path-acl as-path-acl-number: Specifies an AS path list by its number in the range of 1 to 256, to filter BGP route flap statistics. peer ipv4-address: Clears flap statistics for BGP routes learned from the specified IPv4 BGP peer. peer ipv4-address: Clears flap statistics for BGP routes learned from the specified IPv6 BGP peer.
undo router id Default No global router ID is configured. Views System view Predefined user roles network-admin Parameters router-id: Specifies a router ID in IP address format. Usage guidelines Some routing protocols use a router ID to identify a device. You can configure a global router ID, which is used by routing protocols that have no router ID configured. If no global router ID is configured, the highest loopback address, if any, is used as the router ID.
Views BGP view Predefined user roles network-admin Parameters router-id: Specifies a router ID for BGP, in IP address format. Usage guidelines To run BGP, a router must have a router ID, which is an unsigned 32-bit integer that uniquely identifies the router in the AS. To modify a non-zero router ID for BGP, execute the router-id command in BGP view. To improve availability, specify the IP address of a loopback interface as the router ID for BGP.
Usage guidelines To run BGP, a VPN instance must have a router ID, which is an unsigned 32-bit integer that uniquely identifies the BGP VPN router in the AS. To improve availability, specify the IP address of a loopback interface as the router ID. You can specify a different router ID for each VPN instance on a device. If you execute this command in the same BGP-VPN instance view multiple times, the most recent configuration takes effect.
Usage guidelines This feature enables BGP to generate SNMP notifications. The generated SNMP notifications are sent to the SNMP module. For more information about SNMP notifications, see Network Management and Monitoring Configuration Guide. Examples # Enable SNMP notifications for BGP. system-view [Sysname] snmp-agent trap enable bgp summary automatic Use summary automatic to configure automatic route summarization for redistributed IGP subnet routes.
Related commands • aggregate • import-route timer Use timer to configure a BGP keepalive interval and holdtime. Use undo timer to restore the default. Syntax timer keepalive keepalive hold holdtime undo timer Default The BGP keepalive interval and the holdtime are 60 seconds and 180 seconds. Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters keepalive keepalive: Configures a keepalive interval in the range of 0 to 21845 seconds.
[Sysname-bgp] timer keepalive 60 hold 180 # In BGP-VPN instance view, configure the keepalive interval and holdtime as 60s and 180s. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] timer keepalive 60 hold 180 # In BGP view, configure both the keepalive interval and holdtime as 0 seconds, indicating the sessions will never time out.
Policy-based routing commands In this chapter, "MSR2000" refers to MSR2003. "MSR3000" collectively refers to MSR3012, MSR3024, MSR3044, MSR3064. "MSR4000" collectively refers to MSR4060 and MSR4080. apply access-vpn vpn-instance Use apply access-vpn vpn-instance to set a VPN instance. Use undo apply access-vpn vpn-instance to remove the specified VPN instance.
Syntax apply continue undo apply continue Default PBR does not match packets against the next policy node upon failure on the current node. Views Policy node view Predefined user roles network-admin Usage guidelines This command takes effect only when the match mode of the node is permit.
Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. The specified VPN must already exist. inbound-vpn: Specifies the VPN instance where the inbound interface belongs. ip-address: Specifies the default next-hop IP address. Without the vpn-instance vpn-instance-name option or the inbound-vpn keyword, the default next hop belongs to the public network. direct: Specifies a directly connected default next hop.
track track-entry-number: Specifies a track entry by its number in the range of 1 to 1024. &<1-n>: Indicates that the argument before it can be entered up to n times. The value of n is 4. Usage guidelines You can specify multiple default output interfaces for backup or load sharing by executing this command once or multiple times. You can specify up to m default output interfaces for a node. The value of m is 16. The default output interface must be P2P type.
Examples # Set the DF bit in the IP header of matching packets to 0. system-view [Sysname] policy-based-route aa permit node 11 [Sysname-pbr-aa-11] apply ip-df 0 apply loadshare Use apply loadshare to enable load sharing among multiple next hops, output interfaces, default next hops, or default output interfaces. Use undo apply loadshare to restore the default.
[Sysname] policy-based-route aa permit node 11 [Sysname-pbr-aa-11] apply output-interface Vlan-interface 1 Vlan-interface 2 [Sysname-pbr-aa-11] apply loadshare output-interface # Enable load sharing among multiple default next hops. system-view [Sysname] policy-based-route aa permit node 11 [Sysname-pbr-aa-11] apply default-next-hop 1.1.1.1 2.2.2.2 [Sysname-pbr-aa-11] apply loadshare default-next-hop # Enable load sharing among multiple default output interfaces.
&<1-n>: Indicates that the argument before it can be entered up to n times. The value of n is 4. Usage guidelines You can specify multiple next hops for backup or load sharing by executing this command once or multiple times. You can specify up to m next hops for a node. The value of m is 16. With a next hop specified, the undo apply next-hop command removes the next hop. Without any next hop specified, the undo apply next-hop command removes all next hops.
With an output interface specified, the undo apply output-interface command removes the output interface. Without any output interface specified, the undo apply output-interface command removes all output interfaces. Examples # Specify Serial 2/0 as the output interface for IP packets.
Precedence value Precedence type 7 network Examples # Set the precedence to 5 (critical) for IP packets. system-view [Sysname] policy-based-route aa permit node 11 [Sysname-pbr-aa-11] apply precedence critical display ip policy-based-route Use display ip policy-based-route to display PBR policy information.
display ip policy-based-route interface Use display ip policy-based-route interface to display interface PBR configuration and statistics. Syntax MSR2000/MSR3000: display ip policy-based-route interface interface-type interface-number MSR4000: display ip policy-based-route interface interface-type interface-number [ slot slot-number ] Views Any view Predefined user roles network-admin network-operator Parameters interface-type interface-number: Specifies an interface by its type and number.
node 1 permit: if-match acl 3999 Matched: 0 node 2 permit(no resource): if-match acl 2000 apply next-hop 2.2.2.2 apply output-interface GigabitEthernet2/1/2 track 1 (down) apply output-interface GigabitEthernet2/1/3 track 2 (inactive) Matched: 0 node 5 permit: if-match acl 3101 apply next-hop 1.1.1.
display ip policy-based-route local [ slot slot-number ] Views Any view Predefined user roles network-admin network-operator Parameters slot slot-number: Displays the PBR configuration and statistics on a card. The slot-number argument is the number of the slot that holds the card. Examples # Display local PBR configuration and statistics.
display ip policy-based-route setup Use display ip policy-based-route setup to display PBR configuration. Syntax display ip policy-based-route setup Views Any view Predefined user roles network-admin network-operator Examples # Display PBR configuration. display ip policy-based-route setup Policy Name Interface Name pr01 GigabitEthernet 2/1/1 Table 108 Command output Field Description Interface Name Interface where the policy is applied.
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. Examples # Configure Node 11 of policy aa to permit the packets matching ACL 2011. system-view [Sysname] policy-based-route aa permit node 11 [Sysname-pbr-aa-11] if-match acl 2011 # Configure Node 11 of policy aa to permit the packets matching ACL aaa.
Use undo ip local policy-based-route to remove the configuration. Syntax ip local policy-based-route policy-name undo ip local policy-based-route Default No policy is referenced for local PBR. 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. The specified policy must already exist. Usage guidelines You can apply only one policy locally.
Parameters policy-name: Specifies a policy by its name, a case-sensitive string of 1 to 19 characters. The specified policy must already exist. Usage guidelines You can apply only one policy to an interface. Before you apply a new policy, you must first remove the current policy from the interface. Examples # Apply policy aaa to GigabitEthernet 2/1/1.
• If no policy node or match mode is specified, the command removes the whole policy. Examples # Create permit-mode of Node 10 for policy policy1 and enter policy node view. system-view [Sysname] policy-based-route policy1 permit node 10 [Sysname-pbr-policy1-10] Related commands display ip policy-based-route reset ip policy-based-route statistics Use reset ip policy-based-route statistics to clear 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 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 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 # Display 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.
TableID: 0xa Flag: 0x80d0a DbIndex: 0x1 Type: Normal TrackIndex: 0xffffffff Preference: 60 BfdMode: N/A Permanent: 0 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 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. ipv6 route-static Use ipv6 route-static to configure an IPv6 static route.
hop address must be specified. Broadcast interfaces include Ethernet interfaces, a virtual template interfaces, and VLAN interfaces. 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. control-packet: Specifies the BFD control mode. bfd-source ipv6-address: Specifies the source IPv6 address of BFD packets.
system-view [Sysname] ipv6 route-static 1:1:2:: 64 1:1:3::1 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.
RIPng commands checkzero Use checkzero to enable the zero field check on RIPng packets. Use undo checkzero to disable the zero field check. Syntax checkzero undo checkzero Default The zero field check function is enabled. Views RIPng view Predefined user roles network-admin Usage guidelines Some fields in RIPng packet headers must be zero. These fields are called "zero fields." You can enable zero field check on incoming RIPng packets.
Predefined user roles network-admin Parameters value: Specifies a default metric for redistributed routes, in the range of 0 to 16. Usage guidelines When you use the import-route command to redistribute routes from another routing protocol without specifying a metric, the metric specified by the default cost command applies. Examples # Configure a default metric of 2 for redistributed routes.
Number of trigger updates sent: 1 Table 112 Command output Field Description Public VPN-instance name/Private VPN-instance name Public network or VPN where the RIPng process runs. RIPng process RIPng process ID. Preference RIPng preference. Checkzero Indicates whether zero field check for RIPng packet headers is enabled. Default Cost Default metric of redistributed routes. Maximum number of balanced paths Maximum number of load-balanced routes. Update time RIPng update interval, in seconds.
Table 113 Command output Field Description cost Route metric value. imported Indicates the route is redistributed from another routing protocol. RIPng-interface Route learned from the interface. via Next hop IPv6 address. display ripng interface Use display ripng interface to display interface information for a RIPng process.
Field Description Indicates whether the poison reverse function is enabled: Poison-reverse • On—Enabled. • Off—Disabled. MetricIn/MetricOut Additional metric to incoming and outgoing routes. • Only—The interface advertises only a default route. • Originate—The interface advertises a default route and other RIPng routes. • Off—In this state, the interface does not advertise a default Default route route.
via FE80::20C:29FF:FED4:7171, cost 1, tag 0, AOF, 5 secs Local route Destination 3::3/128, via ::, cost 0, tag 0, DOF Destination 6::/64, via ::, cost 0, tag 0, DOF # Display information of routes with specified prefix for RIPng process 1.
Field Description Garbage Number of routes in Garbage-collection state. Local Total number of locally generated direct route. total Total number of routes learned from RIPng neighbors. enable ipsec-profile Use enable ipsec-profile to apply an IPsec profile to a RIPng process. Use undo enable ipsec-profile to remove the IPsec profile from the RIPng process. Syntax enable ipsec-profile profile-name undo enable ipsec-profile Default No IPsec profile is applied to the RIPng process.
Views RIPng view Predefined user roles network-admin Parameters acl6-number: Specifies an ACL by its number in the range of 2000 to 3999 to filter redistributed routes. prefix-list prefix-list-name: Specifies an IPv6 prefix list by its name, a string of 1 to 63 characters, to filter redistributed routes. protocol: Filters routes redistributed from a routing protocol, including bgp4+, direct, isisv6, ospfv3, ripng, and static.
filter-policy import Use filter-policy import to configure RIPng to filter received routes. Only routes not filtered can be received. Use undo filter-policy import to remove the configuration. Syntax filter-policy { acl6-number | prefix-list prefix-list-name } import undo filter-policy import Default RIPng does not filter received routes. Views RIPng view Predefined user roles network-admin Parameters acl6-number: Specifies an ACL by its number in the range of 2000 to 3999 to filter received routes.
[Sysname-ripng-100] filter-policy 3000 import graceful-restart Use graceful-restart to enable Graceful Restart (GR) for RIPng. Use undo graceful-restart to disable RIPng GR capability. Syntax graceful-restart undo graceful-restart Default RIPng GR is disabled. Views RIPng view Predefined user roles network-admin Examples # Enable GR for RIPng process 1.
allow-ibgp: Allows redistribution of IBGP routes. This keyword is available when the protocol argument is set to bgp4+. allow-direct: Redistributes the networks of the local interfaces enabled with the specified routing protocol. By default, the networks of the local interfaces are not redistributed. If you specify both the allow-direct keyword and the route-policy route-policy-name option, make sure the if-match rule defined in the routing policy does not conflict with the allow-direct keyword.
preference Use preference to specify the preference for RIPng routes. Use undo preference to restore the default. Syntax preference [ route-policy route-policy-name ] value undo preference Default The preference of RIPng routes is 100. Views RIPng view Predefined user roles network-admin Parameters route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters. value: Specifies the preference for RIPng routes, in the range of 1 to 255.
Usage guidelines After executing the command, you are prompted to confirm the operation. Examples # Reset RIPng process 100. reset ripng 100 process Reset RIPng process? [Y/N]:y reset ripng statistics Use reset ripng statistics to clear statistics for a RIPng process. Syntax reset ripng process-id statistics Views User view Predefined user roles network-admin network-operator Parameters process-id: Specifies a RIPng process by its ID in the range of 1 to 65535.
Usage guidelines Before you configure global RIPng parameters, you must create a RIPng process. This restriction does not apply to configuring interface RIPng parameters. If you disable a RIPng process, the configured RIPng parameters become invalid. Examples # Create RIPng process 100 and enter its view. system-view [Sysname] ripng 100 [Sysname-ripng-100] ripng default-route Use ripng default-route to configure a RIPng interface to advertise a default route with a specified metric.
ripng enable Use ripng enable to enable RIPng on an interface. Use undo ripng enable to disable RIPng on an interface. Syntax ripng process-id enable undo ripng enable Default RIPng is disabled on an interface. Views Interface view Predefined user roles network-admin Parameters process-id: Specifies a RIPng process by its ID in the range of 1 to 65535. Examples # Enable RIPng 100 on GigabitEthernet 2/1/1.
Examples # Apply IPsec profile profile001 to GigabitEthernet 2/1/1. system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] ripng ipsec-profile profile001 ripng metricin Use ripng metricin to configure an interface to add a metric to inbound RIPng routes. Use undo ripng metricin to restore the default. Syntax ripng metricin value undo ripng metricin Default The additional metric of an inbound route is 0.
Parameters value: Adds an additional metric to outbound routes, in the range of 1 to 16. Examples # Configure RIPng on GigabitEthernet 2/1/1 to add a metric of 12 to outbound RIPng routes. system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] ripng metricout 12 ripng poison-reverse Use ripng poison-reverse to enable the poison reverse function. Use undo ripng poison-reverse to disable the poison reverse function.
Usage guidelines The split horizon function prevents routing loops. If you want to disable this function, make sure the operation is indispensable. If both poison reverse and split horizon are enabled, only the poison reverse function takes effect. On NBMA networks, such as FR and X.25 where multiple VCs are configured on the primary and secondary interfaces, disable split horizon to ensure correct route advertisement. For more information, see Layer 2—WAN Configuration Guide.
timers Use timers to configure RIPng timers. Use undo timers to restore the default. Syntax timers { garbage-collect garbage-collect-value | suppress suppress-value | timeout timeout-value | update update-value } * undo timers { garbage-collect | suppress | timeout | update } * Default The garbage-collect timer is 120 seconds, the suppress timer is 120 seconds, the timeout timer is 180 seconds, and the update timer is 30 seconds.
OSPFv3 commands In this chapter, "MSR2000" refers to MSR2003. "MSR3000" collectively refers to MSR3012, MSR3024, MSR3044, MSR3064. "MSR4000" collectively refers to MSR4060 and MSR4080. 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.
Use undo area to remove an OSPFv3 area. 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 translated into the IPv4 address format. 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. OSPFv3 computes the cost automatically based on the bandwidth reference value by using the following formula: 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.
SPF Scheduled Count: 0 ExChange/Loading Neighbors: 0 LSA Count: 0 Table 117 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.
Examples # Display information about all the routes to the OSPFv3 ABR and ASBR. 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 118 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.
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 120 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 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. Number of restarting neighbors Number of neighbors in GR restarter status. Last exit reason: • Restarter—Reason that the restarter exited last time.
------------------------------------------------------------------------GigabitEthernet2/1/1 is up, line protocol is up Interface ID 3 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. IPsec profile name IPsec profile applied to the interface.
link-state-id: Specifies a link state ID in IPv4 address format. originate-router router-id: Specifies an advertising router by its ID. self-originate: Displays locally originated LSAs. statistics: Displays LSA statistics. total: Displays the total number of LSAs in the LSDB. verbose: Displays detailed information. Without this keyword, the command displays brief information. Examples # Display OSPFv3 LSDB information. display ospfv3 lsdb OSPFv3 Process 1 with Router ID 1.1.1.
Field Description 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 GigabitEthernet2/1/1) ------------------------------------------------------------------------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 125 Command output Field Description Area ID Area ID. Router Number of Type-1 LSAs. Network Number of Type-2 LSAs.
------------------------------------------------------------------------Link State ID Origin Router Age SeqNum CkSum 0.15.0.8 2.2.2.2 0019 0x80000007 0x599e 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: GE2/1/2 RefCount: 4 Status NbrID NbrIntID : 21 : 1.1.1.1 : Valid Nexthop : FE80::20C:29FF:FED7:F312 Interface: GE2/1/3 RefCount: 3 Status NbrID NbrIntID : 38 : 1.1.1.1 : Valid Table 127 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.
display ospfv3 non-stop-routing OSPFv3 Process 1 with Router ID 3.3.3.3 Nonstop Routing capability: Enabled Upgrade phase : Normal Table 128 Command output Field Description Nonstop Routing capability NSR status: enabled or disabled. Upgrade phase: Upgrade phase • • • • • • Normal—Normal status. Preparation—Upgrade preparation phase. Smooth—Upgrade phase. Precalculation—Route pre-calculation phase. Calculation—Route calculation phase. Redistribution—Route redistribution phase.
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 gigabitethernet 2/1/1 OSPFv3 Process 1 with Router ID 1.1.1.1 Area: 0.0.0.1 ------------------------------------------------------------------------Router ID Pri State Dead-Time InstID Interface 2.2.2.
Field Description 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. Neighbor state change count Count of neighbor state changes.
Field Description Attempt This state is available only in an NBMA network. In this state, the OSPFv3 router has not received any information from a neighbor for a period. The router can send Hello packets at a longer interval to keep the neighbor relationship. Init In this state, the device received a Hello packet from the neighbor but the packet contains no Router ID of the neighbor. Mutual communication is not setup. 2-Way Mutual communication between the router and its neighbor is available.
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 GigabitEthernet2/1/1 ------------------------------------------------------------------------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.128 1.3.3.3 0x80000001 0027 0x2d45 0x4005 0.0.34.129 1.3.3.3 0x80000001 0027 0x333d 0x4005 0.0.34.
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 the IPv4 address format. interface-type interface-number: Specifies an interface by its type and number. neighbor-id: Specifies a neighbor's router ID. Usage guidelines If no OSPFv3 process is specified, this command displays retransmission list information for all OSPFv3 processes.
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. The prefix-length argument specifies a prefix length in the range of 0 to 128. Examples # Display OSPFv3 routing information.
Field Description 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. display ospfv3 spf-tree Use display ospfv3 spf-tree to display OSPFv3 topology information.
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.2 RT2RT 1 P Router S R Table 135 Command output Field Description SPF node, represented by the advertising router ID. Node type: • Network—Network node. • Router—Router node. Node flag: SPFNode • • • • • I—The node is in initialization state.
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 : 1.1.1.1 NbrIntID : 21 Interface : GE2/1/2 NhFlag : Valid Nexthop : FE80::20C:29FF:FED7:F308 RefCount : 4 Nexthop count: 1 -->NbrID SPFLink count: 1 -->AdvID : 1.1.1.1 LsID : 0.0.0.0 IntID : 232 NbrIntID : 465 NbrID : 2.2.
Field Description 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. 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.
OSPFv3 Process 1 with Router ID 1.1.1.
Field Description 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. Unknown-LSA Number of Unknown-LSAs. Total Total number. Routes Statistics Number of routes. Intra Area Intra-area routes. Inter Area Inter-area routes. ASE Type-5 external routes. NSSA Type-7 external routes.
Field Description 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. Inactive area packet Packets received in inactive areas. Router ID confusion Packets with duplicate router ID. Bad virtual link Packets on wrong virtual links. HELLO: Hello-time mismatch Hello packets with mismatched hello timer.
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.
Views OSPFv3 area view Predefined user roles network-admin Parameters profile-name: Specifies an IPsec profile by its name, a case-sensitive string of 1 to 63 characters. Usage guidelines To protect routing information and prevent attacks, OSPFv3 can authenticate protocol packets by using an IPsec profile. For more information about IPsec profiles, see Security Configuration Guide. Examples # Apply IPsec profile profile001 to Area 0 in OSPFv3 process 1.
Examples # Use IPv6 prefix list my-prefix-list to filter inbound Inter-Area-Prefix-LSAs. Use IPv6 ACL 2000 to filter outbound Inter-Area-Prefix-LSAs in OSPFv3 Area 1. system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] area 1 [Sysname-ospfv3-1-area-0.0.0.1] filter prefix-list my-prefix-list import [Sysname-ospfv3-1-area-0.0.0.1] filter 2000 export filter-policy export (OSPFv3 view) Use filter-policy export to configure OSPFv3 to filter redistributed routes.
Using the filter-policy export command filters only routes redistributed by the import-route command. If the import-route command is not configured to redistribute routes from other protocols and other OSPFv3 processes, the filter-policy export command does not take effect. Examples # Use IPv6 prefix list abc to filter redistributed routes.
route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to filter received routes. Usage guidelines To reference an advanced ACL (with a number from 3000 to 3999) in the command, configure the ACL in one of the following ways: • To deny/permit a route with the specified destination, use rule [ rule-id ] { deny | permit } ipv6 source sour sour-prefix.
Usage guidelines OSPFv3 GR and OSPFv3 NSR are mutually exclusive. Do not configure the graceful-restart enable command and the non-stop-routing command at the same time. To prevent service interruption after a master/backup switchover, a GR restarter running OSPFv3 must complete the following tasks: • Keep the GR restarter forwarding entries stable during reboot. • Establish all adjacencies and obtain complete topology information after reboot. Examples # Enable the GR capability for OSPFv3 process 1.
graceful-restart helper strict-lsa-checking Use graceful-restart helper strict-lsa-checking to enable strict LSA checking for the GR helper. Use undo graceful-restart helper strict-lsa-checking to disable strict LSA checking for the GR helper. Syntax graceful-restart helper strict-lsa-checking undo graceful-restart helper strict-lsa-checking Default Strict LSA checking for the GR helper is disabled.
Usage guidelines The value of the GR restart interval cannot be smaller than the maximum OSPFv3 neighbor dead time of all the OSPFv3 interfaces. Otherwise, GR restart might fail. Examples # Configure the GR restart interval for OSPFv3 process 1 as 100 seconds. system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] graceful-restart interval 100 Related commands ospfv3 timer dead import-route (OSPFv3 view) Use import-route to redistribute routes. Use undo import-route to disable route redistribution.
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. route-policy route-policy-name: Specifies a routing policy to filter redistributed routes.
Default The logging of neighbor state changes is enabled. 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. The information center processes logs according to user-defined output rules (whether and where to output logs). For more information about the information center, see Network Management and Monitoring Configuration Guide.
Usage guidelines When network changes are infrequent, 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) for each generation until the maximum-interval is reached. The minimum interval and the incremental interval cannot be greater than the maximum interval.
Syntax non-stop-routing undo non-stop-routing The following matrix shows the support of MSR routers for the command: Hardware Command compatibility MSR2000 No MSR3000 No MSR4000 Yes Default OSPFv3 NSR is disabled. Views OSPFv3 view Predefined user roles network-admin Usage guidelines OSPFv3 NSR and OSPFv3 GR are mutually exclusive. Do not configure the non-stop-routing command and the graceful-restart enable command at the same time. Examples # Enable NSR for OSPFv3 process 100.
Parameters default-route-advertise: Used on an NSSA ABR or an ASBR only. If it is configured on an NSSA ABR, the ABR redistributes a default route in a Type-7 LSA into the NSSA area. It redistributes a default route regardless of whether a default route exists in the routing table. If it is configured on an ASBR, the ASBR redistributes a default route in a Type-7 LSA only when the default route exists in the routing table. cost cost: Specifies a cost for the default route, in the range of 0 to 16777214.
ospfv3 Use ospfv3 to enable an OSPFv3 process and enter OSPFv3 view. Use undo ospfv3 to disable an OSPFv3 process. Syntax ospfv3 [ process-id | vpn-instance vpn-instance-name ] * undo ospfv3 [ process-id ] Default No OSPFv3 process is enabled. Views System view Predefined user roles network-admin Parameters process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. The default process ID is 1.
Parameters process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. 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 the IPv4 address format. instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0. Examples # Configure GigabitEthernet 2/1/1 to run instance 1 of OSPFv3 process 1 in Area 1.
Syntax ospfv3 cost value [ instance instance-id ] undo ospfv3 cost [ instance instance-id ] Default The cost is 1 for a VLAN interface, is 0 for a loopback interface, and is computed according to the interface bandwidth for other interfaces. Views Interface view Predefined user roles network-admin Parameters value: Specifies an OSPFv3 cost in the range of 0 to 65535 for a loopback interface, and in the range of 1 to 65535 for other interfaces.
Examples # Set the router priority for GigabitEthernet 2/1/1 in instance 1 to 8. system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] ospfv3 dr-priority 8 instance 1 ospfv3 ipsec-profile Use ospfv3 ipsec-profile to apply an IPsec profile to an OSPFv3 interface. Use undo ospfv3 ipsec-profile to remove the IPsec profile from the OSPFv3 interface.
Views Interface view Predefined user roles network-admin Parameters instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0. Usage guidelines A neighbor relationship can be established only if the interface's MTU is the same as that of the peer. Examples # Configure GigabitEthernet 2/1/1 that belongs to instance 1 to ignore MTU check during DD packet exchange.
Usage guidelines If a router on a broadcast network does not support multicast, configure the network type for the connected interfaces as NBMA. If any two routers on an NBMA network are directly connected through a virtual link, the network is fully meshed. You can configure the network type for the connected interfaces as NBMA. If two routers are not directly connected, configure the P2MP network type so that the two routers can exchange routing information through another router.
Examples # On GigabitEthernet 2/1/1, specify the link-local address of its neighbor as FE80::1111. system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] ospfv3 peer fe80::1111 ospfv3 timer dead Use ospfv3 timer dead to configure the OSPFv3 neighbor dead time. Use undo ospfv3 timer dead to restore the default.
undo ospfv3 timer hello [ instance instance-id ] Default The hello interval is 10 seconds for P2P and broadcast interfaces, and is 30 seconds for P2MP or NBMA interfaces. Views Interface view Predefined user roles network-admin Parameters seconds: Specifies the hello interval in the range of 1 to 65535 seconds. instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.
Usage guidelines When an NBMA interface finds its neighbor is down, it sends hello packets at the poll interval. The poll interval must be at least four times the hello interval. Examples # Set the poll interval on GigabitEthernet 2/1/1 to 120 seconds.
Use undo ospfv3 trans-delay to restore the default. Syntax ospfv3 trans-delay seconds [ instance instance-id ] undo ospfv3 trans-delay [ instance instance-id ] Default The transmission delay is 1 second. Views Interface view Predefined user roles network-admin Parameters seconds: Specifies the transmission delay in the range of 1 to 3600 seconds. instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0.
route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to set a preference for matching routes. preference: Specifies the preference of OSPFv3, in the range of 1 to 255. The smaller the value, the higher the preference. Usage guidelines If multiple routing protocols find multiple routes to the same destination, the router uses the route found by the protocol with the highest preference. Examples # Set a preference of 150 for OSPFv3 routes.
silent-interface(OSPFv3 view) Use silent-interface to disable the specified interface from receiving and sending OSPFv3 packets. Use undo silent-interface to restore the default. Syntax silent-interface { interface-type interface-number | all } undo silent-interface { interface-type interface-number | all } Default An interface can receive and send OSPFv3 packets.
Views OSPFv3 view Predefined user roles network-admin Parameters maximum-interval: Specifies the maximum OSPFv3 route calculation interval in the range of 1 to 60 seconds. minimum-interval: Specifies the minimum OSPFv3 route calculation interval in the range of 10 to 60000 milliseconds. incremental-interval: Specifies the incremental OSPFv3 route calculation interval in the range of 10 to 60000 milliseconds.
Parameters default-route-advertise-always: Enables the ABR to always advertise the default route. no-summary: Enables the ABR of a stub area to advertise only a default route in an Inter-Area-Prefix-LSA into the stub area. No AS-external-LSA, Inter-Area-Prefix-LSA, or other Inter-Area-Router-LSA is advertised in the area. The area is a totally stub area. Usage guidelines To remove the no-summary configuration on an ABR, execute the stub command again to overwrite it.
system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] transmit-pacing interval 30 count 10 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 | ipsec-profile profile-name | retransmit seconds | trans-delay seconds ] * undo vlink-peer router-id [ dead | hello | ipsec-profile | retransmit | trans-delay ] * Default No virtual link is configured.
• A retransmission interval that is too small can cause unnecessary retransmissions. A large value is appropriate for a low speed link. • Specify an appropriate transmission delay with the trans-delay keyword. Examples # Configure a virtual link to 10.10.0.3. system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] area 1 [Sysname-ospfv3-1-area-0.0.0.1] vlink-peer 10.10.0.
IPv6 IS-IS commands In this chapter, "MSR2000" refers to MSR2003. "MSR3000" collectively refers to MSR3012, MSR3024, MSR3044, MSR3064. "MSR4000" collectively refers to MSR4060 and MSR4080. IPv6 IS-IS supports all the features of IPv4 IS-IS except that it advertises IPv6 routing information. This chapter describes only IPv6 IS-IS exclusive commands. For other IS-IS configuration commands, see "IS-IS commands.
Views IS-IS IPv6 unicast address family view Predefined user roles network-admin Usage guidelines After automatic link cost calculation is enabled, the link cost is automatically calculated based on the bandwidth reference value of an interface. When the cost-style is wide or wide-compatible, the cost value of an interface is calculated by using the following formula: Cost = (Reference bandwidth value / Link bandwidth) × 10. For other cost styles, Table 140 applies.
Predefined user roles network-admin Parameters value: Specifies the bandwidth reference value in the range of 1 to 2147483648 Mbps. Examples # Configure the IPv6 bandwidth reference of IS-IS process 1 as 200 Mbps. system-view [Sysname-isis-1] address-family ipv6 [Sysname-isis-1-ipv6] bandwidth-reference 200 Related commands • auto-cost enable • isis cost circuit-cost Use circuit-cost to set a global IPv6 IS-IS link cost. Use undo circuit-cost to remove the configuration.
[Sysname-isis-1-ipv6] circuit-cost 11 level-1 Related commands • cost-style • isis cost default-route-advertise Use default-route-advertise to advertise a Level-1 or Level-2 IPv6 IS-IS default route. Use undo default-route-advertise to remove the configuration. Syntax default-route-advertise [ avoid-learning | [ level-1 | level-1-2 | level-2 ] | route-policy route-policy-name | tag tag ] * undo default-route-advertise Default No IPv6 IS-IS default route is advertised.
Examples # Configure IS-IS process 1 to advertise a Level-2 IPv6 default route. system-view [Sysname] isis 1 [Sysname-isis-1] address-family ipv6 [Sysname-isis-1-ipv6] default-route-advertise Related commands apply isis display isis redistribute ipv6 Use display isis redistribute ipv6 to display information about redistributed IPv6 IS-IS routes.
Type : direct Destination: 12:1::/64 IntCost : 0 Tag State : Active : Table 141 Command output Field Description Route information for IS-IS(1) Redistributed route information for IS-IS process 1. Level-1 IPv6 Redistribute Table Redistributed route information of IS-IS Level-1. Level-2 IPv6 Redistribute Table Redistributed route information of IS-IS Level-2. Redistributed route types: • • • • • • Type Direct. IS-ISv6. Static. OSPFv3. BGP4+. RIPng. Destination IPv6 destination address.
Examples # Display IPv6 IS-IS route information.
# Display detailed IPv6 IS-IS routing information.
Field Description ExitIndex Output interface index. display isis spf-tree ipv6 Use display isis spf-tree ipv6 to display IPv6 IS-IS topology information. Syntax display isis spf-tree ipv6 [ [ level-1 | level-2 ] | verbose ] * [ process-id ] Views Any view Predefined user roles network-admin network-operator Parameters level-1: Displays Level 1 IPv6 IS-IS topology information. If no level is specified, the command displays both Level-1 and Level-2 topology information.
0000.0000.0032.01 0000.0000.0064.00 -->0000.0000.0032.01 10 -/-/C/-/-/-/-/-/- -->0000.0000.0064.00 10 -/-/C/-/-/-/-/-/- -->0000.0000.0064.00 0 -/-/C/-/-/-/-/-/- -->0000.0000.0032.00 0 -/-/-/P/-/-/-/-/- -->0000.0000.0032.00 10 -/-/-/P/-/-/-/-/- -->0000.0000.0032.
LinkFlag : -/-/C/-/-/-/-/-/- LinkSrcCnt : 1 Type: Adjacent Interface: N/A Cost: 10 Nexthop : N/A -->0000.0000.0064.00 LinkCost : 10 LinkNewCost: 10 LinkFlag : -/-/C/-/-/-/-/-/- LinkSrcCnt : 1 Type: Adjacent Interface: Tun1 Cost: 10 Nexthop SpfNode : 0000.0000.0032.01 Distance : 10 NodeFlag : S/-/-/R/-/- : FE80::A0A:A40 NextHopCnt: 0 SpfLinkCnt: 2 -->0000.0000.0064.
LinkFlag : -/-/-/P/-/-/-/-/- LinkSrcCnt : 1 Type: Remote Interface: N/A Cost: 10 Nexthop : N/A -->0000.0000.0032.01 LinkCost : 10 LinkNewCost: 10 LinkFlag : -/-/-/P/-/-/-/-/- LinkSrcCnt : 1 Type: Remote Interface: N/A Cost: 10 Nexthop : N/A Level-2 Shortest Path Tree ---------------------------------SpfNode : 0000.0000.0032.00 Distance : 0 NodeFlag : S/-/-/-/-/- NextHopCnt: 0 SpfLinkCnt: 2 -->0000.0000.0032.
LinkCost : 0 LinkNewCost: 0 LinkFlag : -/-/-/P/-/-/-/-/- LinkSrcCnt : 1 Type: Adjacent Interface: N/A Cost: 0 Nexthop SpfNode : 0000.0000.0064.00 Distance : 10 NodeFlag : S/-/-/R/-/- : N/A NextHopCnt: 2 Neighbor : 0000.0000.0064.00 Interface NextHop : FE80::200:12FF:FE34:1 BkNeighbor: N/A : Vlan2 BkInterface: N/A BkNextHop : N/A Neighbor : 0000.0000.0064.00 NextHop : FE80::A0A:A40 Interface BkNeighbor: N/A : Tun1 BkInterface: N/A BkNextHop : N/A SpfLinkCnt: 2 -->0000.0000.
Field Description Next Hop Primary next hop of the node or the link advertising source. Interface Primary output interface of the node or the link advertising source. BkNextHop Backup next hop. BkInterface Backup output interface. Neighbor ID of the primary next hop neighbor. BkNeighbor ID of the backup next hop neighbor. SpfLink Topology link. SpfLinkCnt Number of topology links. LinkCost Link cost. LinkNewCost New link cost.
Predefined user roles network-admin Parameters acl6-number: Specifies an IPv6 ACL by its number in the range of 2000 to 3999 to filter redistributed routes. prefix-list prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter the redistributed routes. route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to filter redistributed routes.
[Sysname-isis-1-ipv6] filter-policy 3000 export Related commands filter-policy import filter-policy import Use filter-policy import to configure IPv6 IS-IS to filter received routes. Use undo filter-policy import to remove the configuration. Syntax filter-policy { acl6-number | prefix-list prefix-list-name | route-policy route-policy-name } import undo filter-policy import Default IPv6 IS-IS does not filter received routes.
# Configure IPv6 ACL 3000 to permit only route 2001::1/128 to pass. Use the ACL to filter received routes.
level-2: Redistributes routes into the Level-2 routing table. route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to filter redistributed routes. tag tag: Specifies an administrative tag for marking redistributed routes, in the range of 1 to 4294967295. allow-ibgp: Allows redistribution of IBGP routes. This keyword is available only when the protocol is bgp4+. Usage guidelines IPv6 IS-IS considers redistributed routes as AS-external routes.
tag tag: Specifies an administrative tag for marking redistributed routes, in the range of 1 to 4294967295. Usage guidelines This command enables a Level-1-2 router to redistribute Level-1 routes to Level-2 routers and Level-1-2 routers in the local area. Examples # Enable route advertisement from Level-1 to Level-2.
[Sysname-isis-1] address-family ipv6 [Sysname-isis-1-ipv6] import-route isisv6 level-2 into level-1 import-route limit Use import-route limit to configure the maximum number of redistributed Level 1/Level 2 IPv6 routes. Use undo import-route limit to restore the default. Syntax import-route limit number undo import-route limit Views IS-IS IPv6 unicast address family view Predefined user roles network-admin Parameters number: Specifies the maximum number of redistributed Level 1/Level 2 IPv6 routes.
Default BFD for IPv6 IS-IS is disabled. Views Interface view Predefined user roles network-admin Examples # Enable BFD for IPv6 IS-IS on GigabitEthernet 2/1/1. system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] isis ipv6 bfd enable isis ipv6 cost Use isis ipv6 cost to set the IPv6 IS-IS cost for an interface. Use undo isis ipv6 cost to remove the configuration.
[Sysname-GigabitEthernet2/1/1] isis ipv6 enable 100 [Sysname-GigabitEthernet2/1/1] isis ipv6 cost 10 isis ipv6 enable Use isis ipv6 enable to enable IPv6 for an IS-IS process on an interface. Use undo isis ipv6 enable to remove the configuration. Syntax isis ipv6 enable [ process-id ] undo isis ipv6 enable Default IPv6 is disabled for an IS-IS process. Views Interface view Predefined user roles network-admin Parameters process-id: Specifies an IS-IS process by its ID in the range of 1 to 65535.
Predefined user roles network-admin Usage guidelines IS-IS interfaces by default advertise their IPv6 prefixes in LSPs. Use this command to disable an interface from advertising its IPv6 prefix in LSPs. This enhances network security by preventing IP routing to the interval nodes and speeds up network convergence. Examples # Enable prefix suppression on GigabitEthernet 2/1/1.
Syntax ispf enable undo ispf enable Default IPv6 IS-IS ISPF is enabled. Views IS-IS IPv6 unicast address family view Predefined user roles network-admin Usage guidelines When a network topology is changed, ISPF recomputes only the affected part of the shortest path tree (SPT), instead of the entire SPT. Examples # Enable IPv6 IS-IS ISPF.
[Sysname-isis-1-ipv6] maximum load-balancing 2 multi-topology Use multi-topology to enable IPv6 IS-IS MTR. Use undo multiple-topology to disable the function. Syntax multi-topology [ compatible ] undo multi-topology Default IPv6 IS-IS MTR is disabled. Views IS-IS IPv6 address family view Predefined user roles network-admin Parameters compatible: Specifies the compatible mode to advertise IPv6 prefixes to both IPv4 and IPv6 topologies.
Views IS-IS IPv6 unicast address family view Predefined user roles network-admin Parameters preference: Specifies a preference for IPv6 IS-IS, in the range of 1 to 255. route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters. Usage guidelines If multiple dynamic routing protocols find routes to the same destination, the route found by the protocol with the highest preference is selected as the optimal route.
prefix-list prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters. tag tag-value: Specifies a tag value in the range of 1 to 4294967295. Usage guidelines The higher the convergence priority, the faster the convergence speed. IPv6 IS-IS host routes have a medium convergence priority. Examples # Assign the high convergence priority to IS-IS routes permitted by IPv6 prefix list standtest.
allow: Allows advertising address prefixes. By default, no address prefixes are allowed to be advertised when the overload bit is set. external: Allows advertising IP address prefixes redistributed from other routing protocols with the allow keyword specified. interlevel: Allows advertising IP address prefixes learned from different IS-IS levels with the allow keyword specified.
tag: Specifies an administrative tag in the range of 1 to 4294967295. Usage guidelines If no level is specified, the command applies to Level-2. You can summarize routes with the same next hop into a single route to reduce the size of the routing table, as well as the size of the LSDB. This command can summarize both learned and redistributed IPv6 IS-IS routes. The cost of the summary route is the smallest cost of those summarized routes. Examples # Configure a summary route of 2002::/32.
The minimum interval and the incremental interval cannot be greater than the maximum interval. Examples # Configure the maximum, minimum, and incremental SPF calculation interval as 10 seconds, 100 milliseconds, and 300 milliseconds, respectively.
IPv6 policy-based routing commands In this chapter, "MSR2000" refers to MSR2003. "MSR3000" collectively refers to MSR3012, MSR3024, MSR3044, MSR3064. "MSR4000" collectively refers to MSR4060 and MSR4080. apply access-vpn vpn-instance Use apply access-vpn vpn-instance to set a VPN instances. Use undo apply access-vpn vpn-instance to remove the specified VPN instance.
Syntax apply continue undo apply continue Default IPv6 PBR does not match packets against the next policy node upon failure on the current node. Views IPv6 policy node view Predefined user roles network-admin Usage guidelines This command takes effect only when the mode of the node is permit.
Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. The specified VPN must already exist. inbound-vpn: Specifies the VPN instance where the inbound interface belongs. ipv6-address: Specifies the default next-hop IPv6 address. Without the vpn-instance vpn-instance-name option or the inbound-vpn keyword, the default next hop belongs to the public network. direct: Specifies a directly connected default next hop.
track track-entry-number: Specifies a track entry by its number in the range of 1 to 1024. &<1-n>: Indicates that the argument before it can be entered up to n times. The value of n is 6. Usage guidelines You can specify multiple default output interfaces for backup or load sharing by executing this command once or multiple times. You can specify up to m default output interfaces for a node. The value of m is 16. The default output interface must be P2P type.
next-hop: Enables load sharing among multiple next hops. output-interface: Enables load sharing among multiple output interfaces. Usage guidelines Multiple next hops, output interfaces, default next hops, or default output interfaces operate in either primary/backup or load sharing mode. For example: • Primary/backup mode—The first configured next hop is used. When the primary next hop fails, the first configured backup next hop takes over.
undo apply next-hop [ [ vpn-instance vpn-instance-name | inbound-vpn ] ipv6-address&<1-n> ] Default No next hop is set. Views IPv6 policy node 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. The specified VPN must already exist. inbound-vpn: Specifies the VPN instance where the inbound interface belongs. ipv6-address: Specifies the next-hop IPv6 address.
Views IPv6 policy node view Predefined user roles network-admin Parameters interface-type interface-number: Specifies an interface by its type and number. track track-entry-number: Specifies a track entry by its number in the range of 1 to 1024. &<1-n>: Indicates that the argument before it can be entered up to n times. The value of n is 6. Usage guidelines You can specify multiple output interfaces for backup or load sharing by executing this command once or multiple times.
Parameters type: Specifies the precedence type for IPv6 packets. value: Sets the precedence for IPv6 packets. Eight precedence values (0 to 7) are available. Each precedence value corresponds to a precedence type, as shown in Table 145. You can set either a precedence value or a precedence type for IPv6 packets.
Policy name: aaa node 1 permit: if-match acl 2000 apply next-hop 1000::1 Table 146 Command output Field Description node 1 permit The match mode of Node 1 is permit. if-match acl Matches IPv6 packets against IPv6 ACL. apply next-hop Specify a next hop for permitted IPv6 packets. Related commands ipv6 policy-based-route (system view) display ipv6 policy-based-route interface Use display ipv6 policy-based-route interface to display IPv6 interface PBR configuration and statistics.
if-match acl 2000 apply next-hop 1000::1 apply output-interface GigabitEthernet2/1/2 track 1 (down) apply output-interface GigabitEthernet2/1/3 track 2 (inactive) Matched: 0 node 5 permit: if-match acl 3101 apply next-hop 1000::1 Matched: 0 Total matched: 0 display ipv6 policy-based-route interface gigabitethernet 2/1/1 Policy based routing information for interface GigabitEthernet2/1/1: Policy name: aaa node 0 deny(not support): Matched: 0 node 1 permit: if-match acl 3999 Matched: 0 node 2 permit
Field Description Matched: 0 (no statistics resource) Number of successful matches on the node (no statistics resource indicates insufficient statistics resources). 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.
Total matched: 0 Table 148 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.
max-len: Specifies the maximum IP packet length in the range of 1 to 65535 bytes. The value of max-len must be no less than that of min-len. Usage guidelines The packet length range includes boundary values. For example, if you set the min-len and max-len arguments to 100 and 200, respectively, packets with lengths of 100 bytes and 200 bytes are also matched. Examples # Match packets with a length from 100 to 200 bytes.
ipv6 policy-based-route (interface view) Use ipv6 policy-based-route to configure IPv6 interface PBR by applying an IPv6 policy to an interface. Use undo ipv6 policy-based-route to remove the configuration. Syntax ipv6 policy-based-route policy-name undo ipv6 policy-based-route Default No IPv6 is applied to an interface. Views Interface view Predefined user roles network-admin Parameters policy-name: Specifies a policy by its name, a case-sensitive string of 1 to 19 characters.
Views System view Predefined user roles network-admin Parameters policy-name: Specifies a policy name, a case-sensitive string of 1 to 19 characters. deny: Specifies the match mode for the policy node as deny. permit: Specifies the match mode for the policy node as permit (default mode). node node-number: Specifies the number of the IPv6 policy node, in the range of 0 to 65535. A smaller number has a higher priority.
Examples # Clear all IPv6 PBR statistics.
Routing policy commands Common routing policy commands apply as-path Use apply as-path to set the AS_PATH attribute for BGP routes. Use undo apply as-path to restore the default. Syntax apply as-path as-number&<1-32> [ replace ] undo apply as-path Default No AS_PATH attribute is set. Views Routing policy node view Predefined user roles network-admin Parameters as-number&<1-32>: Specifies an AS by its number in the range of 1 to 4294967295.
Syntax apply comm-list { comm-list-number | comm-list-name } delete undo apply comm-list Default No COMMUNITY attributes are deleted from BGP routes. Views Routing policy node view Predefined user roles network-admin Parameters comm-list-number: Specifies a basic community list by its number in the range of 1 to 99 or an advanced community list by its number in the range of 100 to 199.
community-number&<1-32>: Specifies a community sequence number in the range of 1 to 4294967295. &<1-32> indicates that the argument before it can be entered up to 32 times. aa:nn&<1-32>: Specifies a community number. Both aa and nn are in the range of 0 to 65535. &<1-32> indicates that the argument before it can be entered up to 32 times. internet: Sets the INTERNET community attribute for BGP routes. Routes with this attribute can be advertised to all BGP peers. By default, all routes have this attribute.
value: Specifies a cost in the range of 0 to 4294967295. Examples # Configure node 10 in permit mode for routing policy policy1 to set a cost of 120 for OSPF external routes. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match route-type external-type1or2 [Sysname-route-policy-policy1-10] apply cost 120 apply cost-type Use apply cost-type to set a cost type for routes. Use undo apply cost-type to restore the default.
apply extcommunity Use apply extcommunity to apply the specified extended community attribute. Use undo apply extcommunity to restore the default. Syntax apply extcommunity { rt route-target }&<1-32> [ additive ] undo apply extcommunity Default No extended community attribute is set for BGP routes. Views Routing policy node view Predefined user roles network-admin Parameters { rt route-target }&<1-32>: Sets the RT extended community attribute, a string of 3 to 21 characters.
Views Routing policy node view Predefined user roles network-admin Parameters value: Specifies an IP precedence in the range of 0 to 7. clear: Clears the IP precedence of matching routes. Examples # Configure node 10 in permit mode for routing policy policy1 to set an IP precedence of 3 for BGP routes matching extended community list 100.
apply local-preference Use apply local-preference to set a local preference for BGP routes. Use undo apply local-preference to restore the default. Syntax apply local-preference preference undo apply local-preference Default No local preference is set for BGP routes. Views Routing policy node view 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 MPLS labels for routes. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] apply mpls-label apply origin Use apply origin to set an ORIGIN attribute for BGP routes. Use undo apply origin to restore the default. Syntax apply origin { egp as-number | igp | incomplete } undo apply origin Default No ORIGIN attribute is set for BGP routes.
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. Non-matching routing protocols still use the preferences set by the preference command.
apply prefix-priority Use apply prefix-priority to set a prefix priority for routes. Use undo apply prefix-priority to restore the default. Syntax apply prefix-priority { critical | high | medium } undo apply prefix-priority Default No prefix priority is set, which means the prefix priority is low. Views Routing policy node view Predefined user roles network-admin Parameters critical: Sets the critical prefix priority for routes. high: Sets the high prefix priority for routes.
Parameters value: Specifies a local QoS ID in the range of 1 to 4095. clear: Clears the local QoS ID of matching routes. Examples # Configure node 10 in permit mode for routing policy policy1 to set a local QoS ID of 100 for BGP routes matching extended community list 100.
Default No next node is specified. Views Routing policy node view Predefined user roles network-admin Parameters node-number: Specifies the routing policy node number in the range of 0 to 65535. Usage guidelines The specified next node must have a larger number than the current node. Example # Specify the next node 20 for node 10 of routing policy policy1.
Field Description Match mode: Mode • permit. • deny. Expression Regular expression used to match routes. display ip community-list Use display ip community-list to display BGP community list information. Syntax display ip community-list [ basic-community-list-number | adv-community-list-number | name comm-list-name ] Views Any view Predefined user roles network-admin network-operator Parameters basic-community-list-number: Specifies a basic community list by its number in the range of 1 to 99.
display ip extcommunity-list Use display ip extcommunity-list to display BGP extended community list information. Syntax display ip extcommunity-list [ ext-comm-list-number ] Views Any view Predefined user roles network-admin network-operator Parameters ext-comm-list-number: Specifies an extended community list by its number in the range of 1 to 199. Without this argument, the command displays information about all BGP extended community lists.
Parameters name mac-list-name: Specifies a MAC list by its name, a case-sensitive string of 1 to 63 characters. Without this option, the command displays statistics for all MAC lists. Examples # Display the statistics for MAC list abc. display mac-list name abc MAC address list: abc Permitted 0 Denied 0 Index: 1 Permit: 001b-2188-946c/32 Table 153 Command output Field Description MAC address list Name of the MAC list. Permitted Number of packets matching the criterion.
Table 154 Command output Field Description Route-policy Routing policy name. permit • permit. • deny. if-match Match criterion. continue Specify the next node to be matched. apply Action. Match mode: 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.
if-match community Use if-match community to match BGP routes whose COMMUNITY attribute matches a specified community list. Use undo if-match community to remove the configuration. Syntax if-match community { { basic-community-list-number | name comm-list-name } [ whole-match ] | adv-community-list-number }&<1-32> 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.
undo if-match cost Default No cost match criterion is configured. Views Routing policy node view 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 routes with a cost of 8.
Related commands • apply extcommunity • ip extcommunity-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.
Predefined user roles network-admin 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 mac-list Use if-match mac-list to match MAC addresses that are contained in EVI IS-IS packets.
Use undo if-match mpls-label to restore the default. Syntax if-match mpls-label undo if-match mpls-label Default No MPLS label match criterion is configured. Views Routing policy node view Predefined user roles network-admin Examples # Configure node 10 in permit mode for routing policy policy1 to match routes having MPLS labels.
nssa-external-type1or2: Matches OSPF NSSA Type 1 and 2 external routes. nssa-external-type2: Matches OSPF NSSA Type 2 external routes. Examples # Configure node 10 in permit mode for routing policy policy1 to match OSPF internal routes. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match route-type internal if-match tag Use if-match tag to match routes having the specified tag. Use undo if-match tag to restore the default.
Views Routing policy node view Predefined user roles network-admin Parameters vlan-list: Specifies a space-separated list of up to 16 VLAN items. Each VLAN item specifies a VLAN ID or a range of VLAN IDs in the form of start-vlan-id to end-vlan-id, where the end VLAN ID must be greater than the start VLAN ID. Valid VLAN IDs are from 1 to 4094. Examples # Configure a routing policy to match VLAN 10 and VLANs in the range of 100 to 200.
[Sysname] ip as-path 1 permit ^10 Related commands • apply as-path • display ip as-path • if-match as-path ip community-list Use ip community-list to configure a community list. Use undo ip community-list to remove a community list.
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: Specifies the INTERNET community attribute. Routes with this attribute can be advertised to all BGP peers. By default, all routes have this attribute.
Parameters ext-comm-list-number: Specifies a number for the extended community list, in the range of 1 to 199. deny: Specifies the match mode for the extended community list as deny. permit: Specifies the match mode for the extended community list as permit. rt route-target: Specifies a space-separated list of up to 32 RT extended community attribute items. Each item is a string of 3 to 21 characters. soo site-of-origin: Specifies a space-separated list of up to 32 SoO extended community attribute items.
Parameters mac-list-name: Specifies a MAC list by its name, a case-sensitive string of 1 to 63 characters. The MAC list name must be unique. index-number: Specifies a MAC list item by its index number in the range of 1 to 65535. An item with a smaller number is matched first. deny: Specifies the match mode for the MAC list as deny. EVI IS-IS does not advertise MAC entries that match a deny-mode item. permit: Specifies the match mode for the MAC list as permit.
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 backup link for FRR is configured. Views Routing policy node view Predefined user roles network-admin Parameters backup-interface interface-type interface-number: Specifies a backup output interface. If the specified interface is a non-P2P interface, you must also specify a backup next hop. Non-P2P interfaces include NBMA and broadcast interfaces such as an Ethernet interface or a VLAN interface. backup-nexthop ip-address: Specifies a backup next hop.
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. If you do not provide the public keyword or vpn-instance vpn-instance-name option for this command, the next hop belongs to the public network. Examples # Configure node 10 in permit mode for routing policy policy1 to set next hop 193.1.1.
Field Description 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. Related commands • ip prefix-list • reset ip prefix-list if-match ip Use if-match ip to match IPv4 routes whose destination, next hop, or source address matches an ACL or IPv4 prefix list. Use undo if-match ip to remove the configuration.
[Sysname-route-policy-policy1-10] if-match ip next-hop prefix-list p1 ip prefix-list Use ip prefix-list to configure an IPv4 prefix list or an item for the list. Use undo ip prefix-list to remove an IPv4 prefix list or an item of it. Syntax ip prefix-list prefix-list-name [ index index-number ] { deny | permit } ip-address mask-length [ greater-equal min-mask-length ] [ less-equal max-mask-length ] undo ip prefix-list prefix-list-name [ index index-number ] Default No IPv4 prefix list is configured.
Examples # Configure IP prefix list p1 to permit routes destined for network 10.0.0.0/8 and with mask length 17 or 18. system-view [Sysname] ip prefix-list p1 permit 10.0.0.0 8 greater-equal 17 less-equal 18 Related commands • display ip prefix-list • reset ip prefix-list reset ip prefix-list Use reset ip prefix-list to clear IPv4 prefix list statistics.
Views Routing policy node view Predefined user roles network-admin Parameters backup-nexthop ipv6-address: Specifies an IPv6 backup next hop. Usage guidelines This command sets a backup link in the routing policy for FRR. Using the routing policy, a routing protocol can designate a backup link for specific routes to implement FRR. When the primary link fails, FRR immediately directs packets to the backup link to minimize interruption time.
system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match as-path 1 [Sysname-route-policy-policy1-10] apply ipv6 next-hop 3ffe:506::1 display ipv6 prefix-list Use display ipv6 prefix-list to display IPv6 prefix list statistics.
if-match ipv6 Use if-match ipv6 to match IPv6 routes whose destination, next hop, or source address matches an ACL or IPv6 prefix list. Use undo if-match ipv6 to remove the configuration. Syntax if-match ipv6 { address | next-hop | route-source } { acl acl6-number | prefix-list prefix-list-name undo if-match ipv6 { address | next-hop | route-source } [ acl | prefix-list ] Default No ACL or IPv6 prefix list match criterion is configured.
Views System view Predefined user roles network-admin Parameters prefix-list-name: Specifies a name for the IPv6 prefix list, a case-sensitive string of 1 to 63 characters. index-number: Specifies an index number for an IPv6 prefix list item, in the range of 1 to 65535. An item with a smaller number is matched first. deny: Specifies the deny mode. If a route matches the item, the route is denied without matching against the next item.
reset ipv6 prefix-list Use reset ipv6 prefix-list to clear IPv6 prefix list statistics. Syntax reset ipv6 prefix-list [ prefix-list-name ] Views User view Predefined user roles network-admin Parameters prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters. Without this argument, this command clears statistics for all IPv6 prefix lists. Examples # Clear the statistics for IPv6 prefix list abc.
MTR commands apply topology Use apply topology to specify a topology for the MTR policy node. Use undo apply topology to remove the configuration. Syntax apply topology topo-name undo apply topology Default No topology is specified for the MTR policy node. Views MTR policy node view Predefined user roles network-admin Parameters topo-name: Specifies a topology by its name, a case-sensitive string of 1 to 31 characters. Examples # Specify topology topo1 for node 0 of MTR policy mtr.
Examples # Display information about all MTR policies.
Examples # Display brief information about all topologies. display topology Total topologies : 4 Topology Address-family VRF base IPv4 default mt1 IPv4 default mt2 IPv4 default mt3 IPv4 default # Display detailed information about topology mt1.
Predefined user roles network-admin Parameters unicast: Specifies the IPv4 unicast address family (the default). Usage guidelines Before you configure MTR, enter global address family view by using this command. Examples # Enter global address family view. system-view [Sysname] global-address-family ipv4 unicast [Sysname-global-ipv4] if-match ip acl Use if-match ip acl to configure an ACL match criterion. Use undo if-match ip acl to remove the configuration.
Use undo if-match ip dscp to remove the configuration. Syntax if-match ip dscp dscp-value undo if-match ip dscp Default No DSCP value match criterion is configured. Views MTR policy node view Predefined user roles network-admin Parameters dscp-value: Specifies a DSCP value in the range of 0 to 63. You can also specify the DSCP values, as shown in Table 159, by description.
Usage guidelines You can configure the ACL, DSCP value, and IP precedence match criteria for an MTR node at the same time. The match criteria are in an OR relationship. If a packet matches one of the criteria, it matches the node, as well as the MTR policy. If a packet fails to match a node, it goes to the next node for a match. Examples # Configure a DSCP value match criterion for node 0 of MTR policy mtr, allowing packets with a DSCP value of 5 to pass.
Usage guidelines You can configure the ACL, DSCP value, and IP precedence match criteria for an MTR node at the same time. The match criteria are in an OR relationship. If a packet matches one of the criteria, it matches the node, as well as the MTR policy. If a packet fails to match a node, it goes to the next node for a match. Examples # Configure an IP precedence match criterion for node 0 of MTR policy mtr, allowing packets with an IP precedence of 5 to pass.
Use undo routing-table limit to restore the default. Syntax routing-table limit number { warn-threshold | simply-alert } undo routing-table limit Views Topology view Predefined user roles network-admin Parameters number: Specifies the maximum number of active routes supported by the topology.
Default No topology is created. Views Global address family view Predefined user roles network-admin Parameters topo-name: Specifies a topology by its name, a case-sensitive string of 1 to 31 characters. Examples # Create topology mt and enter its view.
[Sysname-LoopBack0] topology ipv4 unicast mt1 [Sysname-LoopBack0-topology-1] topology-routing mtr-policy Use topology-routing mtr-policy to enable an MTR policy. Use undo topology-routing mtr-policy to disable the MTR policy. Syntax topology-routing mtr-policy policy-name undo topology-routing mtr-policy Default An MTR policy is disabled.
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. Represents a mesh access point.
Index ABCDEFGHILMNOPRSTVW A abr-summary (OSPF area view),92 abr-summary (OSPFv3 area view),494 address-family ipv4,285 address-family ipv4,189 address-family ipv4,1 address-family ipv6,1 address-family ipv6,558 address-family ipv6,286 advertise-rib-active,287 aggregate,288 apply access-vpn vpn-instance,450 apply access-vpn vpn-instance,588 apply as-path,605 apply comm-list delete,605 apply community,606 apply continue,588 apply continue,450 apply cost,607 apply origin,612 apply output-interface,456 apply o
confederation peer-as,298 display ip routing-table,2 continue,615 display ip routing-table acl,5 cost-style,194 display ip routing-table ip-address,8 D display ip routing-table prefix-list,11 dampening,299 default,97 default cost,57 default cost,475 default local-preference,301 default med,302 default-cost (OSPF area view),97 default-cost (OSPFv3 area view),496 default-route,58 default-route imported,303 default-route-advertise,561 default-route-advertise (IS-IS view),195 default-route-advertise (OS
display ospf abr-asbr,106 display route-policy,619 display ospf abr-summary,107 display router id,140 display ospf asbr-summary,109 display route-static nib,47 display ospf event-log,111 display route-static routing-table,49 display ospf fast-reroute lfa-candidate,113 display topology,644 display ospf graceful-restart,114 Documents,653 display ospf interface,117 domain-authentication send-only,230 display ospf lsdb,119 domain-authentication-mode,231 display ospf nexthop,122 dscp,141 displa
graceful-restart,484 import-route,574 graceful-restart,369 import-route,484 graceful-restart (OSPF view),147 import-route,240 graceful-restart enable,533 import-route,70 graceful-restart helper enable,148 import-route (OSPF view),150 graceful-restart helper enable,534 import-route (OSPFv3 view),536 graceful-restart helper strict-lsa-checking,149 import-route isis level-1 into level-2,242 graceful-restart helper strict-lsa-checking,535 import-route isis level-2 into level-1,243 graceful-resta
isis mesh-group,253 N isis mib-binding,254 network,71 isis peer-ip-check,254 isis prefix-suppression,255 isis primary-path-detect bfd echo,256 isis silent,256 isis small-hello,257 isis tag,257 isis timer csnp,258 isis timer hello,259 isis timer holding-multiplier,260 isis timer lsp,261 isis timer retransmit,262 isis topology enable,262 is-level,263 is-name,264 is-name map,265 ispf enable,580 ispf enable,152 ispf enable,265 L log-peer-change,153 log-peer-change,377 log-peer-change,537 log-peer-change,266
ospfv3 timer retransmit,550 pic,174 ospfv3 trans-delay,550 pic,270 output-delay,72 pic,431 P policy-based-route,465 peer,173 peer,73 peer advertise-community,381 peer advertise-ext-community,382 peer allow-as-loop,384 peer as-number (for a BGP peer group),386 peer as-number (for a BGP peer),385 peer as-path-acl,387 peer bfd,389 peer capability-advertise conventional,390 peer capability-advertise route-refresh,391 peer capability-advertise suppress-4-byte-as,393 peer connect-interface,394 preference
reset ripng statistics,487 silent-interface (OSPF view),181 rfc1583 compatible,179 silent-interface(OSPFv3 view),553 rib,45 snmp context-name,277 rip,75 snmp trap rate-limit,181 rip authentication-mode,76 snmp-agent trap enable bgp,446 rip bfd enable,77 snmp-agent trap enable isis,277 rip bfd enable destination,78 snmp-agent trap enable ospf,182 rip default-route,78 spf-schedule-interval,553 rip enable,79 spf-schedule-interval,183 rip input,80 stub (OSPF area view),184 rip max-packet-len