HP MSR2000/3000/4000 Router Series Layer 3 - IP Routing Command Reference (V7) Part number: 5998-4013 Software version: CMW710-R0007P02 Document version: 6PW100-20130927
Legal and notice information © Copyright 2013 Hewlett-Packard Development Company, L.P. No part of this documentation may be reproduced or transmitted in any form or by any means without prior written consent of Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Contents Basic IP routing commands ········································································································································· 1 address-family ipv4 ·················································································································································· 1 address-family ipv6 ·················································································································································· 1
maximum load-balancing ····································································································································· 65 network ··································································································································································· 65 output-delay ···························································································································································· 66 peer
display ospf spf-tree ············································································································································ 127 display ospf statistics ··········································································································································· 131 display ospf vlink ················································································································································· 134 display
snmp-agent trap enable ospf······························································································································ 174 snmp trap rate-limit ·············································································································································· 175 spf-schedule-interval ············································································································································ 176 stub (OSPF area vie
isis mib-binding ···················································································································································· 238 isis peer-ip-ignore ················································································································································ 238 isis silent ······························································································································································· 2
display bgp group ipv4 unicast ························································································································· 283 display bgp group ipv6 unicast ························································································································· 284 display bgp network ··········································································································································· 287 display bgp paths·················
peer filter-policy ··················································································································································· 361 peer group ··························································································································································· 363 peer ignore ·························································································································································· 364
ip policy-based-route ··········································································································································· 419 policy-based-route ··············································································································································· 419 reset ip policy-based-route statistics ··················································································································· 420 IPv6 static routing
display ospfv3 statistics ······································································································································ 479 display ospfv3 vlink ············································································································································ 482 enable ipsec-profile ············································································································································· 483 filter (OSPFv3
IPv6 policy-based routing commands ···················································································································· 531 apply access-vpn vpn-instance ··························································································································· 531 apply continue ····················································································································································· 531 apply default-next-hop·······
ip extcommunity-list ············································································································································· 571 mac-list ·································································································································································· 572 reset mac-list ·························································································································································
Basic IP routing commands address-family ipv4 Use address-family ipv4 to create a RIB IPv4 address family and enter RIB IPv4 address family view. Use undo address-family ipv4 to remove a RIB IPv4 address family and all configurations in the view. Syntax address-family ipv4 undo address-family ipv4 Default No RIB IPv4 address family is created. Views RIB view Predefined user roles network-admin Examples # Create a RIB IPv4 address family and enter RIB IPv4 address family view.
Examples # Create a RIB IPv6 address family and enter RIB IPv6 address family view. system-view [Sysname] rib [Sysname-rib] address-family ipv6 [Sysname-rib-ipv6] display ip routing-table Use display ip routing-table to display routing table information.
Table 1 Command output Field Description Destinations Number of destination addresses. Routes Number of routes. Destination/Mask Destination address/mask length. Proto Protocol that installed the route. Pre Preference of the route. Cost Cost of the route. NextHop Next hop address of the route. Interface Output interface for packets to be forwarded along the route. Summary Count Number of routes. # Display detailed information about all routes in the routing table.
BkTunnel ID: Invalid BkInterface: N/A ... Table 2 Command output Field Description Destinations Number of destination addresses. Routes Number of routes. Destination Destination address/mask length. Protocol Protocol that installed the route. SubProtID ID of the subprotocol for routing. Age Time for which the route has been in the routing table. Cost Cost of the route. Preference Preference of the route. Tag Route tag. Route status: State • • • • • • • Active—Active unicast route.
display ip routing-table acl Use display ip routing-table acl to display information about routes permitted by a specific basic ACL. Syntax display ip routing-table [ vpn-instance vpn-instance-name ] acl acl-number [ verbose ] Views Any view Predefined user roles network-admin network-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.
Summary Count : 4 Destination: 192.168.1.0/24 Protocol: Direct Process ID: 0 SubProtID: 0x1 Cost: 0 Age: 04h20m37s Preference: 0 Tag: 0 State: Active Adv OrigTblID: 0x0 OrigVrf: default-vrf TableID: 0x2 OrigAs: 0 NBRID: 0x10000003 LastAs: 0 AttrID: 0xffffffff Neighbor: 0.0.0.0 Flags: 0x10080 OrigNextHop: 192.168.1.111 Label: NULL RealNextHop: 192.168.1.111 BkLabel: NULL BkNextHop: N/A Tunnel ID: Invalid BkTunnel ID: Invalid Interface: Ethernet1/1 BkInterface: N/A Destination: 192.168.
Protocol: Direct Process ID: 0 SubProtID: 0x0 Age: 04h20m37s Cost: 0 Preference: 0 Tag: 0 State: Active NoAdv OrigTblID: 0x0 OrigVrf: default-vrf TableID: 0x2 OrigAs: 0 NBRID: 0x10000003 LastAs: 0 AttrID: 0xffffffff Neighbor: 0.0.0.0 Flags: 0x1008c OrigNextHop: 192.168.1.111 Label: NULL RealNextHop: 192.168.1.111 BkLabel: NULL BkNextHop: N/A Tunnel ID: Invalid BkTunnel ID: Invalid Interface: Ethernet1/1 BkInterface: N/A For command output, see Table 2.
Usage guidelines Executing the command with different parameters yields different outputs: • display ip routing-table ip-address: { { The system ANDs the entered destination IP address with the subnet mask in each active route entry. The system ANDs the destination IP address in each active route entry with its own subnet mask. If the two operations yield the same result for an entry, the entry is displayed.
Destination/Mask Proto Cost NextHop Interface 11.0.0.0/8 Static 60 Pre 0 0.0.0.0 NULL0 11.0.0.0/16 Static 60 0 0.0.0.0 NULL0 # Display brief information about the most specific route to the destination address 11.0.0.1. display ip routing-table 11.0.0.1 longer-match Summary Count : 1 Destination/Mask Proto 11.0.0.0/24 Static 60 Pre Cost NextHop Interface 0 0.0.0.0 NULL0 # Display brief information about the most specific route to the destination IP address 11.0.0.
Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. Without this option, the command displays routing information for the public network. prefix-list-name: Specifies an IP prefix list by its name, a case-sensitive string of 1 to 63 characters. verbose: Displays detailed information about all routes permitted by the IP prefix list.
display ip routing-table protocol Use display ip routing-table protocol to display information about routes installed by a protocol. Syntax display ip routing-table [ vpn-instance vpn-instance-name ] protocol protocol [ inactive | verbose ] Views Any view Predefined user roles network-admin network-operator Parameters vpn-instance vpn-instance-name: Specifies MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.
Summary Count : 0 # Display brief information about static routes. display ip routing-table protocol static Summary Count : 2 Static Routing Table Status : Summary Count : 0 Static Routing Table Status : Summary Count : 2 Destination/Mask Proto Cost NextHop Interface 1.2.3.0/24 Static 60 Pre 0 1.2.4.5 Vlan10 3.0.0.0/8 Static 60 0 2.2.2.2 Eth1/1 For command output, see Table 1.
Table 3 Command output Field Description Proto Protocol that installed the route. route Number of routes installed by the protocol. active Number of active routes. added Number of routes added to the routing table after the router started up or the routing table was last cleared. deleted Number of routes marked as deleted, which will be cleared after a period. Total Total number of routes.
display ipv6 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.
protocol prococol-name: Specifies a protocol by its name, which can be bgp+, direct6, isisv6, ospfv3, ripng, or static6. Examples # Display brief next hop information in the IPv6 RIB.
RelyDepth: 0 Interface: InLoop0 RealNexthop: ::1 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. Syntax display ipv6 route-direct nib [ nib-id ] [ verbose ] Views Any view Predefined user roles network-admin network-operator Parameters nib-id: Specifies a NIB by its ID in the range of 1 to FFFFFFFF.
Table 4 Command output Field Description NibID ID of the NIB. NibSeq 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. # Display detailed next hop information for IPv6 direct routes.
... 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 Instance 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.
Destinations : 3 Routes : 3 Destination: ::1/128 Protocol : Direct NextHop : ::1 Preference: 0 Interface : InLoop0 Cost : 0 Destination: FE80::/10 Protocol : Direct NextHop : :: Preference: 0 Interface : NULL0 Cost : 0 Destination: FF00::/8 Protocol : Direct NextHop : :: Preference: 0 Interface : NULL0 Cost : 0 Table 6 Command output Field Description Destinations Number of destination addresses. Routes Number of routes.
Destination: FE80::/10 Protocol: Direct Process ID: 0 SubProtID: 0x0 Age: 00h53m50s Cost: 0 Preference: 0 Tag: 0 State: Active NoAdv OrigTblID: 0x0 OrigVrf: default-vrf TableID: 0xa OrigAs: 0 NBRID: 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 Destination: FF00::/8 Protocol: Direct Process ID: 0 SubProtID: 0x0 Age
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. NBRID Neighbor ID of the route. LastAs Last AS number. AttrID Attribute ID.
Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. Without this option, the command displays routing information for the public network. acl6-number: Specifies a basic IPv6 ACL by its number in the range of 2000 to 2999. verbose: Displays detailed information about all routes permitted by the basic IPv6 ACL.
Destination: 1:1::/64 Protocol: Static Process ID: 0 SubProtID: 0x2 Age: 08h57m19s Cost: 0 Preference: 60 Tag: 0 State: Active Adv OrigTblID: 0x0 OrigVrf: default-vrf TableID: 0xa OrigAs: 0 NBRID: 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 For command output, see Table 7.
Usage guidelines Executing the command with different parameters yields different output: • display ipv6 routing-table ipv6-address: { { The system ANDs the entered destination IPv6 address with the prefix length in each active route entry. The system ANDs the destination IPv6 address in each active route entry with the prefix length in the entry. If the two operations yield the same result for an entry, this entry is displayed.
Destination: 10::/120 Protocol NextHop : :: Preference: 60 : Static Interface : NULL0 Cost : 0 # Display brief information about the most specific route to the destination IPv6 address 10::1 and prefix length 127. display ipv6 routing-table 10::1 127 longer-match Summary Count : 1 Destination: 10::/120 Protocol : Static NextHop : :: Preference: 60 Interface : NULL0 Cost : 0 # Display brief information about the routes to destination addresses in the range of 100:: to 300::.
Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. Without this option, the command displays routing information for the public network. prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters. verbose: Displays detailed information about all IPv6 routes permitted by the IPv6 prefix list.
display ipv6 routing-table protocol Use display ipv6 routing-table protocol to display information about IPv6 routes installed by a protocol. Syntax display ipv6 routing-table [ vpn-instance vpn-instance-name ] protocol protocol [ inactive | verbose ] Views Any view Predefined user roles network-admin network-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.
display ipv6 routing-table protocol static Summary Count : 3 Static Routing table Status : Summary Count : 3 Destination: 2::2/128 Protocol NextHop : fe80::2 Preference: 60 : Static Interface : Eth1/2 Cost : 0 Destination: 2::2/128 Protocol : Static NextHop : fe80::3 Preference: 60 Interface : Eth1/2 Cost : 0 Destination: 3::3/128 Protocol : Static NextHop : 2::2 Preference: 60 Interface : Eth1/2 Cost : 0 Static Routing table Status : Summary Cou
IS-ISv6 0 0 0 0 BGP4+ 0 0 0 0 Total 8 8 8 0 Table 8 Command output Field Description Proto Protocol that installed the route. route Number of routes installed by the protocol. active Number of active routes. added Number of routes added to the routing table after the router started up or the routing table was last cleared. deleted Number of routes marked as deleted, which will be cleared after a period. Total Total number of routes.
13> ... Communities number: 0 Communities value: N/A AS-path number: 0 AS-path value: N/A Detailed information of attribute 0x1: Flag: 0x0 Protocol: BGP Address family: IPv4 Reference count: 0 Local prefrence: 0 Ext-communities number: 1 Ext-communities value: Communities number: 0 Communities value: N/A AS-path number: 0 AS-path value: N/A Table 9 Command output Field Description Protocol Protocol that generates the attribute.
Examples # Display RIB GR state information. display rib graceful-restart RIB GR state : Phase2-calculation end RCOM GR State : Flush end Protocol GR state: No.
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: 0x10000001 Type: 0x1 Sequence: 1 Flushed: Yes UserKey0: 0x0 VrfNthp: 1 UserKey1: 0x0 Nexthop: 127.0.0.1 IFIndex: 0x112 NibID: 0x10000002 Type: 0x5 LocalAddr: 127.0.0.1 Sequence: 2 Flushed: Yes UserKey0: 0x0 VrfNthp: 1 UserKey1: 0x0 Nexthop: 127.0.0.1 IFIndex: 0x112 NibID: 0x26000000 LocalAddr: 127.0.0.
Field Description 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. display rib nib verbose Total number of nexthop(s): 176 NibID: 0x10000000 Type: 0x1 Sequence: 0 Flushed: Yes UserKey0: 0x0 VrfNthp: 1 UserKey1: 0x0 Nexthop: 0.0.0.0 IFIndex: 0x111 RefCnt: 6 Flag: 0x84 LocalAddr: 0.0.0.0 FlushRefCnt: 2 Version: 1 1 nexthop(s): PrefixIndex: 0 OrigNexthop: 0.0.0.
PrefixIndex: 0 RelyDepth: 1 Interface: GE0/1/3 OrigNexthop: 22.22.22.22 RealNexthop: 13.1.1.2 LocalAddr: 13.1.1.1 TunnelCnt: 1 Vrf: default-vrf TunnelID: 1025 NibID: 0x16000000 Sequence: 0 Type: 0x2000 Flushed: Yes SubNibID: 0x11000009 SubSeq: 13 NthpCnt: 1 Samed: 0 NthpType: IP SubNibID: 0x1100000d NthpCnt: 1 SubSeq: 14 Samed: 0 NthpType: IP 2 nexthop(s): PrefixIndex: 0 OrigNexthop: 10.1.1.2 RelyDepth: 0 RealNexthop: 10.1.1.2 Interface: Vlan10 LocalAddr: 10.1.1.
Field Description Version Version of the next hop. display route-direct nib Use display route-direct nib to display next hop information for direct routes. Syntax display route-direct nib [ nib-id ] [ verbose ] Views Any view Predefined user roles network-admin network-operator Parameters nib-id: Specifies a NIB by its ID in the range of 1 to FFFFFFFF. verbose: Displays detailed next hop information for direct routes.
Field Description 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. display route-direct nib verbose Total number of nexthop(s): 116 NibID: 0x10000000 Type: 0x1 Sequence: 0 Flushed: Yes UserKey0: 0x0 VrfNthp: 1 UserKey1: 0x0 Nexthop: 0.0.0.
Field Description Vrf Instance 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. 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.
[Sysname-rib-ipv4] fib lifetime 60 protocol lifetime Use protocol lifetime to set the maximum lifetime for IPv4 or IPv6 routes and labels in the RIB. Use undo protocol lifetime to restore the default. Syntax protocol protocol lifetime seconds undo protocol protocol lifetime Default The maximum lifetime for IPv4 or IPv6 routes and labels in the RIB is 480 seconds.
Parameters vpn-instance vpn-instance-name: Clears the IPv4 route statistics for an MPLS L3VPN instance specified by its name, a case-sensitive string of 1 to 31 characters. Without this option, the command clears route statistics for the public network. protocol: Clears route statistics for a routing protocol. It can be bgp, direct, isis, ospf, rip, or static. all: Clears route statistics for all IPv4 routing protocols. Examples # Clear all IPv4 route statistics for the public network.
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 [ vpn-instance vpn-instance-name ] static-routes all Views System view Predefined user roles network-admin Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. Without this option, the command deletes all static routes for the public network.
network-operator Parameters nib-id: Specifies a NIB by its ID in the range of 1 to FFFFFFFF. verbose: Displays detailed static route next hop information. Without this keyword, the command displays brief static route next hop information. Examples # Displays brief static route next hop information. display route-static nib Total number of nexthop(s): 44 NibID: 0x11000000 Sequence: 0 Type: 0x21 Flushed: Yes UserKey0: 0x111 VrfNthp: 0 UserKey1: 0x0 IFIndex: 0x111 Nexthop: 0.0.0.
UserKey0: 0x111 VrfNthp: 0 UserKey1: 0x0 Nexthop: 0.0.0.0 IFIndex: 0x111 RefCnt: 2 Flag: 0x2 LocalAddr: 0.0.0.0 FlushRefCnt: 0 Version: 1 1 nexthop(s): PrefixIndex: 0 OrigNexthop: 0.0.0.0 RelyDepth: 0 RealNexthop: 0.0.0.0 Interface: NULL0 TunnelCnt: 0 LocalAddr: 0.0.0.0 Vrf: default-vrf TunnelID: N/A NibID: 0x11000001 Type: 0x41 Sequence: 1 Flushed: Yes UserKey0: 0x0 VrfNthp: 5 UserKey1: 0x0 Nexthop: 2.2.2.2 IFIndex: 0x0 RefCnt: 1 Flag: 0x12 LocalAddr: 0.0.0.
Field Description RefCnt Reference count of the next hop. FlushRefCnt Reference count of the next hop that is flushed to the FIB. Flag Flag of the next hop. Version Version of the next hop. display route-static routing-table Use display route-static routing-table to display static routing table information.
Permanent: 0 Tag: 0 Destination: 0.0.0.0/0 NibID: 0x1100000b NextHop: 2.2.2.11 MainNibID: N/A BkNextHop: N/A BkNibID: N/A Interface: N/A TableID: 0x2 BkInterface: N/A Flag: 0x82d01 DbIndex: 0xd Type: Normal TrackIndex: 0xffffffff Preference: 60 BfdMode: N/A Permanent: 0 BfdSrcIp: N/A BfdIfIndex: 0x0 BfdVrfIndex: 0 Label: NULL vrfIndexDst: 0 vrfIndexNH: 0 Tag: 0 ... # Display information about the static route with destination address 1.2.3.4/32. display route-static routing-table 1.2.
Field Description DbIndex Index of the database to which the route belongs. Route type: Type • Normal. • DHCP. • NAT. BfdSrcIp Source IP address of the indirect BFD session. BfdIfIndex Index of the interface where BFD is enabled. BfdVrfIndex Index of the VPN instance where BFD is enabled. BFD session mode: BfdMode • N/A—No BFD session is configured. • Ctrl—Control packet mode • Echo—Echo packet mode. TrackIndex NQA Track index. vrfIndexDst Index of the destination VPN.
Default No static route is configured. Views System view Predefined user roles network-admin Parameters vpn-instance s-vpn-instance-name: Specifies a source MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. Each VPN has its own routing table, and the configured static route is installed in the routing tables of the specified VPNs. dest-address: Specifies the destination IP address of the static route, in dotted decimal notation.
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 (?). Usage guidelines If the destination IP address and the mask are both 0.0.0.0 (or 0), the configured route is a default route. The default route is used for forwarding a packet matching no entry in the routing table. Implement different routing policies to configure different route preferences.
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. When the default preference is reconfigured, it applies to only newly added static routes.
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.
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 3 for redistributed routes.
[Sysname] rip 100 [Sysname-rip-100] default-route only cost 2 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.
Triggered updates sent: 0 Number of routes changes: 1 Number of replies to queries: 0 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.
display rip database Use display rip database to display active routes for a RIP process. RIP advertises active routes in RIP routing updates. Syntax display rip process-id database [ ip-address { mask | mask-length } ] 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 | mask-length }: Displays active routes for the specified IP address.
Syntax display rip process-id interface [ interface-type interface-number ] 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. 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.
Field Description Indicates whether the interface is enabled to receive and send RIP messages: Input/Output • on—Enabled. • off—Disabled. 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.
O - Optimal, F - Flush to RIB ---------------------------------------------------------------------------Peer 111.1.1.2 on Ethernet1/1 Destination/Mask Nexthop Cost Tag Flags Sec 122.0.0.0/8 111.1.1.2 1 0 RAOF 22 123.0.0.0/8 111.1.1.2 1 0 RAOF 20 # Display specified routing information for RIP process 1. display rip 1 route 123.0.0.
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. 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. Syntax fast-reroute route-policy route-policy-name undo fast-reroute Default RIP FRR is disabled.
[Sysname-route-policy-frr-10] apply fast-reroute backup-interface ethernet 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 ] [ 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.
Examples # Redistribute static routes into RIP, and set the cost for redistributed routes to 4. system-view [Sysname] rip 1 [Sysname-rip-1] import-route static cost 4 Related commands default cost maximum load-balancing Use maximum load-balancing to specify the maximum number of equal-cost multi-path (ECMP) routes for load balancing. Use undo maximum load-balancing to restore the default.
Syntax network network-address [ wildcard-mask ] 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.
Views RIP view Predefined user roles network-admin Parameters time: Specifies the sending interval in the range of 10 to 100 milliseconds. count: Specifies the maximum number of RIP packets sent at each interval, in the range of 1 to 30. Examples # Configure all interfaces running RIP process 1 to send up to 10 RIP packets every 60 milliseconds.
Related commands validate-source-address 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.
Views User view Predefined user roles network-admin Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535. Usage guidelines After executing the command, you are prompted to confirm the operation. Examples # Reset RIP process 100. reset rip 100 process Reset RIP process? [Y/N]:y reset rip statistics Use reset rip statistics to clear statistics for a RIP process.
Views System view Predefined user roles network-admin Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535. The default is 1. vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN is specified, the RIP process runs on the public network. Usage guidelines You must enable a RIP process before configuring global parameters for it.
key-id: Specifies the RFC 2082 MD5 key ID in the range of 1 to 255. rfc2453: Uses the message format defined in RFC 2453 (IETF standard). simple: Specifies the simple authentication mode. 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.
Examples # Enable BFD for RIP on Ethernet 1/1. system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/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.
Default A RIP interface advertises a default route if the RIP process that the interface runs is enabled to advertise a default route. Views Interface view Predefined user roles network-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.
Predefined user roles network-admin 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 Ethernet 1/1.
Syntax rip max-packet-length value undo rip max-packet-length 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.
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: Add 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.
Views Interface view 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: Add an additional metric to outbound routes, in the range of 1 to 16. Usage guidelines With the command configured on an interface, the metric of RIP routes sent on the interface will be increased.
Views System view Predefined user roles network-admin Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535. 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.
Syntax rip poison-reverse undo rip poison-reverse Default The poison reverse function is disabled. Views Interface view Predefined user roles network-admin Examples # Enable the poison reverse function on Ethernet 1/1. system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] rip poison-reverse rip split-horizon Use rip split-horizon to enable the split horizon function. Use undo rip split-horizon to disable the split horizon function.
rip summary-address Use rip summary-address to configure RIPv2 to advertise a summary route on an interface. Use undo rip summary-address to remove the configuration. Syntax rip summary-address ip-address { mask | mask-length } undo rip summary-address ip-address { mask | mask-length } Default RIPv2 does not advertise a summary route. Views Interface view Predefined user roles network-admin Parameters ip-address: Specifies the destination IP address of the summary route.
Views Interface view Predefined user roles network-admin Parameters 1: Specifies the RIP version as RIPv1. 2: Specifies the RIP version as RIPv2. [ broadcast | multicast ]: Sends RIPv2 messages in broadcast mode or multicast mode (default). Usage guidelines If an interface has no RIP version configured, it uses the global RIP version. Otherwise, it uses the RIP version configured on it. An interface running RIPv1 can perform the following operations: • Sends RIPv1 broadcast messages.
Views RIP view Predefined user roles network-admin Parameters interface-type interface-number: Disables a specified interface from sending RIP messages. all: Disables all interfaces from sending RIP messages. Examples # Configure all interfaces to operate in silent mode except Ethernet 1/1. system-view [Sysname] rip 100 [Sysname-rip-100] silent-interface all [Sysname-rip-100] undo silent-interface ethernet 1/1 [Sysname-rip-100] network 131.108.0.
timers Use timers to configure RIP timers. Use undo timers to restore the default. Syntax timers { garbage-collect garbage-collect-value | suppress suppress-value | timeout timeout-value | update update-value } * undo timers { garbage-collect | suppress | timeout | update } * Default The garbage-collect timer is 120 seconds, the suppress timer is 120 seconds, the timeout timer is 180 seconds, and the update timer is 30 seconds.
[Sysname-rip-100] timers update 5 timeout 15 suppress 15 garbage-collect 30 validate-source-address Use validate-source-address to enable source IP address check on inbound RIP routing updates. Use undo validate-source-address to disable source IP address check. Syntax validate-source-address undo validate-source-address Default Source IP address check on inbound RIP routing updates is enabled.
Usage guidelines An interface prefers the RIP version configured on it over the global RIP version. If no RIP version is specified for the interface and the global version is RIPv1, the interface uses RIPv1, and it can send RIPv1 broadcasts, and receive RIPv1 broadcasts and unicasts. If no RIP version is specified for the interface and the global version is RIPv2, the interface uses RIPv2 multicast mode, and it can send RIPv2 multicasts, and receive RIPv2 broadcasts, multicasts, and unicasts.
OSPF commands abr-summary (OSPF area view) Use abr-summary to configure a summary route on an area border router (ABR). Use undo abr-summary to remove a summary route. Syntax abr-summary ip-address { mask | mask-length } [ advertise | not-advertise ] [ cost cost ] undo abr-summary ip-address { mask | mask-length } Default No route summarization is configured on an ABR.
area (OSPF view) Use area to create an area and enter area view. Use undo area to remove an area. Syntax area area-id undo area area-id Default No OSPF area is created. Views OSPF view Predefined user roles network-admin Parameters area-id: Specifies an area by its ID, an IP address or a decimal integer in the range of 0 to 4294967295 that is translated into the IP address format by the system. Examples # Create area 0 and enter area 0 view.
mask-length: Specifies the mask length in the range of 0 to 32 bits. cost cost: Specifies the cost of the summary route, in the range of 1 to 16777214. Without this option, the cost of Type-1 external routes defaults to the largest cost among routes that are summarized, and the cost of Type-2 external routes defaults to the largest cost among routes that are summarized plus 1. not-advertise: Disables advertising the summary route. Without this keyword, the command advertises the route.
undo authentication-mode Default No authentication is performed for an area. Views OSPF area view Predefined user roles network-admin Parameters hmac-md5: Specifies the HMAC-MD5 authentication mode. md5: Specifies the MD5 authentication mode. simple: Specifies the simple authentication mode. key-id: Specifies a key by its ID in the range of 0 to 255. cipher: Sets a ciphertext key. plain: Sets a plaintext key. password: Specifies a password.
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. Views OSPF view Predefined user roles network-admin Parameters value: Specifies the bandwidth reference value for link cost calculation, in the range of 1 to 4294967 Mbps.
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. tag tag: Specifies the tag for marking redistributed routes, in the range of 0 to 4294967295.
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.
policy modifies some values in the Type-5 LSA. If the always keyword is specified at the same time, the command can distribute a default route in a Type-5 LSA into the OSPF routing domain when the specified routing policy is matched, regardless of whether a default route exists in the routing table, and the routing policy modifies some values in the Type-5 LSA. type type: Specifies a type for the Type-5 LSA: 1 or 2.
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.
Condition: On startup while BGP is converging, State: Inactive Advertise stub links with maximum metric in router-LSAs Advertise summary-LSAs with metric 16711680 Advertise external-LSAs with metric 16711680 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 t
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. SPF-schedule-interval Interval for SPF calculations.
Field Description Route calculation trigger type: • • • • • Calculation trigger type Full—Calculation of all routes is triggered. Area topo change—Topology change in an area. Intra router change—Incremental intra-area route change. ASBR change—Incremental ASBR route change. 7to5 translator—Type-7-to-Type-5 LSA translator role change. • Full IP prefix—Calculation of all IP prefixes is triggered. • Full intra AS—Calculation of all intra-AS prefixes is triggered.
Field Description Current process reset type: Current reset type • • • • • N/A—The process is not reset. Normal—Normal reset. GR quit—Normal reset when GR quits abnormally. Delete—Delete OSPF process. VPN delete—Delete VPN. Next process reset type: Next reset type • • • • • N/A—The process is not reset. Normal—Normal reset. GR quit—Normal reset when GR quits abnormally. Delete—Delete OSPF process. VPN delete—Delete VPN.
Field Description Reset phase of each module: • Main control module: { N/A—Not reset. { Delete area. { Delete process. • Neighbor maintenance (P) module: { N/A—Not reset. { Delete neighbor. { Delete interface. { Delete vlink—Delete virtual link. { Delete shamlink—Delete sham link. • LSDB synchronization (L) module: Reset phase of module { N/A—Not reset. { Stop timer. { Delete ASE—Delete all ASE LSAs. { Delete ASE maps—Delete ASE LSA maps. { Clear process data.
Field Description Authentication type of the area: Authtype • None—No authentication. • Simple—Simple authentication. • MD5—MD5 authentication. Type of the area: Area flag • • • • • Normal. Stub. StubNoSummary (totally stub area). NSSA. NSSANoSummary (totally NSSA area). SPF scheduled Count SPF calculation count in the OSPF area. Interface Interface in the area. Cost Interface cost. State Interface state. Type Interface network type. MTU Interface MTU. Priority Router priority.
Usage guidelines If you use this command on routers in a stub area, the commands displays no ASBR information. Examples # Display brief information about routes to the ABR or ASBR. display ospf abr-asbr OSPF Process 1 with Router ID 192.168.1.2 Routing Table to ABR and ASBR Type Destination Area Cost Nexthop RtType Inter 3.3.3.3 0.0.0.0 3124 10.1.1.2 ASBR Intra 2.2.2.2 0.0.0.0 1562 10.1.1.2 ABR # Display detailed information about routes to the ABR or ASBR.
Predefined user roles network-admin network-operator Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. Without this argument, the command displays information about ABR summary routes for all OSPF processes. area area-id: Specifies an OSPF area by its ID, which is an IP address or a decimal integer in the range of 0 to 4294967295 that is translated into the IP address format.
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 Net : 30.1.0.0 Mask : 255.255.0.0 Status : Advertise Cost : 10 (Configured) The count of route: 2 Destination Net Mask Proto Metric 30.1.2.0 255.255.255.0 OSPF 1 30.1.1.0 255.255.255.0 BGP 1 Table 26 Command output Field Description Destination Destination address of a summarized route. Net Mask 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 error Use display ospf error to display OSPF error information. Syntax display ospf [ process-id ] error 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 error information for all OSPF processes. Examples # Display OSPF error information. display ospf error OSPF Process 1 with Router ID 192.168.
Field Description OSPF bad checksum Packets with wrong checksum. OSPF bad area ID Packets with invalid area ID. OSPF drop on unnumbered interface Packets dropped on the unnumbered interface. OSPF bad virtual link Packets on wrong virtual links. OSPF bad authentication type Packets with invalid authentication type. OSPF bad authentication key Packets with invalid authentication key. OSPF packet too small Packets too small in length.
network-operator Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. Without this argument, the command displays OSPF route calculation log information for all processes. Usage guidelines The route statistics are the number of routes newly installed to the IP routing table. Examples # Display OSPF route calculation log information for all processes. display ospf event-log spf OSPF Process 1 with Router ID 1.1.1.
Field Description Reasons why the route calculation is performed: • • • • • Intra-area LSA—Intra-area LSA changes. Inter-area LSA—Inter-area LSA changes. External LSA—External LSA changes. Configuration—Configuration changes. Area 0 full neighbor number—Number of FULL-state neighbors in Area 0 changes. • Area 0 up interface number—Number of interfaces in up state in Area 0 Reason changes. • • • • • • LSDB overflow state—Overflow status changes. AS number—AS number changes.
10.0.11.1 10.0.11.2 Vlan20 Table 30 Command output Field Description Area Area to which the backup next hops belong. Candidate nexthop count Number of backup next hops. NextHop Backup next hop address. Interface Output interface. display ospf graceful-restart Use display ospf graceful-restart to display GR information for an OSPF process.
Area: 0.0.0.0 Authtype: None Area flag: Normal Area up Interface count: 2 Interface: 40.4.0.1 (Vlan-interface40) Restarter state: Normal State: P-2-P Type: PTP Last exit reason: Restarter : None Helper : None Neighbor count of this interface: 1 Number of neighbors under Helper: 0 Neighbor IP address GR state Last Helper exit reason 3.3.3.3 40.4.0.3 Normal None Virtual-link Neighbor-ID -> 4.4.4.4, Neighbor-State: Full Restarter state: Normal Interface: 20.2.0.1 (Vlink) Transit Area: 0.0.0.
Field Description Helper capability that the process supports: • Enable (IETF)—Supports IETF GR helper capability. • Enable (Nonstandard)—Supports non IETF GR helper capability. Helper capability • Enable (IETF and nonstandard)—Supports both IETF GR helper capability and non IETF GR helper capability. • Disable—Does not support GR helper capability.
Field Description Neighbor GR state: • Normal—Normal state. • Under GR—GR is in process. • Under Helper—The process is acting as GR helper. GR state Last Helper exit reason Reason that the helper exited last time. Virtual-link Neighbor-ID Router ID of the virtual link's neighbor. Neighbor-State Neighbor state: Down, Init, 2-Way, ExStart, Exchange, Loading, and Full. Interface Output interface of the virtual link.
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). Type Interface network type: PTP, PTMP, Broadcast, or NBMA.
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. FRR backup Indicates whether LFA calculation is enabled on an interface.
brief: Displays brief LSDB information. asbr: Displays Type-4 LSA (ASBR Summary LSA) information in the LSDB. ase: Displays Type-5 LSA (AS External LSA) information in the LSDB. network: Displays Type-2 LSA (Network LSA) information in the LSDB. 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.
Field Description Type LSA type (see 0). LinkState ID Link state ID. AdvRouter Advertising router. Age Age of the LSA. Len Length of the LSA. 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.
Field Description LS ID DR IP address. Adv Rtr Router that advertised the LSA. LS Age LSA age time. Len LSA length. 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.
1.1.1.2 1.1.1.2 Eth0/0/2 4 Valid Table 36 Command output Field Description NbrId Neighbor router ID. 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 peer Use display ospf peer to display information about OSPF neighbors.
Neighbors Area 0.0.0.0 interface 1.1.1.1(Ethernet1/1)'s neighbors Router ID: 1.1.1.2 Address: 1.1.1.2 State: Full Mode: Nbr is master DR: 1.1.1.2 BDR: 1.1.1.1 GR state: Normal Priority: 1 MTU: 0 Options is 0x02 (-|-|-|-|-|-|E|-) Dead timer due in 33 sec Neighbor is up for 02:03:35 Authentication Sequence: [ 0 ] Neighbor state change count: 6 BFD status: Disabled Neighbors 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.
Field Description Neighbor state: • Down—Initial state of a neighbor conversation. • Init—The router has seen a Hello packet from the neighbor. However, the router has not established bidirectional communication with the neighbor (the router itself did not appear in the neighbor's hello packet).
# Display brief OSPF neighbor information. display ospf peer OSPF Process 1 with Router ID 1.1.1.1 Neighbor Brief Information Area: 0.0.0.0 Router ID Address Pri Dead-Time Interface 1.1.1.2 1.1.1.2 1 40 Eth1/1 State Full/DR Sham link: 11.11.11.11 -> 22.22.22.22 Router ID Address Pri Dead-Time State 22.22.22.22 22.22.22.22 1 36 Full Table 38 Command output Field Description Area Neighbor area. Router ID Neighbor router ID. Address Neighbor interface address.
Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. Without this argument, the command displays OSPF neighbor statistics for all OSPF processes. standby slot slot-number: Displays backup OSPF neighbor statistics of a card. Without this option, the command displays OSPF neighbor statistics. Examples # Display OSPF neighbor statistics. display ospf peer statistics OSPF Process 1 with Router ID 10.3.1.
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 the OSPF request queue information for all OSPF processes. interface-type interface-number: Specifies an interface by its type and number. Without this argument, the command displays the OSPF request queue information for all interfaces. neighbor-id: Specifies a neighbor's router ID.
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 retransmission queue information for all OSPF processes. interface-type interface-number: Specifies an interface by its type and number. Without this argument, the command displays retransmission queue information for all interfaces. neighbor-id: Specifies a neighbor's router ID.
Syntax display ospf [ process-id ] routing [ ip-address { mask | mask-length } ] [ interface interface-type interface-number ] [ nexthop nexthop-address ] [ 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 the routing information for all OSPF processes. ip-address: Specifies a destination IP address.
Table 42 Command output Field Description Destination Destination network. Cost Cost to destination. Type Route type: intra-area, transit, stub, inter-area, Type-1 external, Type-2 external. NextHop Next hop address. AdvRouter Advertising router. Area Area ID. Total Nets Total networks. Intra Area Total intra-area routes. Inter Area Total inter-area routes. ASE Total ASE routes. NSSA Total NSSA routes. # Display detailed OSPF routing information.
Table 43 Command output Field Description Priority Prefix priority: critical, high, medium, and low. SubProtoID Sub protocol ID. Preference OSPF route preference. NbrId Neighbor router ID. NextHop Primary next hop IP address. BkNextHop Backup next hop IP address. IfType Type of the network to which the primary next hop belongs. BkIfType Type of the network to which the backup next hop belongs. Interface Output interface. BkInterface Backup output interface. NibID Next hop ID.
verbose: Displays detailed OSPF topology information. Without this keyword, the command displays brief OSPF topology information. Examples # Display brief topology information for area 0 in OSPF process 1. display ospf 1 area 0 spf-tree OSPF Process 1 with Router ID 100.0.0.
Field Description SPF link, representing the peer node. Link type: • RT2RT—Router to router. • NET2RT—Network to router. • RT2NET—Router to network. Link flag: • • • • • • SpfLink 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.
LinkData: 0.0.0.0 LinkNewCost: 0 LinkFlag : P Table 45 Command output Field Description LsId Link state ID. AdvId ID of the advertising router. NodeType • Network—Network node. • Router—Router node. Mask Network mask. Its value is 0 for a router node. SPFLinkCnt Number of SPF links. Distance Cost to the root node. VlinkData Destination address of virtual link packets. ParentLinkCnt Number of parent links.
Field Description Link flag: • • • • • • LinkFlag I—The link is in initialization state. P—The peer is the parent node. C—The peer is the child node. D—The link is to be deleted. H—The next hop is changed. V—When the peer node is deleted or added, the peer node is not on the SPF tree or is deleted. • N—The link is newly added, and both end nodes are on the SPF tree. • G—The link is on the area change list. display ospf statistics Use display ospf statistics to display OSPF statistics.
LSAs originated by this router Router : 4 Network : 0 Sum-Net : 0 Sum-Asbr: 0 External: 0 NSSA : 0 Opq-Link: 0 Opq-Area: 0 Opq-As : 0 LSAs originated: 4 LSAs received: 7 Routing table: Intra area: 2 Inter area: 3 ASE/NSSA: 0 Table 46 Command output Field Description I/O statistics Statistics about input/output packets and LSAs. Type OSPF packet type. Input Packets received. Output Packets sent. Hello Hell packet. DB Description Database Description packet.
Field Description Inter area Number of inter-area routes. ASE Number of ASE routes. # Display OSPF error statistics. display ospf statistics error OSPF Process 1 with Router ID 192.168.1.
Field Description HELLO: Hello-time mismatch Hello packets with mismatched hello timer. HELLO: Dead-time mismatch Hello packets with mismatched dead timer. HELLO: Ebit option mismatch Hello packets with mismatched E-bit in the option field. DD: MTU option mismatch DD packets with mismatched MTU. DD: Unknown LSA type DD packets with unknown LSA type. DD: Ebit option mismatch DD packets with mismatched E-bit in the option field. ACK: Bad ack Bad LSAck packets for LSU packets.
Virtual-link Neighbor-ID -> 2.2.2.2, Neighbor-State: Full Interface: 10.1.2.1 (Ethernet1/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 48 Command output Field Description Virtual-link Neighbor-ID ID of the neighbor on the virtual link. Neighbor-State Neighbor state: Down, Init, 2-Way, ExStart, Exchange, Loading, Full.
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 lfa: Uses the LFA algorithm to calculate a backup next hop for all routes. abr-only: Uses the next hop of the route to the ABR as the backup next hop. route-policy route-policy-name: Uses a 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 OSPF FRR and BFD for OSPF at the same time. Otherwise, OSPF FRR might fail to work.
import: Filters Type-3 LSAs advertised into the local area. Examples # Use IP prefix list my-prefix-list to filter inbound Type-3 LSAs, and use ACL 2000 to filter outbound Type-3 LSAs in OSPF Area 1. system-view [Sysname] ospf 100 [Sysname-ospf-100] area 1 [Sysname-ospf-100-area-0.0.0.1] filter prefix-list my-prefix-list import [Sysname-ospf-100-area-0.0.0.1] filter 2000 export filter-policy export (OSPF view) Use filter-policy export to configure OSPF to filter redistributed routes.
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.
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 by destination. 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.
Predefined user roles network-admin Parameters ietf: Enables IETF GR. nonstandard: Enables non-IETF GR. global: Enables global GR. In global GR mode, a GR process can be completed only when all GR helpers exist. A GR process fails if a GR helper fails (for example, the interface connected to the GR helper goes down). Without this keyword, this command enables partial GR. In partial GR mode, a GR process can be completed if a GR helper exists. planned-only: Enables planned only GR.
graceful-restart helper enable Use graceful-restart helper enable to enable OSPF GR helper capability. Use undo graceful-restart helper enable to disable OSPF GR helper capability. Syntax graceful-restart helper enable [ planned-only ] undo graceful-restart helper enable Default OSPF GR helper capability is enabled. Views OSPF view Predefined user roles network-admin Parameters planned-only: Enable only planned GR for the GR helper.
Usage guidelines When an LSA change on the GR helper is detected, the GR helper device exits the GR helper mode. Examples # Enable strict LSA checking capability for GR helper in OSPF process 1. system-view [Sysname] ospf 1 [Sysname-ospf-1] graceful-restart helper strict-lsa-checking graceful-restart interval (OSPF view) Use graceful-restart interval to configure the GR interval. Use undo graceful-restart interval to restore the default GR interval.
undo host-advertise ip-address Default No host route is advertised. Views OSPF area view Predefined user roles network-admin Parameters ip-address: Specifies the IP address of a host. cost: Specifies a cost for the route, in the range of 1 to 65535. Examples # Advertise host route 1.1.1.1 with a cost of 100. system-view [Sysname] ospf 100 [Sysname-ospf-100] area 0 [Sysname-ospf-100-area-0.0.0.0] host-advertise 1.1.1.
cost cost: Specifies a route cost in the range of 0 to 16777214. The default is 1. nssa-only: Limits the route advertisement to the NSSA area by setting the P-bit of Type-7 LSAs to 0. By default, the P-bit of Type-7 LSAs is set to 1. If the router acts as both an ASBR and an ABR and FULL state neighbors exist in the backbone area, the P-bit of Type-7 LSAs originated by the router is set to 0. This keyword applies to NSSA routers.
ispf enable Use ispf enable to enable OSPF incremental SPF (ISPF). Use undo ispf enable to disable OSPF ISPF. Syntax ispf enable undo ispf enable Default OSPF ISPF is enabled. Views OSPF view Predefined user roles network-admin Usage guidelines Upon topology changes, ISPF recomputes only the affected part of the SPT, instead of the entire SPT. Examples # Enable ISPF for OSPF process 100.
Examples # Disable the logging of neighbor state changes for OSPF process 100. system-view [Sysname] ospf 100 [Sysname-ospf-100] undo log-peer-change lsa-arrival-interval Use lsa-arrival-interval to specify the LSA arrival interval. Use undo lsa-arrival-interval to restore the default. Syntax lsa-arrival-interval interval undo lsa-arrival-interval Default The LSA arrival interval is 1000 milliseconds.
Syntax lsdb-overflow-interval interval undo lsdb-overflow-interval Default The OSPF exit overflow interval is 300 seconds. Views OSPF view Predefined user roles network-admin Parameters interval: Specifies the interval that OSPF exits overflow state, in the range of 0 to 2147483647 seconds. Usage guidelines When the number of LSAs in the LSDB exceeds the upper limit, the LSDB is in an overflow state.
minimum-interval: Specifies the minimum LSA generation interval in the range of 10 to 60000 milliseconds. 0 indicates that the minimum interval can be any value. incremental-interval: Specifies the LSA generation incremental interval in the range of 10 to 60000 milliseconds. Usage guidelines When network changes are not frequent, LSAs are generated at the minimum-interval.
maximum load-balancing (OSPF view) Use maximum load-balancing to specify the maximum number of equal-cost multi-path (ECMP) routes for load balancing. Use undo maximum load-balancing to restore the default. Syntax maximum load-balancing maximum undo maximum load-balancing Default The default setting depends on the device model. Views OSPF view Predefined user roles network-admin Parameters maximum: Specifies the maximum number of ECMP routes, in the range of 1 to 8.
Predefined user roles network-admin View OSPF area view Parameters ip-address: Specifies the IP address of a network. wildcard-mask: Specifies the wildcard mask of the IP address. For example, the wildcard mask of mask 255.0.0.0 is 0.255.255.255. Usage guidelines This command enables OSPF on the interface attached to the specified network. The interface's primary IP address must be in the specified network. If only the interface's secondary IP address is in the network, the interface cannot run OSPF.
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 of Type-7 LSAs originated by the router 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.
Examples # Enable OSPF process 100 and specify router ID 10.10.10.1. 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.
Syntax For MD5/HMAC-MD5 authentication: ospf authentication-mode { hmac-md5 | md5 } key-id { cipher cipher-string | plain plain-string } undo ospf authentication-mode { hmac-md5 | md5 } key-id For simple authentication: ospf authentication-mode simple { cipher cipher-string | plain plain-string } undo ospf authentication-mode simple Default No authentication is performed. Views Interface view Predefined user roles network-admin Parameters hmac-md5: Specifies HMAC-MD5 authentication.
3. Delete the old MD5 authentication key from the local device and all its neighbors. This operation helps prevent attacks from devices that use the old key for communication and reduce system resources and bandwidth consumption caused by key rollover. 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.
Parameters echo: Enables BFD single-hop echo detection. Without this keyword, this command enables BFD bidirectional control detection. 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 Ethernet 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.
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: Specify the router priority for the interface, in the range of 0 to 255. Usage guidelines The greater the value, the higher the priority for DR/BDR election.
Examples # Disable Ethernet 1/1 from calculating a backup next hop by using the LFA algorithm. system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] undo ospf fast-reroute lfa-backup ospf mib-binding Use ospf mib-binding to bind an OSPF process to MIB. Use undo ospf mib-binding to restore the default. Syntax ospf mib-binding process-id undo ospf mib-binding Default MIB is bound to the OSPF process with the smallest process ID.
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.
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, and 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 # Enable prefix suppression on Ethernet 1/2. system-view [Sysname] interface ethernet 1/2 [Sysname-Ethernet1/2] ospf prefix-suppression Related commands prefix-suppression 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.
Syntax ospf timer hello seconds undo ospf timer hello 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.
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 timer interval on Ethernet 1/1 to 130 seconds. system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/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.
Syntax ospf trans-delay seconds undo ospf trans-delay 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.
Usage guidelines Routers on an X.25 or Frame Relay network cannot find neighbors by multicasting hello packets, so you must use this command to specify the neighbors. When startup, a router sends a hello packet to neighbors with a nonzero priority. After the DR and BDR are elected, the DR will send hello packets to all neighbors to form adjacencies. 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.
[Sysname] ospf 1 [Sysname-ospf-1] pic additional-path-always preference Use preference to set a preference for OSPF. 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.
prefix-priority Use prefix-priority to enable prefix prioritization. Use undo prefix-priority to disable prefix prioritization. Syntax prefix-priority route-policy route-policy-name undo prefix-priority 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.
Default An OSPF process advertises all prefixes. Views OSPF view Predefined user roles network-admin Usage guidelines If you want to use prefix suppression, HP recommends that you configure prefix suppression on all OSPF routers. When prefix suppression is enabled: • On P2P and P2MP networks, OSPF does not advertise Type-3 links in Router LSAs. • On broadcast and NBMA networks, the DR generates Network LSAs with a mask length of 32 to suppress network routes.
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 rfc1583 compatible Use rfc1583 compatible to enable compatibility with RFC 1583. Use undo rfc1583 compatible to disable compatibility with RFC 1583. Syntax rfc1583 compatible undo rfc1583 compatible Default Compatibility with RFC 1583 is enabled.
Syntax router id router-id undo router id Default No global router ID is configured. Views System view Predefined user roles network-admin Parameters router-id: Specifies the router ID, in the format of an IPv4 address. Usage guidelines OSPF uses a router ID to identify a device. If no router ID is specified, the global router ID is used. If no global router ID is configured, the highest loopback interface IP address is used as the router ID.
Predefined user roles network-admin Parameters interface-type interface-number: Specifies an interface by its type and number. all: Specifies all interfaces. Usage guidelines A disabled interface is a passive interface that cannot receive or send any hello packets. To disable a network from receiving and sending OSPF routes, issue the command on the interface connected to the network. Examples # Disable interface Ethernet 1/1 from receiving and sending OSPF packets.
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. lsdb-approaching-overflow: Specifies notifications about approaching LSDB overflows. lsdb-overflow: Specifies LSDB overflow notifications.
Parameters trap-interval: Specifies the notification output interval in the range of 1 to 60 seconds. trap-number: Specifies the number of output notifications in a specific time, in the range of 0 to 300. Examples # Configure OSPF to output up to 10 SNMP notifications within 5 seconds. system-view [Sysname] ospf 100 [Sysname-ospf-100] snmp trap rate-limit interval 5 count 10 spf-schedule-interval Use spf-schedule-interval to set the OSPF SPF calculation interval.
Examples # Configure the maximum SPF calculation interval as 10 seconds, minimum interval as 500 milliseconds and incremental interval as 300 milliseconds. system-view [Sysname] ospf 100 [Sysname-ospf-100] spf-schedule-interval 10 500 300 stub (OSPF area view) Use stub to configure an area as a stub area. Use undo stub to restore the default. Syntax stub [ default-route-advertise-always | no-summary ] * undo stub Default No area is a stub area.
stub-router Use stub-router to configure a router as a stub router. Use undo stub-router to restore the default. Syntax stub-router [ external-lsa [ max-metric-value ] | include-stub | on-startup { seconds | wait-for-bgp [ seconds ] } | summary-lsa [ max-metric-value ] ] * undo stub-router Default No router is a stub router. Views OSPF view Predefined user roles network-admin Parameters external-lsa max-metric-value: Specifies a cost for the external LSAs, in the range of 1 to 16777215.
Use undo transmit-pacing to restore the default. Syntax transmit-pacing interval interval count count undo transmit-pacing Default An OSPF interface sends up to three LSU packets every 20 milliseconds. Views OSPF view Predefined user roles network-admin Parameters interval interval: Specifies an interval at which an interface sends LSU packets, in the range of 10 to 1000 milliseconds.
Parameters router-id: Specifies the router ID of the neighbor on the virtual link. dead seconds: Sets the dead interval in the range of 1 to 32768 seconds. The default is 40. The dead interval must be identical with that on the virtual link neighbor, and at least four times the hello interval. hello seconds: Sets the hello interval in the range of 1 to 8192 seconds. The default is 10. It must be identical with the hello interval on the virtual link neighbor.
3. Delete the old MD5 authentication key from the local device and the neighbor. This step helps prevent attacks from devices that use the old key for communication and reduces system resources and bandwidth consumption caused by key rollover. Examples # Configure a virtual link to the neighbor with router ID 1.1.1.1. system-view [Sysname] ospf 100 [Sysname-ospf-100] area 2 [Sysname-ospf-100-area-0.0.0.2] vlink-peer 1.1.1.
IS-IS commands area-authentication-mode Use area-authentication-mode to specify an area authentication mode and a password. Use undo area-authentication-mode to restore the default. Syntax area-authentication-mode { md5 | simple } { cipher cipher-string | plain plain-string } [ ip | osi ] undo area-authentication-mode Default No area authentication or password is configured. Views IS-IS view Predefined user roles network-admin Parameters md5: Specifies the MD5 authentication mode.
[Sysname] isis 1 [Sysname-isis-1] area-authentication-mode simple plain 123456 Related commands • domain-authentication-mode • isis authentication-mode auto-cost enable Use auto-cost enable to enable automatic link cost calculation. Use undo auto-cost enable to disable the function. Syntax auto-cost enable undo auto-cost enable Default This function is disabled.
Related commands • bandwidth-reference • cost-style • isis cost bandwidth-reference (IS-IS view) Use bandwidth-reference to set the bandwidth reference value for automatic link cost calculation. Use undo bandwidth-reference to restore the default. Syntax bandwidth-reference value undo bandwidth-reference Default The bandwidth reference value is 100 Mbps.
Views IS-IS view Predefined user roles network-admin Parameters value: Specifies the link cost value. The value range varies by cost style. • For styles narrow, narrow-compatible, and compatible, the cost value is in the range of 0 to 63. • For styles wide and wide-compatible, the cost value is in the range of 0 to 16777215. level-1: Applies the link cost to Level-1. level-2: Applies the link cost to Level-2.
narrow-compatible: Receives both narrow and wide cost style packets, but sends only narrow cost style packets. wide-compatible: Receives both narrow and wide cost style packets, but sends only wide cost style packets. relax-spf-limit: Allows receiving routes with a cost greater than 1023. If this keyword is not specified, any route with a cost bigger than 1023 will be discarded. This keyword is only available when compatible or narrow-compatible is included.
You can use a routing policy to specify a level for the default route. The apply isis level-1 command in routing policy view can generate a Level-1 default route. The apply isis level-2 command in routing policy view can generate a Level-2 default route. The apply isis level-1-2 command in routing policy view can generate both a Level-1 default route and Level-2 default route. Examples # Configure IS-IS process 1 to advertise a Level-2 default route.
maximum imported routes : 1000000 timers lsp-max-age : 1200 lsp-refresh : 900 SPF intervals : 5 50 200 IPv6 enable preference : 15 maximum imported routes : 1000000 Table 50 Command output Field Description network-entity Network entity name. is-level IS-IS routing level. cost-style Cost style. Whether FRR is enabled: fast-reroute • disable—FRR is disabled. • enable—FRR is enabled. preference IS-IS route preference. Lsp-length receive Maximum LSP that can be received.
Usage guidelines This command is supported only on MSR4000 routers. Examples # Display IS-IS GR log information about card 1. display isis graceful-restart event-log slot 1 IS-IS loginfo : Jul 18 20:44:33 2012 -Slot=0 Enter HA Block status Jul 18 10:44:33 2012 -Slot=0 Exit HA Block status Jul 18 20:46:13 2012 -Slot=0 Process 1 enter GR restarting phase(Initialization). Jul 18 20:46:13 2012 -Slot=0 Prcoess 1 enter GR phase (LSDB synchronization).
level-2: Displays the IS-IS Level-2 GR state. process-id: Specifies a process by its ID in the range of 1 to 65535. Without this argument, the command displays GR state of all IS-IS processes. Examples # Display IS-IS GR state.
Field Description Whether SA is supported: SA Bit • Supported. • Not supported. Total number of interfaces Total number of IS-IS interfaces. Number of waiting LSPs Number of LSPs not obtained by the GR restarter from GR helpers during LSDB synchronization. display isis interface Use display isis interface to display IS-IS interface information.
Id IPv4.State IPv6.State MTU Type DIS 001 Up Down 547 L1/L2 Yes/No # Display detailed IS-IS interface information. display isis interface verbose Interface information for IS-IS(1) ---------------------------------- Interface: Ethernet1/2 Id IPv4.State IPv6.State MTU Type DIS 001 Up Down 547 L1/L2 Yes/No SNPA Address : 000c-29b2-a5e3 IP Address : 8.8.8.
Field Description Cost Cost of the interface. Priority DIS priority. Whether BFD for IS-IS is enabled: • Disabled. • Enabled. IPv4 BFD Whether BFD for IPv6 IS-IS is enabled: • Disabled. • Enabled. IPv6 BFD # Display IS-IS interface statistics.
Views Any view Predefined user roles network-admin network-operator Parameters level-1: Displays the level-1 LSDB. level-2: Displays the level-2 LSDB. local: Displays LSP information generated locally. lsp-id lspid: Specifies an LSP ID, in the form of sysID. Pseudo ID-fragment num, where sysID represents the originating node or pseudo node, and Pseudo ID is separated by a dot from sysID and by a hyphen from fragment num. lspname: Specifies the LSP name, in the form of Symbolic name.
Database information for ISIS(1) -------------------------------- Level-1 Link State Database --------------------------- LSPID Seq Num Checksum Holdtime Length ATT/P/OL ------------------------------------------------------------------------------5555.1111.1111.00-00 0x00000006 Source 5555.1111.1111.00 NLPID IPv4 0x8519 1124 75 0/0/0 41 0/0/0 68 0/0/0 55 0/0/0 Area address 18 IPv4 address 8.8.8.5 NBR NBR ID 5555.5555.5555.00 COST: 0 7777.8888.1111.01 COST: 10 ID 5555.1111.
Field Description Seq Num LSP sequence number. Checksum LSP checksum. Holdtime LSP lifetime, which decreases as time elapses. Length LSP length. ATT/P/OL • ATT—Attach bit. • P—Partition bit. • OL—Overload bit. 1 means the LSP bit is set and 0 means the LSP bit is not set. Source System ID of the originating router. NLPID Network layer protocol the originating router runs. Area address Area address of the originating router.
Examples # Add Serial 2/0 and Serial 2/1 to mesh group 100. system-view [Sysname] interface serial 2/0 [Sysname-Serial2/0] isis mesh-group 100 [Sysname-Serial2/0] quit [Sysname] interface serial 2/1 [Sysname-Serial2/1] isis mesh-group 100 # Display IS-IS mesh-group configuration information.
[Sysname-isis-1] is-name map 0000.0000.0041 RUTB # Display the IS-IS host name to system ID mapping table. [Sysname-isis-1] display isis name-table Name table information for ISIS(1) --------------------------------------------------------------System ID Hostname Type 6789.0000.0001 RUTA DYNAMIC 0000.0000.0041 RUTB STATIC Table 57 Command output Field Description System ID System ID. Hostname Host name. Type • Static. • Dynamic.
Jul 19 22:37:53 2012 -Slot=0 Process 1 enter NSR phase (LSP stability). Jul 19 22:37:53 2012 -Slot=0 Process 1 enter NSR phase (LSP generation). Jul 19 22:37:53 2012 -Slot=0 Process 1 enter NSR phase (Finish). Jul 19 22:37:53 2012 -Slot=0 Process 1 NSR complete. Table 58 Command output Field Description NSR phase: • • • • • • • • NSR phase Initialization. Smooth. First SPF computation. Redistribution. Second SPF computation. LSP stability—Ready to generate LSPs. LSP generation. Finish.
Table 59 Command output Field Description NSR phase: • • • • • • • • NSR phase Initialization. Smooth. First SPF computation. Redistribution. Second SPF computation. LSP stability—Ready to generate LSPs. LSP generation. Finish. display isis peer Use display isis peer to display IS-IS neighbor information.
System Id: 0000.0000.0001 Interface: Eth1/2 State: Up Circuit Id: HoldTime: 27s --- Type: L1(L1L2) PRI: 64 System Id: 0000.0000.0001 Interface: Eth1/2 State: Up Circuit Id: HoldTime: 27s --- Type: L2(L1L2) PRI: 64 # Display detailed IS-IS neighbor information. display isis peer verbose Peer information for ISIS(1) ---------------------------System ID: 0000.1111.2222 Interface: Eth1/2 State: Up Circuit Id: Holdtime: 6s 0000.1111.2222.
Field Description HoldTime Within the holdtime, if no hellos are received from the neighbor, the neighbor is considered down. If a hello is received, the holdtime is reset to the initial value. Circuit type: • L1—Means the circuit type is Level-1 and the neighbor is a Level-1 router. • L2—Means the circuit type is Level-2 and the neighbor is a Level-2 router. • L1(L1L2)—Means the circuit type is Level-1 and the neighbor is a Level-1-2 Type router.
display isis redistribute Use display isis redistribute to display the redistributed IS-IS routing information. Syntax display isis redistribute [ ipv4 [ ip-address mask-length ] ] [ level-1 | level-2 ] [ process-id ] Views Any view Predefined user roles network-admin network-operator Parameters ipv4: Displays the redistributed IPv4 routing information (the default). ip-address mask-length: Specifies the destination IP address and mask length.
Field Description Redistributed route type: • • • • • • Type Direct. IS-IS. Static. OSPF. BGP. RIP. IPV4 Destination IPv4 destination address. IntCost Internal cost of the route. ExtCost External cost of the route. Tag Tag value. State Indicates whether the route is valid. display isis route Use display isis route to display IS-IS IPv4 routing information.
display isis route Route information for ISIS(1) ----------------------------- Level-1 IPv4 Forwarding Table ----------------------------- IPv4 Destination IntCost ExtCost ExitInterface NextHop Flags ------------------------------------------------------------------------------8.8.8.0/24 10 NULL Eth1/2 Direct D/L/- 9.9.9.0/24 20 NULL Eth1/2 8.8.8.
Route information for ISIS(1) ----------------------------Level-1 IPv4 Forwarding Table ----------------------------IPV4 Dest : 8.8.8.0/24 Int. Cost : 10 Ext. Cost : NULL Admin Tag : - Src Count : 2 Flag NextHop Interface : ExitIndex : : Direct Eth1/2 : D/L/- 0x00000000 IPV4 Dest : 9.9.9.0/24 Int. Cost : 20 Ext. Cost : NULL Admin Tag : - Src Count : 1 Flag NextHop Interface : ExitIndex : : 8.8.8.
Field Description Route state flag: • R—The route has been installed into the routing table. • L—The route has been flooded in an LSP. • U—Route leaking flag. Setting it to UP can prevent an LSP sent Flag from L2 to L1 from being sent back to L2. Next Hop Next hop. Interface Output interface. ExitIndex Index of the output interface. display isis spf-tree Use display isis spf-tree to display IS-IS IPv4 topology information.
C-Neighbor is child P-Neighbor is parent V-Link is involved N-Link is a new path L-Link is on change list U-Protocol usage is changed H-Nexthop is changed Level-1 Shortest Path Tree -------------------------- 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.
Level-1 Shortest Path Tree -------------------------SpfNode : 0000.0000.0032.00 Distance : 0 NodeFlag : S/-/-/-/-/- NextHopCnt: 0 SpfLinkCnt: 2 -->0000.0000.0032.01 LinkCost : 10 LinkNewCost: 10 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.
NextHop : 10.10.10.64 BkNeighbor: N/A BkInterface: N/A BkNextHop : N/A Neighbor : 0000.0000.0064.00 NextHop : 20.20.20.64 Interface BkNeighbor: N/A : Tun1 BkInterface: N/A BkNextHop : N/A SpfLinkCnt: 2 -->0000.0000.0032.00 LinkCost : 10 LinkNewCost: 10 LinkFlag : -/-/-/P/-/-/-/-/- LinkSrcCnt : 1 Type: Remote Interface: N/A Cost: 10 Nexthop : N/A -->0000.0000.0032.
NodeFlag : S/-/-/R/-/- NextHopCnt: 0 SpfLinkCnt: 2 -->0000.0000.0064.00 LinkCost : 0 LinkNewCost: 0 LinkFlag : -/-/C/-/-/-/-/-/- LinkSrcCnt : 1 Type: Adjacent Interface: Vlan2 Cost: 0 Nexthop : 10.10.10.64 -->0000.0000.0032.00 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 NextHop : 10.10.10.
Table 65 Command output Field Description SpfNode ID of the topology node. Distance Shortest distance from the root node to the local node. Node flag: NodeFlag • • • • • • S—The node is on the SPF tree. T—The node is on the tent list. O—The node is overloaded. R—The node is directly connected. I—The node is isolated. D—The node is to be deleted. NextHopCnt Next hop count. NextHop Primary next hop of the node or the link advertising source.
display isis statistics Use display isis statistics to display IS-IS statistics. Syntax display isis statistics [ level-1 | level-1-2 | level-2 ] [ process-id ] Views Any view Predefined user roles network-admin network-operator Parameters level-1: Displays IS-IS Level-1 statistics. level-1-2: Displays IS-IS Level-1-2 statistics. level-2: Displays IS-IS Level-2 statistics. process-id: Displays statistics for an IS-IS process specified by its ID in the range of 1 to 65535.
ISISv6: 0 BGP4+: RIPng: OSPFv3: 0 0 Total Number: 0 0 Lsp information: LSP Source ID: No. of used LSPs 7777.8888.
Field Description LSP information: Lsp information • LSP Source ID—ID of the source system. • No. of used LSPs—Number of used LSPs. display osi Use display osi to display OSI connection information, including the socket status, options, input interfaces, and matched multicast MAC addresses. Syntax MSR2000/MSR3000: display osi MSR4000: 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.
Table 67 Command output Field Description Total OSI socket number Total number of OSI sockets. Slot Slot number of the card. Creator Name of the socket creator. The process ID of the creator is displayed in the square brackets. State This field always displays N/A. Socket options: Options • SO_FILTER—Filter option is configured. • N/A—No option is configured. Error Number of errors that affect the socket session.
display osi statistics Received packets: Total: 35 Relay received: 35 Relay forwarded: 35 Invalid service slot: 0 No matched socket: 0 Not delivered, input socket full: 0 Sent packets: Total: 19 Relay forwarded: 19 Relay received: 19 Failed: 0 Table 68 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.
undo domain-authentication-mode Default No routing domain authentication or password is configured. Views IS-IS view Predefined user roles network-admin Parameters md5: Specifies the MD5 authentication mode. simple: Specifies the simple authentication mode. 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.
undo fast-reroute Default IS-IS FRR is disabled. Views IS-IS view Predefined user roles network-admin 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.
protocol: Filters routes redistributed from the specified routing protocol, which can be bgp, direct, isis, ospf, rip, or static. If no protocol is specified, the command filters all redistributed routes. process-id: Specifies a process by its ID in the range of 1 to 65535. This argument is available only when the protocol is isis, ospf, or rip. The default process ID is 1.
Views IS-IS view Predefined user roles network-admin 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.
flash-flood Use flash-flood to enable IS-IS LSP flash flooding. Use undo flash-flood to disable IS-IS LSP flash flooding. 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 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.
graceful-restart t1 Use graceful-restart t1 to configure the T1 timer. Use undo graceful-restart t1 to restore the default. 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.
Default The T2 timer is 60 seconds. Views IS-IS view 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.
Usage guidelines The T3 timer specifies the GR interval. The GR interval is set as the holdtime in hello PDUs. Within the interval, the neighbors maintain their adjacency with the GR restarter. If the GR process has not completed within the holdtime, the neighbors tear down the neighbor relationship and the GR process fails. Examples # Configure the T3 timer of IS-IS process 1 as 500 seconds.
cost-type { external | internal }: Specifies the cost type. The internal type indicates internal routes, and the external type indicates external routes. If external is specified, the cost of a redistributed route is added by 64 to make internal routes take priority over external routes. The type is external by default. The keywords are available only when the cost type is narrow, narrow-compatible, or compatible. level-1: Redistributes routes into the Level-1 routing table.
Default Route advertisement from Level-1 to Level-2 is enabled. Views IS-IS view Predefined user roles network-admin Parameters filter-policy: Specifies a filtering policy. acl-number: Specifies an ACL by its number in the range of 2000 to 3999 to filter routes from Level-1 to Level-2. 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 from Level-1 to Level-2 by destination address.
Views IS-IS view Predefined user roles network-admin Parameters filter-policy: Specifies a filtering policy. acl-number: Specifies an ACL by its number in the range of 2000 to 3999 to filter routes from Level-2 to Level-1. 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 from Level-2 to Level-1 by destination address.
Predefined user roles network-admin Parameters number: Specifies the maximum number of redistributed Level 1/Level 2 IPv4 routes. The following matrix shows the value ranges for the number argument on different MSR routers: Argument MSR2000 MSR3000 MSR4000 number 1 to 200000 1 to 500000 1 to 1000000 Examples # Configure IS-IS process 1 to redistribute up to 1000 Level 1/Level 2 IPv4 routes.
Related commands • isis enable • network-entity isis authentication-mode Use isis authentication-mode to set the IS-IS authentication mode and password for an interface. Use undo isis authentication-mode to remove the configuration. Syntax isis authentication-mode { md5 | simple } { cipher cipher-string | plain plain-string } [ level-1 | level-2 ] [ ip | osi ] undo isis authentication-mode [ level-1 | level-2 ] Default No neighbor relationship authentication is configured.
If neither ip nor osi is specified, the OSI-related fields in LSPs are checked. The level-1 and level-2 keywords are configurable on an interface that has had IS-IS enabled with the isis enable command. Examples # On Ethernet 1/1, configure the authentication mode as simple, and set the plaintext password to 123456.
Default An interface can establish either the Level-1 or Level-2 adjacency. Views Interface view Predefined user roles network-admin Parameters level-1: Sets the circuit level to Level-1. level-1-2: Sets the circuit level to Level-1-2. level-2: Sets the circuit level to Level-2. Usage guidelines For a Level-1 (Level-2) router, the circuit level can only be Level-1 (Level-2).
Interfaces with different network types operate differently. For example, broadcast interfaces must elect a DIS and flood CSNP packets to synchronize the LSDBs, and P2P interfaces do not need to elect a DIS, and use a different LSDB synchronization mechanism. If only two routers exist on a broadcast network, configure the network type of attached interfaces as P2P to avoid DIS election and CSNP flooding, saving network bandwidth and speeding up network convergence.
isis dis-name NOTE: This command does not take effect on a Point-to-Point interface. Use isis dis-name to configure a name for a DIS to represent the pseudo node on a broadcast network. Use undo isis dis-name to restore the default. Syntax isis dis-name symbolic-name undo isis dis-name Default No name is configured for the DIS. Views Interface view Predefined user roles network-admin Parameters symbolic-name: Specifies a DIS name, a case-insensitive string of 1 to 64 characters.
Views Interface view Predefined user roles network-admin Parameters value: Specifies a DIS priority in the range of 0 to 127. level-1: Applies the DIS priority to Level-1. level-2: Applies the DIS priority to Level-2. Usage guidelines If neither level-1 nor level-2 is specified, the DIS priority applies to both Level-1 and Level-2. On an IS-IS broadcast network, a router must be elected as the DIS at each routing level. Specify a DIS priority at a level for an interface.
system-view [Sysname] isis 1 [Sysname-isis-1] network-entity 10.0001.1010.1020.1030.00 [Sysname-isis-1] quit [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] isis enable 1 Related commands • isis • network-entity isis mesh-group Use isis mesh-group to add an interface into a mesh group or block the interface. Use undo isis mesh-group to restore the default.
[Sysname-Serial2/1.1] isis mesh-group 3 isis mib-binding Use isis mib-binding to bind an IS-IS process to MIB operation. Use undo isis mib-binding to restore the default. Syntax isis mib-binding process-id undo isis mib-binding Default MIB operation is bound to the IS-IS process with the smallest process ID. 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.
Predefined user roles network-admin Usage guidelines An IS-IS PPP interface can have a peer on a different network. To establish neighbor relationship with the peer, you must disable source address check for hello packets on the PPP interface by using the isis peer-ip-ignore command. Examples # Configure Serial 2/0 to not check the peer's IP address in received Hello packets.
Syntax isis small-hello undo isis small-hello Default An interface sends standard hello packets. Views Interface view Predefined user roles network-admin Examples # Configure Ethernet1/1 to send small Hello packets. system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] isis small-hello isis timer csnp Use isis timer csnp to specify on the DIS of a broadcast network the interval for sending CSNP packets. Use undo isis timer csnp to remove the configuration.
Examples # Configure Level-2 CSNP packets to be sent every 15 seconds over Ethernet 1/1. system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] isis timer csnp 15 level-2 isis timer hello Use isis timer hello to specify the interval for sending hello packets. Use undo isis timer hello to remove the configuration. Syntax isis timer hello seconds [ level-1 | level-2 ] undo isis timer hello [ level-1 | level-2 ] Default The default hello interval is 10 seconds.
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. Syntax isis timer holding-multiplier value [ level-1 | level-2 ] undo isis timer holding-multiplier [ level-1 | level-2 ] Default The default IS-IS hello multiplier is 3.
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. Syntax isis timer lsp time [ count count ] undo isis timer lsp Default The minimum interval for sending LSPs on the interface is 33 milliseconds, and the maximum number of LSPs that can be sent at a time is 5.
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. Usage guidelines On a P2P link, IS-IS requires an advertised LSP be acknowledged. If no acknowledgement is received within a configurable interval, IS-IS will retransmit the LSP.
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] ispf enable is-level Use is-level to specify the IS level. Use undo is-level to restore the default. Syntax is-level { level-1 | level-1-2 | level-2 } undo is-level Default The IS level is level-1-2.
Use undo is-name to disable dynamic system ID to hostname mapping. Syntax is-name sys-name undo is-name Default Dynamic system ID to hostname mapping is not enabled. Views IS-IS view Predefined user roles network-admin Parameters sys-name: Specifies a host name for the local IS, a case-insensitive string of 1 to 64 characters. Usage guidelines To display the host name rather than the system ID of an IS by using the display isis lsdb command, first enable dynamic system ID to hostname mapping.
Usage guidelines Each remote IS system ID corresponds to only one name. Examples # Map the host name RUTB to the system ID 0000.0000.0041 of the remote IS. system-view [Sysname] isis 1 [Sysname-isis-1] is-name map 0000.0000.0041 RUTB Related commands display isis name-table log-peer-change Use log-peer-change to enable the logging of neighbor state changes. Use undo log-peer-change to disable the logging.
undo lsp-fragments-extend Default LSP fragment extension is disabled. Views IS-IS view Predefined user roles network-admin Parameters level-1: Applies the fragment extension to Level-1 LSPs. 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.
Usage guidelines If neither Level-1 nor Level-2 is specified in the command, the configured maximum size applies to the current IS-IS level. Examples # Configure the maximum size of the generated Level-2 LSPs as 1024 bytes. 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.
Views IS-IS view Predefined user roles network-admin Parameters number: Specifies the maximum number of ECMP routes. The range and default number vary by device model. Usage guidelines The maximum number of ECMP routes configured using this command cannot be greater than the limit configured using the max-ecmp-num command. Examples # Configure the maximum number of ECMP routes as 2.
• System ID—A system ID uniquely identifies a host or router in the area and has a fixed 6-byte length. • SEL—It has a value of 0 and a fixed 1-byte length. For example, a NET of ab.cdef.1234.5678.9abc.00 specifies the area ID ab.cdef, the system ID 1234.5678.9abc, and the SEL 00. Examples # Specify the NET as 10.0001.1010.1020.1030.00, of which 10.0001 is the area ID and 1010.1020.1030 is the system ID. system-view [Sysname] isis 1 [Sysname-isis-1] network-entity 10.0001.1010.1020.1030.
[Sysname] isis 1 [Sysname-isis-1] preference 25 priority Use priority to assign convergence priorities to specific IS-IS routes. Use undo priority to remove the configuration. Syntax priority { critical | high | medium } { prefix-list prefix-list-name | tag tag-value } undo priority { critical | high | medium } [ prefix-list | tag ] Default IS-IS routes have the lowest convergence priority.
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. Usage guidelines If no IS-IS process is specified, the command clears data structure information for all IS-IS processes. Use this command when LSPs must be updated immediately. Examples # Clear all IS-IS data structure information.
Parameters slot slot-number: Specifies a card by its slot number. Usage guidelines This command is supported only on MSR4000 routers. Examples # Clear IS-IS NSR log information on card 1. reset isis non-stop-routing event-log slot 1 reset isis peer Use reset isis peer to clear data structure information for a specified IS-IS neighbor.
Examples # Clear OSI packet statistics. reset osi statistics Related commands display osi statistics set-overload Use set-overload to set the overload bit. Use undo set-overload to clear the overload bit. Syntax set-overload [ on-startup [ [ start-from-nbr system-id [ timeout1 [ nbr-timeout ] ] ] | timeout2 ] [ allow { external | interlevel } * ] undo set-overload Default The overload bit is not set.
Usage guidelines If the on-startup keyword is not specified, the command sets the overload bit immediately until the undo set-overload command is executed. If the on-startup keyword is specified, IS-IS sets the overload bit upon system startup and keeps it set within the timeout2 interval. Examples # Set overload flag on the current router.
lsp-parse-error: Specifies notifications about LSP packet parse errors. lsp-size-exceeded: Specifies notifications about oversized LSPs that result in flooding failures. manual-address-drop: Specifies notifications about manually configured area addresses that have been dropped. max-seq-exceeded: Specifies notifications about LSPs with exceeded serial numbers. maxarea-mismatch: Specifies notifications about mismatches in maximum area address values.
avoid-feedback: Avoids learning summary routes by route calculation. generate_null0_route: Generates the Null 0 route to avoid routing loops. level-1: Summarizes only the routes redistributed to Level-1. level-1-2: Summarizes the routes redistributed to both Level-1 and Level-2. level-2: Summarizes only the routes redistributed to Level-2. tag tag: Specifies a management tag in the range of 1 to 4294967295. Usage guidelines If no level is specified, only level-2 routes are summarized.
level-2: Applies the intervals to Level-2. If no level is specified, the specified intervals apply to both Level-1 and Level-2. Usage guidelines By adjusting the LSP generation interval, you can prevent bandwidth and router resources from being over consumed due to frequent topology changes. When network changes are not frequent, the minimum-interval is adopted.
Related commands timer lsp-refresh timer lsp-refresh Use timer lsp-refresh to configure the LSP refresh interval. Use undo timer lsp-refresh to restore the default. Syntax timer lsp-refresh seconds undo timer lsp-refresh Default The default LSP refresh interval is 900 seconds. Views IS-IS view Predefined user roles network-admin Parameters seconds: Specifies the LSP refresh interval in the range of 1 to 65534 seconds.
Default The maximum interval is 5 seconds, the minimum interval is 50 milliseconds, and the incremental interval is 200 milliseconds. Views IS-IS view Predefined user roles network-admin Parameters maximum-interval: Specifies the maximum SPF calculation interval in the range of 1 to 120 seconds. minimum-interval: Specifies the minimum SPF calculation interval in the range of 10 to 60000 milliseconds.
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. system-view [Sysname] isis 1 [Sysname-isis-1] virtual-system 2222.2222.
BGP commands address-family ipv4 Use address-family ipv4 to create and enter BGP IPv4 unicast address family view or BGP-VPN IPv4 unicast address family view. Use undo address-family ipv4 to remove all configurations in BGP IPv4 unicast address family view or BGP-VPN IPv4 unicast address family view. Syntax address-family ipv4 [ unicast ] undo address-family ipv4 [ unicast ] Default The BGP IPv4 unicast address family view or the BGP-VPN IPv4 unicast address family view is not created.
address-family ipv6 Use address-family ipv6 to create and enter BGP IPv6 unicast address family view or BGP-VPN IPv6 unicast address family view. Use undo address-family ipv6 to remove all configurations in BGP IPv6 unicast address family view or BGP-VPN IPv6 unicast address family view. Syntax address-family ipv6 [ unicast ] undo address-family ipv6 [ unicast ] Default The BGP IPv6 unicast address family view or BGP-VPN IPv6 unicast address family view is not created.
Syntax advertise-rib-active undo advertise-rib-active Default BGP advertises optimal routes in the BGP routing table, regardless of whether they are optimal in the IP routing table.
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 Predefined user roles network-admin Parameters ip-address: Specifies a summary address. mask: Specifies a mask for the summary address, in dotted decimal notation. mask-length: Specifies a mask length for the summary address, in the range of 0 to 32. ipv6-address: Specifies an IPv6 summary address.
Table 69 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 because 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.
Default Load balancing is not enabled. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view Predefined user roles network-admin Parameters number: Specifies the maximum number of BGP ECMP routes for load balancing, in the range of 1 to 8. When it is set to 1, load balancing is disabled. Usage guidelines Unlike IGP, BGP has no explicit metric for making load balancing decision.
Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view Predefined user roles network-admin Examples # In BGP IPv4 unicast address family view, ignore AS_PATH in route selection. system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] bestroute as-path-neglect # In BGP-VPN IPv6 unicast address family view, ignore AS_PATH in route selection.
Examples # In BGP IPv4 unicast address family view, enable MED comparison for routes on a per-AS basis. system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] bestroute compare-med # In BGP-VPN IPv4 unicast address family view, enable MED comparison for routes on a per-AS basis.
Examples # In BGP IPv4 unicast address family view, enable MED comparison for routes received from confederation peers. system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] bestroute med-confederation # In BGP-VPN IPv4 unicast address family view, enable MED comparison for routes received from confederation peers.
system-view [Sysname] bgp 100 [Sysname-bgp] compare-different-as-med Use compare-different-as-med to enable MED comparison for routes from peers in different ASs. Use undo compare-different-as-med to disable the comparison. Syntax compare-different-as-med undo compare-different-as-med Default The comparison is disabled.
confederation id Use confederation id to configure a confederation ID. Use undo confederation id to remove the specified confederation ID. Syntax confederation id as-number undo confederation id Default No confederation ID is configured. Views BGP view Predefined user roles network-admin Parameters as-number: Specifies an AS number that identifies the confederation, in the range of 1 to 4294967295. Usage guidelines You can split an AS into several sub-ASs, and each sub-AS remains fully meshed.
Related commands • confederation nonstandard • confederation peer-as confederation nonstandard Use confederation nonstandard to enable compatibility with routers not compliant with RFC 3065 in the confederation. Use undo confederation nonstandard to restore the default. Syntax confederation nonstandard undo confederation nonstandard Default The device is compatible with only routers compliant with RFC 3065 in the confederation.
Default No confederation peer sub-ASs are specified. Views BGP view Predefined user roles network-admin Parameters as-number-list: Specifies a sub-AS number list. Up to 32 sub-ASs can be configured in one command line. The expression is as-number-list = as-number &<1-32>. The as-number argument specifies a sub-AS number in the range of 1 to 4294967295, and &<1-32> indicates up to 32 numbers can be specified.
Parameters half-life-reachable: Specifies a half-life for active routes, in the range of 1 to 45 minutes. By default, the value is 15 minutes. half-life-unreachable: Specifies a half-life for suppressed routes, in the range of 1 to 45 minutes. By default, the value is 15 minutes. reuse: Specifies a reuse threshold value for suppressed routes, in the range of 1 to 20000. A suppressed route whose penalty value decreases under the value is reused. By default, the reuse value is 750.
default local-preference Use default local-preference to configure a default local preference. Use undo default local-preference to restore the default. Syntax default local-preference value undo default local-preference Default The default local preference is 100.
default med Use default med to specify a default MED value. Use undo default med to restore the default. Syntax default med med-value undo default med Default The default med-value is 0. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view Predefined user roles network-admin Parameters med-value: Specifies the default MED value in the range of 0 to 4294967295.
default-route imported Use default-route imported to enable default route redistribution into the BGP routing table. Use undo default-route imported to restore the default. Syntax default-route imported undo default-route imported Default Default route redistribution is not enabled.
# In BGP-VPN IPv6 unicast address family view, enable default route redistribution from OSPFv3 process 1 into the IPv6 BGP routing table.
Field Description Reuse value Reuse threshold. Related commands dampening display bgp dampening parameter ipv6 unicast Use display bgp dampening parameter ipv6 unicast to display BGP IPv6 unicast route dampening parameters.
display bgp group ipv4 unicast Use display bgp group ipv4 unicast to display BGP IPv4 unicast peer group information. Syntax display bgp group ipv4 [ unicast ] [ vpn-instance vpn-instance-name ] [ group-name ] Views Any view Predefined user roles network-admin network-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.
Routing policy configured: No routing policy is configured Members: Peer 1.1.1.10 AS MsgRcvd 600 0 MsgSent OutQ PrefRcv Up/Down 0 0 State 0 00:00:55 Established Table 72 Command output Field Description BGP peer group Name of the BGP peer group. Remote AS AS number of the peer group. Type of the peer groups: Type • external—IBGP peer group. • internal—EBGP peer group. Maximum number of prefixes allowed Maximum number of routes allowed to learn from the peer.
Syntax display bgp group ipv6 [ unicast ] [ vpn-instance vpn-instance-name ] [ group-name ] Views Any view Predefined user roles network-admin network-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, the command displays BGP IPv6 unicast peer group information for the public network.
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 73 Command output Field Description BGP peer group Name of the BGP peer group. Remote AS AS number of the peer group. Type of the peer groups: Type • external—IBGP peer group. • internal—EBGP peer group.
display bgp network Use display bgp network to display information about routes advertised by the network command and shortcut routes configured by the network short-cut command. Syntax display bgp network { ipv4 | ipv6 } [ unicast ] [ vpn-instance vpn-instance-name ] Views Any view Predefined user roles network-admin network-operator Parameters ipv4: Displays IPv4 address family information. ipv6: Displays IPv6 address family information.
# Display information about routes advertised by the network command and shortcut routes configured by the network short-cut command in the IPv4 unicast address family in VPN instance vpn1. display bgp network ipv4 vpn-instance vpn1 BGP local router ID: 192.168.1.135 Local AS number: 100 Network Mask Route-policy Short-cut 50.1.1.0 255.255.255.0 No 40.1.1.0 255.255.255.
2 0 100i 3 0 100i 1 0 ? 1 0 ? 1 0 ? Table 75 Command output Field Description RefCount Number of BGP routes with these path attributes. MED MED attribute value. AS_PATH and ORIGIN attributes of the route: • AS_PATH attribute—Records the ASs the route has passed to avoid routing loops. • ORIGIN attribute—Identifies the origin of the route: Path/Origin { { { i—Originated in the AS. The origin of summary routes and routes advertised with the network command is IGP.
The command with the unicast keyword has the same effect as that without the unicast keyword. Examples # Display brief information about all BGP IPv4 unicast peers for the public network. display bgp peer ipv4 BGP local router ID: 192.168.100.1 Local AS number: 100 Total number of peers: 1 Peer 10.2.1.
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 Routing policy configured: No routing policy is configured Table 77 Command output Field Description Peer IP address of the peer. Local Local router ID.
Field Description Minimum time between advertisements Minimum route advertisement interval in seconds. Optional capabilities Optional capabilities supported by the local end. Peer Preferred Value Preferred value specified for the routes from the peer. BFD Whether BFD is enabled to detect the link to the BGP peer. Routing policy configured for the peer. Routing policy configured If no routing policy is specified, this field displays No routing policy is configured.
Syntax display bgp peer ipv6 [ unicast ] [ group-name log-info | ip-address { log-info | verbose } | ipv6-address { log-info | verbose } | verbose ] display bgp peer ipv6 [ unicast ] vpn-instance vpn-instance-name [ group-name log-info | ipv6-address { log-info | verbose } | verbose ] Views Any view Predefined user roles network-admin network-operator Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. ip-address: Specifies a peer by its IP address.
Field Description MsgRcvd Number of messages received. MsgSent Number of messages sent. OutQ Number of messages to be sent. PrefRcv Number of prefixes received. Up/Down Lasting time of the current BGP session state. State Current state of the BGP session between the local router and the peer. # Display detailed information about BGP IPv6 unicast peer 1::2 for the public network. display bgp peer ipv6 1::2 verbose Peer: 1::2 Local: 192.168.1.
Field Description Local Local router ID. BGP connection type between the local router and the peer: Type • IBGP link—IBGP connection. • EBGP link—EBGP connection. remote router ID Router ID of the peer. BGP current state Current state of the BGP session between the local router and the peer. Up for Lasting time of the BGP session. 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.
Date Time State Notification Error/SubError 22-Nov-2011 09:31:12 Up Table 81 Command output Field Description Peer IP address of the peer. Date Date on which the Notification was sent or received. Time Time at which the Notification was sent or received. BGP session state: State • Up—The BGP session is in Established state. • Down—The BGP session is down. Error code of the Notification, indicating the cause of why the BGP session is down.
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 Network de 20.1.1.0/24 From Reuse Path/Ogn 10.1.1.2 00:56:27 100i Table 82 Command output Field Description Status codes: Status codes • • • • • • • • * – valid—Valid route. > – best—Best route. d – damped—Dampened route. h – history—History route. s – suppressed—Suppressed route. S – Stale—Stale route.
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 dampened BGP IPv6 unicast routes for the public network. Usage guidelines The command with the unicast keyword has the same effect as that without the unicast keyword. Examples # Display dampened BGP IPv6 unicast routes.
Field Description Origin of the route: • i – IGP—Originated in the AS. The origin of summary routes and routes Origin advertised with the network command is IGP. • e – EGP—Learned through EGP. • ?– incomplete—Unknown origin. The origin of routes redistributed from IGP protocols is INCOMPLETE. Network Destination network address. From IP address from which the route was received. Reuse Reuse time of the 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 IPv4 unicast route flap statistics. Usage guidelines When you execute the display bgp routing-table flap-info ipv4 unicast command: • If the network-address, mask, and mask-length arguments are not specified, the command displays flap statistics of all BGP IPv4 unicast routes for the public network or the specified VPN.
Field Description Origin of the route: • i – IGP—Originated in the AS. The origin of summary routes and Origin routes advertised with the network command is IGP. • e – EGP—Learned through EGP. • ?– incomplete—Unknown origin. The origin of routes redistributed from IGP protocols is INCOMPLETE. Network Destination network address. From Source IP address of the route. Flaps Number of routing flaps. Duration Duration time of the flap route. Reuse Reuse time of the route.
Usage guidelines The command with the unicast keyword has the same effect as that without the unicast keyword. When you execute the display bgp routing-table flap-info ipv6 unicast command without specifying any argument, the command displays flap statistics of all BGP IPv6 unicast routes for the public network. Examples # 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.
Field Description Flaps Number of routing flaps. Duration Duration time of the flap route. Reuse Reuse time of the route. AS_PATH and ORIGIN attributes of the route: Path/Ogn • AS_PATH attribute—Records the ASs the route has passed to avoid routing loops. • ORIGIN attribute—Identifies the origin of the route.
If the network-address mask or network-address mask-length argument is specified and the longest-match keyword is not specified, the command displays detailed information about the BGP IPv4 unicast route that matches both the specified destination network address and the mask (or mask length). • The command with the unicast keyword has the same effect as that without the unicast keyword. Examples # Display brief information about all BGP IPv4 unicast routes for the public network.
Field Description AS_PATH and ORIGIN attributes of the route: • AS_PATH—Records the ASs the route has passed to avoid routing loops. • ORIGIN—Identifies the origin of the route. Path/Ogn # Display detailed information about BGP IPv4 unicast routes destined to network 10.2.1.0/24 for the public network. display bgp routing-table ipv4 10.2.1.0 24 BGP local router ID: 192.168.100.1 Local AS number: 100 Paths: 2 available, 1 best BGP routing table information of 10.2.1.0/24: Imported route.
Field Description Origin of the route: • igp—Originated in the AS. The origin of summary routes and routes Origin advertised with the network command is IGP. • egp—Learned through EGP. • incomplete—Unknown origin. The origin of routes redistributed from IGP protocols is INCOMPLETE. BGP path attributes: Attribute value • • • • MED—MED value. localpref—Local preference value. pref-val—Preferred value. pre—Route preference. Current state of the route: State • • • • • • valid. internal. external.
Usage guidelines • If the mask and mask-length arguments are not specified, the system ANDs the specified network address with the mask of a route. If the result matches the network address of the route, the command displays advertisement information for the route. • If the mask or mask-length argument is specified, the command displays advertisement information for the BGP IPv4 unicast route that matches both the specified destination network address and the mask (or mask length).
Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, the command displays BGP IPv4 unicast routes permitted by an AS path list for the public network. as-path-acl-number: Specifies an AS path list by its number in the range of 1 to 256. Usage guidelines The command with the unicast keyword has the same effect as that without the unicast keyword.
comm-list-name: Specifies a community list by its name, a string of 1 to 63 characters. whole-match: Displays routes exactly matching the specified community list. Without this keyword, the command displays routes whose COMMUNITY attributes comprise the specified community list. adv-community-list-number: Specifies an advanced community list by its number in the range of 100 to 199. Usage guidelines The command with the unicast keyword has the same effect as that without the unicast keyword.
advertised-routes: Displays routing information advertised to the specified peer. received-routes: Displays routing information received from the specified peer. network-address: Specifies the IP address of the destination network. mask: Specifies the mask of the destination network, in dotted decimal notation. mask-length: Specifies a mask length in the range of 0 to 32. statistics: Displays route statistics.
* e 10.2.1.0/24 10.2.1.2 0 0 200i e 192.168.1.0 10.2.1.2 0 0 200i For command output, see Table 86. # Display statistics of BGP IPv4 unicast routes advertised to BGP peer 10.2.1.2 for the public network. display bgp routing-table ipv4 peer 10.2.1.2 advertised-routes statistics Advertised routes total: 2 # Display statistics of BGP IPv4 unicast routes received from BGP peer 10.2.1.2 for the public network. display bgp routing-table ipv4 peer 10.2.1.
display bgp routing-table ipv6 unicast Use display bgp routing-table ipv6 unicast to display BGP IPv6 unicast routing information. Syntax display bgp routing-table ipv6 [ unicast ] [ vpn-instance vpn-instance-name ] [ network-address prefix-length | advertise-info ] ] 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.
Table 90 Command output Field Description Status codes: • • • • • • • • Status codes * – valid—Valid route. > – best—Best route. d – damped—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. • ?– incomplete—Unknown origin.
Origin : igp Attribute value : MED 0, pref-val 0 State : valid, external, best, From : 1::1 (192.168.1.136) Relay nexthop : 1::1 Original nexthop: 1::1 OutLabel : NULL AS-path : 100 Origin : igp Attribute value : MED 0, pref-val 0 State : valid, external, Table 91 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.
display bgp routing-table ipv6 2:: 64 advertise-info BGP local router ID: 192.168.1.136 Local AS number: 100 Paths: 1 best BGP routing table information of 2::/64: Advertised to peers (2 in total): 10.1.1.2 1::2 Table 92 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.
Total number of routes: 2 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 : 2:: PrefixLen : 64 NextHop : 1::2 LocPrf : PrefVal : 0 OutLabel : NULL MED : Path/Ogn: 100i * >e Network : 3:: PrefixLen : 64 NextHop : 1::2 LocPrf : PrefVal : 0 OutLabel : NULL MED : Path/Ogn: 100i For command output, see Table 90.
adv-community-list-number: Specifies an advanced community list by its number in the range of 100 to 199. Usage guidelines The command with the unicast keyword has the same effect as that without the unicast keyword. Examples # Display BGP IPv6 unicast routing information matching BGP community list 100. display bgp routing-table ipv6 community-list 100 Total number of routes: 2 BGP local router ID is 192.168.1.
Examples # Display incoming labels for all BGP IPv6 unicast routing information. display bgp routing-table ipv6 inlabel Total number of routes: 2 BGP local router ID is 2.2.2.
Usage guidelines The command with the unicast keyword has the same effect as that without the unicast keyword. Examples # Display outgoing labels for all BGP IPv6 unicast routing information. display bgp routing-table ipv6 outlabel Total number of routes: 2 BGP local router ID is 2.2.2.
network-operator Parameters ip-address: Specifies the IP address of a peer. ipv6-address: Specifies the IPv6 address of a peer. advertised-routes: Displays routing information advertised to the specified peer. received-routes: Displays routing information received from the specified peer. network-address prefix-length: Specifies the destination network address and prefix length. The value range for the prefix-length argument is 0 to 128.
Path/Ogn: 100i For command output, see Table 90. # Display statistics of BGP IPv6 unicast routes advertised to BGP peer 1::1. display bgp routing-table ipv6 peer 1::1 advertised-routes statistics Advertised routes total: 1 # Display statistics of BGP IPv6 unicast routes received from BGP peer 1::1.
display bgp update-group ipv4 unicast Use display bgp update-group ipv4 unicast to display information about BGP update groups for the BGP IPv4 unicast address family.
Type: EBGP link 4-byte AS number: Supported Minimum time between advertisements: 30 seconds OutQ: 0 Members: 2 1.1.1.2 1.1.1.3 Table 96 Command output Field Description Update-group ID ID of the update group. BGP link type: Type • • • • IBGP link. EBGP link. Confed IBGP link—Confederation IBGP link. Confed EBGP link—Confederation EBGP link. Label capability: Supported The peers in the update group support labeled routes.
display bgp update-group ipv6 unicast Use display bgp update-group ipv6 unicast to display information about BGP update groups for the BGP IPv6 unicast address family.
Minimum time between advertisements: 30 seconds OutQ: 0 Members: 2 1::2 1::3 # Display update group information for the BGP IPv6 unicast peer 1.1.1.2 in the public network. display bgp update-group ipv6 1.1.1.2 Update-group ID: 0 Type: EBGP link Label capability: Supported 4-byte AS number: Supported Minimum time between advertisements: 30 seconds OutQ: 0 Members: 2 1.1.1.2 1.1.1.3 Table 97 Command output Field Description Update-group ID ID of the update group.
Field Description Export prefix list: prefix-list-name Prefix list used to filter BGP routes advertised to peers in the update group. Export route policy: route-policy-name Routing policy used to filter BGP routes advertised to peers in the update group. Export filter-policy: ACL acl-number ACL used to filter BGP routes advertised to peers in the update group. OutQ Number of prefixes to be advertised to peers in the update group. Members Number and IP addresses of peers in the update group.
Syntax In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view/BGP VPNv4 address family view: filter-policy { acl-number | prefix-list prefix-list-name } export [ protocol process-id ] undo filter-policy export In BGP IPv6 unicast address family view/BGP-VPN IPv6 unicast address family view/BGP VPNv6 address family view: filter-policy { acl6-number | prefix-list ipv6-prefix-name } export [ protocol process-id ] undo filter-policy export Default Advertised BGP routes are not filtere
• To filter routes with a specific destination address, use a basic ACL (2000 to 2999) or an advanced ACL that contain rules defined with the rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard command. • 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.
Use undo filter-policy import to remove the filter..
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.
[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.
• 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. internal: Creates an IBGP peer group.
[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.
Usage guidelines The import-route command cannot redistribute default IGP routes. To redistribute default IGP routes, use the default-route imported command together with the import-route command. Only active routes can be redistributed. You can use the display ip routing-table protocol or display ipv6 routing-table protocol command to view route state information. The ORIGIN attribute of routes redistributed by the import-route command is INCOMPLETE.
Syntax ip vpn-instance vpn-instance-name undo ip vpn-instance vpn-instance-name Views BGP view Predefined user roles network-admin Parameters vpn-instance-name: Specifies a VPN instance by its name, a case-sensitive string of 1 to 31 characters. Usage guidelines After you create a BGP peer in BGP-VPN instance view, the BGP routes learned from the peer are added into the routing table of the specified VPN instance.
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. To view the log information, use the display bgp peer ipv4 unicast log-info command or the display bgp peer ipv6 unicast log-info command. The logs are sent to the information center of the device. The output rules of the logs (whether to output the logs and where to output) are determined by the information center configuration.
Parameters ip-address: Specifies an IPv4 network address. If the mask or mask-length is not specified, natural mask is used. mask: Specifies a mask in dotted decimal notation. mask-length: Specifies a mask length in the range of 0 to 32. ipv6-address: Specifies an IPv6 network address. prefix-length: Specifies a prefix length in the range of 0 to 128.
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.
[Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] network 10.0.0.0 255.255.0.0 short-cut # In BGP-VPN IPv6 unicast address family view, increase the preference of EBGP route 10::/16. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] address-family ipv6 unicast [Sysname-bgp-ipv6-vpn1] network 10:: 16 short-cut Related commands preference peer advertise-community Use peer advertise-community to advertise the COMMUNITY attribute to a peer or peer group.
After you execute the peer advertise-community command, routing updates advertised to the peer carry the COMMUNITY attribute. After you execute the undo peer advertise-community command, BGP, upon receiving a route with the COMMUNITY attribute, removes the COMMUNITY attribute before sending the route to the peer or peer group. Examples # In BGP IPv4 unicast address family view, advertise the COMMUNITY attribute to peer group test.
Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast address family view Predefined user roles network-admin Parameters 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.
Related commands • apply extcommunity • if-match extcommunity • ip extcommunity-list peer allow-as-loop Use peer allow-as-loop to allow a local AS number to exist in the AS_PATH attribute of routes from a peer or peer group, and to configure the number of times the local AS number can appear. Use undo peer allow-as-loop to restore the default.
Usage guidelines By default, BGP does not receive routes that contain the local AS number in the AS_PATH attribute to avoid routing loops. However, in certain network environments (a Hub&Spoke network in MPLS L3VPN, for example), the AS_PATH attribute of a route from a peer must be allowed to contain the local AS number. Otherwise, the route cannot be advertised correctly.
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. If the AS numbers of the peer and the local router are the same, the peer is an IBGP peer. If they are different, the peer is an EBGP peer. Usage guidelines You can also create a peer and add it to a peer group by using the peer group command.
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. Usage guidelines • This command applies to only a peer group with no peers in it.
Default No AS path list is specified for filtering. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP-VPNv4 address family view, BGP IPv6 unicast address family view Predefined user roles network-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. ip-address: Specifies a peer by its IPv4 address. The peer must have been created.
• ip as-path • peer filter-policy • peer prefix-list • peer route-policy peer bfd Use peer bfd to enable BFD for the link to a BGP peer. Use undo peer bfd to restore the default. Syntax peer { ip-address | ipv6-address } bfd undo peer { ip-address | ipv6-address } bfd Default BFD is disabled. Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters ip-address: Specifies a peer by its IP address. The peer must have been created.
system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] peer 2::2 bfd Related commands • display bgp peer ipv4 unicast • display bgp peer ipv6 unicast • display bfd session (High Availability Command Reference) peer capability-advertise conventional Use peer capability-advertise conventional to disable BGP multi-protocol extension and route refresh for a peer or peer group.
[Sysname-bgp] peer 1.1.1.1 capability-advertise conventional # In BGP-VPN instance view, disable multi-protocol extension and route refresh for peer 1::1.
Examples # In BGP view, enable BGP route refresh for peer 1.1.1.1. system-view [Sysname] bgp 100 [Sysname-bgp] peer 1.1.1.1 as-number 100 [Sysname-bgp] peer 1.1.1.1 capability-advertise route-refresh # In BGP-VPN instance view, enable BGP route refresh for peer 1::1.
Usage guidelines BGP supports 4-byte AS numbers. The 4-byte AS number occupies four bytes, in the range of 1 to 4294967295. By default, a device sends an Open message to the peer device for session establishment. The Open message indicates that the device supports 4-byte AS numbers. If the peer device supports 2-byte AS numbers instead of 4-byte AS numbers, the session cannot be established. To resolve this issue, enable the 4-byte AS number suppression function.
Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. ip-address: Specifies a peer by its IP address. The peer must have been created. ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created. interface-type interface-number: Specifies an interface by its type and number.
peer default-route-advertise Use peer default-route-advertise to advertise a default route to a peer or peer group. Use undo peer default-route-advertise to disable default route advertisement to a peer or peer group.
[Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] peer test default-route-advertise # In BGP-VPN IPv4 unicast address family view, advertise a default route to peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] address-family ipv4 unicast [Sysname-bgp-ipv4-vpn1] peer test default-route-advertise # In BGP IPv6 unicast address family view, advertise a default route to peer group test.
[Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] peer test description ISP1 peer ebgp-max-hop Use peer ebgp-max-hop to enable BGP to establish an EBGP session to an indirectly-connected peer or peer group and specify the maximum hop count. Use undo peer ebgp-max-hop to restore the default.
peer enable Use peer enable to enable BGP to exchange routing information for an address family with a peer or peer group. Use undo peer enable to disable BGP from exchanging routing information for an address family with a peer or peer group.
• In BGP VPNv4 address family view, the command enables the capability to exchange VPNv4 routing information. In an MPLS L3VPN network, execute the command on PE devices in BGP VPNv4 address family view. • In BGP-VPN VPNv4 address family view, the command enables the capability to exchange VPNv4 routing information.
[Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] address-family ipv6 unicast [Sysname-bgp-ipv6-vpn1] peer 1::1 enable # In BGP L2VPN address family view, enable BGP to exchange L2VPN information with peer 1::1. system-view [Sysname] bgp 100 [Sysname-bgp] address-family l2vpn [Sysname-bgp-l2vpn] peer 1.1.1.1 enable Related commands • display bgp peer ipv4 unicast • display bgp peer ipv6 unicast peer fake-as Use peer fake-as to advertise a fake AS number to a peer or peer group.
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.
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. export: Filters routes advertised to the peer/peer group. import: Filters routes received from the peer/peer group.
peer group Use peer group to add a peer to a peer group. Use undo peer group to delete a specific 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. Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters ip-address: Specifies a peer by its IP address. ipv6-address: Specifies a peer by its IPv6 address.
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. All peers in the group share the same AS number. If you have not specified the AS number for a peer group, peers added to it can use their own AS numbers. After you add a peer to a peer group, you must use the peer enable command to enable BGP to exchange routing information with the peer group. Examples # In BGP view, add peer 10.1.1.
Views BGP view, BGP-VPN instance view Predefined user roles network-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. ip-address: Specifies a peer by its IP address. The peer must have been created. ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created.
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 After receiving a route from a client, a BGP route reflector adds the ORIGINATOR_ID attribute that contains the router ID of that client into the route and reflects the route to other clients.
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.
Use undo peer keep-all-routes to restore the default.
[Sysname-bgp] address-family ipv6 unicast [Sysname-bgp-ipv6] peer 1::1 keep-all-routes Related commands • peer capability-advertise route-refresh • refresh bgp ipv4 unicast • refresh bgp ipv6 unicast peer label-route-capability Use peer label-route-capability to enable BGP to exchange labeled routes with a peer or peer group. Use undo peer label-route-capability to disable BGP from exchanging labeled routes with a peer or peer group.
# 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. system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv6 [Sysname-bgp-ipv6] peer 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: peer { group-name | ipv6-address } preferred-value value undo peer { group-name | ipv6-address } preferred-value Default The preferred value is 0.
[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: peer { group-name | ip-address } public-as-only undo peer { group-name | ip-address } public-as-only In BGP IPv6 unicast 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 IPv6 unicast address family view: peer { group-name | ipv6-address } public-as-
system-view [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.
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. In an AS, a router acts as a route reflector, and other routers act as clients connecting to the route reflector. The route reflector forwards the routing information received from a client to other clients.
Syntax In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view/BGP VPNv4 address family view/BGP VPNv6 address family view: peer { group-name | ip-address } route-limit prefix-number [ { alert-only | reconnect reconnect-time } | percentage-value ] * undo peer { group-name | ip-address } route-limit In BGP IPv6 unicast address family view: peer { group-name | ip-address | ipv6-address } route-limit prefix-number [ { alert-only | reconnect reconnect-time } | percentage-value ] * undo
# In BGP-VPN IPv4 unicast address family view, specify the maximum number of routes that can be received from peer 1.1.1.1 to 10000, and configure the router to tear down the connection to the peer if the number is exceeded. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] address-family ipv4 unicast [Sysname-bgp-ipv4-vpn1] peer 1.1.1.
Predefined user roles network-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. ip-address: Specifies a peer by its IP address. The peer must have been created. ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created. route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.
Use undo peer route-update-interval to restore the default. Syntax peer { group-name | ip-address | ipv6-address } route-update-interval interval undo peer { group-name | ip-address | ipv6-address } route-update-interval Default The interval for sending the same update to an IBGP peer is 15 seconds and the interval for sending the same update to an EBGP peer is 30 seconds.
Syntax peer { group-name | ip-address | ipv6-address } substitute-as undo peer { group-name | ip-address | ipv6-address } substitute-as Default The AS number of a peer or peer group in the AS_PATH attribute is not replaced. 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.
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. keepalive keepalive: Sets a keepalive interval in the range of 0 to 21845 seconds.
# In BGP-VPN instance view, configure both the keepalive interval and holdtime for peer group test as 0 seconds, indicating the session will never time out. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] peer test timer keepalive 0 hold 0 Related commands • display bgp peer ipv4 unicast • display bgp peer ipv6 unicast • timer preference Use preference to configure preferences for BGP routes. Use undo preference to restore the default.
Examples # In BGP IPv4 unicast address family view, configure preferences for EBGP, IBGP, and local routes as 20, 20, and 200. system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] preference 20 20 200 # In BGP IPv4 unicast address family view, configure the preference for BGP route 1.1.1.0/24 as 200. system-view [Sysname] ip prefix-list route permit 1.1.1.
between-clients command to disable route reflection instead of modifying network configuration or changing network topology. After route reflection is disabled between clients, routes can still be reflected between a client and a non-client. Examples # In BGP IPv4 unicast address family view, disable route reflection between clients.
Default A route reflector uses its router ID as the cluster ID. 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 VPNv6 address family view, BGP L2VPN address family view Predefined user roles network-admin Parameters cluster-id: Specifies the cluster ID in the format of an integer, in the range of 1 to 4294967295.
[Sysname-bgp-ipv6] reflector cluster-id 80 # In BGP L2VPN 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] address-family l2vpn [Sysname-bgp-l2vpn] reflector cluster-id 80 Related commands • peer reflect-client • reflect between-clients refresh bgp ipv4 unicast Use refresh bgp ipv4 unicast to manually soft-reset BGP sessions for the IPv4 unicast address family.
To apply a new policy to outbound BGP sessions, execute this command with the export keyword. The router uses the new policy to filter routing information and sends the routing information that passes the filtering to the BGP peers. To apply a new policy to inbound sessions, execute this command with the import keyword. The router advertises a route-refresh message to the peer and the peer resends its routing information to the router.
import: Performs inbound soft-reset (filters routes received from the specified peer or peer group by using the new configuration). vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, this command performs manual soft-reset on BGP sessions for the public network IPv6 unicast address family.
reset bgp dampening ipv4 unicast Use reset bgp dampening ipv4 unicast to clear BGP IPv4 unicast route dampening information and release the suppressed BGP IPv4 unicast routes. Syntax reset bgp dampening ipv4 [ unicast ] [ vpn-instance vpn-instance-name ] [ network-address [ mask | mask-length ] ] Views User 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.
reset bgp dampening ipv6 unicast Use reset bgp dampening ipv6 unicast to clear BGP IPv6 unicast route dampening information and release suppressed BGP IPv6 unicast routes. Syntax reset bgp dampening ipv6 [ unicast ] [ vpn-instance vpn-instance-name ] [ network-address prefix-length ] Views User 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.
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, this command clears the flap statistics of the BGP IPv4 unicast routes 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.
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, this command clears the flap statistics of the BGP IPv6 unicast routes 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.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, this command resets the BGP sessions for IPv4 unicast address family for the public network. Usage guidelines To apply a new route selection policy, use this command to reset BGP sessions. BGP re-establishes the BGP sessions, advertises routes, and applies the new policy to routes. This operation breaks down BGP sessions for a short while.
reset bgp all ipv6 router id (system view) Use router id to configure a global router ID. Use undo router id to remove the global router ID. Syntax router id router-id 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.
Use undo router-id to remove the router ID for BGP. Syntax router-id router-id undo router-id Default BGP uses the global router ID configured by router id in system view. Views BGP view Predefined user roles network-admin Parameters router-id: Specifies a router ID for BGP, in IP address format. Usage guidelines To run BGP, a router must have a router ID, an unsigned 32-bit integer that uniquely identifies the router in the AS.
Views BGP-VPN instance view Predefined user roles network-admin Parameters router-id: Specifies a router ID in IP address format. auto-select: Automatically selects a router ID for the BGP VPN instance. Usage guidelines To run BGP, a VPN instance must have a router ID, 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.
Default SNMP notifications for BGP are enabled. Views System view Predefined user roles network-admin Usage guidelines This feature enables generating SNMP notifications for BGP as defined in RFC 4273 upon neighbor state changes. The SNMP notifications include the neighbor address, the code and subcode of the most recent error, and the current neighbor state. The generated SNMP notifications are sent to the SNMP module.
[Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] summary automatic # In BGP-VPN IPv4 unicast address family view, configure automatic route summarization for redistributed IGP subnet routes. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] address-family ipv4 unicast [Sysname-bgp-ipv4-vpn1] summary automatic Related commands • aggregate • import-route timer Use timer to configure a BGP keepalive interval and holdtime.
keepalive interval is configured as 0, the actual keepalive interval is the smaller one between one third of the holdtime and the keepalive interval. The timer command takes effect for only new BGP sessions. After the timer command is executed, no peer session is closed at once. The configured holdtime is used for negotiation in session reestablishment (for example, when you reset the BGP session). Examples # In BGP view, configure the keepalive interval and holdtime as 60s and 180s.
Policy-based routing commands 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 access-vpn vpn-instance vpn-instance-name&<1-n> undo apply access-vpn vpn-instance [ vpn-instance-name&<1-n> ] Default No VPN instance is specified for a node.
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. This command applies when the apply access-vpn vpn-instance, apply next-hop, apply output-interface, apply default-next-hop, and apply default-output-interface clauses are not configured or become invalid.
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 depends on the device model.
&<1-n>: Indicates that the argument before it can be entered up to n times. The value of n depends on the device model. 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 depends on the device model. The default output interface must be P2P type.
Setting the DF bit to 1 prohibits packet fragmentation. 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.
# Enable load sharing among multiple output interfaces. system-view [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.
direct: Specifies that the next hop must be directly connected to take effect. 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 depends on the device model. 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 depends on the device model.
You can specify up to m output interfaces for a node. The value of m depends on the device model. The output interface must be P2P type. Using a non-P2P output interface (broadcast and NBMA interfaces such as Ethernet and virtual-template interfaces) can result in forwarding failures when the interface has multiple next hops. With an output interface specified, the undo apply output-interface command removes the output interface.
Precedence value Precedence type 3 flash 4 flash-override 5 critical 6 internet 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.
Field Description apply next-hop Specify a next hop for permitted packets. Related commands policy-based-route display ip policy-based-route interface Use display ip policy-based-route interface to display interface PBR configuration and statistics.
Matched: 0 Total matched: 0 display ip policy-based-route interface ethernet 1/1 Policy based routing information for interface Ethernet1/1: Policy name: aaa node 0 deny(not support): Matched: 0 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 Ethernet1/2 track 1 (down) apply output-interface Ethernet1/3 track 2 (inactive) Matched: 0 node 5 permit: if-match acl 3101 apply next-hop 1.1.1.
Field Description Number of successful matches on the node (no statistics resource indicates insufficient statistics resources). Matched: 0 (no statistics resource) For a global interface (with only a one-dimensional interface number, for example, VLAN-interface 10), no statistics resource can be displayed only when you specify the slot slot-number option for the command. Total matched Total number of successful matches on all nodes.
if-match acl 3101 apply next-hop 1.1.1.1 Matched: 0 Total matched: 0 Table 101 Command output Field Description Policy based routing information for local Local PBR configuration and statistics. node 0 deny/node 2 permit Match mode of the node: permit or deny. if-match acl Match packets against the ACL. apply next-hop Specify a next hop for permitted packets. Matched: 0 Number of successful matches on the node. Total matched Total number of successful matches on all nodes.
if-match acl Use if-match acl to configure an ACL match criterion. Use undo if-match acl to remove the ACL match criterion. Syntax if-match acl { acl-number | name acl-name } undo if-match acl Default No ACL match criterion is configured. Views Policy node view Predefined user roles network-admin Parameters acl-number: Specifies an ACL by its number in the range of 2000 to 2999 for a basic ACL and in the range of 3000 to 3999 for an advanced ACL.
Predefined user roles network-admin Parameters min-len: Specifies the minimum IP packet length in the range of 1 to 65535 bytes. 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.
Related commands • display ip policy-based-route setup • policy-based-route ip policy-based-route Use ip policy-based-route to configure interface PBR by applying a policy to an interface. Use undo ip policy-based-route to remove the configuration. Syntax ip policy-based-route policy-name undo ip policy-based-route Default No policy is applied to an interface.
Default No policy node is created. Views System view Predefined user roles network-admin Parameters policy-name: Specifies a policy by its name, a case-sensitive string of 1 to 19 characters. 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 a policy node by its number in the range of 0 to 65535. A smaller number has a higher priority.
If a policy is specified, the command clears the PBR statistics for the specified policy. To view PBR statistics, use the display ip policy-based-route interface command. Examples # Clear all PBR statistics.
IPv6 static routing commands delete ipv6 static-routes all Use delete ipv6 static-routes all to delete all IPv6 static routes. Syntax delete ipv6 [ vpn-instance vpn-instance-name ] static-routes all Views System view 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 route table information. Syntax display ipv6 route-static routing-table [ vpn-instance vpn-instance-name ] [ ipv6-address prefix-length ] Views Any view Predefined user roles network-admin network-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.
BkNibID: N/A TableID: 0xa Flag: 0x80d0a DbIndex: 0x1 Type: Normal TrackIndex: 0xffffffff Preference: 60 BfdMode: N/A Permanent: 0 Interface: NULL0 BkInterface: N/A BfdSrcIp: N/A BfdIfIndex: 0x0 BfdVrfIndex: 0 Label: NULL vrfIndexDst: 0 vrfIndexNH: 0 Tag: 0 ... # Display information about the IPv6 static route with destination IPv6 address 1::1/128.
Field Description BfdIfIndex Index of the interface where BFD is enabled. BfdVrfIndex Index of the VPN instance where BFD is enabled. BFD session mode: BfdMode • N/A—No BFD session is configured. • Ctrl—Control packet mode • Echo—Echo packet mode. TrackIndex NQA Track index. vrfIndexDst Index of the destination VPN. vrfIndexNH Index of the VPN to which the next hop belongs. Permanent Permanent static route flag. 1 indicates a permanent static route.
interface-type interface-number: Specifies an output interface by its type and number. If the output interface is an NBMA interface or broadcast interface (such as an Ethernet interface, a virtual template interface, or a VLAN interface), rather than a point-to-point (P2P) interface, the next hop address must be specified. next-hop-address: Specifies the next hop IPv6 address. bfd: Enables BFD to detect reachability of the static route's next hop.
Examples # Configure an IPv6 static route, with the destination address 1:1:2::/64 and next hop 1:1:3::1. 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.
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 106 Command output Field Description Public VPN-instance name/Private VPN-instance name The RIPng process runs under a public VPN instance or a specific VPN instance. RIPng process RIPng process ID. Preference RIPng preference. Checkzero Indicates whether zero field check for RIPng packet headers is enabled. Default Cost Default metric of redistributed routes. Maximum number of balanced paths Maximum number of load-balanced routes.
Table 107 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.
Destination 1::/64, via FE80::20C:29FF:FE7A:E3E4, cost 1, tag 0, AOF, 7 secs Destination 2::2/128, via FE80::20C:29FF:FE7A:E3E4, cost 1, tag 0, AOF, 7 secs # Display information of routes with specified prefix for RIPng process 1.
Field Description 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 [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+. cost cost: Specifies a metric for redistributed routes, in the range of 0 to 16. The default metric is 0. route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters. Usage guidelines The import-route bgp4+ command redistributes only EBGP routes. The import-route bgp4+ allow-ibgp command redistributes both EBGP and IBGP routes.
Related commands max-ecmp-num 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.
Predefined user roles network-admin Parameters process-id: Specifies a RIPng 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 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.
Predefined user roles network-admin Parameters process-id: Specifies a RIPng process by its ID in the range of 1 to 65535. The default value is 1. 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 RIPng process runs on the public network. Usage guidelines Before you configure global RIPng parameters, you must create a RIPng process.
Examples # Configure RIPng on Ethernet 1/1 to advertise only a default route. system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] ripng default-route only # Configure RIPng on Ethernet 1/1 to advertise a default route and other routes. system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] ripng default-route originate ripng enable Use ripng enable to enable RIPng on an interface. Use undo ripng enable to disable RIPng on an interface.
Views Interface 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 This command must reference an IPsec profile. For more information about IPsec profiles, see Security Configuration Guide. Examples # Apply IPsec profile profile001 to Ethernet 1/1.
Syntax ripng metricout value undo ripng metricout Default The additional metric of outbound routes is 1. Views Interface view Predefined user roles network-admin Parameters value: Add an additional metric to outbound routes, in the range of 1 to 16. Examples # Configure RIPng on Ethernet 1/1 to add a metric of 12 to outbound RIPng routes.
Use undo ripng split-horizon to disable the split horizon function. Syntax ripng split-horizon undo ripng 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 this function, make sure the operation is indispensable. If both poison reverse and split horizon are enabled, only the poison reverse function takes effect.
prefix-length: Specifies the prefix length of the destination IPv6 address of the summary route, in the range of 0 to 128. It indicates the number of consecutive 1s of the prefix, which defines the network ID. Usage guidelines Networks falling into the summary network will not be advertised. The cost of the summary route is the lowest cost among summarized routes. Examples # Assign an IPv6 address with the 64-bit prefix to Ethernet 1/1 and configure a summary with the 35-bit prefix.
same neighbor and the route in the update has a metric less than 16, RIPng uses the route to replace the suppressed route. • Garbage-collect timer—Interval from when the metric of a route becomes 16 to when it is deleted from the routing table. During the garbage-collect timer length, RIPng advertises the route with a metric of 16. If no update is announced for that route before the garbage-collect timer expires, RIPng deletes the route from the routing table.
OSPFv3 commands abr-summary (OSPFv3 area view) Use abr-summary to configure an IPv6 summary route on an area border router (ABR). Use undo abr-summary to remove an IPv6 summary route. Syntax abr-summary ipv6-address prefix-length [ not-advertise ] [ cost value ] undo abr-summary ipv6-address prefix-length Default No route summarization is configured on an ABR. Views OSPFv3 area view Predefined user roles network-admin Parameters ipv6-address: Specifies the destination IPv6 address of the summary route.
Syntax area area-id undo area area-id Default No OSPFv3 area is created. Views OSPFv3 view Predefined user roles network-admin Parameters area-id: Specifies an area by its ID, an IPv4 address or a decimal integer in the range of 0 to 4294967295 that is changed to an IPv4 address by the system. Examples # Create OSPFv3 area 0 and enter its view. system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] area 0 [Sysname-ospfv3-1-area-0.0.0.
• Configure a bandwidth reference value, and OSPFv3 computes the cost automatically based on the bandwidth reference value: Interface OSPFv3 cost = Bandwidth reference value/Interface bandwidth. If the calculated cost is greater than 65535, the value of 65535 is used. If no cost value is configured for an interface, OSPFv3 computes the interface cost value automatically. Examples # Specify the reference bandwidth value as 1000 Mbps.
Use undo default-route-advertise to restore the default. Syntax default-route-advertise [ [ always | permit-calculate-other ] | cost cost | route-policy route-policy-name | type type ] * undo default-route-advertise Default No default route is redistributed into the OSPFv3 routing domain.
display ospfv3 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. Without this keyword, the command displays brief OSPFv3 process information.
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.
Field Description 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. Transmit pacing • Interval—Specifies the interval for sending LSUs. • Count—Specifies the maximum number of LSUs sent LSU advertisement rate: each time. Route preference Internal route preference. ASE route preference AS-external route preference.
Field Description Current route calculation type: • • • • SPF calc—SPF calculation. Intra router calc—Intra-area route calculation. ASBR calc—Inter-area ASBR route calculation. Inc intra router—Incremental intra-area route calculation. • Inc ASBR calc—Incremental inter-area ASBR route calculation. • 7to5 translator—Type-7-to-Type-5 LSA calculation. • Full intra AS—Calculation of all intra-AS prefixes. • Inc intra AS—Calculation of incremental intra-AS Current calculation type prefixes.
Field Description Next process reset type: • • • • • Next reset type N/A—The process is not reset. GR quit—Normal reset when GR quits abnormally. Delete—Delete OSPFv3 process. Undo router-id—Delete router ID. Set router-id—Set router ID. Modules that reply reset prepare messages: • • • • Reset prepare message replied P—Neighbor maintenance module. S—LSDB synchronization module. C—Route calculation module. R—Route redistribution module.
Predefined user roles network-admin network-operator Parameters process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. If no OSPFv3 process ID is specified, this command displays information about all the routes to the OSPFv3 ABR and ASBR. 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.
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 information about ABR summary routes for all OSPFv3 processes. area area-id: Specifies an OSPFv3 area by its ID, which is an IP address or a decimal integer in the range of 0 to 4294967295 that is translated into the IP address format. Without this option, the command displays information about ABR summary routes for all OSPFv3 areas.
Prefix : 1000:4::/32 Status : Advertise NULL0 : Active Cost : 1 (Configured) Routes count: 2 Destination Metric 1000:4:10:3::/96 1 1000:4:11:3::/96 1 Table 114 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.
Table 115 Command output Field Description OSPFv3 Process 1 with Router ID 3.3.3.3 The GR status of OSPFv3 process 1 with router ID 3.3.3.3 is displayed. Indicates whether OSPFv3 GR is enabled: • enabled. • disabled. Graceful-restart capability Indicates whether OSPFv3 GR helper is enabled: • enabled. • disabled. Helper-policy support GR status: • Normal—Non-GR status. • Under GR—Restarter status. • Under Helper—Helper status. Current GR state Graceful-restart period GR restart interval.
OSPFv3 Process 1 with Router ID 1.1.1.1 Area: 0.0.0.0 ------------------------------------------------------------------------Ethernet1/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 Priority DR priority of the interface. Designated router DR on this link. Backup designated router BDR on this link. Time intervals in seconds configured on the interface: • Hello—Hello interval. • Dead—Dead interval. • Wait—After this timer expires, the interface quits Timer interval configured from the waiting state. • Retransmit—LSA retransmission interval. • Transmit delay—Transmission delay of the interface. Neighbor count Number of Neighbors on the interface.
network: Displays Network-LSAs (Type-2 LSAs). router: Displays Router-LSAs (Type-1 LSAs). unknown: Displays unknown LSAs. type: Specifies an LSA type, a hexadecimal string of 0 to FFFF. Without this argument, the command displays all unknown LSAs. link-state-id: Specifies a link state ID in IPv4 format. originate-router router-id: Specifies the ID of an advertising router. self-originate: Displays locally originated LSAs. statistics: Displays LSA statistics. total: Displays total number of LSAs in the LSDB.
Field Description SeqNum LSA sequence number. CkSum LSA Checksum. Prefix Number of Prefixes. Link Number of links. Intra-Area-Prefix-LSA Type-9 LSA. Reference Type of referenced LSA. # Display Link LSA information in the LSDB. display ospfv3 lsdb link OSPFv3 Process 1 with Router ID 1.1.1.1 Link-LSA (Interface Ethernet1/1) ------------------------------------------------------------------------LS age : 833 LS Type : Link-LSA Link State ID : 0.15.0.8 Originating Router: 2.2.2.
Field Description Prefix Options Prefix options. # Display LSA statistics. display ospfv3 lsdb statistics OSPFv3 Process 1 with Router ID 1.1.1.1 ------------------------------------------------------------------------Area ID Router Network IntePre InteRou IntraPre Link 0.0.0.1 2 0 0 0 2 Total 2 0 0 0 2 4 Grace ASE 0 0 Table 119 Command output Field Description Area ID Area ID. Router Number of Type-1 LSAs. Network Number of Type-2 LSAs.
Network-LSA (Area 0.0.0.1) ------------------------------------------------------------------------Link State ID Origin Router Age SeqNum 0.15.0.8 2.2.2.2 0019 0x80000007 0x599e CkSum SendCnt: 0 RxmtCnt: 0 Status: Stale Intra-Area-Prefix-LSA (Area 0.0.0.1) ------------------------------------------------------------------------Link State ID Origin Router Age SeqNum 0.0.0.2 2.2.2.2 3600 0x80000002 0x2eed SendCnt: 0 RxmtCnt: 0 2.2.2.2 0018 SendCnt: 0 RxmtCnt: 0 0.0.0.
OSPFv3 Process 1 with Router ID 1.1.1.1 Nexthop : FE80::20C:29FF:FED7:F308 Interface: Eth1/2 RefCount: 4 Status NbrID NbrIntID : 21 : 1.1.1.1 : Valid Nexthop : FE80::20C:29FF:FED7:F312 Interface: Eth0/2 RefCount: 3 Status NbrID NbrIntID : 38 : 1.1.1.1 : Valid Table 121 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.
Usage guidelines If no process-id is specified, this command displays neighbor information for all processes. If no area is specified, this command displays neighbor information for all areas. If no interface or no neighbor is specified, this command displays neighbor information for all interfaces. Examples # Display the neighbor information for OSPFv3 process 1 on an interface. display ospfv3 1 peer ethernet 1/1 OSPFv3 Process 1 with Router ID 1.1.1.1 Area: 0.0.0.
Table 123 Command output Field Description Router ID Neighbor router ID. Address Link-local address of the interface. State Neighbor state. Mode Neighbor mode for LSDB synchronization. Priority Neighboring router priority. DR DR on the interface's network segment. BDR BDR on the interface's network segment. MTU Interface MTU. Options Options. Dead timer due in 33 sec This dead timer will expire in 33 seconds. Neighbor is up for 00:24:19 The neighbor has been up for 00:24:19.
Field Description Down In this state, neighbor initial state, the router has not received any information from a neighboring router for a period of time. 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. DR/BDR election is finished under this state (or higher).
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 Ethernet1/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.130 1.3.3.
area area-id: Specifies an area by its ID, an IPv4 address or a decimal integer in the range of 0 to 4294967295 that is translated into an IPv4 address by the system. interface-type interface-number: Specifies an interface by its type and number. neighbor-id: Specifies a neighbor's router ID. 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 ASE Number of external routes. display ospfv3 spf-tree Use display ospfv3 spf-tree to display OSPFv3 topology information. Syntax display ospfv3 [ process-id ] [ area area-id ] spf-tree [ 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. Without this argument, the command displays topology information for all OSPFv3 processes.
Table 128 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. 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 advertising router ID. Link type: • RT2RT—Router to router. • NET2RT—Network to router.
-->NbrID : 1.1.1.1 NbrIntID : 21 Interface : Eth1/2 NhFlag : Valid Nexthop : FE80::20C:29FF:FED7:F308 RefCount : 4 : 1.1.1.1 LsID : 0.0.0.0 IntID : 232 NbrIntID : 465 NbrID : 2.2.2.2 LinkType : RT2RT LinkCost : 1 LinkNewCost: 1 LinkFlag : C NexthopCnt : 0 SPFLink count: 1 -->AdvID ParentLink count: 1 -->AdvID : 1.1.1.1 LsID : 0.0.0.0 IntID : 215 NbrIntID : 466 NbrID : 2.2.2.
Field Description Link flag: • • • • • • LinkFlag I—The link is in initialization state. P—The peer is the parent node. C—The peer is the child node. D—The link is to be deleted. H—The next hop is changed. V—When the peer node is deleted or added, the peer node is not on the SPF tree or is deleted. • N—The link is newly added, and both end nodes are on the SPF tree. • L—The link is on the area change list. NexthopCnt Number of next hops. ParentLinkCnt Number of parent links.
Ls Ack 416 450 Local Originated LSAs Statistics ---------------------------------------------------------Type Count Router-LSA 192 Network-LSA 0 Inter-Area-Prefix-LSA 0 Inter-Area-Router-LSA 0 AS-external-LSA 0 Link-LSA 10 Intra-Area-Prefix-LSA 112 Grace-LSA 0 Unknown-LSA 0 Total 314 Routes Statistics ---------------------------------------------------------Type Count Intra Area 0 Inter Area 0 ASE/NSSA 0 Table 130 Command output Field Description Packet Statistics Statist
Field Description Intra Area Intra-area routes. Inter Area Inter-area routes. ASE/NSSA External routes. # Display OSPFv3 error statistics. display ospfv3 statistics error OSPFv3 Process 1 with Router ID 1.1.1.
Field Description HELLO: Ebit option mismatch Hello packets with mismatched E-bit in the option field. DD: Ebit option mismatch DD packets with mismatched E-bit in the option field. DD: Unknown LSA type DD packets with unknown LSA type. DD: MTU option mismatch DD packets with mismatched MTU. REQ: Empty request LSR packets with no request information. REQ: Bad request Bad LSR packets. UPD: LSA checksum bad LSU packets with wrong LSA checksum.
Remote IPv6 address: 2:2222::12 Cost: 1 State: P-2-P Type: Virtual Transit area: 0.0.0.1 Timers: Hello 10, Dead 40, Retransmit 5, Transmit Delay 1 IPsec profile name: profile001 Table 132 Command output Field Description Virtual-link Neighbor-ID ID of the neighbor on the virtual link. Neighbor-State Neighbor state: Down, Init, 2-Way, ExStart, Exchange, Loading, or Full. Interface IP address and name of the local interface on the virtual link. Cost Interface route cost. State Interface state.
system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] area 0 [Sysname-ospfv3-1-area-0.0.0.0] enable ipsec-profile profile001 filter (OSPFv3 area view) NOTE: This command is available only on an ABR. Use filter to configure inbound/outbound Inter-Area-Prefix-LSA filtering on an ABR. Use undo filter to remove the configuration.
filter-policy export (OSPFv3 view) Use filter-policy export to configure OSPFv3 to filter redistributed routes. Use undo filter-policy export to remove the configuration. Syntax filter-policy { acl6-number | prefix-list prefix-list-name } export [ protocol [ process-id ] ] undo filter-policy export [ protocol [ process-id ] ] Default Redistributed routes are not filtered.
# Configure IPv6 ACL 3000 to permit only route 2001::1/128. Use ACL 3000 to filter redistributed routes.
The source keyword specifies the destination address of a route, and the destination keyword specifies the prefix of the route. The prefix must be contiguous. Otherwise, the configuration does not take effect. Using the filter-policy import command filters only routes computed by OSPFv3. Routes that fail to pass the filter are not added to the routing table. Examples # Use IPv6 prefix list abc to filter received routes.
[Sysname] ospfv3 1 [Sysname-ospfv3-1] graceful-restart enable Related commands graceful-restart helper enable graceful-restart helper enable Use graceful-restart helper enable to enable the GR helper capability for OSPFv3. Use undo graceful-restart helper enable to disable the GR helper capability for OSPFv3. Syntax graceful-restart helper enable undo graceful-restart helper enable Default The GR helper capability for OSPFv3 is enabled.
Views OSPFv3 view Predefined user roles network-admin Usage guidelines With GR helper enabled, when an LSA change on the GR helper is detected, the GR helper device exits the GR helper mode. Examples # Enable strict LSA checking for the GR helper in OSPFv3 process 1.
Related commands ospfv3 timer dead import-route (OSPFv3 view) Use import-route to redistribute routes. Use undo import-route to disable route redistribution. Syntax import-route protocol [ process-id | all-processes | allow-ibgp ] [ cost cost | route-policy route-policy-name | type type ] * undo import-route protocol [ process-id | all-processes ] Default OSPFv3 route redistribution is disabled.
The import-route bgp4+ command redistributes only EBGP routes. The import-route bgp4+ allow-ibgp command redistributes both EBGP and IBGP routes, and might cause routing loops. Therefore, use it with caution. Examples # Configure OSPFv3 process 1 to redistribute routes from RIPng and specify the type as type 2 and cost as 50.
lsa-generation-interval Use lsa-generation-interval to configure the OSPFv3 LSA generation interval. Use undo lsa-generation-interval to restore the default. Syntax lsa-generation-interval maximum-interval [ minimum-interval [ incremental-interval ] ] undo lsa-generation-interval Default The maximum interval is 5 seconds, the minimum interval is 0 milliseconds, and the incremental interval is 0 milliseconds.
Syntax maximum load-balancing maximum undo maximum load-balancing Default The maximum number of ECMP routes depends on the device model. Views OSPFv3 view Predefined user roles network-admin Parameters maximum: Specifies the maximum number of ECMP routes, in the range of 1 to 8. When the maximum number is 1, OSPFv3 does not perform load balancing.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN is specified, the OSPFv3 process runs on the public network. Usage guidelines Specify a router ID for the OSPFv3 process. Otherwise, the OSPFv3 process cannot generate LSAs. Examples # Enable OSPFv3 process 120 and configure the Router ID as 1.1.1.1. system-view [Sysname] ospfv3 120 [Sysname-ospfv3-120] router-id 1.1.1.
undo ospfv3 bfd enable [ instance instance-id ] Default BFD for OSPFv3 is disabled. Views Interface view Predefined user roles network-admin Parameters instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0. Usage guidelines BFD provides a mechanism to quickly detect the connectivity of links between OSPFv3 neighbors, improving the convergence speed of OSPFv3. OSPFv3 uses BFD to implement bidirectional control detection.
system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] ospfv3 cost 33 instance 1 ospfv3 dr-priority Use ospfv3 dr-priority to set the router priority for an interface in an instance. Use undo ospfv3 dr-priority to restore the default. Syntax ospfv3 dr-priority priority [ instance instance-id ] undo ospfv3 dr-priority [ instance instance-id ] Default An interface has a router ID of 1.
Predefined user roles network-admin Parameters profile-name: Specifies an IPsec profile by its name, a case-sensitive string of 1 to 63 characters. instance-id: Specifies an ID of the instance of the interface, in the range of 0 to 255. It defaults to 0. Usage guidelines This command must reference an IPsec profile. For more information about IPsec profiles, see Security Configuration Guide. Examples # Apply IPsec profile profile001 to OSPFv3 interface Ethernet1/1.
Use undo ospfv3 network-type to restore the default. Syntax ospfv3 network-type { broadcast | nbma | p2mp [ unicast ] | p2p } [ instance instance-id ] undo ospfv3 network-type [ instance instance-id ] Default The network type of an OSPFv3 interface depends on its link layer protocol: • For Ethernet and FDDI, the default network type is broadcast. • For ATM, FR, and X.25, the default network type is NBMA. • For PPP, LAPB, HDLC, and POS, the default network type is P2P.
ospfv3 peer Use ospfv3 peer to specify a neighbor and the DR priority of the neighbor. Use undo ospfv3 peer to remove the configuration. Syntax ospfv3 peer ipv6-address [ cost value | dr-priority dr-priority ] [ instance instance-id ] undo ospfv3 peer ipv6-address [ instance instance-id ] Default No link-local address is specified for the neighbor interface. Views Interface view Predefined user roles network-admin Parameters ipv6-address: Specifies the link-local IP address of the neighbor.
Views Interface view Predefined user roles network-admin Parameters seconds: Specifies the dead time in the range of 1 to 65535 seconds. Usage guidelines OSPFv3 neighbor dead time: if an interface receives no hello packet from a neighbor after dead time elapses, the interface will consider the neighbor dead. The dead time must be at least four times the hello time and must be identical on interfaces attached to the same network segment.
Examples # Configure the hello interval as 20 seconds for Ethernet 1/1. system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] ospfv3 timer hello 20 Related commands ospfv3 timer dead ospfv3 timer poll Use ospfv3 timer poll to set the poll interval on an NBMA interface. Use undo ospfv3 timer poll to restore the default. Syntax ospfv3 timer poll seconds [ instance instance-id ] undo ospfv3 timer poll [ instance instance-id ] Default The poll interval is 120 seconds on an interface.
Syntax ospfv3 timer retransmit seconds [ instance instance-id ] undo ospfv3 timer retransmit [ instance instance-id ] Default The interval defaults to 5 seconds. Views Interface view Predefined user roles network-admin Parameters seconds: Specifies the LSA retransmission interval in the range of 1 to 3600 seconds. instance-id: Specifies an instance by its ID in the range of 0 to 255, The default is 0. Usage guidelines After the device sends an LSA to its neighbor, it waits for an acknowledgement.
Usage guidelines Each LSA in the LSDB has an age that is incremented by 1 every second, but the age does not change during transmission. Therefore, it is necessary to add a transmission delay into the age time, especially for low-speed links. Examples # Configure the transmission delay as 3 seconds for Ethernet 1/1 in instance 1. system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] ospfv3 trans-delay 3 instance 1 preference Use preference to specify a preference 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 router-id: Specifies a router ID, in IPv4 address format. Usage guidelines The router ID is the unique identifier for the device to run OSPFv3 in the AS. An OSPFv3 process cannot run without a router ID. Different processes must have different router IDs. Examples # Configure the router ID 10.1.1.3 for OSPFv3 process 1. system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] router-id 10.1.1.
Usage guidelines Based on the LSDB, an OSPFv3 router uses SPF to calculate a shortest path tree with itself being the root. OSPFv3 uses the shortest path tree to determine the next hop to a destination. By adjusting the SPF calculation interval, you can prevent bandwidth and router resources from being over-consumed due to frequent topology changes. When network changes are not frequent, OSPFv3 performs SPF calculations at the minimum-interval.
[Sysname-ospfv3-1] area 1 [Sysname-ospfv3-1-area-0.0.0.1] stub Related commands default cost (OSPFv3 area view) vlink-peer (OSPFv3 area view) Use vlink-peer to configure a virtual link. Use undo vlink-peer to remove a virtual link.
• 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. 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 configuration commands IPv6 IS-IS supports all the features of IPv4 IS-IS except that it advertises IPv6 routing information. This chapter describes only IPv6 IS-IS exclusive commands. For other IS-IS configuration commands, see "IS-IS configuration commands." display isis redistribute ipv6 Use display isis redistribute ipv6 to display information about redistributed IPv6 IS-IS routes.
IntCost : 0 State : Active Tag : Table 133 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. IntCost Internal route cost.
Examples # Display IPv6 IS-IS route information.
# Display detailed IPv6 IS-IS routing information.
Field Description Next Hop Next hop. Interface Outbound interface. ExitIndex Outbound interface index. display isis spf-tree ipv6 Use display isis spf-tree ipv6 to display IS-IS IPv6 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 IS-IS IPv6 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.
-->0000.0000.0032.01 LinkCost : 10 LinkNewCost: 10 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.
-->0000.0000.0032.00 LinkCost : 10 LinkNewCost: 10 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(Topo 2) Shortest Path Tree ---------------------------------SpfNode : 0000.0000.0032.00 Distance : 0 NodeFlag : S/-/-/-/-/- NextHopCnt: 0 SpfLinkCnt: 2 -->0000.0000.0032.
Type: Adjacent Interface: Vlan2 Cost: 0 Nexthop : FE80::200:12FF:FE34:1 -->0000.0000.0032.00 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 NextHop : FE80::200:12FF:FE34:1 Interface BkNeighbor: N/A : Vlan2 BkInterface: N/A BkNextHop : N/A Neighbor : 0000.0000.0064.
Field Description Node flag: NodeFlag • • • • • • S—The node is on the SPF tree. T—The node is on the tent list. O—The node is overloaded. R—The node is directly connected. I—The node is isolated. D—The node is to be deleted. NextHopCnt Next hop count. 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.
Syntax ipv6 default-route-advertise [ [ level-1 | level-1-2 | level-2 ] | route-policy route-policy-name ] * undo ipv6 default-route-advertise Default No IPv6 IS-IS default route is generated. Views IS-IS view Predefined user roles network-admin Parameters level-1: Generates a default route for Level-1. level-1-2: Generates a default route for Level-1-2. level-2: Generates a default route for Level-2.
Views IS-IS view Predefined user roles network-admin Examples # Create IS-IS process 1, and enable IPv6 for the process. system-view [Sysname] isis 1 [Sysname-isis-1] network-entity 10.0001.1010.1020.1030.00 [Sysname-isis-1] ipv6 enable ipv6 filter-policy export Use ipv6 filter-policy export to configure IPv6 IS-IS to filter redistributed routes. Use undo ipv6 filter-policy export to remove the configuration.
If no protocol is specified, the command filters routes redistributed from all routing protocols. If a protocol is specified, the command filters routes redistributed from the specified routing protocol. To reference an advanced ACL (with a number from 3000 to 3999) in the command or in the routing policy, configure the ACL using one of the following methods: • To deny/permit a route with the specified destination, use the rule [ rule-id ] { deny | permit } ipv6 source sour sour-prefix command.
Parameters acl6-number: Specifies an IPv6 ACL by its number in the range of 2000 to 3999 to filter received routes. ipv6-prefix-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter received routes. 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 This command filters received routes.
Default IPv6 does not redistribute routes from any other routing protocol. Views IS-IS view Predefined user roles network-admin Parameters protocol: Redistributes routes from the specified routing protocol, which can be direct, static, ripng, isisv6, bgp4+, or ospfv3. process-id: Specifies a process by its ID in the range of 1 to 65535. It is available only when the protocol is ripng, isisv6, or ospfv3. cost cost: Specifies a cost for redistributed routes, in the range of 0 to 4261412864.
undo ipv6 import-route isisv6 level-1 into level-2 Default Route advertisement from Level-1 to Level-2 is enabled. Views IS-IS view Predefined user roles network-admin Parameters filter-policy: Specifies a filtering policy. acl6-number: Specifies an IPv6 ACL by its number in the range of 2000 to 3999. prefix-list prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters.
Parameters filter-policy: Specifies a filtering policy. acl6-number: Specifies an IPv6 ACL by its number in the range of 2000 to 3999. prefix-list prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters. route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters. tag: Specifies an administrative tag for marking redistributed routes, in the range of 1 to 4294967295.
system-view [Sysname] isis 1 [Sysname-isis-1] ipv6 import-route limit 1000 ipv6 maximum load-balancing Use ipv6 maximum load-balancing to configure the maximum number of ECMP routes for load balancing. Use undo ipv6 maximum load-balancing to restore the default. Syntax ipv6 maximum load-balancing number undo ipv6 maximum load-balancing Default The default setting depends on the device model.
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. Examples # Configure the preference for IPv6 IS-IS as 20.
[Sysname] isis 1 [Sysname-isis-1] ipv6 priority high prefix-list standtest ipv6 summary Use ipv6 summary to configure an IPv6 IS-IS summary route. Use undo ipv6 summary to remove the summary route. Syntax ipv6 summary ipv6-prefix prefix-length [ avoid-feedback | generate_null0_route | [ level-1 | level-1-2 | level-2 ] | tag tag ] * undo ipv6 summary ipv6-prefix prefix-length [ level-1 | level-1-2 | level-2 ] Default No summary route is configured.
Use undo isis ipv6 bfd enable to disable BFD for IPv6 IS-IS. Syntax isis ipv6 bfd enable undo isis ipv6 bfd enable Default BFD for IPv6 IS-IS is disabled. Views Interface view Predefined user roles network-admin Examples # Enable BFD for IPv6 IS-IS on Ethernet 1/1. system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] isis ipv6 bfd enable isis ipv6 enable Use isis ipv6 enable to enable IPv6 for an IS-IS process on an interface.
[Sysname-Ethernet1/1] ipv6 address 2002::1/64 [Sysname-Ethernet1/1] isis ipv6 enable 1 530
IPv6 policy-based routing commands 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 access-vpn vpn-instance vpn-instance-name&<1-n> undo apply access-vpn vpn-instance [ vpn-instance-name&<1-n> ] Default No VPN instance is specified for a node.
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. This command applies when the apply access-vpn vpn-instance, apply next-hop, apply output-interface, apply default-next-hop, and apply default-output-interface clauses are not configured or become invalid.
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 depends on the device model.
&<1-n>: Indicates that the argument before it can be entered up to n times. The value of n depends on the device model. 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 depends on the device model. 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.
Default No output interface is set. 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 depends on the device model.
Views IPv6 policy node view Predefined user roles network-admin 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 137. You can set either a precedence value or a precedence type for IPv6 packets.
Usage guidelines If no policy is specified, this command displays information about all policies. If a policy name is specified, this command displays information about the specified policy. Examples # Display all IPv6 policy information. display ipv6 policy-based-route Policy name: aaa node 1 permit: if-match acl 2000 apply next-hop 1000::1 Table 138 Command output Field Description node 1 permit The match mode of Node 1 is permit. if-match acl Matches IPv6 packets against IPv6 ACL.
Policy name: aaa node 0 deny: Matched: 0 node 1 permit: if-match acl 3999 Matched: 0 node 2 permit: if-match acl 2000 apply next-hop 1000::1 apply output-interface Ethernet1/2 track 1 (down) apply output-interface Ethernet1/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 ethernet 1/1 Policy based routing information for interface Ethernet1/1: Policy name: aaa node 0 deny(not support): Matc
Field Description Match mode of the node, permit or deny. node 0 deny(not support) not support means the device does not support the match criteria configured on the node. no resource means the device has insufficient ACL resources, and failed to assign ACL resources to the node.
Examples # Display IPv6 local PBR configuration and statistics.
Examples # Display IPv6 PBR configuration. display ipv6 policy-based-route setup Policy Name Interface Name pr01 Ethernet 1/1 Table 141 Command output Field Description policy Name Policy name. Interface Name Interface where the policy is applied. Related commands ipv6 policy-based-route (interface view) if-match acl Use if-match acl to configure an ACL match criterion. Use undo if-match acl to remove the ACL match criterion.
if-match packet-length Use if-match packet-length to define an IPv6 packet length match criterion. Use undo if-match packet-length to remove the match criterion. Syntax if-match packet-length min-len max-len undo if-match packet-length Default No packet length match criterion is defined. Views IPv6 policy node view Predefined user roles network-admin Parameters min-len: Specifies the minimum IPv6 packet length in the range of 1 to 65535 bytes.
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 IPv6 policy must already exist. Usage guidelines You can apply only one policy locally. Before you apply a new policy, you must first remove the current policy. IPv6 local PBR is used to route locally generated packets. Do not configure IPv6 local PBR unless required. Examples # Configure IPv6 local PBR based on policy aaa.
[Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] ipv6 policy-based-route aaa Related commands • display ipv6 policy-based-route setup • ipv6 policy-based-route (system view) ipv6 policy-based-route (system view) Use ipv6 policy-based-route to create an IPv6 policy or policy node and enter IPv6 policy node view. If the specified IPv6 policy node already exists, the command directly places you into IPv6 policy node view. Use undo ipv6 policy-based-route to remove an IPv6 policy or IPv6 policy node.
reset ipv6 policy-based-route statistics Use reset ipv6 policy-based-route statistics to clear IPv6 PBR statistics. Syntax reset ipv6 policy-based-route statistics [ policy policy-name ] Views User view Predefined user roles network-admin Parameters policy policy-name: Specifies a policy by its name, a case-sensitive string of 1 to 19 characters. Usage guidelines If no policy is specified, the command clears all IPv6 PBR statistics.
Routing policy configuration commands Common routing policy configuration commands apply as-path Use apply as-path to set the AS_PATH attribute for BGP routes. Use undo apply as-path to restore the default. Syntax apply as-path as-number&<1-32> [ replace ] undo apply as-path Default No AS_PATH attribute is set. Views Routing policy node view Predefined user roles network-admin Parameters as-number&<1-32>: Specifies an AS by its number in the range of 1 to 4294967295.
Use undo apply comm-list to restore the default. Syntax apply comm-list { comm-list-number | comm-list-name } delete undo apply comm-list Default No COMMUNITY attributes are deleted from BGP routes. Views Routing policy node view Predefined user roles network-admin Parameters comm-list-number: Specifies a basic community list by its number in the range of 1 to 99 or an advanced community list by its number in the range of 100 to 199.
Parameters none: Removes the COMMUNITY attributes of BGP routes. community-number&<1-32>: Specifies a community sequence number in the range of 1 to 4294967295. &<1-32> indicates that the argument before it can be entered up to 32 times. aa:nn&<1-32>: Specifies a community number; both aa and nn are in the range of 0 to 65535. &<1-32> indicates that the argument before it can be entered up to 32 times. internet: Sets the INTERNET community attribute for BGP routes.
Parameters +: Increases a cost value. -: Decreases a cost value. value: Specifies a cost in the range of 0 to 4294967295. Examples # Configure node 10 in permit mode for routing policy policy1 to set a cost of 120 for OSPF external routes. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match route-type external-type1or2 [Sysname-route-policy-policy1-10] apply cost 120 apply cost-type Use apply cost-type to set a cost type for routing information.
system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match tag 8 [Sysname-route-policy-policy1-10] apply cost-type internal 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.
Syntax apply isis { level-1 | level-1-2 | level-2 } undo apply isis Default No IS-IS level is set. Views Routing policy node view Predefined user roles network-admin Parameters level-1: Redistributes routes into IS-IS Level-1. level-1-2: Redistributes routes into both IS-IS Level-1 and Level-2. level-2: Redistributes routes into IS-IS Level-2. Examples # Configure node 10 in permit mode for routing policy policy1 to redistribute routes that have a tag of 8 to IS-IS level-2.
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 local-preference 130 apply mpls-label Use apply mpls-label to set MPLS labels for routing information. Use undo apply mpls-label to restore the default. Syntax apply mpls-label undo apply mpls-label Default No MPLS label is set for routing information.
Parameters egp as-number: Sets the ORIGIN attribute to EGP. The as-number argument specifies an AS number in the range 1 to 4294967295 for EGP routes. igp: Sets the ORIGIN attribute to IGP. incomplete: Sets the ORIGIN attribute to UNKNOWN. Examples # Configure node 10 in permit mode for routing policy policy1 to set the ORIGIN attribute for routes matching AS path list 1 to IGP.
apply preferred-value Use apply preferred-value to set a preferred value for BGP routes. Use undo apply preferred-value to restore the default. Syntax apply preferred-value preferred-value undo apply preferred-value Default No preferred value is set for BGP routes. Views Routing policy node view Predefined user roles network-admin Parameters preferred-value: Specifies a preferred value in the range of 0 to 65535.
medium: Sets the medium prefix priority for routes. Examples # Configure node 10 in permit mode for routing policy policy1 to set prefix priority critical for routes matching prefix list abc. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match ip address prefix-list abc [Sysname-route-policy-policy1-10] apply prefix-priority critical apply tag Use apply tag to set a specified tag for RIP, OSPF, or IS-IS routing information.
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.
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 | 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. adv-community-list-number: Specifies an advanced community list by its number in the range of 100 to 199.
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. Examples # Display information about BGP extended community list 1.
Index: 1 Permit: 001b-2188-946c/32 Table 145 Command output Field Description MAC address list Name of the MAC list. Permitted Number of routes matching the criterion. Denied 0 Number of routes not matching the criterion. Index Index of an item. Permit MAC address that is permitted to pass. display route-policy Use display route-policy to display routing policy information.
Field Description apply Action. if-match as-path Use if-match as-path to match BGP routes whose AS_PATH attribute matches a specified AS path list. Use undo if-match as-path to remove the configuration. Syntax if-match as-path as-path-number&<1-32> undo if-match as-path [ as-path-number&<1-32> ] Default No match criterion is configured.
Default No community list match criterion is configured. Views Routing policy node view Predefined user roles network-admin Parameters basic-community-list-number: Specifies a basic community list by its number in the range of 1 to 99. adv-community-list-number: Specifies an advanced community list by its number in the range of 100 to 199. comm-list-name: Specifies a community list by its name, a case-sensitive string of 1 to 63 characters that cannot comprise only numbers.
Parameters value: Specifies a cost in the range of 0 to 4294967295. Examples # Configure node 10 in permit mode for routing policy policy1 to permit routing information with a cost of 8. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match cost 8 if-match extcommunity Use if-match extcommunity to match BGP routes whose extended community attribute matches a specified extended community list.
Use undo if-match interface to remove the configuration. Syntax if-match interface { interface-type interface-number }&<1-16> undo if-match interface [ interface-type interface-number ]&<1-16> Default No match criterion is configured. Views Routing policy node view Predefined user roles network-admin Parameters interface-type interface-number: Specifies an interface by its type and number. &<1-16>: Indicates that the argument before it can be entered up to 16 times.
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 EVI IS-IS routes whose destination MAC address matches the specified MAC list. Use undo if-match mac-list to remove the configuration.
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. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match mpls-label if-match route-type Use if-match route-type to configure a route-type match criterion. Use undo if-match route-type to remove the configuration.
[Sysname-route-policy-policy1-10] if-match route-type internal if-match tag Use if-match tag to match routing information having the specified tag. Use undo if-match tag to restore the default. Syntax if-match tag value undo if-match tag Default No tag match criterion is configured. Views Routing policy node view Predefined user roles network-admin Parameters value: Specifies a tag in the range of 0 to 4294967295.
vlan-id1 to vlan-id2: Specifies a VLAN ID range. Both vlan-id1 and vlan-id2 are in the range of 1 to 4094. The vlan-id2 value must be no less than the vlan-id1 value. &<1-16>: Indicates that the argument before it can be entered up to 16 times. Examples # Configure node 10 of routing policy policy1 to match routes whose VLAN ID is 10 or falls into the VLAN ID range of 100 to 200.
• if-match ip as-path ip community-list Use ip community-list to configure a community list entry. Use undo ip community-list to remove a community list or entry.
internet: Specifies the INTERNET community attribute. Routes with this attribute can be advertised to all BGP peers. By default, all routes have this attribute. no-advertise: Specifies the NO_ADVERTISE community attribute. Routes with this attribute cannot be advertised to other BGP peers. no-export: Specifies the NO_EXPORT community attribute. Routes with this attribute cannot be advertised out of the local AS or the local confederation but can be advertised to other ASs in the confederation.
{ rt route-target }&<1-32>: Specifies the RT extended community attribute, a string of 3 to 21 characters. &<1-32> indicates that the argument before it can be entered up to 32 times. A route-target has the following forms: • A 16-bit AS number—A 32-bit self-defined number, for example, 101:3. The AS number is in the range of 0 to 65535, and the self-defined number is in the range of 0 to 4294967295. • A 32-bit IP address—A 16-bit self-defined number, for example, 192.168.122.15:1.
mac-address mask-length: Specifies a MAC address prefix and mask length. The value range for the mask-length argument is 0 to 48. Examples # Configure MAC list wxy to permit routes whose destination MAC address falls into the range of 001b-2188-0000 to 001b.2188.ffff. system-view [Sysname] mac-list wxy permit 001b-2188-946c 32 reset mac-list Use reset mac-list to clear MAC list statistics.
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. If a route matches all the if-match clauses of the node, it is handled by the apply clauses of the node. If not, it matches against the next node. node node-number: Specifies a number for the node, in the range of 0 to 65535.
backup-nexthop ip-address: Specifies a backup next hop. Usage guidelines This command sets a backup link in the routing policy for FRR. Using the routing policy, a routing protocol can designate a backup link for specific routes to implement FRR. When the primary link fails, FRR immediately directs packets to the backup link to minimize interruption time. Examples # Configure node 10 of routing policy policy1 to set the backup output interface Ethernet 1/1 and backup next hop 193.1.1.
Examples # Configure node 10 in permit mode for routing policy policy1 to set next hop 193.1.1.8 for routes matching AS path list 1. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match as-path 1 [Sysname-route-policy-policy1-10] apply ip-address next-hop 193.1.1.8 display ip prefix-list Use display ip prefix-list to display IPv4 prefix list statistics.
Related commands • ip prefix-list • reset ip prefix-list if-match ip Use if-match ip to match IPv4 routes whose destination, next hop, or source matches the specified IPv4 prefix list. Use undo if-match ip to remove the configuration. Syntax if-match ip { address | next-hop | route-source } { acl acl-number | prefix-list prefix-list-name } undo if-match ip { address | next-hop | route-source } [ acl | prefix-list ] Default No IPv4 prefix list match criterion is configured.
undo ip prefix-list prefix-list-name [ index index-number ] Default No IPv4 prefix list is configured. Views System view Predefined user roles network-admin Parameters prefix-list-name: Specifies a name for the IPv4 prefix list, a case-sensitive string of 1 to 63 characters. index-number: Specifies an index number for an IPv4 prefix list item, in the range of 1 to 65535. An item with a smaller number is matched first. deny: Specifies the deny mode.
reset ip prefix-list Use reset ip prefix-list to clear IPv4 prefix list statistics. Syntax reset ip prefix-list [ prefix-list-name ] Views User view Predefined user roles network-admin Parameters prefix-list-name: Specifies an IP prefix list by its name, a case-sensitive string of 1 to 63 characters. Without this argument, this command clears statistics for all IPv4 prefix lists. Examples # Clear the statistics for IPv4 prefix list abc.
Examples # Configure node 10 for routing policy policy1 to set next hop 3ffe:506::1 for IPv6 routes matching AS path list 1. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match as-path 1 [Sysname-route-policy-policy1-10] apply ipv6 next-hop 3ffe:506::1 display ipv6 prefix-list Use display ipv6 prefix-list to display IPv6 prefix list statistics.
Related commands • ipv6 prefix-list • reset ipv6 prefix-list if-match ipv6 Use if-match ipv6 to match IPv6 routes whose destination, next hop, or source matches the specified IPv6 prefix list. Use undo if-match ipv6 to remove the configuration. Syntax if-match ipv6 { address | next-hop | route-source } { acl acl6-number | prefix-list prefix-list-name undo if-match ipv6 { address | next-hop | route-source } [ acl | prefix-list ] Default No IPv6 prefix list match criterion is configured.
undo ipv6 prefix-list prefix-list-name [ index index-number ] Default No IPv6 prefix list is configured. Views System view Predefined user roles network-admin Parameters prefix-list-name: Specifies a name for the IPv6 prefix list, a case-sensitive string of 1 to 63 characters. index-number: Specifies an index number for an IPv6 prefix list item, in the range of 1 to 65535. An item with a smaller number is matched first. deny: Specifies the deny mode.
reset ipv6 prefix-list Use reset ipv6 prefix-list to clear IPv6 prefix list statistics. Syntax reset ipv6 prefix-list [ prefix-list-name ] Views User view Predefined user roles network-admin Parameters prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters. Without this argument, this command clears statistics for all IPv6 prefix lists. Examples # Clear the statistics for IPv6 prefix list abc.
Support and other resources Contacting HP For worldwide technical support information, see the HP support website: http://www.hp.
Conventions This section describes the conventions used in this documentation set. Command conventions Convention Description Boldface Bold text represents commands and keywords that you enter literally as shown. Italic Italic text represents arguments that you replace with actual values. [] Square brackets enclose syntax choices (keywords or arguments) that are optional. { x | y | ... } Braces enclose a set of required syntax choices separated by vertical bars, from which you select one.
Network topology icons Represents a generic network device, such as a router, switch, or firewall. Represents a routing-capable device, such as a router or Layer 3 switch. Represents a generic switch, such as a Layer 2 or Layer 3 switch, or a router that supports Layer 2 forwarding and other Layer 2 features. Represents an access controller, a unified wired-WLAN module, or the switching engine on a unified wired-WLAN switch. Represents an access point.
Index ABCDEFGHILMNOPRSTVW apply precedence,411 A apply preference,555 abr-summary (OSPF area view),86 apply preferred-value,556 abr-summary (OSPFv3 area view),450 apply prefix-priority,556 address-family ipv4,263 apply tag,557 address-family ipv4,1 area,450 address-family ipv6,1 area (OSPF view),87 address-family ipv6,264 area-authentication-mode,182 advertise-rib-active,264 asbr-summary,87 aggregate,265 authentication-mode,88 apply access-vpn vpn-instance,404 auto-cost enable,183 apply
default-cost (OSPF area view),91 display ip policy-based-route local,415 default-cost (OSPFv3 area view),452 display ip policy-based-route setup,416 default-route,52 display ip prefix-list,576 default-route imported,280 display ip routing-table,2 default-route-advertise (IS-IS view),186 display ip routing-table acl,5 default-route-advertise (OSPF view),92 display ip routing-table ip-address,7 default-route-advertise (OSPFv3 view),452 display ip routing-table prefix-list,9 delete ipv6 static-ro
display osi statistics,216 display route-direct nib,36 display ospf,94 display route-policy,561 display ospf abr-asbr,100 display router id,135 display ospf abr-summary,101 display route-static nib,42 display ospf asbr-summary,103 display route-static routing-table,45 display ospf error,105 Documents,584 display ospf event-log spf,106 domain-authentication-mode,217 display ospf fast-reroute candidate-nexthop,108 dscp,136 display ospf graceful-restart,109 E display ospf interface,112 ebgp-
ip extcommunity-list,571 graceful-restart helper strict-lsa-checking,143 graceful-restart helper strict-lsa-checking,488 ip local policy-based-route,418 graceful-restart interval,489 ip policy-based-route,419 graceful-restart interval (OSPF view),144 ip prefix-list,577 graceful-restart suppress-sa,223 ip route-static,47 graceful-restart t1,224 ip route-static default-preference,49 graceful-restart t2,224 ip vpn-instance (BGP view),336 graceful-restart t3,225 ipv6 default-route-advertise,518 g
isis timer retransmit,243 ospf mtu-enable,160 is-level,245 ospf network-type,161 is-name,245 ospf prefix-suppression,162 is-name map,246 ospf timer dead,163 ispf enable,244 ospf timer hello,163 ispf enable,147 ospf timer poll,164 L ospf timer retransmit,165 ospf trans-delay,165 log-peer-change,247 ospfv3,493 log-peer-change,491 ospfv3 area,494 log-peer-change,337 ospfv3 bfd enable,494 log-peer-change,147 ospfv3 cost,495 lsa-arrival-interval,148 ospfv3 dr-priority,496 lsa-generation-i
peer ignore,364 reset ipv6 policy-based-route statistics,547 peer ignore-originatorid,365 reset ipv6 prefix-list,583 peer ipsec-profile,366 reset ipv6 routing-table statistics protocol,40 peer keep-all-routes,367 reset isis all,252 peer label-route-capability,369 reset isis graceful-restart event-log,253 peer low-memory-exempt,370 reset isis non-stop-routing event-log,253 peer next-hop-local,371 reset isis peer,254 peer password,372 reset mac-list,573 peer preferred-value,373 reset osi stat
router id (system view),398 summary (IS-IS view),257 router-id,504 summary automatic,401 router-id (BGP view),398 T router-id (BGP-VPN instance view),399 timer,402 S timer lsp-generation,258 set-overload,255 timer lsp-max-age,259 silent-interface,81 timer lsp-refresh,260 silent-interface (OSPF view),173 timer spf,260 silent-interface(OSPFv3 view),504 timers,448 snmp trap rate-limit,175 timers,83 snmp-agent trap enable bgp,400 transmit-pacing,178 snmp-agent trap enable isis,256 V snmp