HP FlexFabric 11900 Switch Series Layer 3 - IP Routing Command Reference Part number: 5998-5275 Software version: Release 2111 and later Document version: 6W100-20140110
Legal and notice information © Copyright 2014 Hewlett-Packard Development Company, L.P. No part of this documentation may be reproduced or transmitted in any form or by any means without prior written consent of Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Contents Basic IP routing commands ········································································································································· 1 address-family ipv4 ·················································································································································· 1 address-family ipv6 ·················································································································································· 1
host-route ································································································································································ 66 import-route ···························································································································································· 66 maximum load-balancing ····································································································································· 67 netw
display ospf routing············································································································································· 127 display ospf spf-tree ············································································································································ 129 display ospf statistics ··········································································································································· 133 display osp
silent-interface (OSPF view) ································································································································ 177 snmp-agent trap enable ospf······························································································································ 178 snmp trap rate-limit ·············································································································································· 179 spf-schedule-interval ··
isis timer csnp ······················································································································································ 242 isis timer hello ······················································································································································ 243 isis timer holding-multiplier ································································································································· 244 isis
display bgp peer ipv4 unicast ··························································································································· 293 display bgp peer ipv6 unicast ··························································································································· 296 display bgp routing-table dampened ipv4 unicast ·························································································· 300 display bgp routing-table dampened ipv6 unicast ·····
peer low-memory-exempt ···································································································································· 371 peer next-hop-local ·············································································································································· 372 peer password ····················································································································································· 374 peer preferred-va
display ripng route ·············································································································································· 428 filter-policy export ················································································································································ 430 filter-policy import ················································································································································ 431 grace
ospfv3 mtu-ignore ················································································································································ 490 ospfv3 network-type ············································································································································ 491 ospfv3 peer ·························································································································································· 492 ospfv3 ti
apply local-preference ········································································································································ 540 apply mpls-label ·················································································································································· 541 apply origin ························································································································································· 542 apply pre
Basic IP routing commands The term "interface" in this chapter collectively refers to Layer 3 interfaces, including VLAN interfaces and Layer 3 Ethernet interfaces. You can set an Ethernet port as a Layer 3 interface by using the port link-mode route command (see Layer 2—LAN Switching Configuration Guide). address-family ipv4 Use address-family ipv4 to create a RIB IPv4 address family and enter RIB IPv4 address family view.
Predefined user roles network-admin mdc-admin 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.
192.168.1.0/32 Direct 0 0 192.168.1.40 Vlan11 192.168.1.40/32 Direct 0 0 127.0.0.1 InLoop0 192.168.1.255/32 Direct 0 0 192.168.1.40 Vlan11 224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0 224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0 255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0 Table 1 Command output Field Description Destinations Number of destination addresses. Routes Number of routes. Destination/Mask Destination address/mask length. Proto Protocol that installed the route.
NibID: 0x10000003 LastAs: 0 AttrID: 0xffffffff Neighbor: 0.0.0.0 Flags: 0x1008c OrigNextHop: 192.168.47.4 Label: NULL RealNextHop: 192.168.47.4 BkLabel: NULL BkNextHop: N/A Tunnel ID: Invalid Interface: Vlan-interface1 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.
Field Description BkNexthop Backup next hop. Interface Output interface for packets to be forwarded along the route. BkTunnel ID Backup tunnel ID. BkInterface Backup output interface. display ip routing-table acl Use display ip routing-table acl to display information about routes permitted by a specific basic ACL.
Destination/Mask Proto Cost NextHop Interface 192.168.1.0/24 Direct 0 Pre 0 192.168.1.111 Vlan1 192.168.1.0/32 Direct 0 0 192.168.1.111 Vlan1 192.168.1.111/32 Direct 0 0 127.0.0.1 InLoop0 192.168.1.255/32 Direct 0 0 192.168.1.111 Vlan1 For command output, see Table 1. # Display detailed information about all routes permitted by basic ACL 2000. display ip routing-table acl 2000 verbose Routes Matched by Access control list : 2000 Summary Count : 4 Destination: 192.168.1.
TableID: 0x2 OrigAs: 0 NibID: 0x10000000 LastAs: 0 AttrID: 0xffffffff Neighbor: 0.0.0.0 Flags: 0x10004 OrigNextHop: 127.0.0.1 Label: NULL RealNextHop: 127.0.0.1 BkLabel: NULL BkNextHop: N/A Tunnel ID: Invalid BkTunnel ID: Invalid Interface: InLoopBack0 BkInterface: N/A Destination: 192.168.1.
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. ip-address: Specifies a destination IP address in dotted decimal notation. mask: Specifies the IP address mask in dotted decimal notation. mask-length: Specifies the mask length, an integer in the range of 0 to 32. longer-match: Displays the route entry with the longest mask.
display ip routing-table 11.0.0.1 Summary Count : 3 Destination/Mask Proto Cost NextHop Interface 11.0.0.0/8 Static 60 Pre 0 0.0.0.0 NULL0 11.0.0.0/16 Static 60 0 0.0.0.0 NULL0 11.0.0.0/24 Static 60 0 0.0.0.0 NULL0 # Display brief information about the routes to the destination IP address 11.0.0.1 and mask length 20. display ip routing-table 11.0.0.1 20 Summary Count : 2 Destination/Mask Proto 11.0.0.0/8 11.0.0.
display ip routing-table prefix-list Use display ip routing-table prefix-list to display routes permitted by an IP prefix list. Syntax display ip routing-table [ vpn-instance vpn-instance-name ] prefix-list prefix-list-name [ verbose ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.
Protocol: Direct Process ID: 0 SubProtID: 0x1 Age: 04h20m37s Cost: 0 Preference: 0 Tag: 0 State: Active Adv OrigTblID: 0x0 OrigVrf: default-vrf TableID: 0x2 OrigAs: 0 NibID: 0x10000003 LastAs: 0 AttrID: 0xffffffff Neighbor: 0.0.0.0 Flags: 0x1008c OrigNextHop: 1.1.1.2 Label: NULL RealNextHop: 1.1.1.2 BkLabel: NULL BkNextHop: N/A Tunnel ID: Invalid BkTunnel ID: Invalid Interface: Vlan-interface2 BkInterface: N/A For command output, see Table 2.
Summary Count : 13 Destination/Mask Proto Cost NextHop Interface 0.0.0.0/32 Direct 0 Pre 0 127.0.0.1 InLoop0 2.2.2.0/24 Direct 0 0 2.2.2.1 Vlan2 2.2.2.0/32 Direct 0 0 2.2.2.1 Vlan2 2.2.2.2/32 Direct 0 0 127.0.0.1 InLoop0 2.2.2.255/32 Direct 0 0 2.2.2.1 Vlan2 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0 127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0 192.168.80.
mdc-admin mdc-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. Without this option, the command displays route statistics for the public network. Examples # Display IPv4 route statistics for the public network.
Parameters attribute-id: Specifies a route attribute by its ID in the range of 0 to FFFFFFFF. Examples # Display route attribute information in the IPv6 RIB.
3 ISISV6 480 30 End No/No 4 BGP4+ 480 31 End No/No For command output, see Table 11. display ipv6 rib nib Use display ipv6 rib nib to display next hop information in the IPv6 RIB.
# Display detailed next hop information in the IPv6 RIB.
mdc-admin mdc-operator Parameters nib-id: Specifies a NIB by its ID in the range of 1 to FFFFFFFF. verbose: Displays detailed next hop information for IPv6 direct routes. Without this keyword, the command displays brief next hop information for IPv6 direct routes. Examples # Display brief next hop information for IPv6 direct routes.
Type: 0x1 UserKey0: 0x0 UserKey1: 0x0 IFIndex: 0x111 RefCnt: 1 Flag: 0x2 Flushed: Yes VrfNthp: 1 Nexthop: :: LocalAddr: :: FlushRefCnt: 0 Version: 1 1 nexthop(s): PrefixIndex: 0 OrigNexthop: :: RelyDepth: 0 RealNexthop: :: Interface: NULL0 LocalAddr: :: TunnelCnt: 0 Vrf: vpn1 TunnelID: N/A NibID: 0x20000001 Type: 0x1 UserKey0: 0x0 UserKey1: 0x0 IFIndex: 0x112 RefCnt: 1 Flag: 0x2 Sequence: 1 Flushed: Yes VrfNthp: 1 Nexthop: ::1 LocalAddr: ::1 FlushRefCnt: 0 Version: 1 1 nexthop(s): PrefixIndex:
Field Description Flag Flag of the next hop. Version Version of the next hop. display ipv6 routing-table Use display ipv6 routing-table to display IPv6 routing table information. Syntax display ipv6 routing-table [ vpn-instance vpn-instance-name ] [ verbose ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-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 6 Command output Field Description Destinations Number of destination addresses. Routes Number of routes. Destination IPv6 address and prefix of the destination network or host. NextHop Next hop address of the route. Preference Preference of the route. Interface Output interface for packets to be forwarded along the route. Protocol Protocol that installed the route. Cost Cost of the route. Summary Count Number of routes.
BkTunnel ID: Invalid BkInterface: N/A Destination: FF00::/8 Protocol: Direct Process ID: 0 SubProtID: 0x0 Age: 00h53m50s Cost: 0 Preference: 0 Tag: 0 State: Active NoAdv OrigTblID: 0x0 OrigVrf: default-vrf TableID: 0xa OrigAs: 0 NibID: 0x20000001 LastAs: 0 AttrID: 0xffffffff Neighbor: :: Flags: 0x10014 OrigNextHop: :: Label: NULL RealNextHop: :: BkLabel: NULL BkNextHop: N/A Tunnel ID: Invalid BkTunnel ID: Invalid Interface: NULL0 BkInterface: N/A Table 7 Command output Field Descr
Field Description OrigNextHop Next hop address of the route. RealNextHop Real next hop of the route. BkLabel Backup label. BkNexthop Backup next hop. Interface Output interface for packets to be forwarded along the route. BkTunnel ID Backup tunnel ID. BkInterface Backup output interface. display ipv6 routing-table acl Use display ipv6 routing-table acl to display routing information permitted by a specific IPv6 basic ACL.
Destination : ::1/128 Protocol NextHop : ::1 Preference: 0 Interface : InLoop0 Cost : 0 Destination : 1:1::/64 Protocol : Static NextHop : :: Preference: 60 Interface : NULL0 Cost For command output, see Table 6. # Display detailed information about all routes permitted by IPv6 ACL 2000.
display ipv6 routing-table ipv6-address Use display ipv6 routing-table ipv6-address to display information about routes to an IPv6 destination address. Use display ipv6 routing-table ipv6-address1 to ipv6-address2 to display information about routes to a range of IPv6 destination addresses.
If the two operations yield the same result for an entry and the entry has a prefix length less than or equal to the entered prefix length, the entry is displayed. • display ipv6 routing-table ipv6-address longer-match: { { 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.
display ipv6 routing-table 100:: to 300:: Summary Count : 3 Destination: 100::/64 Protocol NextHop : :: Preference: 60 : Static Interface : NULL0 Cost : 0 Destination: 200::/64 Protocol : Static NextHop : :: Preference: 60 Interface : NULL0 Cost : 0 Destination: 300::/64 Protocol : Static NextHop : :: Preference: 60 Interface : NULL0 Cost : 0 For command output, see Table 6.
system-view [Sysname] ipv6 prefix-list test permit ::1 128 # Display brief information about the active IPv6 route permitted by the IPv6 prefix list. [Sysname] display ipv6 routing-table prefix-list test Routes Matched by Prefix list : test Summary Count : 1 Destination: ::1/128 Protocol NextHop : ::1 Preference: 0 : Direct Interface : InLoop0 Cost : 0 For command output, see Table 6. # Display detailed information about all routes permitted by the IPv6 prefix list.
mdc-admin mdc-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. Without this option, the command displays routing information for the public network. protocol: Specifies a routing protocol. It can be bgp4+, direct, isisv6, ospfv3, ripng, or static. inactive: Displays information about inactive routes. Without this keyword, the command displays information about both active and inactive routes.
Destination: 2::2/128 Protocol NextHop : fe80::3 Preference: 60 : Static Interface : Vlan2 Cost : 0 Destination: 3::3/128 Protocol : Static NextHop : 2::2 Preference: 60 Interface : Vlan2 Cost : 0 Static Routing table Status : Summary Count : 0 For command output, see Table 6. display ipv6 routing-table statistics Use display ipv6 routing-table statistics to display IPv6 route statistics.
Field Description 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 max-ecmp-num Use display max-ecmp-num to display the maximum number of ECMP routes.
Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters attribute-id: Specifies a route attribute by its ID in the range of 0 to FFFFFFFF. Examples # Display route attribute information in the RIB. display rib attribute Total number of attribute(s): 10 Detailed information of attribute 0x0: Flag: 0x0 Protocol: BGP Address family: IPv4 Reference count: 0 Local prefrence: 0 Ext-communities number: 26 Ext-communities value:
Field Description Ext-communities number Number of the extended community attribute values. Ext-communities value Values of the extended community attribute. This field displays N/A when no value exists, and it can display up to 20 values. Communities number Number of the COMMUNITY attribute values. Communities value Values of the COMMUNITY attribute. This field displays N/A when no value exists, and it can display up to 20 values. AS-path number Number of ASs in the AS_PATH attribute.
Table 11 Command output Field Description RIB GR status: • Start—GR starts. • IGP end—All IGP protocols complete GR. • VPN-triggering end—Optimal route selection triggered by VPN routes completes. RIB GR state • • • • • • • VPN-calculation end—Optimal VPN route selection completes. Routing protocol end—All routing protocols complete GR. Triggering start—All triggered optimal route selection starts. Triggering end—All triggered optimal route selection completes.
Syntax display rib nib [ self-originated ] [ nib-id ] [ verbose ] display rib nib protocol protocol-name [ verbose ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters nib-id: Specifies a NIB by its ID in the range of 1 to FFFFFFFF. self-originated: Displays information about next hops of self-originated routes in the RIB. verbose: Displays detailed next hop information in the RIB.
NthpCnt: 1 Samed: 0 NthpType: IP SubNibID: 0x21000003 SubSeq: 36 NthpCnt: 1 Samed: 0 NthpType: IP SubNibID: 0x21000004 SubSeq: 37 NthpCnt: 1 Samed: 0 NthpType: IP SubNibID: 0x21000005 SubSeq: 38 NthpCnt: 1 Samed: 0 NthpType: IP ... Table 12 Command output Field Description NibID ID of the next hop. Sequence Sequence number of the next hop. Type Type of the next hop. Flushed Indicates whether the route with the next hop has been flushed to the FIB. UserKey0 Reserved data 1.
Flag: 0x84 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: vpn1 TunnelID: N/A NibID: 0x10000001 Type: 0x1 Sequence: 1 Flushed: Yes UserKey0: 0x0 VrfNthp: 1 UserKey1: 0x0 Nexthop: 127.0.0.1 IFIndex: 0x112 RefCnt: 13 Flag: 0x84 LocalAddr: 127.0.0.1 FlushRefCnt: 5 Version: 1 1 nexthop(s): PrefixIndex: 0 OrigNexthop: 127.0.0.1 RelyDepth: 0 RealNexthop: 127.0.0.
Interface: Vlan10 LocalAddr: 10.1.1.1 TunnelCnt: 0 Vrf: default-vrf TunnelID: N/A PrefixIndex: 1 OrigNexthop: 11.1.1.2 RelyDepth: 0 RealNexthop: 11.1.1.2 Interface: Vlan11 LocalAddr: 11.1.1.1 TunnelCnt: 0 Vrf: default-vrf TunnelID: N/A ... Table 13 Command output Field Description Policy Tunnel policy name. x nexthop (s) Number of next hops. PrefixIndex Prefix index of the next hop for an ECMP route. Vrf VPN name. OrigNexthop Original next hop. RealNexthop Real next hop.
mdc-operator Parameters nib-id: Specifies a NIB by its ID in the range of 1 to FFFFFFFF. verbose: Displays detailed next hop information for direct routes. Without this keyword, the command displays brief next hop information for direct routes. Examples # Display brief next hop information for direct routes.
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 LocalAddr: 0.0.0.0 TunnelCnt: 0 Vrf: vpn1 TunnelID: N/A NibID: 0x10000001 Type: 0x1 Sequence: 1 Flushed: Yes UserKey0: 0x0 VrfNthp: 1 UserKey1: 0x0 Nexthop: 127.0.0.1 IFIndex: 0x112 RefCnt: 5 Flag: 0x2 LocalAddr: 127.0.0.1 FlushRefCnt: 0 Version: 1 1 nexthop(s): PrefixIndex: 0 OrigNexthop: 127.0.0.
fib lifetime Use fib lifetime to set the maximum lifetime for IPv4 or IPv6 routes in the FIB. Use undo fib lifetime to restore the default. Syntax fib lifetime seconds undo fib lifetime Default The maximum lifetime for IPv4 or IPv6 routes in the FIB is 600 seconds. Views RIB IPv4 address family view, RIB IPv6 address family view Predefined user roles network-admin mdc-admin Parameters second: Sets the maximum lifetime for routes in the FIB, in the range of 0 to 900 seconds.
Parameters number: Specifies the maximum number of ECMP routes, in the range of 1 to 32. Examples # Configure the maximum number of ECMP routes as 10. system-view [Sysname] max-ecmp-num 10 The configuration will take effect at the next reboot. Continue? [Y/N]:y Reboot device to make the configuration take effect. After reboot, the maximum number of ECMP routes is 10. protocol lifetime Use protocol lifetime to set the maximum lifetime for IPv4 or IPv6 routes and labels in the RIB.
Syntax reset ip routing-table statistics protocol [ vpn-instance vpn-instance-name ] { protocol | all } Views User view Predefined user roles network-admin mdc-admin Parameters vpn-instance vpn-instance-name: Clears the IPv4 route statistics for an MPLS L3VPN instance specified by its name, a case-sensitive string of 1 to 31 characters. Without this option, the command clears route statistics for the public network. protocol: Clears route statistics for a routing protocol.
rib Use rib to enter RIB view. Use undo rib to remove all configurations in RIB view. Syntax rib undo rib Views System view Predefined user roles network-admin mdc-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 mdc-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.
Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters nib-id: Specifies a NIB by its ID in the range of 1 to FFFFFFFF. verbose: Displays detailed static route next hop information. Without this keyword, the command displays brief static route next hop information. Examples # Displays brief static route next hop information.
# Displays detailed static route next hop information. display route-static nib verbose Total number of nexthop(s): 44 NibID: 0x11000000 Type: 0x21 Sequence: 0 Flushed: Yes 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.
Field Description 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.
NibID: 0x1100000a MainNibID: N/A NextHop: 2.2.2.10 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 Destination: 0.0.0.0/0 NibID: 0x1100000b NextHop: 2.2.2.
Field Description BkNibID ID of the backup next hop for static route FRR. NextHop Next hop address. BkNextHop Backup next hop address. Interface Output interface of the route. BkInterface Backup output interface. TableID ID of the table to which the route belongs. Flag Flag of the route. 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.
ip route-static vpn-instance s-vpn-instance-name dest-address { mask-length | mask } { interface-type interface-number [ next-hop-address ] [ backup-interface interface-type interface-number [ backup-nexthop backup-nexthop-address ] [ permanent ] | bfd { control-packet | echo-packet } | permanent ] | next-hop-address [ public ] [ bfd control-packet bfd-source ip-address | permanent | track track-entry-number ] | vpn-instance d-vpn-instance-name next-hop-address [ bfd control-packet bfd-source ip-address | p
echo-packet: Specifies the BFD echo mode. public: Indicates that the specified next hop address is on the public network. interface-type interface-number: Specifies an output interface by its type and number. If the output interface is an NBMA interface or broadcast interface (such as an Ethernet interface or a VLAN interface), rather than a P2P interface, the next hop address must be specified. preference preference-value: Specifies a preference for the static route, in the range of 1 to 255.
ip route-static default-preference Use ip route-static default-preference to configure a default preference for static routes. Use undo ip route-static default-preference to restore the default. Syntax ip route-static default-preference default-preference-value undo ip route-static default-preference Default The default preference of static routes is 60.
RIP commands checkzero Use checkzero to enable zero field check on RIPv1 messages. Use undo checkzero to disable zero field check. Syntax checkzero undo checkzero Default The zero field check function is enabled. Views RIP view Predefined user roles network-admin mdc-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 mdc-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.
Examples # Configure all interfaces running RIP process 100 to send only a default route with a metric of 2 to RIP neighbors. system-view [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.
Silent interfaces: None Default routes: Originate Default routes cost: 3 Verify-source: Enabled Networks: 1.0.0.0 Configured peers: 197.168.6.2 Triggered updates sent: 0 Number of routes changes: 1 Number of replies to queries: 0 Table 19 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.
Field Description Triggered updates sent Number of triggered updates sent. Number of routes changes Number of route changes. Number of replies to queries Number of RIP responses. display rip database Use display rip database to display active routes for a RIP process. RIP advertises active routes in RIP routing updates.
Field Description interface summary Indicates that the route is a RIP interface summary route. nexthop Address of the next hop. RIP-interface Direct route on a RIP-enabled interface. imported Indicates that the route is redistributed from another routing protocol. display rip interface Use display rip interface to display RIP interface information for a RIP process.
Field Description MetricIn Additional metric added to incoming routes. MetricIn route policy Name of the routing policy used to add an additional metric for incoming routes. If no routing policy is used, the field displays Not designated. MetricOut Additional metric added to outgoing routes. MetricOut route policy Name of the routing policy used to add an additional routing metric for outgoing routes. If no routing policy is used, the field displays Not designated.
Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535. ip-address { mask-length | mask }: Displays route information for the specified IP address. verbose: Displays all routing information for the specified destination IP address. Without this keyword, the command displays only information about optimal routes with the specified destination IP address. peer ip-address: Displays route information learned from the specified neighbor.
Field Description Peer X.X.X.X on interface-type interface-number Routing information learned from a neighbor on a RIP interface. Destination/Mask Destination IP address and subnet mask. Nexthop Next hop of the route. If the route is from a directly connected neighbor, the original next hop is the real next hop. OrigNexthop/RealNexthop If the route is from an indirectly connected neighbor, the RealNexthop field displays the recursive next hop for the route. Otherwise, the field is blank.
Predefined user roles network-admin mdc-admin Parameters 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 RIP FRR is available only when the state of primary link (with Layer 3 interfaces staying up) changes from bidirectional to unidirectional or down. A unidirectional link refers to the link through which packets are forwarded only from one end to the other.
mdc-admin Parameters acl-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 IP prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter redistributed routes. protocol: Filters routes redistributed from the specified routing protocol, which can be bgp, direct, isis, ospf, rip, or static. process-id: Specifies the process ID of the specified routing protocol, in the range of 1 to 65535.
[Sysname-acl-adv-3000] rule 100 deny ip [Sysname-acl-adv-3000] quit [Sysname] rip 1 [Sysname-rip 1] filter-policy 3000 export Related commands • acl (ACL and QoS Command Reference) • import-route • ip prefix-list filter-policy import Use filter-policy import to configure RIP to filter received routes. Use undo filter-policy import to restore the default.
Examples # Use ACL 2000 to filter received RIP routes. system-view [Sysname] acl number 2000 [Sysname-acl-basic-2000] rule deny source 192.168.10.0 0.0.0.255 [Sysname-acl-basic-2000] quit [Sysname] rip 1 [Sysname-rip-1] filter-policy 2000 import # Use IP prefix list abc to filter received RIP routes. system-view [Sysname] ip prefix-list abc index 10 permit 11.0.0.0 8 [Sysname] rip 1 [Sysname-rip-1] filter-policy prefix-list abc import # Configure ACL 3000 to permit only route 113.0.0.
[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. Syntax host-route undo host-route Default RIP receives host routes. Views RIP view Predefined user roles network-admin mdc-admin Usage guidelines A router might receive many host routes from the same subnet. These routes are not helpful for routing and occupy many resources.
Predefined user roles network-admin mdc-admin Parameters protocol: Specifies a routing protocol from which RIP redistributes routes. It can be bgp, direct, isis, ospf, rip, or static. process-id: Specifies a process by its ID in the range of 1 to 65535. The default is 1. This argument is available only when the protocol is isis, rip, or ospf. all-processes: Enables route redistribution from all the processes of the specified protocol. This keyword takes effect only when the protocol is rip, ospf, or isis.
Views RIP view Predefined user roles network-admin mdc-admin Parameters number: Specifies the maximum number of ECMP routes. Usage guidelines The value range for the number argument and the default setting depend on the max-ecmp-num command. If you set the maximum number of ECMP routes to m by using the max-ecmp-num command, the number argument in the maximum load-balancing command is in the range of 1 to m and defaults to m. Examples # Specify the maximum number of ECMP routes as 2.
Usage guidelines RIP runs only on an interface attached to the specified network, which can be configured with a wildcard mask. An interface not on the specified network does not receive or send RIP routes, or advertise its direct routes. For a single RIP process, the network 0.0.0.0 command can enable RIP on all interfaces. If multiple RIP processes exist, the command is not applicable. If a physical interface is attached to multiple networks, you cannot advertise these networks in different RIP processes.
peer Use peer to specify a RIP neighbor in the NBMA network, where routing updates destined for the neighbor are only unicasts and not multicast or broadcast. Use undo peer to remove a RIP neighbor. Syntax peer ip-address undo peer ip-address Default RIP does not unicast updates to any neighbor. Views RIP view Predefined user roles network-admin mdc-admin Parameters ip-address: Specifies the IP address of a RIP neighbor, in dotted decimal notation.
Default The preference of RIP routes is 100. Views RIP view Predefined user roles network-admin mdc-admin Parameters route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters. value: Specifies a preference for RIP routes, in the range of 1 to 255. The smaller the value, the higher the preference. Usage guidelines You can specify a routing policy by using the keyword route-policy to set a preference for matching RIP routes.
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. Syntax reset rip process-id statistics Views User view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535. Examples # Clear statistics for RIP process 100.
vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If no VPN is specified, the RIP process runs on the public network. Usage guidelines You must enable a RIP process before configuring global parameters for it. This restriction does not apply to configuring interface parameters. If you disable a RIP process, the configured interface parameters become invalid. Examples # Enable RIP process 1 and enter RIP view.
Although you can specify an authentication mode for RIPv1 in interface view, the configuration does not take effect because RIPv1 does not support authentication. For security purposes, all keys, including keys configured in plain text, are saved in cipher text. Examples # Configure MD5 authentication on VLAN-interface 10 and specify a plaintext key rose in the format defined in RFC 2453.
rip bfd enable destination Use rip bfd enable destination to enable BFD single-hop echo detection for a specific destination. Use undo rip bfd enable to disable BFD for RIP. Syntax rip bfd enable destination ip-address undo rip bfd enable Default BFD single-hop echo detection for a specific destination is disabled on an interface. Views Interface view Predefined user roles network-admin mdc-admin Usage guidelines The rip bfd enable destination command applies to only BFD echo-mode detection.
Predefined user roles network-admin mdc-admin Parameters only: Advertises only a default route. originate: Advertises both a default route and other routes. cost: Specifies a cost for the default route, in the range of 1 to 15. The default is 1. no-originate: Advertises only non-default routes. Usage guidelines An interface that is enabled to advertise a default route does not receive any default route from RIP neighbors.
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 VLAN-interface 10.
Default The maximum length of RIP packets is 512 bytes. Views Interface view Predefined user roles network-admin mdc-admin Parameters value: Sets the maximum length of RIP packets, in the range of 32 to 65535 bytes. Usage guidelines If the configured value in the rip max-packet-length command is greater than the MTU of an interface, the interface MTU value is used as the maximum length of RIP packets. The supported maximum length of RIP packets varies by vendor.
mdc-admin Parameters route-policy route-policy-name: Uses the specified routing policy to add an additional metric for the routes matching it. The route-policy-name argument is a case-sensitive string of 1 to 63 characters. value: Adds an additional metric to inbound routes, in the range of 0 to 16. Usage guidelines When a valid RIP route is received, the system adds a metric to it and then installs it into the routing table. The metric of the route received on the configured interface is then increased.
Predefined user roles network-admin mdc-admin Parameters route-policy route-policy-name: Uses the specified routing policy to add an additional metric for the routes matching it. The route-policy-name argument is a case-sensitive string of 1 to 63 characters. value: Adds an additional metric to outbound routes, in the range of 1 to 16. Usage guidelines With the command configured on an interface, the metric of RIP routes sent on the interface will be increased.
Views System view Predefined user roles network-admin mdc-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.
Use undo rip poison-reverse to disable the poison reverse function. Syntax rip poison-reverse undo rip poison-reverse Default The poison reverse function is disabled. Views Interface view Predefined user roles network-admin mdc-admin Examples # Enable the poison reverse function on VLAN-interface 10. system-view [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] rip poison-reverse rip split-horizon Use rip split-horizon to enable the split horizon function.
[Sysname-Vlan-interface10] rip split-horizon rip summary-address Use rip summary-address to configure RIPv2 to advertise a summary route on an interface. Use undo rip summary-address to remove the configuration. Syntax rip summary-address ip-address { mask-length | mask } undo rip summary-address ip-address { mask-length | mask } Default RIPv2 does not advertise a summary route.
Default No RIP version is configured on an interface. The interface can send RIPv1 broadcasts, and receive RIPv1 broadcasts and unicasts, and RIPv2 broadcasts, multicasts, and unicasts. Views Interface view Predefined user roles network-admin mdc-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).
Syntax silent-interface { interface-type interface-number | all } undo silent-interface { interface-type interface-number | all } Default All RIP interfaces can send RIP messages. Views RIP view Predefined user roles network-admin mdc-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 VLAN interfaces to operate in silent mode except VLAN-interface 10.
Examples # Disable automatic RIPv2 route summarization. system-view [Sysname] rip [Sysname-rip-1] undo summary Related commands • rip summary-address • rip version timers Use timers to configure RIP timers. Use undo timers to restore the default.
• Garbage-collect timer—Specifies the 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, RIP advertises the route with a metric of 16. If no update is announced for that route before the garbage-collect timer expires, RIP deletes the route from the routing table. HP recommends not changing the default values of these timers. The timer lengths must be consistent on all routers on the network.
Default No global RIP version is configured. An RIP interface can send RIPv1 broadcasts and receive RIPv1 broadcasts and unicasts, and RIPv2 broadcasts, multicasts, and unicasts. Views RIP view Predefined user roles network-admin mdc-admin Parameters 1: Specifies the RIP version as RIPv1. 2: Specifies the RIP version as RIPv2. RIPv2 messages are multicast. Usage guidelines An interface prefers the RIP version configured on it over the global RIP version.
OSPF commands abr-summary (OSPF area view) Use abr-summary to configure a summary route on an area border router (ABR). Use undo abr-summary to remove a summary route. Syntax abr-summary ip-address { mask-length | mask } [ advertise | not-advertise ] [ cost cost ] undo abr-summary ip-address { mask-length | mask } Default No route summarization is configured on an ABR.
area (OSPF view) Use area to create an area and enter area view. Use undo area to remove an area. Syntax area area-id undo area area-id Default No OSPF area is created. Views OSPF view Predefined user roles network-admin mdc-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.
Parameters ip-address: Specifies the destination IP address of the summary route. mask-length: Specifies the mask length in the range of 0 to 32. mask: Specifies the mask in dotted decimal notation. cost cost: Specifies the cost of the summary route, in the range of 1 to 16777214. Without this option, the cost of Type-1 external routes defaults to the largest cost among routes that are summarized, and the cost of Type-2 external routes defaults to the largest cost among routes that are summarized plus 1.
undo authentication-mode [ { hmac-md5 | md5 } key-id ] For simple authentication: authentication-mode simple { cipher | plain } password undo authentication-mode Default No authentication is performed for an area. Views OSPF area view Predefined user roles network-admin mdc-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.
Examples # Configure OSPF Area 0 to use the MD5 authentication mode, and set the key ID to 15 and plaintext authentication password to abc. system-view [Sysname] ospf 100 [Sysname-ospf-100] area 0 [Sysname-ospf-100-area-0.0.0.0] authentication-mode md5 15 plain abc Related commands ospf authentication-mode bandwidth-reference (OSPF view) Use bandwidth-reference to specify a reference bandwidth value for link cost calculation. Use undo bandwidth-reference to restore the default value.
[Sysname] ospf 100 [Sysname-ospf-100] bandwidth-reference 1000 Related commands ospf cost default Use default to configure default parameters for redistributed routes. Use undo default to remove the configuration. Syntax default { cost cost | tag tag | type type } * undo default { cost | tag | type } * Default The cost is 1, the tag is 1, and the route type is 2.
Default The cost is 1. Views OSPF area view Predefined user roles network-admin mdc-admin Parameters cost: Specifies a cost for the default route advertised to the Stub or NSSA area, in the range of 0 to 16777214. Usage guidelines This command takes effect only on the ABR of a stub area or the ABR/ASBR of an NSSA area. Examples # Configure Area 1 as a stub area, and specify the cost of the default route advertised to the stub area as 20.
Parameters always: Generates a default route in a Type-5 LSA into the OSPF routing domain regardless of whether or not there is a default route in the routing table. If this keyword is not specified, the router generates a default route in a Type-5 LSA into the OSPF routing domain only when an active default route that does not belong to the current OSPF process exists in the IP routing table. permit-calculate-other: Enables OSPF to calculate default routes received from other routers.
undo description Default No description is configured for an OSPF process or area. Views OSPF view, OSPF area view Predefined user roles network-admin mdc-admin Parameters description: Configures a description for the OSPF process in OSPF view, or for the OSPF area in OSPF area view. The description argument specifies a string of 1 to 80 characters. Usage guidelines The description specified by this command is used to identify an OSPF process or area. Examples # Describe OSPF process 100 as abc.
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 all OSPF processes. verbose: Displays detailed OSPF process information. Without this keyword, the command displays brief OSPF process information. standby slot slot-number: Displays backup OSPF process information for a card. Without this option, the command displays OSPF process information. (In standalone mode.
Current calculation type: SPF calculation Current calculation phase: Calculation area topology 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, L-N/A, C-N/A, R-N/A Area: 0.0.0.
Field Description Status of the stub router: Condition • • • • Always. On startup while BGP is converging. On startup while BGP is converging for XXX seconds. On startup for XXX seconds. State Indicates whether the stub router is active. SPF-schedule-interval Interval for SPF calculations. LSA generation interval LSA generation interval. LSA arrival interval LSA arrival interval. LSU packet transmit rate of the interface: Transmit pacing • Interval—LSU transmit interval of the interface.
Field Description Current route calculation type: Current calculation type • • • • • SPF calculation. • • • • • 7to5 translator—Type-7-to-Type-5 LSA calculation. Intra router calculation—Intra-area route calculation. ASBR calculation—Inter-area ASBR route calculation. Inc intra router—Incremental intra-area route calculation. Inc ASBR calculation—Incremental inter-area ASBR route calculation. Full intra AS—Calculation of all intra-AS prefixes.
Field Description Modules that reply reset prepare messages: Reset prepare message replied • • • • P—Neighbor maintenance module. L—LSDB synchronization module. C—Route calculation module. R—Route redistribution module. Modules that reply reset process messages: Reset process message replied • • • • P—Neighbor maintenance module. L—LSDB synchronization module. C—Route calculation module. R—Route redistribution module. Reset phase of each module: • Main control module: { N/A—Not reset.
Field Description State of the translator that translates Type-7 LSAs to Type-5 LSAs. The value can be one of the following: 7/5 translator state • Enabled—The translator is specified through commands. • Elected—The translator is designated through election. • Disabled—The device is not a translator. 7/5 translate stability timer interval Stability interval for Type-7 LSA-to-Type-5 LSA translation. ExChange/Loading Neighbors Neighbors in ExChange/Loading state.
Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. Without this argument, the command displays routes to the ABR and ASBR for all OSPF processes. verbose: Displays detailed information. Without this keyword, the command displays brief information. Usage guidelines If you use this command on routers in a stub area, the commands displays no ASBR information.
Field Description RtType Router type: ABR or ASBR. display ospf abr-summary Use display ospf abr-summary to display information about summary routes on the ABR. Syntax display ospf [ process-id ] [ area area-id ] abr-summary [ ip-address { mask-length | mask } ] [ verbose ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
Table 26 Command output Field Description Area Area to which the summary routes belong. Total summary addresses Total number of summary routes. Net Address of the summary route. Mask Mask of the summary route address. Status Advertisement status of the summary route. Count Number of summarized routes. Cost Cost to the summary network. # Display detailed information about summary routes on the ABR. display ospf abr-summary verbose OSPF Process 1 with Router ID 2.2.2.
Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-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 summarized redistributed routes for all OSPF processes. ip-address: Specifies an IP address in dotted decimal notation. mask-length: Specifies the mask length in the range of 0 to 32. mask: Specifies the mask in dotted decimal notation.
Field Description Mask Mask of the summary route address. Tag Tag of the summary route. Status Advertisement status of the summary route. Cost Cost to the summary network. The Count of Route Number of summarized routes. Destination Destination address of a summarized route. Net Mask Network mask of a summarized route. Proto Routing protocol from which the route was redistributed. Process Process ID of the routing protocol from which the route was redistributed.
SPF log Date Time Duration Intra Inter External Reason 2012-06-27 15:28:26 0.95 1 1 10000 Intra-area LSA 2012-06-27 15:28:23 0.2 0 0 0 Area 0 full neighbor number 2012-06-27 15:28:19 0 0 0 0 Intra-area LSA 2012-06-27 15:28:19 0 0 0 0 external LSA 2012-06-27 15:28:19 0.
Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. Without this argument, the command displays FRR backup next hop information for all processes. area area-id: Specifies an OSPF area by its ID, which is an IP address or a decimal integer in the range of 0 to 4294967295 that is translated into the IP address format.
network-operator mdc-admin mdc-operator Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. Without this argument, the command displays GR information for all processes. verbose: Displays detailed GR information. Without this keyword, the command displays brief GR information. Examples # Display detailed GR information. display ospf graceful-restart verbose OSPF Process 1 with Router ID 1.1.1.
Restarter : None Helper : None Neighbor IP address GR state Last Helper exit reason 4.4.4.4 20.2.0.4 Normal Reset neighbor Table 31 Command output Field Description OSPF Process 1 with Router ID 1.1.1.1 GR information for OSPF process 1 with router ID 1.1.1.1. Graceful Restart information Indicates whether GR is enabled: • Enable(IETF)—IETF GR is enabled. • Enable(Nonstandard)—Non-IETF GR is enabled. • Disable—GR is disabled.
Field Description Authentication type of the area: • None—No authentication. • Simple—Simple authentication. • MD5—MD5 authentication. Authtype Type of the area: • • • • • Area flag Normal. Stub. StubNoSummary (totally stub area). NSSA. NSSANoSummary (totally NSSA area). Area up Interface count Number of up interfaces in the area. Interface Interface in the area. Restarter state Restarter state on the interface. State Interface state. Type Interface network type.
Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters process-id: Specifies an OSPF process ID in the range of 1 to 65535. Without this argument, the command displays the OSPF interface information for all OSPF processes. interface-type interface-number: Specifies an interface by its type and number. verbose: Displays detailed OSPF information for all interfaces. standby slot slot-number: Displays backup OSPF interface information for a card.
Field Description Interface state: • DOWN—No protocol traffic can be sent or received on the interface. • Waiting—The interface starts sending and receiving Hello packets and the router is trying to determine the identity of the (Backup) designated router for the network. State • P-2-P—The interface will send Hello packets at the interval of HelloInterval, and try to establish an adjacency with the neighbor. • DR—The router is the designated router on the network.
Field Description MD5 authentication enabled Authentication mode. The last key Current MD5 authentication key ID. neighbor(s) Number of neighbors that have not completed key rollover. display ospf lsdb Use display ospf lsdb to display OSPF LSDB information.
router: Displays Type-1 LSA (Router LSA) information in the LSDB. summary: Displays Type-3 LSA (Network Summary LSA) information in the LSDB. link-state-id: Specifies a link state ID in the IP address format. originate-router advertising-router-id: Specifies an advertising router by its ID. self-originate: Displays information about self-originated LSAs. standby slot slot-number: Display backup OSPF LSDB information for a card. Without this option, the command displays OSPF LSDB information.
Field Description Sequence Sequence number of the LSA. Metric Cost of the LSA. *Opq-Link Opaque LSA generated by a virtual link. # Display Type-2 LSA (Network LSA) information in the LSDB. display ospf 1 lsdb network OSPF Process 1 with Router ID 192.168.1.1 Area: 0.0.0.0 Link State Database Type : Network LS ID : 192.168.0.2 Adv Rtr : 192.168.2.1 LS Age : 922 Len : 32 Options : Seq# : 80000003 Checksum Net Mask E : 0x8d1b : 255.255.255.0 Attached Router 192.168.1.
Field Description LSA options: • • • • • • Options O—Opaque LSA advertisement capability. E—AS External LSA reception capability. EA—External extended LSA reception capability. DC—On-demand link support. N—NSSA external LSA support. P—Capability of an NSSA ABR to translate Type-7 LSAs into Type-5 LSAs. Seq# LSA sequence number. Checksum LSA checksum. Net Mask Network mask. Attached Router ID of the router that established adjacency with the DR, and ID of the DR itself.
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.
slot-number argument specifies the slot number of the card. Without this option, the command displays OSPF neighbor information. (In IRF mode.) Examples # Display detailed OSPF neighbor information. display ospf peer verbose OSPF Process 1 with Router ID 1.1.1.1 Neighbors Area 0.0.0.0 interface 1.1.1.1(Vlan-interface1)'s neighbors Router ID: 1.1.1.2 Address: 1.1.1.2 State: Full Mode: Nbr is master DR: 1.1.1.2 BDR: 1.1.1.
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 State 1.1.1.2 1.1.1.2 1 Full/DR 40 Vlan1 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.
mdc-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 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. (In standalone mode.) standby chassis chassis-number slot slot-number: Displays backup OSPF neighbor statistics of a card on an IRF member device.
Syntax display ospf [ process-id ] request-queue [ interface-type interface-number ] [ neighbor-id ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-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.
display ospf retrans-queue Use display ospf retrans-queue to display retransmission queue information. Syntax display ospf [ process-id ] retrans-queue [ interface-type interface-number ] [ neighbor-id ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-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.
Field Description AdvRouter Advertising router. Sequence LSA sequence number. Age LSA age. display ospf routing Use display ospf routing to display OSPF routing information.
OSPF Process 1 with Router ID 192.168.1.2 Routing Tables Routing for Network Destination Cost Type NextHop AdvRouter Area 192.168.1.0/24 1562 Stub 192.168.1.2 192.168.1.2 0.0.0.0 172.16.0.0/16 1563 Inter 192.168.1.1 192.168.1.1 0.0.0.0 Total Nets: 2 Intra Area: 1 Inter Area: 1 ASE: 0 NSSA: 0 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.
SubProtoID: 0x1 Preference: 10 NextHop: 192.168.1.1 BkNextHop: N/A IfType: Broadcast BkIfType: N/A Interface: Vlan20 BkInterface: N/A NibID: 0x0 Status: Local Total Nets: 2 Intra Area: 2 Inter Area: 0 ASE: 0 NSSA: 0 Table 43 Command output Field Description SubProtoID Sub protocol ID. Preference OSPF route preference. NbrId Neighbor router ID. NextHop Primary next hop IP address. BkNextHop Backup next hop IP address.
mdc-admin mdc-operator Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. Without this argument, the command displays topology information for all OSPF processes. area area-id: Specifies an OSPF area by its ID, which is an IP address or a decimal integer in the range of 0 to 4294967295 that is translated into the IP address format. Without this option, the command displays topology information for all OSPF areas. verbose: Displays detailed OSPF topology information.
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.
Link-State Update 3 3 Link-State Ack 3 2 LSAs originated by this router Router : 4 Network : 0 Sum-Net : 0 Sum-Asbr: 0 External: 0 NSSA : 0 Opq-Link: 0 Opq-Area: 0 Opq-As : 0 LSAs originated: 4 LSAs received: 7 Routing table: Intra area: 2 Inter area: 3 ASE/NSSA: 0 Table 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.
Field Description Routing table Routing table information. Intra area Number of intra-area routes. Inter area Number of inter-area routes. ASE Number of ASE routes. # Display OSPF error statistics. display ospf statistics error OSPF Process 1 with Router ID 192.168.1.
Field Description Unknown neighbor Packets received from unknown neighbors. HELLO: Netmask mismatch Hello packets with mismatched mask. HELLO: Hello-time mismatch Hello packets with mismatched hello timer. HELLO: Dead-time mismatch Hello packets with mismatched dead timer. HELLO: Ebit option mismatch Hello packets with mismatched E-bit in the option field. DD: MTU option mismatch DD packets with mismatched MTU. DD: Unknown LSA type DD packets with unknown LSA type.
standby chassis chassis-number slot slot-number: Displays backup OSPF virtual link information for a card on an IRF member device. The chassis-number argument specifies the ID of the IRF member device. The slot-number argument specifies the slot number of the card. Without this option, the command displays OSPF virtual link information. (In IRF mode.) Examples # Display OSPF virtual link information. display ospf vlink OSPF Process 1 with Router ID 3.3.3.
Predefined user roles network-admin network-operator mdc-admin mdc-operator Examples # Display the global router ID. display router id Configured router ID is 1.1.1.1 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.
Default OSPF link-local signaling capability is disabled. Views OSPF view Predefined user roles network-admin mdc-admin Examples # Enable link-local signaling for OSPF process 1. system-view [Sysname] ospf 1 [Sysname-ospf-1] enable link-local-signaling enable out-of-band-resynchronization Use enable out-of-band-resynchronization to enable the OSPF out-of-band resynchronization (OOB-Resynch) capability.
fast-reroute (OSPF view) Use fast-reroute to configure OSPF FRR. Use undo fast-reroute to restore the default. Syntax fast-reroute { lfa [ abr-only ] | route-policy route-policy-name } undo fast-reroute Default OSPF FRR is disabled. Views OSPF view Predefined user roles network-admin mdc-admin 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.
undo filter { export | import } Default Type-3 LSAs are not filtered. Views OSPF area view Predefined user roles network-admin mdc-admin Parameters acl-number: Specifies an ACL by its number in the range of 2000 to 3999 to filter inbound/outbound Type-3 LSAs. prefix-list-name: Specifies an IP prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter inbound/outbound Type-3 LSAs.
mdc-admin Parameters acl-number: Specifies an ACL by its number in the range of 2000 to 3999 to filter redistributed routes by destination address. prefix-list-name: Specifies an IP prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter redistributed routes by destination address. protocol: Filters routes redistributed from the specified routing protocol, which can be bgp, direct, isis, ospf, rip, or static.
Syntax filter-policy { acl-number [ gateway prefix-list-name ] | gateway prefix-list-name | prefix-list prefix-list-name [ gateway prefix-list-name ] | route-policy route-policy-name } import undo filter-policy import Default Routes calculated using received LSAs are not filtered. Views OSPF view Predefined user roles network-admin mdc-admin Parameters acl-number: Specifies an ACL by its number in the range of 2000 to 3999 to filter received routes by destination.
[Sysname-acl-adv-3000] rule 100 deny ip [Sysname-acl-adv-3000] quit [Sysname] ospf 100 [Sysname-ospf-100] filter-policy 3000 import graceful-restart (OSPF view) Use graceful-restart to enable OSPF GR. Use undo graceful-restart to disable OSPF GR. Syntax graceful-restart [ ietf | nonstandard ] [ global | planned-only ] * undo graceful-restart Default OSPF GR is disabled. Views OSPF view Predefined user roles network-admin mdc-admin Parameters ietf: Enables IETF GR. nonstandard: Enables non-IETF GR.
Examples # Enable IETF GR for OSPF process 1. system-view [Sysname] ospf 1 [Sysname-ospf-1] opaque-capability enable [Sysname-ospf-1] graceful-restart ietf # Enable non-IETF GR for OSPF process 1.
graceful-restart helper strict-lsa-checking Use graceful-restart helper strict-lsa-checking to enable strict LSA checking capability for GR helper. Use undo graceful-restart helper strict-lsa-checking to disable strict LSA checking capability for GR helper. Syntax graceful-restart helper strict-lsa-checking undo graceful-restart helper strict-lsa-checking Default Strict LSA checking capability for GR helper is disabled.
Parameters interval-value: Specifies the GR interval in the range of 40 to 1800 seconds. Usage guidelines The value of the GR restart interval cannot be smaller than the maximum OSPF neighbor dead time of all the OSPF interfaces. Otherwise, GR restart might fail. Examples # Configure the GR interval for OSPF process 1 as 100 seconds.
Use undo import-route to disable route redistribution from another routing protocol. Syntax import-route protocol [ process-id | all-processes | allow-ibgp ] [ cost cost | [ cost cost | nssa-only | route-policy route-policy-name | tag tag | type type ] * undo import-route protocol [ process-id | all-processes ] Default OSPF does not redistribute AS-external routes from any other routing protocol.
from an internal router to a Type-2 external route's destination equals the cost from the ASBR to the Type-2 external route's destination. The import-route command cannot redistribute default external routes. The import-route bgp command redistributes only EBGP routes. Because the import-route bgp allow-ibgp command redistributes both EBGP and IBGP routes and might cause routing loops, use it with caution. Only active routes can be redistributed.
system-view [Sysname] ospf 100 [Sysname-ospf-100] ispf enable log-peer-change Use log-peer-change to enable the logging of OSPF neighbor state changes. Use undo log-peer-change to disable the logging of OSPF neighbor state changes. Syntax log-peer-change undo log-peer-change Default The logging of OSPF neighbor state changes is enabled.
Predefined user roles network-admin mdc-admin Parameters interval: Specifies the LSA arrival interval in the range of 0 to 60000 milliseconds. Usage guidelines If an LSA that has the same LSA type, LS ID, originating router ID as the previous LSA is received within the interval, OSPF discards the LSA. This feature helps protect resources from being over consumed due to frequent network changes.
You can configure the interval that OSPF exits overflow state. An interval of 0 indicates that the timer is not started and OSPF does not exit overflow state. Examples # Configure the OSPF exit overflow interval as 10 seconds. system-view [Sysname] ospf 100 [Sysname-ospf-100] lsdb-overflow-interval 10 lsa-generation-interval Use lsa-generation-interval to configure the OSPF LSA generation interval. Use undo lsa-generation-interval to restore the default.
Related commands lsa-arrival-interval lsdb-overflow-limit Use lsdb-overflow-limit to specify the upper limit of external LSAs in the LSDB. Use undo lsdb-overflow-limit to restore the default. Syntax lsdb-overflow-limit number undo lsdb-overflow-limit Default The number of external LSAs is not limited. Views OSPF view Predefined user roles network-admin mdc-admin Parameters number: Specifies the upper limit of external LSAs in the LSDB, in the range of 1 to 1000000.
Parameters maximum: Specifies the maximum number of ECMP routes. No ECMP load balancing is available when the number is set to 1. Usage guidelines The value range for the maximum argument and the default setting depend on the max-ecmp-num command. If you set the maximum number of ECMP routes to m by using the max-ecmp-num command, the maximum argument in the maximum load-balancing command is in the range of 1 to m and defaults to m. Examples # Specify the maximum number of ECMP routes as 2.
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. Examples # Specify the interface whose primary IP address is on network 131.108.20.0/24 to run OSPF in Area 2. system-view [Sysname] ospf 100 [Sysname-ospf-100] area 2 [Sysname-ospf-100-area-0.0.0.2] network 131.108.20.0 0.0.0.
the command distributes a default route in a Type-7 LSA into the OSPF routing domain, and the routing policy modifies some values in the Type-7 LSA. type type: Specifies a type for the Type-7 LSA: 1 or 2. If no type is specified, the default type specified by the default type command applies. no-import-route: Used on an NSSA ABR to control the import-route command to not redistribute routes into the NSSA area.
Predefined user roles network-admin mdc-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.
ospf area Use ospf area to enable OSPF on an interface. Use undo ospf area to remove the configuration. Syntax ospf process-id area area-id [ exclude-subip ] undo ospf process-id area [ exclude-subip ] Default OSPF is not enabled on an interface. Views Interface view Predefined user roles network-admin mdc-admin Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
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 mdc-admin Parameters hmac-md5: Specifies HMAC-MD5 authentication. md5: Specifies MD5 authentication. simple: Specifies simple authentication. key-id: Specifies a key by its ID in the range of 1 to 255. cipher: Sets a ciphertext key. cipher-string: Specifies a ciphertext key.
Examples # Enable MD5 authentication for the network 131.119.0.0/16 in Area 1. Set the interface key ID to 15, and plaintext key to 123456. system-view [Sysname] ospf 100 [Sysname-ospf-100] area 1 [Sysname-ospf-100-area-0.0.0.1] network 131.119.0.0 0.0.255.255 [Sysname-ospf-100-area-0.0.0.1] authentication-mode md5 [Sysname-ospf-100-area-0.0.0.
Usage guidelines Do not use OSPF FRR and BFD for OSPF at the same time. Otherwise, OSPF FRR might fail to take effect. Examples # Enable BFD for OSPF on VLAN-interface 11. system-view [Sysname] ospf [Sysname-ospf-1] area 0 [Sysname-ospf-1-area-0.0.0.0] network 192.168.0.0 0.0.255.255 [Sysname] interface vlan-interface 11 [Sysname-Vlan-interface11] ospf bfd enable ospf cost Use ospf cost to set an OSPF cost for an interface. Use undo ospf cost to restore the default.
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 mdc-admin Parameters priority: Specifies the router priority for the interface, in the range of 0 to 255. Usage guidelines The greater the value, the higher the priority for DR/BDR election.
Usage guidelines If you enable LFA on an interface, it can be selected as a backup interface. After you disable LFA on the interface, it cannot be selected as a backup. Examples # Disable VLAN-interface 11 from calculating a backup next hop by using the LFA algorithm. system-view [Sysname] interface vlan-interface 11 [Sysname-Vlan-interface11] 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 mtu-enable undo ospf mtu-enable Default The MTU in DD packets is 0. Views Interface view Predefined user roles network-admin mdc-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.
Parameters broadcast: Specifies the network type as broadcast. nbma: Specifies the network type as NBMA. p2mp: Specifies the network type as P2MP. unicast: Specifies the P2MP interface to unicast OSPF packets. By default, a P2MP interface multicasts OSPF packets. p2p: Specifies the network type as P2P. Usage guidelines If a router on a broadcast network does not support multicast, configure the network type for the connected interfaces as NBMA.
Predefined user roles network-admin mdc-admin Parameters disable: Disables prefix suppression on an interface. Usage guidelines To disable prefix suppression on an interface associated with an OSPF process that has been enabled with prefix suppression, execute the ospf prefix-suppression disable command on that interface. For more information, see "prefix-suppression." Examples # Enable prefix suppression on VLAN-interface 10.
Examples # Configure the dead interval for VLAN-interface 10 as 60 seconds. system-view [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] ospf timer dead 60 Related commands ospf timer hello ospf timer hello Use ospf timer hello to set the hello interval on an interface. Use undo ospf timer hello to restore the default.
Syntax ospf timer poll seconds undo ospf timer poll Default The poll interval is 120 seconds on an interface. Views Interface view Predefined user roles network-admin mdc-admin Parameters seconds: Specifies the poll interval in the range of 1 to 2147483647 seconds. Usage guidelines When an NBMA interface finds its neighbor is down, it sends hello packets at the poll interval. The poll interval must be at least four times the hello interval.
Parameters interval: Specifies the LSA retransmission interval in the range of 1 to 3600 seconds. Usage guidelines After sending an LSA, an interface waits for an acknowledgement packet. If the interface receives no acknowledgement within the retransmission interval, it retransmits the LSA. To avoid unnecessary retransmissions, set an appropriate retransmission interval. For example, you can set a large retransmission interval value on a low-speed link.
peer Use peer to specify a neighbor and a DR priority for the neighbor. Use undo peer to remove the configuration. Syntax peer ip-address [ cost value | dr-priority dr-priority ] undo peer ip-address Default No neighbor is specified. Views OSPF view Predefined user roles network-admin mdc-admin Parameters ip-address: Specifies a neighbor by its IP address. cost value: Specifies the cost to reach the neighbor, in the range of 1 to 65535.
Use undo pic to disable OSPF PIC. Syntax pic [ additional-path-always ] undo pic Default OSPF PIC is enabled. Views OSPF view Predefined user roles network-admin mdc-admin Parameters additional-path-always: Allows the indirect suboptimal route as the backup route. Usage guidelines Prefix Independent Convergence (PIC) enables the device to speed up network convergence by ignoring the number of prefixes. PIC applies to only inter-area routes and external routes.
Parameters ase: Sets a preference for OSPF external routes. Without this keyword, the command sets a preference for OSPF internal routes. route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to set a preference for the specified routes. value: Specifies the preference value in the range of 1 to 255. The smaller the value, the higher the preference.
Usage guidelines Prefix prioritization enables the device to install prefixes in descending priority order: critical, high, medium, and low. The prefix priorities are assigned through routing policies. When a route is assigned multiple prefix priorities, it uses the highest priority. By default, the 32-bit OSPF host routes have a medium priority and other routes have a low priority. Examples # Use a routing policy to assign the medium priority to the specified route prefixes.
forwarding. If no neighbors exist, the DR also does not advertise the primary IP addresses of interfaces in Router LSAs. Examples # Enable prefix suppression for OSPF process 1. system-view [Sysname] ospf 1 [Sysname-ospf-1] prefix-suppression Related commands ospf prefix-suppression reset ospf counters Use reset ospf counters to clear OSPF statistics.
Usage guidelines If no process is specified, this command restarts all OSPF processes. The reset ospf process command performs the following actions: • Clears all invalid LSAs without waiting for their timeouts. • Makes a newly configured Router ID take effect. • Starts a new round of DR/BDR election. • Does not remove previous OSPF configurations. The system prompts you to select whether to reset OSPF process upon execution of this command. Examples # Reset all OSPF processes.
Default Compatibility with RFC 1583 is enabled. Views OSPF view Predefined user roles network-admin mdc-admin Usage guidelines RFC 1583 specifies a different method than RFC 2328 for selecting the optimal route to a destination in another AS. When multiple routes are available to the ASBR, OSPF selects the optimal route by using the following procedure: 1. Selects the route with the highest preference: { { If RFC 2328 is compatible with RFC 1583, all these routes have equal preference.
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. If no loopback interface IP address is available, the highest physical interface IP address is used, regardless of the interface status (up or down).
To disable a network from receiving and sending OSPF routes, issue the command on the interface connected to the network. Examples # Disable VLAN-interface 10 from receiving and sending OSPF packets. system-view [Sysname] ospf 100 [Sysname-ospf-100] silent-interface vlan-interface 10 snmp-agent trap enable ospf Use snmp-agent trap enable ospf to enable SNMP notifications for OSPF. Use undo snmp-agent trap enable ospf to disable the feature.
lsdb-overflow: Specifies LSDB overflow notifications. neighbor-state-change: Specifies notifications about neighbor state change. nssatranslator-status-change: Specifies notifications about NSSA translator state change. retransmit: Specifies notifications about packets that are received and forwarded on an interface. virt-authentication-failure: Specifies notifications about authentication failures on a virtual interface.
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. Use undo spf-schedule-interval to restore the default.
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. Views OSPF area view Predefined user roles network-admin mdc-admin Parameters default-route-advertise-always: Used only on a stub ABR. With this keyword, the ABR advertises a default route in a Type-3 LSA into the stub area regardless of whether FULL-state neighbors exist in the backbone area.
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 mdc-admin Parameters external-lsa max-metric-value: Specifies a cost for the external LSAs, in the range of 1 to 16777215. The default is 16711680.
undo transmit-pacing Default An OSPF interface sends a maximum of three LSU packets every 20 milliseconds. Views OSPF view Predefined user roles network-admin mdc-admin Parameters interval interval: Specifies an interval at which an interface sends LSU packets, in the range of 10 to 1000 milliseconds. If the router has multiple OSPF interfaces, increase this interval to reduce the total number of LSU packets sent by the router every second.
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/HMAC-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 mdc-admin Parameters md5: Specifies the MD5 authentication mode.
system-view [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.
[Sysname-isis-1] auto-cost enable 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.
Default No global link cost is configured. Views IS-IS view Predefined user roles network-admin mdc-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.
Parameters narrow: Receives and sends only narrow cost style packets. (The narrow cost is in the range of 0 to 63.) wide: Receives and sends only wide cost style packets. (The wide cost is in the range of 0 to 16777215.) compatible: Receives and sends both wide and narrow cost style packets. 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.
route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters. Usage guidelines If no level is specified, a Level-2 default route is advertised. The Level-1 default route is advertised to other routers in the same area, and the Level-2 default route is advertised to all the Level-2 and Level-1-2 routers. You can use a routing policy to specify a level for the default route.
Examples # Display brief IS-IS configuration information. display isis brief IS-IS(1) Protocol Brief Information network-entity : 10.0000.0000.0001.
display isis graceful-restart event-log Use display isis graceful-restart event-log to display IS-IS GR log information. Syntax In standalone mode: display isis graceful-restart event-log slot slot-number In IRF mode: display isis graceful-restart event-log chassis chassis-number slot slot-number Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters slot slot-number: Specifies a card by its slot number. (In standalone mode.
Table 51 Command output Field Description GR phase: • • • • • • • • GR phase Initialization. LSDB synchronization. First SPF computation. Redistribution. Second SPF computation. LSP stability—Ready to generate LSPs. LSP generation. Finish. display isis graceful-restart status Use display isis graceful-restart status to display IS-IS GR state.
--------------------------Total number of interfaces: 1 Number of waiting LSPs: 0 Level-2 restart information --------------------------Total number of interfaces: 1 Number of waiting LSPs: 0 Table 52 Command output Field Description Current GR state: • RESTARTING—In this state, forwarding can be ensured. Restart status • STARTING—In this state, forwarding cannot be ensured. • COMPLETE—GR is completed. Current Restart phase: • • • • • • • • Restart phase Initialization. LSDB synchronization.
In IRF mode: display isis interface [ interface-type interface-number ] [ verbose ] [ process-id ] [ standby chassis chassis-number slot slot-number ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters interface-type interface-number: Displays statistics of a specified IS-IS interface. Without this argument, the command displays information about all interfaces. verbose: Displays detailed information about an interface.
SNPA Address : 000c-29b2-a5e3 IP Address : 8.8.8.7 Secondary IP Address(es) : IPv6 Link Local Address : Csnp Timer Value : L1 10 L2 10 Hello Timer Value : L1 3 L2 10 Hello Multiplier Value : L1 3 L2 3 Lsp Timer Value : L12 33 Lsp Transmit-Throttle Count : L12 5 Cost : L1 10 L2 10 Priority : L1 64 L2 64 IPv4 BFD : Disabled IPv6 BFD : Disabled Table 53 Command output Field Description Interface Interface type and number. Id Circuit ID. IPv4.
display isis interface statistics Interface Statistics information for ISIS(1) -------------------------------------------Type IPv4 Up/Down IPv6 Up/Down LAN 1/0 0/0 P2P 0/0 0/0 Table 54 Command output Field Description Network type of the interface: Type • LAN for broadcast network. • P2P for point-to-point network. IPv4 UP Number of IS-IS interfaces in up state. IPv4 Down Number of IS-IS interfaces in down state. IPv6 UP Number of IS-ISv6 interfaces in up state.
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.Pseudo ID-fragment num, where Pseudo ID is separated by a dot from Symbolic name and by a hyphen from fragment num. If the Pseudo ID is 0, specify the LSP name in the form Symbolic name-fragment num.
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 ID NBR ID 5555.5555.5555.00 COST: 0 7777.8888.1111.01 COST: 10 5555.1111.1111.00-01 Source 0x00000001 0x4995 1113 5555.1111.1111.00 IP-Internal 8.8.8.0 255.255.255.0 7777.8888.1111.
Field ATT/P/OL Description • 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. IPv4 address IP address of the originating router's IS-IS interface. IPv6 address IPv6 address of the originating router's IS-ISv6 interface. NBR ID Neighbor ID of the originating router.
[Sysname] isis 1 [Sysname-isis-1] is-name RUTA # Map the host name RUTB to the system ID 0000.0000.0041 of a remote IS. [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.
process-id: Displays IS-IS neighbor information for an IS-IS process specified by its ID in the range of 1 to 65535. Without this argument, the command displays neighbor information for all IS-IS processes. standby slot slot-number: Displays backup IS-IS neighbor information for a card. Without this option, the command displays IS-IS neighbor information. (In standalone mode.) standby chassis chassis-number slot slot-number: Displays backup IS-IS neighbor information for a card on an IRF member device.
Peer circuit SNPA address: 000c-293b-c4be Uptime: 00:05:07 Adj protocol: IPv4 Graceful Restart capable Restarting signal: No Suppress adjacency advertisement: No Table 57 Command output Field Description System Id System ID of the neighbor. Interface Interface connecting to the neighbor. Circuit Id Circuit ID. State Circuit state. HoldTime Within the holdtime, if no hellos are received from the neighbor, the neighbor is considered down.
Table 58 Command output Field Description Neighbor type: Type • LAN Level-1—Number of Level-1 neighbors whose network type is broadcast. • LAN Level-2—Number of Level-2 neighbors whose network type is broadcast. • P2P—Number of neighbors whose network type is P2P. IPv4 Up Number of IPv4 neighbors in up state. IPv4 Init Number of IPv4 neighbors in init state. IPv6 Up Number of IPv6 neighbors in up state. IPv6 Init Number of IPv6 neighbors in init state.
Level-1 IPv4 Redistribute Table -------------------------------Type IPv4 Destination IntCost ExtCost Tag State -------------------------------------------------------------------------------D 192.168.30.0/24 0 0 D 11.11.11.11/32 0 0 D 10.10.10.0/24 0 0 Active Table 59 Command output Field Description Route information for IS-IS(1) IS-IS process of the redistributed routing information. Level-1 IPv4 Redistribute Table Redistributed IPv4 routing information of IS-IS Level-1.
ip-address mask-length: Displays IS-IS IPv4 routing information for the specified IP address. The mask-length argument is in the range of 0 to 32. verbose: Displays detailed IS-IS IPv4 routing information. Without this keyword, the command displays brief IS-IS IPv4 routing information process-id: Displays IS-IS IPv4 routing information for an IS-IS process specified by its ID in the range of 1 to 65535. level-1: Displays Level-1 IS-IS routes. level-2: Displays Level-2 IS-IS routes.
Field Description IntCost Internal cost. ExtCost External cost. ExitInterface Exit interface. NextHop Next hop. Routing state flag: • D—Direct route. • R—The route has been added into the routing table. Flags • L—The route has been advertised in an LSP. • U—Penetration flag. Setting it to UP can prevent an LSP sent from L2 to L1 from being sent back to L2. # Display detailed IS-IS IPv4 routing information.
Table 61 Command output Field Description Route information for ISIS(1) Route information for IS-IS process 1. ISIS(1) IPv4 Level-1 Forwarding Table IS-IS IPv4 routing information for Level-1. ISIS(1) IPv4 Level-2 Forwarding Table IS-IS IPv4 routing information for Level-2. IPV4 Dest IPv4 destination. Int. Cost Internal cost. Ext. Cost External cost. Admin Tag Tag. Src Count Count of advertising sources. Flag • R—The route has been installed into the routing table.
verbose: Displays detailed IS-IS topology information. Without this keyword, the command displays brief topology information. process-id: Specifies an IS-IS process by its ID in the range of 1 to 65535. Without this argument, the command displays topology information for all IS-IS processes. Examples # Display brief IS-IS IPv4 topology information.
-->0000.0000.0032.01 10 -/-/-/P/-/-/-/-/- # Display detailed IS-IS IPv4 topology information.
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.64 Interface BkNeighbor: N/A : Vlan2 BkInterface: N/A BkNextHop : N/A Neighbor : 0000.0000.0064.00 NextHop : 20.20.20.
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/-/- : 20.20.20.64 NextHopCnt: 0 SpfLinkCnt: 2 -->0000.0000.0064.
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 Table 62 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.
Field Description Link flag: LinkFlag LinkSrcCnt • • • • • • • • • I—The link is isolated. D—The link is to be deleted. C—The neighbor is a child node. P—The neighbor is the parent node. V—The link is involved. N—The link is a new path. L—The link is on the change list. U—The protocol usage of the link is changed. H—The next hop of the link is changed. Number of link advertising sources. Type of the link advertising source: Type • Adjacent—The link advertising source is a local neighbor.
Examples # Display IS-IS statistics.
Static: 0 Direct: 0 ISISv6: 0 BGP4+: RIPng: OSPFv3: 0 0 Total Number: 0 0 Lsp information: LSP Source ID: No. of used LSPs 7777.8888.1111 001 Table 63 Command output Field Description Statistics information for ISIS(processid) Statistics for the IS-IS process. Level-1 Statistics Level-1 statistics. Level-2 Statistics Level-2 statistics. Learnt routes information Number of learned IPv4 routes. Number of learned IPv6 routes.
Parameters slot slot-number: Specifies a card by its slot number. Without this option, the command displays OSI connection information about all cards. (In standalone mode.) chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument specifies the ID of the IRF member device. The slot-number argument specifies the slot number of the card. Without these two options, the command displays OSI connection information about all cards on all IRF member devices.
Field Description Type Type 2 socket, corresponding to unreliable connectionless-oriented transport layer protocols. Enabled interfaces Input interfaces and matched multicast MAC addresses. Only packets received from Ethernet link-layer interfaces need to match the multicast MAC addresses. display osi statistics Use display osi statistics to display OSI packet statistics, including received packets, relayed packets, discarded packets, and sent packets.
Total: 19 Relay forwarded: 19 Relay received: 19 Failed: 0 Table 65 Command output Field Received packets Description Total Total number of received link layer packets. Relay received Number of inbound packets on LPUs relayed from other cards. This count is not included in the total count of received packets. Relay forwarded Number of inbound packets relayed to LPUs. Invalid service slot Number of discarded packets due to unavailable LPUs.
mdc-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. osi: Checks OSI-related fields in LSPs.
Predefined user roles network-admin mdc-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. Example # Enable IS-IS FRR to automatically calculate a backup next hop for all routes.
Usage guidelines To use an advanced ACL (with a number from 3000 to 3999) in the command, configure the ACL using one of the following methods: • To deny/permit a route with the specified destination, use the rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard command. • To deny/permit a route with the specified destination and mask, use the rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard destination dest-addr dest-wildcard command.
Predefined user roles network-admin mdc-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.
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 mdc-admin Parameters flood-count flooding-count: Specifies the maximum number of LSPs to be flooded before the next SPF calculation, in the range of 1 to 15. The default is 5.
Predefined user roles network-admin mdc-admin Examples # Enable GR for IS-IS process 1. system-view [Sysname] isis 1 [Sysname-isis-1] graceful-restart Related commands graceful-restart suppress-sa graceful-restart suppress-sa Use graceful-restart suppress-sa to suppress the Suppress-Advertisement (SA) bit during restart. Use undo graceful-restart suppress-sa to set the SA bit. Syntax graceful-restart suppress-sa undo graceful-restart suppress-sa Default The SA bit is set during restart.
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 mdc-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 mdc-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 mdc-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.
Default Route advertisement is not enabled. Views IS-IS view Predefined user roles network-admin mdc-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.
Views IS-IS view Predefined user roles network-admin mdc-admin Parameters number: Specifies the maximum number of redistributed Level 1/Level 2 IPv4 routes, in the range of 1 to 524288. Examples # Configure IS-IS process 1 to redistribute up to 1000 Level 1/Level 2 IPv4 routes. system-view [Sysname] isis 1 [Sysname-isis-1] import-route limit 1000 Related commands import-route isis Use isis to enable an IS-IS process and enter IS-IS view. Use undo isis to disable an IS-IS process.
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 you configure a password without specifying a level, the password applies to both Level-1 and Level-2. If neither ip nor osi is specified, the OSI-related fields in LSPs are checked. 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 VLAN-interface 10, configure the authentication mode as simple, and set the plaintext password to 123456.
Syntax isis circuit-level [ level-1 | level-1-2 | level-2 ] undo isis circuit-level Default An interface can establish either the Level-1 or Level-2 adjacency. Views Interface view Predefined user roles network-admin mdc-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).
Predefined user roles network-admin mdc-admin Usage guidelines Perform this configuration only for a broadcast network with only two attached routers. Interfaces with different network types operate differently. For example, broadcast interfaces must elect a DIS and flood CSNP packets to synchronize the LSDBs, and P2P interfaces do not need to elect a DIS, and use a different LSDB synchronization mechanism.
Examples # Configure the Level-2 IS-IS cost as 5 for VLAN-interface 10. system-view [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] isis cost 5 level-2 Related commands • auto-cost enable • bandwidth-reference 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.
isis dis-priority Use isis dis-priority to specify a DIS priority at a specified level for an interface. Use undo isis dis-priority to remove the configuration. Syntax isis dis-priority value [ level-1 | level-2 ] undo isis dis-priority [ level-1 | level-2 ] Default The priority of Level-1 and Level-2 is 64. Views Interface view Predefined user roles network-admin mdc-admin Parameters value: Specifies a DIS priority in the range of 0 to 127. level-1: Applies the DIS priority to Level-1.
Default No IS-IS process is enabled on an interface. Views Interface view Predefined user roles network-admin mdc-admin Parameters process-id: Specifies an IS-IS process by its ID in the range of 1 to 65535. The default is 1. Examples # Enable IS-IS process 1 globally and enable it on VLAN-interface 10. system-view [Sysname] isis 1 [Sysname-isis-1] network-entity 10.0001.1010.1020.1030.
Deleting an IS-IS process bound to MIB operation deletes the MIB binding configuration. MIB operation is bound to the IS-IS process with the smallest process ID. Examples # Bind MIB operation to IS-IS process 100. system-view [Sysname] isis mib-binding 100 isis silent Use isis silent to disable the interface from sending and receiving IS-IS packets. Use undo isis silent to restore the default.
Default An interface sends standard hello packets. Views Interface view Predefined user roles network-admin mdc-admin Examples # Configure VLAN-interface 10 to send small Hello packets. system-view [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] 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.
[Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] 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.
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. Views Interface view Predefined user roles network-admin mdc-admin Parameters value: Specifies the number of hello intervals, in the range of 3 to 1000.
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 mdc-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.
Predefined user roles network-admin mdc-admin 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.
[Sysname-isis-1] is-level level-1 is-name Use is-name to specify a host name for the IS and enable dynamic system ID to hostname mapping. 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 mdc-admin Parameters sys-name: Specifies a host name for the local IS, a case-insensitive string of 1 to 64 characters.
Predefined user roles network-admin mdc-admin Parameters sys-id: Specifies the system ID or pseudonode ID of a remote IS. map-sys-name: Specifies a host name for the remote IS, a case-insensitive string of 1 to 64 characters. Usage guidelines Each remote IS system ID corresponds to only one name. 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.
lsp-fragments-extend Use lsp-fragments–extend to enable LSP fragment extension for a level. Use undo lsp-fragments–extend to disable LSP fragment extension. Syntax lsp-fragments-extend [ level-1 | level-1-2 | level-2 ] undo lsp-fragments-extend Default LSP fragment extension is disabled. Views IS-IS view Predefined user roles network-admin mdc-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.
Predefined user roles network-admin mdc-admin Parameters size: Specifies the maximum size of LSP packets, in the range of 512 to 16384 bytes. level-1: Applies the size to Level-1 LSP packets. level-2: Applies the size to Level-2 LSP packets. Usage guidelines If neither Level-1 nor Level-2 is specified in the command, the configured maximum size applies to the current IS-IS level. Examples # Configure the maximum size of the generated Level-2 LSPs as 1024 bytes.
maximum load-balancing (IS-IS view) Use maximum load-balancing to configure the maximum number of ECMP routes for load balancing. Use undo maximum load-balancing to restore the default. Syntax maximum load-balancing number undo maximum load-balancing Views IS-IS view Predefined user roles network-admin mdc-admin Parameters number: Specifies the maximum number of ECMP routes. Usage guidelines The value range for the number argument and the default setting depend on the max-ecmp-num command.
Predefined user roles network-admin mdc-admin Parameters net: Specifies a NET as a dotted hexadecimal string in the X…X.XXXX....XXXX.00 format. The X…X segment represents the area address, the XXXX....XXXX segment represents the system ID, and the 00 segment is the SEL. Usage guidelines A NET is a special NSAP address with the SEL being 0. The length of the NET is in the range of 8 bytes to 20 bytes. A NET comprises the following parts: • Area ID—With a length of 1 to 13 bytes.
mdc-admin Parameters preference: Specifies an IS-IS protocol preference 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, to assign a priority to the matching routes. Usage guidelines If a routing policy is specified in this command, the preference set by the routing policy applies to the matching routes. Other routes use the preference set by the preference command.
IS-IS host routes have a medium convergence priority. Examples # Assign the high convergence priority to IS-IS routes permitted by IP prefix list standtest. system-view [Sysname] isis 1 [Sysname-isis-1] priority high prefix-list standtest reset isis all Use reset isis all to clear all IS-IS data structure information.
Predefined user roles network-admin mdc-admin Parameters slot slot-number: Specifies a card by its slot number. (In standalone mode.) chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument specifies the ID of the IRF member device. The slot-number argument specifies the slot number of the card. (In IRF mode.) Examples # Clear IS-IS GR log information about card 1.
Predefined user roles network-admin mdc-admin Usage guidelines To obtain OSI packet statistics from the specified time point, first clear the existing statistics. Examples # Clear OSI packet statistics. reset osi statistics Related commands display osi statistics set-overload Use set-overload to set the overload bit. Use undo set-overload to clear the overload bit.
allow: Allows advertising address prefixes. By default, no address prefixes are allowed to be advertised when the overload bit is set. external: Allows advertising IP address prefixes redistributed from other routing protocols with the allow keyword specified. interlevel: Allows advertising IP address prefixes learned from different IS-IS levels with the allow keyword specified.
Examples # Configure the context name as isis for the SNMP object for managing IS-IS process 1. system-view [Sysname] isis 1 [Sysname-isis-1] snmp context-name isis snmp-agent trap enable isis Use snmp-agent trap enable isis to enable the sending of SNMP notifications. Use undo snmp-agent trap enable isis to disable the feature.
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. own-lsp-purge: Specifies notifications about attempts to purge local LSPs. protocol-support: Specifies notifications about supported protocol mismatches.
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. If no topology is specified, routes for the base topology 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 mdc-admin Parameters seconds: Specifies the LSP refresh interval in the range of 1 to 65534 seconds.
undo timer spf 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 mdc-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.
Views IS-IS view Predefined user roles network-admin mdc-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 mdc-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 66 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 mdc-admin Parameters number: Specifies the maximum number of BGP ECMP routes for load balancing. When it is set to 1, load balancing is disabled. Usage guidelines Unlike IGP, BGP has no explicit metric for making load balancing decision.
Use undo bestroute as-path-neglect to configure BGP to consider the AS_PATH during best route selection. Syntax bestroute as-path-neglect undo bestroute as-path-neglect Default BGP considers the AS_PATH during best route selection.
mdc-admin Usage guidelines By default, BGP does not compare MEDs for routes from the same AS. When a router learns a new route, it compares the route with the optimal route in its BGP routing table. If the new route is more optimal, it becomes the optimal route in the BGP routing table. In this way, route learning sequence might affect optimal route selection. With the bestroute compare-med command configured, the router puts routes received from the same AS into a group.
Predefined user roles network-admin mdc-admin Usage guidelines This command enables BGP to compare the MEDs of routes received from confederation peers. However, if a route received from a confederation peer has an AS number that does not belong to the confederation, BGP does not compare the route with other routes. For example, a confederation has three AS numbers 65006, 65007, and 65009. BGP receives three routes from different confederation peers.
Views System view Predefined user roles network-admin mdc-admin Parameters as-number: Specifies a local AS by its number in the range of 1 to 4294967295. Usage guidelines A router can reside in only one AS, so the router can run only one BGP process. A router supports 4-byte AS number. Examples # Enable BGP, set the local AS number to 100, and enter BGP view.
[Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] compare-different-as-med # In BGP-VPN IPv4 unicast address family view, enable MED comparison for routes from peers in different ASs. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] address-family ipv4 unicast [Sysname-bgp-ipv4-vpn1] compare-different-as-med # In BGP IPv6 unicast address family view, enable MED comparison for routes from peers in different ASs.
Examples # Confederation 9 consists of four sub-ASs numbered 38, 39, 40 and 41. The peer 10.1.1.1 is a member of sub-AS 38. The peer 200.1.1.1 is a member outside of confederation 9, which belongs to AS 98. Confederation 9 looks like one AS (with AS number 9) from the perspective of the peer 200.1.1.1. This example uses a router in sub-AS 41.
[Sysname-bgp] confederation id 100 [Sysname-bgp] confederation peer-as 65000 [Sysname-bgp] confederation nonstandard Related commands • confederation id • confederation peer-as confederation peer-as Use confederation peer-as to specify confederation peer sub-ASs. Use undo confederation peer-as to remove specified confederation peer sub-ASs. Syntax confederation peer-as as-number-list undo confederation peer-as [ as-number-list ] Default No confederation peer sub-ASs are specified.
dampening Use dampening to enable BGP route dampening. Use undo dampening to disable route dampening. Syntax dampening [ half-life-reachable half-life-unreachable reuse suppress ceiling | route-policy route-policy-name ] * undo dampening Default Route dampening is disabled.
[Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] address-family ipv4 unicast [Sysname-bgp-ipv4-vpn1] dampening 10 10 1000 2000 10000 # In BGP IPv6 unicast address family view, configure BGP route dampening. system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv6 unicast [Sysname-bgp-ipv6] dampening 10 10 1000 2000 10000 # In BGP-VPN IPv6 unicast address family view, configure BGP route dampening.
routing policy use the local preference set by the apply local-preference command, and other BGP routes use the local preference set by the default local-preference command. Examples # In BGP IPv4 unicast address family view, set the default local preference to 180. system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] default local-preference 180 # In BGP-VPN IPv6 unicast address family view, set the default local preference to 180.
4. Original MED of a BGP route, or MED changed from the metric of a redistributed IGP route. Examples # In BGP IPv4 unicast address family view, configure the default MED as 25. system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] default med 25 # In BGP-VPN IPv6 unicast address family view, configure the default MED as 25.
[Sysname] bgp 100 [Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] default-route imported [Sysname-bgp-ipv4] import-route ospf 1 # In BGP-VPN IPv4 unicast address family view, enable default route redistribution from OSPF process 1 into the BGP routing table.
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 route dampening parameters for the public network. Usage guidelines The command with the unicast keyword has the same effect as that without the unicast keyword. Examples # Display BGP IPv4 unicast route dampening parameters for the public network.
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 route dampening parameters for the public network. Usage guidelines The command with the unicast keyword has the same effect as that without the unicast keyword. Examples # Display BGP IPv6 unicast route dampening parameters for the public network.
group-name: Specifies a BGP IPv4 unicast peer group by its name, a case-sensitive string of 1 to 47 characters. If no group is specified, this command displays brief information about all BGP IPv4 unicast peer groups. Usage guidelines The command with the unicast keyword has the same effect as that without the unicast keyword. Examples # Display brief information about all BGP IPv4 unicast peer groups for the public network. BGP peer group: group1 Remote AS: 600 Type: external Members: 1.1.1.
Field Description Maximum number of prefixes allowed Maximum number of routes allowed to learn from the peer. Threshold Percentage of received routes from the peer to maximum routes allowed to learn from the peer. If the percentage is reached, the system generates alarm messages. Configured hold time Configured Hold Interval in seconds. Keepalive time Keepalive interval in seconds. Minimum time between advertisements Minimum route advertisement interval in seconds.
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. group-name: Specifies a BGP IPv6 unicast peer group by its name, a case-sensitive string of 1 to 47 characters. If no group is specified, this command displays brief information about all BGP IPv6 unicast peer groups.
Table 70 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. Threshold Percentage of received routes from the peer to maximum routes allowed to learn from the peer. If the percentage is reached, the system generates alarm messages.
Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters ipv4: Displays IPv4 address family information. ipv6: Displays IPv6 address family information. unicast: Displays IPv4 or IPv6 unicast address family information regardless of whether this keyword is specified or not. vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.
Network Mask 50.1.1.0 255.255.255.0 Route-policy Short-cut No 40.1.1.0 255.255.255.0 Yes Table 71 Command output Field Description Network Destination network address of the routes advertised by the network command and the shortcut routes. Mask Mask of the destination network address. PrefixLen Prefix length of the destination network address. Route-policy Routing policy that is applied to the route. Indicates whether the route is a shortcut route: • Yes. • No.
Table 72 Command output Field Description RefCount Number of BGP routes with these path attributes. MED MULTI_EXIT_DISC attribute. AS_PATH and ORIGIN attributes of the route: • AS_PATH attribute—Records the ASs the route has passed to avoid routing loops. • ORIGIN attribute—Identifies the origin of the route: Path/Origin { { { i—Originated in the AS. The origin of summary routes and routes advertised with the network command is IGP. e—Learned through EGP. ?—Unknown origin.
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.2 Peers in established state: 1 AS MsgRcvd 200 13 MsgSent OutQ PrefRcv Up/Down 16 0 State 0 00:10:34 Established Table 73 Command output Field Description Peer IP address of the peer. AS AS number of the peer. MsgRcvd Number of messages received.
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 74 Command output Field Description Peer IP address of the peer. Local Local router ID. BGP connection type between the local router and the peer: Type • IBGP link—IBGP connection. • EBGP link—EBGP connection.
Field Description Optional capabilities Optional capabilities supported by the local end. Peer Preferred Value Preferred value specified for the routes from the peer. BFD Indicates 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. # Display log information about BGP IPv4 unicast peer 1.1.1.1 for the public network.
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 mdc-admin mdc-operator Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. ipv6-address: Specifies a peer by its IPv6 address. log-info: Displays log information. verbose: Displays detailed information.
Field Description 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.136 Type: EBGP link BGP version 4, remote router ID 192.168.1.
Field Description 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. Port TCP port numbers of the local router and its peer.
Table 78 Command output Field Description Peer IP address of the peer. Date Date on which the Notification was sent or received. Time Time at which the Notification was sent or received. BGP session state: State • Up—The BGP session is in Established state. • Down—The BGP session is down. Error code of the Notification, indicating the cause of why the BGP session is down. Notification Error/SubError • Error—Refers to the error code, which identifies the type of the Notification.
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 79 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.
Predefined user roles network-admin network-operator mdc-admin mdc-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 From IP address from which the route was received. 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, 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. • If only the network-address argument is specified, the system ANDs the network address with the mask of a route. If the result matches the network address of the route, the command displays flap statistics of the route.
Field Description 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. Related commands • dampening • reset bgp flap-info ipv4 unicast display bgp routing-table flap-info ipv6 unicast Use display bgp routing-table flap-info ipv6 unicast to display BGP IPv6 unicast route flap statistics.
Total number of routes: 1 BGP local router ID is 192.168.1.135 Status codes: * - valid, > - best, d - dampened, h - history, s - suppressed, S - stale, i - internal, e - external Origin: i - IGP, e - EGP, ? - incomplete de Network : 2:: From PrefixLen : 64 : 1::1 Duration: 00:03:25 Flaps : 5 Reuse : 00:39:28 Path/Ogn: 100i Table 82 Command output Field Description Status codes: Status codes • • • • • • • • * – valid—Valid route. > – best—Best route. d – damped—Dampened route.
display bgp routing-table ipv4 unicast Use display bgp routing-table ipv4 unicast to display BGP IPv4 unicast routing information. Syntax display bgp routing-table ipv4 [ unicast ] [ vpn-instance vpn-instance-name ] [ network-address [ { mask | mask-length } [ longest-match ] ] ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.
BGP local router ID is 192.168.100.1 Status codes: * - valid, > - best, d - damped, h - history, s - suppressed, S - Stale, i - internal, e - external Origin: i - IGP, e - EGP, ? - incomplete * > Network NextHop MED 10.2.1.0/24 10.2.1.1 0 0 i 10.2.1.2 0 0 200i 192.168.1.135 0 0 i 10.2.1.2 0 0 200i e * > * 192.168.1.0 e LocPrf PrefVal Path/Ogn Table 83 Command output Field Description Status codes: Status codes • • • • • • • • * – valid—Valid route. > – best—Best route.
BGP routing table information of 10.2.1.0/24: Imported route. Original nexthop: 10.2.1.1 OutLabel : NULL AS-path : (null) Origin : igp Attribute value : MED 0, pref-val 0, pre 0 State : valid, local, best, From : 10.2.1.2 (192.168.100.2) Relay nexthop : not resolved Original nexthop: 10.2.1.
Field Description Current state of the route: State • • • • • • valid. internal. external. local. synchronize. best. From IP address of BGP peer that advertised the route. Relay Nexthop Next hop found by route recursion. If no next hop is found, this field displays not resolved. display bgp routing-table ipv4 unicast advertise-info Use display bgp routing-table ipv4 unicast advertise-info to display advertisement information for BGP IPv4 unicast routes.
The command with the unicast keyword has the same effect as that without the unicast keyword. Examples # Display advertisement information of 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 advertise-info BGP local router ID: 192.168.100.1 Local AS number: 100 Paths: 1 best BGP routing table information of 10.2.1.0/24: Advertised to peers (1 in total): 10.2.1.
Usage guidelines The command with the unicast keyword has the same effect as that without the unicast keyword. Examples # Display BGP routes permitted by AS path list 1. display bgp routing-table ipv4 as-path-acl 1 Total number of routes: 1 BGP local router ID is 2.2.2.2 Status codes: * - valid, > - best, d - dampened, h - history, s - suppressed, S - stale, i - internal, e - external Origin: i - IGP, e - EGP, ? - incomplete Network NextHop * >e 30.1.1.0/24 20.1.1.
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 routing information matching BGP community list 100. display bgp routing-table ipv4 community-list 100 Total number of routes: 1 BGP local router ID is 2.2.2.
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 192.168.1.0 10.2.1.2 0 0 200i For command output, see Table 83. # 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 mdc-admin mdc-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 87 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.
Attribute value : MED 0, pref-val 0 State : valid, external,best, Table 88 Command output Field Description Number of routes: • available—Number of valid routes. • best—Number of optimal routes. Paths Original nexthop Original next hop of the route. If the route is received from a BGP update message, the original next hop is the next hop IP address in the message. OutLabel Outgoing label of the route.
Table 89 Command output Field Description Paths Number of optimal routes destined to the specified network. BGP routing table information of 2::/64 Advertisement information of BGP routes destined to network 2::/64. Advertised to peers (1 in total) Peers to which the route has been advertised, and the number of peers. display bgp routing-table ipv6 unicast as-path-acl Use display bgp routing-table ipv6 unicast as-path-acl to display BGP IPv6 unicast routes permitted by an AS path list.
PrefVal : 0 MED OutLabel : NULL : Path/Ogn: 100i * >e Network : 3:: PrefixLen : 64 NextHop : 1::2 LocPrf : PrefVal : 0 OutLabel : NULL MED : Path/Ogn: 100i For command output, see Table 87. Related commands ip as-path display bgp routing-table ipv6 unicast community-list Use display bgp routing-table ipv6 unicast community-list to display BGP IPv6 unicast routing information matching a specified BGP community list.
display bgp routing-table ipv6 community-list 100 Total number of routes: 2 BGP local router ID is 192.168.1.
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. If this argument is not specified, the command displays all BGP IPv6 unicast routing information. statistics: Displays route statistics. vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.
# Display statistics of BGP IPv6 unicast routes received from BGP peer 1::1. display bgp routing-table ipv6 peer 1::1 received-routes statistics Received routes total: 1 Table 90 Command output Field Description Advertised routes total Total number of routes advertised to the specified peer. Received routes total Total number of routes received from the specified peer.
Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters vpn-instance vpn-instance-name: Displays BGP update group information for the MPLS L3VPN instance specified by its name, a case-sensitive string of 1 to 31 characters. If no VPN instance is specified, the command displays BGP IPv4 unicast address family update group information for the public network. ip-address: Displays BGP update group information for the specified BGP peer.
1.1.1.2 1.1.1.3 Table 91 Command output Field Description Update-group ID ID of the update group. BGP link type: Type • • • • IBGP link. EBGP link. Confed IBGP link—Confederation IBGP link. Confed EBGP link—Confederation EBGP link. Label capability: Supported The peers in the update group support labeled routes. 4-byte AS number: Supported 4-byte AS number suppression is disabled for the peers in the update group. The peers in the update group support 4-byte AS numbers.
Syntax display bgp update-group ipv6 [ unicast ] [ ip-address | ipv6-address ] display bgp update-group ipv6 [ unicast ] vpn-instance vpn-instance-name [ ipv6-address ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters ip-address: Displays BGP IPv6 unicast address family update group information for the specified BGP peer. ipv6-address: Displays BGP IPv6 unicast address family update group information for the specified IPv6 BGP peer.
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 92 Command output Field Description Update-group ID ID of the update group. BGP link type: Type • • • • IBGP link. EBGP link.
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 [ protocol process-id ] In BGP IPv6 unicast address family view/BGP-VPN IPv6 unicast address family view/BGP VPNv6 address family view: filter-policy { acl6-number | prefix-list ipv6-prefix-name } export [ protocol process-id ] undo filter-policy export [ protocol process-id
• 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.
mdc-admin Usage guidelines Graceful Restart (GR) ensures continuous forwarding when BGP restarts or an active/standby switchover occurs. BGP peers exchange Open messages containing GR information. If both parties have GR capability, they establish a GR-capable session. After you execute this command, the device reestablishes BGP sessions. Examples # Enable Graceful Restart capability for BGP process 100.
Examples # Configure the GR timer as 300 seconds. system-view [Sysname] bgp 100 [Sysname-bgp] graceful-restart [Sysname-bgp] graceful-restart timer restart 300 Related commands • graceful-restart • graceful-restart timer wait-for-rib graceful-restart timer wait-for-rib Use graceful-restart timer wait-for-rib to configure the time to wait for the End-of-RIB marker. Use undo graceful-restart timer wait-for-rib to restore the default.
[Sysname-bgp] graceful-restart [Sysname-bgp] graceful-restart timer wait-for-rib 100 Related commands • graceful-restart • graceful-restart timer restart group Use group to create a peer group. Use undo group to delete a peer group. Syntax group group-name [ external | internal ] undo group group-name Default No peer group is created.
[Sysname-bgp] peer 10.1.1.1 group test [Sysname-bgp] peer 10.1.2.1 group test # In BGP-VPN instance view, create an EBGP peer group test with AS number 200, and add EBGP peers 10.1.1.1 and 10.1.2.1 into the group. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] group test external [Sysname-bgp-vpn1] peer test as-number 200 [Sysname-bgp-vpn1] peer 10.1.1.1 group test [Sysname-bgp-vpn1] peer 10.1.2.
Views BGP view Predefined user roles network-admin mdc-admin 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.
all-processes: Redistributes routes from all the processes of the specified IGP protocol. This keyword takes effect only when the protocol is isis, ospf, or rip. med med-value: Specifies a MED value for redistributed routes, in the range of 0 to 4294967295. If no MED is specified, the metric of a redistributed route is used as its MED.
• display ipv6 routing-table protocol ip vpn-instance (BGP view) Use ip vpn-instance to enter BGP-VPN instance view. Use undo ip vpn-instance to remove all configurations in BGP-VPN instance view. Syntax ip vpn-instance vpn-instance-name undo ip vpn-instance vpn-instance-name Views BGP view Predefined user roles network-admin mdc-admin Parameters vpn-instance-name: Specifies a VPN instance by its name, a case-sensitive string of 1 to 31 characters.
Use undo log-peer-change to disable the function. Syntax log-peer-change undo log-peer-change Default Logging of BGP session state changes is enabled. Views BGP view Predefined user roles network-admin mdc-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.
Default BGP does not advertise any local network. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view Predefined user roles network-admin mdc-admin Parameters ip-address: Specifies an IPv4 network address. If the mask or mask-length is not specified, natural mask is used. mask: Specifies a mask in dotted decimal notation. mask-length: Specifies a mask length in the range of 0 to 32.
# In BGP-VPN IPv6 unicast address family view, inject local network 2002::/64 to the IPv6 BGP routing table. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] address-family ipv6 unicast [Sysname-bgp-ipv6-vpn1] network 2002:: 64 network short-cut Use network short-cut to increase the preference for a received EBGP route. This EBGP route is called shortcut route. Use undo network short-cut to cancel the configuration.
By default, the preference of an EBGP route is lower than a local route. If a device has an EBGP route and a local route to reach the same destination, the device does not select the EBGP route. You can use the network shortcut command to configure the EBGP route to have the same preference as the local route so the EBGP route is more likely to become the optimal route. You can use the preference command to modify the preferences for external and local BGP routes.
Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. ip-address: Specifies a peer by its IP address. The peer must have been created. ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created. Usage guidelines The COMMUNITY attribute is a group of specific data carried in update messages. A route can carry one or more COMMUNITY attribute values (each is represented by a 4-byte integer).
Syntax In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view: peer { group-name | ip-address } advertise-ext-community undo peer { group-name | ip-address } advertise-ext-community In BGP IPv6 unicast address family view: peer { group-name | ipv6-address } advertise-ext-community undo peer { group-name | ipv6-address } advertise-ext-community Default No extended community attribute is advertised to a peer or peer group.
# In BGP-VPN IPv4 unicast address family view, advertise the extended community attribute to peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] address-family ipv4 unicast [Sysname-bgp-ipv4-vpn1] peer test advertise-ext-community # In BGP IPv6 unicast address family view, advertise the extended community attribute to peer group test.
Predefined user roles network-admin mdc-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. ip-address: Specifies a peer by its IP address. The peer must have been created. ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created. number: Specifies the number of times for which the local AS number can appear, in the range of 1 to 10. The default number is 1.
peer as-number (for a BGP peer) Use peer as-number to create a BGP peer and specify its AS number. Use undo peer to delete a BGP peer. Syntax peer { ip-address | ipv6-address } as-number as-number undo peer { ip-address | ipv6-address } Default No BGP peer is created. Views BGP view, BGP-VPN instance view Predefined user roles network-admin mdc-admin Parameters ip-address: Specifies the IP address of a peer. ipv6-address: Specifies the IPv6 address of a peer.
• peer enable • peer group peer as-number (for a BGP peer group) Use peer as-number to specify an AS number for a peer group. Use undo peer as-number to delete the AS number of a peer group. Syntax peer group-name as-number as-number undo peer group-name as-number Default No AS number is specified for a peer group.
peer as-path-acl Use peer as-path-acl to specify an AS path list to filter routes incoming from or outgoing to a peer/peer group. Use undo peer as-path-acl to remove the configuration.
# In BGP-VPN IPv4 unicast address family view, specify the AS path list 1 to filter routes outgoing to the peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] address-family ipv4 unicast [Sysname-bgp-ipv4-vpn1] peer test as-path-acl 1 export # In BGP IPv6 unicast address family view, specify the AS path list 1 to filter routes outgoing to the peer group test.
Usage guidelines When neither the multi-hop keyword nor the single-hop keyword is specified: • If an IBGP peer is specified, this command enables multi-hop BFD for the IBGP peer. • If a directly connected EBGP peer is specified and the peer ebgp-max-hop command is not configured, this command enables single-hop BFD for the EBGP peer. If the EBGP peer is not directly connected or the peer ebgp-max-hop command is configured, this command enables multi-hop BFD for the EBGP peer.
Use undo peer capability-advertise conventional to enable BGP multi-protocol extension and route refresh for a peer or peer group. Syntax peer { group-name | ip-address | ipv6-address } capability-advertise conventional undo peer { group-name | ip-address | ipv6-address } capability-advertise conventional Default BGP multi-protocol extension and route refresh are enabled.
peer capability-advertise route-refresh Use peer capability-advertise route-refresh to enable BGP route refresh for a specified peer or peer group. Use undo peer capability-advertise route-refresh to disable the function. Syntax peer { group-name | ip-address | ipv6-address } capability-advertise route-refresh undo peer { group-name | ip-address | ipv6-address } capability-advertise route-refresh Default BGP route refresh is enabled.
[Sysname-bgp-vpn1] peer 1::1 as-number 200 [Sysname-bgp-vpn1] peer 1::1 capability-advertise route-refresh Related commands • display bgp peer ipv4 unicast • display bgp peer ipv6 unicast • peer capability-advertise conventional • peer keep-all-routes • refresh bgp ipv4 unicast • refresh bgp ipv6 unicast peer capability-advertise suppress-4-byte-as Use peer capability-advertise suppress-4-byte-as to enable 4-byte AS number suppression.
system-view [Sysname] bgp 100 [Sysname-bgp] peer 1.1.1.1 as-number 100 [Sysname-bgp] peer 1.1.1.1 capability-advertise suppress-4-byte-as # In BGP-VPN instance view, enable 4-byte AS number suppression for peer 1.1.1.1. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] peer 1.1.1.1 as-number 200 [Sysname-bgp-vpn1] peer 1.1.1.
address of interface B, use the peer connect-interface command on the peer to specify the interface whose IP address is x.x.x.x as the source interface for establishing a TCP connection. If a BGP router has multiple links to a peer, and the source interface fails, BGP has to reestablish TCP connections, causing network oscillation. To improve link availability, HP recommends that you use a loopback interface as the source interface.
peer { group-name | ipv6-address } default-route-advertise [ route-policy route-policy-name ] undo peer { group-name | ipv6-address } default-route-advertise Default No default route is advertised to a peer or peer group.
peer description Use peer description to configure a description for a peer or peer group. Use undo peer description to remove the description for a peer or peer group. Syntax peer { group-name | ip-address| ipv6-address } description description-text undo peer { group-name | ip-address| ipv6-address } description Default No description information is configured for a peer or peer group.
Default BGP does not establish an EBGP session to an indirectly-connected peer or peer group. Views BGP view, BGP-VPN instance view Predefined user roles network-admin mdc-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. ip-address: Specifies a peer by its IP address. The peer must have been created. ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created.
undo peer { group-name | ip-address } enable In BGP IPv6 unicast address family view: peer { group-name | ipv6-address } enable undo peer { group-name | ipv6-address } enable In BGP-VPN IPv6 unicast address family view: peer { group-name | ipv6-address } enable undo peer { group-name | ipv6-address } enable Default BGP cannot exchange routing information with a peer or peer group.
• In BGP-VPN IPv6 unicast address family view, the command enables the capability to exchange IPv6 unicast routing information, and adds the learned routes to the IPv6 BGP routing table of the specified VPN instance. • In BGP VPNv6 address family view, the command enables the capability to exchange VPNv6 routing information. In an IPv6 MPLS L3VPN network, execute the command on PE devices in BGP VPNv6 address family view.
Syntax peer { group-name | ip-address | ipv6-address } fake-as as-number undo peer { group-name | ip-address | ipv6-address } fake-as Default No fake local AS number is advertised to a peer or peer group. Views BGP view, BGP-VPN instance view Predefined user roles network-admin mdc-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.
Syntax In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view/BGP VPNv4 address family view: peer { group-name | ip-address } filter-policy acl-number { export | import } undo peer { group-name | ip-address } filter-policy { export | import } In BGP IPv6 unicast address family view: peer { group-name | ipv6-address } filter-policy acl6-number { export | import } undo peer { group-name | ipv6-address } filter-policy { export | import } In BGP-VPN IPv6 unicast address family view: pe
network addresses match the source-address source-wildcard argument without matching the masks of the destination addresses.
Predefined user roles network-admin mdc-admin Parameters ip-address: Specifies a peer by its IP address. ipv6-address: Specifies a peer by its IPv6 address. group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. as-number as-number: Specifies an AS for a peer by its number in the range of 1 to 4294967295.
system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] group test external [Sysname-bgp-vpn1] peer 10.1.1.1 group test as-number 2004 # In BGP view, add peer 1::1 to the EBGP peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] group test external [Sysname-bgp] peer 1::1 group test as-number 2004 # In BGP-VPN instance view, add peer 1::1 to the EBGP peer group test.
Usage guidelines This command enables you to temporarily tear down the BGP session to a specific peer or peer group so that you can perform network upgrade and maintenance without needing to delete and reconfigure the peer or peer group. To recover the session, execute the undo peer ignore command. If a session has been established to a peer, executing the peer ignore command for the peer tears down the session and clears all related routing information.
Usage guidelines IMPORTANT: Ignoring the ORIGINATOR_ID attribute might introduce routing loops to the network. Do not use this command to ignore the ORIGINATOR_ID attribute if you are not sure there are no routing loops. A router is configured with a router ID. When a router receives a BGP route update, it compares the router ID with the ORIGINATOR_ID attribute in the route update. If they are the same, the router drops the route update to avoid routing loops.
Predefined user roles network-admin mdc-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. ip-address: Specifies a peer by its IP address. The peer must have been created. ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created.
undo peer { group-name | ip-address } label-route-capability Default BGP cannot exchange labeled routes with a peer or peer group. Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view Predefined user roles network-admin mdc-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.
Default When the memory usage reaches level 2 threshold, BGP tears down an EBGP session to release memory resources periodically. Views BGP view, BGP-VPN instance view Predefined user roles network-admin mdc-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.
undo peer { group-name | ip-address } next-hop-local In BGP IPv6 unicast address family view: peer { group-name | ipv6-address } next-hop-local undo peer { group-name | ipv6-address } next-hop-local Default BGP sets the local router as the next hop for all routes sent to an EBGP peer or peer group.
[Sysname-bgp-ipv6] peer test next-hop-local peer password Use peer password to enable MD5 authentication for a BGP peer or peer group. Use undo peer password to remove MD5 authentication for the BGP peer or peer group. Syntax peer { group-name | ip-address | ipv6-address } password { cipher | simple } password undo peer { group-name | ip-address | ipv6-address } password Default MD5 authentication is disabled.
[Sysname] bgp 100 [Sysname-bgp] peer 10.1.100.1 password simple aabbcc # In BGP-VPN instance view, perform MD5 authentication on the TCP connection between the local router 10.1.100.1 and the peer router 10.1.100.2, and set the plaintext authentication password to aabbcc. system-view [Sysname] bgp 100 [Sysname-bgp] ip vpn-instance vpn1 [Sysname-bgp-vpn1] peer 10.1.100.2 password simple aabbcc # Perform similar configuration on the peer.
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. value: Specifies the preferred value in the range of 0 to 65535.
Syntax In BGP IPv4 unicast address family view/BGP-VPN IPv4 unicast address family view/BGP VPNv4 address family view: peer { group-name | ip-address } prefix-list prefix-list-name { export | import } undo peer { group-name | ip-address } prefix-list { export | import } In BGP IPv6 unicast address family view: peer { group-name | ipv6-address } prefix-list ipv6-prefix-name { export | import } undo peer { group-name | ipv6-address } prefix-list { export | import } In BGP-VPN IPv6 unicast address family view:
system-view [Sysname] bgp 100 [Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] peer test prefix-list list1 export # In BGP-VPN IPv6 unicast address family view, use the IPv6 prefix list list1 to filter routes advertised to the peer group test.
Views BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP VPNv4 address family view, BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view, BGP VPNv6 address family view Predefined user roles network-admin mdc-admin Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. ip-address: Specifies a peer by its IP address. The peer must have been created.
[Sysname-bgp-vpn1] address-family ipv6 unicast [Sysname-bgp-ipv6-vpn1] peer test public-as-only peer reflect-client Use peer reflect-client to configure the device as a route reflector and specify a peer or peer group as a client. Use undo peer reflect-client to restore the default.
[Sysname-bgp-ipv4] peer test reflect-client # In BGP VPNv4 address family view, configure the local device as a route reflector and specify the IBGP peer group test as a client. system-view [Sysname] bgp 100 [Sysname-bgp] address-family vpnv4 [Sysname-bgp-vpnv4] peer test reflect-client # In BGP-VPN IPv6 unicast address family view, configure the local device as a route reflector and specify the IBGP peer group test as a client.
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 Predefined user roles network-admin mdc-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.
[Sysname-bgp] address-family ipv6 unicast [Sysname-bgp-ipv6] peer 1::1 route-limit 10000 peer route-policy Use peer route-policy to apply a routing policy to routes incoming from or outgoing to a peer or peer group. Use undo peer route-policy to remove the configuration.
Usage guidelines The specified routing policy must have been configured with the route-policy command in system view. Otherwise, all routes can pass the routing policy. The if-match interface command, if configured for the referenced routing policy, does not take effect for routes. Examples # In BGP IPv4 unicast address family view, apply routing policy test-policy to routes outgoing to the peer group test.
mdc-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. interval: Specifies a minimum interval for sending the same update message. The range is 0 to 600 seconds.
Parameters group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must have been created. ip-address: Specifies a peer by its IP address. The peer must have been created. ipv6-address: Specifies a peer by its IPv6 address. The peer must have been created. Usage guidelines In MPLS L3VPN, if EBGP is used between PE and CE, sites in different geographical areas must have different AS numbers assigned to ensure correct route advertisement.
keepalive keepalive: Sets a keepalive interval in the range of 0 to 21845 seconds. hold holdtime: Sets a holdtime in the range of 3 to 65535 seconds. Usage guidelines After establishing a BGP session, two routers send keepalive messages at the specified keepalive interval to each other to keep the session. If a router receives no keepalive or update message from the peer within the holdtime, it tears down the session.
preference Use preference to configure preferences for BGP routes. Use undo preference to restore the default. Syntax preference { external-preference internal-preference local-preference | route-policy route-policy-name } undo preference Default The preferences of external, internal, and local BGP routes are 255, 255, and 130.
[Sysname] ip prefix-list route permit 1.1.1.0 24 [Sysname] route-policy prefer permit node 0 [Sysname-route-policy-prefer-0] if-match ip address prefix-list route [Sysname-route-policy-prefer-0] apply preference 200 [Sysname-route-policy-prefer-0] quit [Sysname] bgp 100 [Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] preference route-policy prefer # In BGP-VPN IPv6 unicast address family view, configure preferences for EBGP, IBGP, and local routes as 20, 20, and 200.
[Sysname-bgp] address-family ipv4 unicast [Sysname-bgp-ipv4] undo reflect between-clients # In BGP VPNv4 address family view, disable route reflection between clients. system-view [Sysname] bgp 100 [Sysname-bgp] address-family vpnv4 [Sysname-bgp-vpnv4] undo reflect between-clients # In BGP-VPN IPv4 unicast address family view, disable route reflection between clients.
mdc-admin Parameters cluster-id: Specifies the cluster ID in the format of an integer, in the range of 1 to 4294967295. ip-address: Specifies the cluster ID in the format of an IPv4 address in dotted decimal notation. Usage guidelines The route reflector and clients form a cluster. Typically a cluster has one route reflector. The ID of the route reflector is the cluster ID. You can configure more than one route reflector in a cluster to improve network reliability and prevent a single point of failure.
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. Syntax refresh bgp { ip-address | all | external | group group-name | internal } { export | import } ipv4 [ unicast ] [ vpn-instance vpn-instance-name ] Views User view Predefined user roles network-admin mdc-admin Parameters ip-address: Soft-resets the BGP session to the specified peer.
If the peer keep-all-routes command is configured, the refresh bgp ipv4 unicast import command does not take effect. The command with the unicast keyword has the same effect as that without the unicast keyword. Examples # Manually soft-reset all BGP sessions for the IPv4 unicast address family.
route-refresh message to the peer and the peer resends its routing information to the router. After receiving the routing information, the router filters the routing information by using the new policy. This command requires that both the local router and the peer support route refresh. If the peer keep-all-routes command is configured, the refresh bgp ipv6 unicast import command does not take effect. The command with the unicast keyword has the same effect as that without the unicast keyword.
Predefined user roles network-admin mdc-admin 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 BGP IPv4 unicast route dampening information for the public network, and releases the suppressed BGP IPv4 unicast routes. network-address: Specifies a destination network address. mask: Specifies a network mask, in dotted decimal notation.
mdc-admin 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 BGP IPv6 unicast route dampening information for the public network, and releases the suppressed BGP IPv6 unicast routes. network-address prefix-length: Specifies a destination network address and prefix length. The value range for the prefix-length argument is 0 to 128.
Usage guidelines When you execute the reset bgp flap-info ipv4 unicast command: • If the network-address, mask, and mask-length arguments are not specified, the command clears the flap statistics of all BGP IPv4 unicast routes for the public network or the specified VPN. • If only the network-address argument is specified, the system ANDs the network address with the mask of a route. If the result matches the network address of the route, the command clears the flap statistics of the route.
Usage guidelines The command with the unicast keyword has the same effect as that without the unicast keyword. Examples # Clear the flap statistics of BGP IPv6 unicast route 2345::/16 for the public network. reset bgp flap-info ipv6 2345:: 16 # Clear the flap statistics for the public network BGP IPv6 unicast routes learned from peer 1::1.
reset bgp all ipv4 reset bgp ipv6 unicast Use reset bgp ipv6 unicast to reset BGP sessions for the IPv6 unicast address family. Syntax reset bgp { as-number | ipv6-address | all | external | group group-name | internal } ipv6 [ unicast ] [ vpn-instance vpn-instance-name ] Views User view Predefined user roles network-admin mdc-admin Parameters as-number: Resets BGP sessions to peers in the AS. ipv6-address: Specifies the IPv6 address of a peer with which to reset the session.
Views System view Predefined user roles network-admin mdc-admin Parameters router-id: Specifies a router ID in IP address format. Usage guidelines Some routing protocols use a router ID to identify a device. You can configure a global router ID, which is used by routing protocols that have no router ID configured. If no global router ID is configured, the highest loopback address, if any, is used as the router ID.
mdc-admin Parameters router-id: Specifies a router ID for BGP, in IP address format. Usage guidelines To run BGP, a router must have a router ID, which is an unsigned 32-bit integer that uniquely identifies the router in the AS. To modify a non-zero router ID for BGP, execute the router-id command in BGP view. To improve availability, specify the IP address of a loopback interface as the router ID for BGP.
Usage guidelines To run BGP, a VPN instance must have a router ID, which is an unsigned 32-bit integer that uniquely identifies the BGP VPN router in the AS. To improve availability, specify the IP address of a loopback interface as the router ID. You can specify a different router ID for each VPN instance on a device. If you execute this command in the same BGP-VPN instance view multiple times, the most recent configuration takes effect.
Usage guidelines This feature enables 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. The SNMP module determines how to output the notifications according to the configured output rules.
[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. Use undo timer to restore the default. Syntax timer keepalive keepalive hold holdtime undo timer Default The BGP keepalive interval and the holdtime are 60 seconds and 180 seconds.
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. system-view [Sysname] bgp 100 [Sysname-bgp] timer keepalive 60 hold 180 # In BGP-VPN instance view, configure the keepalive interval and holdtime as 60s and 180s.
Policy-based routing commands apply next-hop Use apply next-hop to set a next hop. Use undo apply next-hop to remove the configuration. Syntax apply next-hop [ vpn-instance track-entry-number ] }&<1-n> vpn-instance-name ] { ip-address [ direct ] [ track undo apply next-hop [ [ vpn-instance vpn-instance-name ] ip-address&<1-n> ] Default No next hop is set.
Related commands apply loadshare display ip policy-based-route Use display ip policy-based-route to display PBR policy information. Syntax display ip policy-based-route [ policy policy-name ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters policy policy-name: Specifies a policy by its name, a case-sensitive string of 1 to 19 characters. Usage guidelines If no policy is specified, this command displays information about all policies.
Syntax In standalone mode: display ip policy-based-route interface interface-type interface-number [ slot slot-number ] In IRF mode: display ip policy-based-route interface interface-type interface-number [ chassis chassis-number slot slot-number ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters interface-type interface-number: Specifies an interface by its type and number. slot slot-number: Displays the PBR configuration and statistics on a card.
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 Matched: 0 node 5 permit: if-match acl 3101 apply next-hop 1.1.1.1 Matched: 0 (no statistics resource) Total matched: 0 Table 94 Command output Field Description PBR configuration and statistics on VLAN-interface 1. Policy based routing information for interface Vlan-interface1(failed) failed indicates that the policy (including all its nodes) failed to be assigned to the driver.
Syntax In standalone mode: display ip policy-based-route local [ slot slot-number ] In IRF mode: display ip policy-based-route local [ chassis chassis-number slot slot-number ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters slot slot-number: Displays the PBR configuration and statistics on a card. The slot-number argument is the number of the slot that holds the card. (In standalone mode.
Field Description 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. Related commands reset ip policy-based-route statistics display ip policy-based-route setup Use display ip policy-based-route setup to display PBR configuration.
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 mdc-admin Parameters acl-number: Specifies an ACL by its number in the range of 2000 to 2999 for a basic ACL, and in the range of 3000 to 3999 for an advanced ACL. name acl-name: Specifies an ACL by its name, a case-insensitive string of 1 to 63 characters starting with letter a to z or A to Z. The ACL name cannot be all.
Parameters policy-name: Specifies a policy by its name, a case-sensitive string of 1 to 19 characters. The specified policy must already exist. Usage guidelines You can apply only one policy locally. Before you apply a new policy, you must first remove the current policy. Local PBR is used to route locally generated packets. Do not configure local PBR unless required. Examples # Configure local PBR based on policy aaa.
[Sysname-Vlan-interface2] ip policy-based-route aaa Related commands • display ip policy-based-route setup • policy-based-route policy-based-route Use policy-based-route to create a policy node and enter policy node view. Use undo policy-based-route to remove a policy or policy node. Syntax policy-based-route policy-name [ deny | permit ] node node-number undo policy-based-route policy-name [ deny | node node-number | permit ] Default No policy node is created.
reset ip policy-based-route statistics Use reset ip policy-based-route statistics to clear PBR statistics. Syntax reset ip policy-based-route statistics [ policy policy-name ] Views User view Predefined user roles network-admin mdc-admin Parameters policy policy-name: Specifies a policy by its name, a case-sensitive string of 1 to 19 characters. Usage guidelines If no policy is specified, the command clears all PBR statistics.
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 mdc-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.
network-operator mdc-admin mdc-operator 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.
NibID: 0x21000000 Type: 0x41 UserKey0: 0x0 UserKey1: 0x0 IFIndex: 0x0 RefCnt: 1 Flag: 0x12 Sequence: 0 Flushed: Yes VrfNthp: 0 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 Versi
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 ipv6 route-static routing-table Use display ipv6 route-static routing-table to display IPv6 static routing table information.
BfdMode: N/A Permanent: 0 vrfIndexNH: 0 Tag: 0 *Destination: 1::1234/128 NibID: 0x21000000 MainNibID: N/A BkNibID: N/A TableID: 0xa Flag: 0x80d0a DbIndex: 0x1 Type: Normal TrackIndex: 0xffffffff Preference: 60 BfdMode: N/A Permanent: 0 NextHop: 2::2 BkNextHop: N/A 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 Route type: Type • Normal. • DHCP. • NAT. BfdSrcIp Source IPv6 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. vrfIndexNH Index of the VPN to which the next hop belongs.
Predefined user roles network-admin mdc-admin Parameters ipv6-address prefix-length: Specifies the IPv6 address and prefix length. interface-type interface-number: Specifies an output interface by its type and number. If the output interface is an NBMA interface or broadcast interface (such as an Ethernet interface or a VLAN interface), rather than a point-to-point (P2P) interface, the next hop address must be specified. next-hop-address: Specifies the next hop IPv6 address.
• Do not specify the permanent keyword together with the bfd or track keyword. 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.
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 mdc-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 mdc-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.
Maximum number of load balanced routes: 6 Update time : 30 secs Suppress time : 120 secs Timeout time : 180 secs Garbage-collect time : 120 secs Number of periodic updates sent: 256 Number of trigger updates sent: 1 Table 100 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.
display ripng 100 database 1::/64, cost 0, RIPng-interface 10::/32, cost 0, imported 2::2/128, via FE80::20C:29FF:FE7A:E3E4, cost 1 Table 101 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.
1::/16 Table 102 Command output Field Description Interface Name of an interface running RIPng. Link Local Address Link-local address of an interface running RIPng. Indicates whether the split horizon function is enabled: Split-horizon • On—Enabled. • Off—Disabled. 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.
statistics: Displays routing information statistics, including total number of routes and the number of routes learned from each neighbor. Examples # Display routing information for RIPng process 1.
FE80::20C:29FF:FE7A:E3E4 Total 2/3 0 2/3 0 Table 104 Command output Field Description Peer IPv6 address of the neighbor. Optimal Number of optimal routes. Aging Number of routes in aging state. Garbage Number of routes in Garbage-collection state. Total Total number of routes learned from RIPng neighbors. filter-policy export Use filter-policy export to configure RIPng to filter redistributed routes. Only routes not filtered can be advertised in update messages.
• To deny/permit a route with the specified destination, use the rule [ rule-id ] { deny | permit } ipv6 source sour sour-prefix command. • To deny/permit a route with the specified destination and prefix, use the rule [ rule-id ] { deny | permit } ipv6 source sour sour-prefix destination dest dest-prefix command. The source keyword specifies the destination address of a route and the destination keyword specifies the prefix of the route. The specified prefix must be contiguous.
prefix-list prefix-list-name: Specifies an IPv6 prefix list by its name, a string of 1 to 63 characters, to filter received routes. Usage guidelines To use an advanced ACL (with a number from 3000 to 3999) in the command, configure the ACL in one of the following ways: • To deny/permit a route with the specified destination, use the rule [ rule-id ] { deny | permit } ipv6 source sour sour-prefix command.
Examples # Enable GR for RIPng process 1. system-view [Sysname] ripng 1 [Sysname-ripng-1] graceful-restart import-route Use import-route to redistribute routes from another routing protocol. Use undo import-route to disable route redistribution. Syntax import-route protocol [ process-id ] [ allow-ibgp ] [ cost cost | route-policy route-policy-name ] * undo import-route protocol [ process-id ] Default RIPng does not redistribute routes from another routing protocol.
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 maximum load-balancing number undo maximum load-balancing Views RIPng view Predefined user roles network-admin mdc-admin Parameters number: Specifies the maximum number of ECMP routes. When this argument is set to 1, RIPng does not perform load balancing.
Views RIPng view Predefined user roles network-admin mdc-admin Parameters route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters. value: Specifies the preference for RIPng routes, in the range of 1 to 255. Usage guidelines You can specify a routing policy to set a preference for the matching RIPng routes. • The preference set by the routing policy applies to all matching RIPng routes.
reset ripng statistics Use reset ripng statistics to clear statistics for a RIPng process. Syntax reset ripng process-id statistics Views User view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters process-id: Specifies a RIPng process by its ID in the range of 1 to 65535. Examples # Clear statistics for RIPng process 100. reset ripng 100 statistics ripng Use ripng to create a RIPng process and enter RIPng view. Use undo ripng to disable a RIPng process.
Usage guidelines Before you configure global RIPng parameters, you must create a RIPng process. This restriction does not apply to configuring interface RIPng parameters. If you disable a RIPng process, the configured RIPng parameters become invalid. Examples # Create RIPng process 100 and enter its view. system-view [Sysname] ripng 100 [Sysname-ripng-100] ripng default-route Use ripng default-route to configure a RIPng interface to advertise a default route with a specified metric.
[Sysname] interface vlan-interface 101 [Sysname-Vlan-interface101] 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. Syntax ripng process-id enable undo ripng enable Default RIPng is disabled on an interface. Views Interface view Predefined user roles network-admin mdc-admin Parameters process-id: Specifies a RIPng process by its ID in the range of 1 to 65535.
Parameters value: Adds an additional metric to inbound routes, in the range of 0 to 16. Examples # Configure VLAN-interface 100 to add a metric of 12 to inbound RIPng routes. system-view [Sysname] interface vlan-interface 100 [Sysname-Vlan-interface100] ripng metricin 12 ripng metricout Use ripng metricout to configure an interface to add a metric to outbound RIPng routes. Use undo ripng metricout to restore the default.
Views Interface view Predefined user roles network-admin mdc-admin Examples # Enable the poison reverse function for RIPng update messages on VLAN-interface 100. system-view [Sysname] interface vlan-interface 100 [Sysname-Vlan-interface100] ripng poison-reverse ripng split-horizon Use ripng split-horizon to enable the split horizon function. Use undo ripng split-horizon to disable the split horizon function.
Syntax ripng summary-address ipv6-address prefix-length undo ripng summary-address ipv6-address prefix-length Default The summary network to be advertised through the interface is not configured. Views Interface view Predefined user roles network-admin mdc-admin Parameters ipv6-address: Specifies the destination IPv6 address of the summary route. prefix-length: Specifies the prefix length of the destination IPv6 address of the summary route, in the range of 0 to 128.
mdc-admin Parameters garbage-collect-value: Sets the garbage-collect timer in the range of 1 to 86400 seconds. suppress-value: Sets the suppress timer in the range of 0 to 86400 seconds. timeout-value: Sets the timeout timer in the range of 1 to 86400 seconds. update-value: Sets the update timer in the range of 1 to 86400 seconds. Usage guidelines RIPng has the following timers: • Update timer—Interval between update messages. • Timeout timer—Route aging time.
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.
Use undo area to remove an OSPFv3 area. Syntax area area-id undo area area-id Default No OSPFv3 area is created. Views OSPFv3 view Predefined user roles network-admin mdc-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.
Usage guidelines You can configure an OSPFv3 cost for an interface with one of the following methods: • Configure the cost value in interface view. • 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.
Related commands stub (OSPFv3 area view) default-route-advertise (OSPFv3 view) Use default-route-advertise to redistribute a default route into the OSPFv3 routing domain. Use undo default-route-advertise to restore the default. Syntax default-route-advertise [ [ always | permit-calculate-other ] | cost cost | route-policy route-policy-name | type type ] * undo default-route-advertise Default No default route is redistributed into the OSPFv3 routing domain.
Examples # Generate a default route into the OSPFv3 routing domain. (The default route does not exist in the local router.) system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] default-route-advertise always Related commands import-route (OSPFv3 view) display ospfv3 Use display ospfv3 to display OSPFv3 process information.
LSA received count: 0 Area count: 2 ExChange/Loading neighbors: 0 Max equal cost paths: 32 Up interfaces: 1 Full neighbors: 1 Normal areas with up interfaces: 1 Calculation trigger type: Full Current calculation type: SPF calculation Current calculation phase: Calculation area topology Redistribute timer: Off Redistribute schedule type: RIB Redistribute route count: 0 Process reset state: N/A Current reset type: N/A Next reset type: N/A Reset prepare message replied: -/-/-/Reset process message replied: -/-
Reset process message replied: -/-/-/Reset phase of module: M-N/A, P-N/A, S-N/A, C-N/A, R-N/A Table 105 Command output Field Description OSPFv3 Process 1 with Router ID 1.1.1.1 OSPFv3 process is 1, and router ID is 1.1.1.1. Router type: • ABR. • ASBR. • Null. Router type 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.
Field Description Current route calculation type: • SPF calculation. • Intra router calculation—Intra-area route calculation. • ASBR calculation—Inter-area ASBR route calculation. • Inc intra router—Incremental intra-area route calculation. • Inc ASBR calculation—Incremental inter-area ASBR Current calculation type route calculation. • Full intra AS—Calculation of all intra-AS prefixes. • Inc intra AS—Calculation of incremental intra-AS 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 mdc-admin mdc-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.
Predefined user roles network-admin network-operator mdc-admin mdc-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.
OSPFv3 Process 1 with Router ID 2.2.2.2 Area: 1.1.1.1 Total summary addresses: 1 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 108 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.
Helper-policy support : Enable Current GR state : Normal Graceful-restart period : 120 seconds Number of neighbors under helper: 0 Number of restarting neighbors : 0 Last exit reason: Restarter : None Helper : None Table 109 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.
interface-type interface-number: Specifies an interface by its type and number. verbose: Displays detailed information about all OSPFv3 interfaces. Usage guidelines If no process is specified, this command displays brief OSPFv3 interface information for all processes. If you do not provide the interface-type interface-number or the verbose keyword, this command displays brief information about all OSPFv3 interfaces. Examples # Display OSPFv3 information about VLAN-interface 1.
Field Description Interface state: • DOWN—No protocol traffic can be sent or received on the interface. • Waiting—The interface starts sending and receiving Hello packets and the router is trying to determine the identity of the (Backup) designated router for the network. • p-2-p—The interface will send Hello packets at the State interval of HelloInterval, and try to establish an adjacency with the neighbor. • DR—The router is the designated router on the network.
Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. Without this argument, the command displays LSDB information for all processes. external: Displays AS external LSAs (Type-5 LSAs). grace: Displays Grace-LSAs (Type-11 LSAs). inter-prefix: Displays Inter-area-prefix LSAs (Type-3 LSAs). inter-router: Displays Inter-area-router LSAs (Type-4 LSAs).
Router-LSA (Area 0.0.0.1) ------------------------------------------------------------------------Link State ID Origin Router Age SeqNum 0.0.0.0 1.1.1.1 0013 0x80000068 0x5d5f CkSum Link 2 0.0.0.0 2.2.2.2 0024 0x800000ea 0x1e22 0 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 Intra-Area-Prefix-LSA (Area 0.0.0.
Prefix Options: 0 (-|-|-|-) Table 112 Command output Field Description LS age Age of LSA. LS Type Type of LSA. Link State ID Link State ID. Originating Router Originating Router. LS Seq Number LSA Sequence Number. Checksum LSA Checksum. Length LSA Length. Priority Router Priority. Options Options. Link-Local Address Link-Local Address. Number of Prefixes Number of Prefixes. Prefix Address prefix. Prefix Options Prefix options. # Display LSA statistics.
OSPFv3 Process 1 with Router ID 1.1.1.1 Link-LSA (Interface Vlan-interface1) ------------------------------------------------------------------------Link State ID Origin Router Age SeqNum 0.15.0.8 2.2.2.2 0691 0x80000041 0x8315 SendCnt: 0 RxmtCnt: 0 1.1.1.1 0623 SendCnt: 0 RxmtCnt: 0 0.0.0.3 CkSum Prefix 1 Status: Stale 0x80000001 0x0fee 1 Status: Stale Router-LSA (Area 0.0.0.
display ospfv3 nexthop Use display ospfv3 nexthop to display OSPFv3 next hop information. Syntax display ospfv3 [ process-id ] nexthop Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. Without this argument, the command displays next hop information for all OSPFv3 processes. Examples # Display next hop information for OSPFv3 process 1.
Syntax display ospfv3 [ process-id ] [ area area-id ] peer [ [ interface-type interface-number ] [ verbose ] | peer-router-id | statistics ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. area area-id: Specifies an area by its ID, an IPv4 address or a decimal integer in the range of 0 to 4294967295 that is translated into an IPv4 address by the system.
Field Description Interface Interface connected to the neighbor. Inst ID Instance ID. # Display detailed neighbor information for OSPFv3 process 1 on an interface. display ospfv3 1 peer vlan-interface 1 verbose OSPFv3 Process 1 with Router ID 1.1.1.1 Area 0.0.0.1 interface Vlan1's neighbors Router ID: 2.2.2.2 State: ExStart DR: 2.2.2.
Field Description Link State Retransmission List Number of LSAs in the link state retransmission list. GR state: • • • • GR state Normal. Doing GR—Acting as the GR restarter. Complete GR. Helper—Acting as the GR helper. Grace period Grace-LSA sending interval. Grace period timer Grace-LSA sending interval timer. DD Rxmt timer DD packet retransmission timer. LS Rxmt timer LSU retransmission timer. # Display OSPFv3 neighbor statistics.
Syntax display ospfv3 [ process-id ] [ area area-id ] request-queue [ interface-type interface-number ] [ neighbor-id ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535. area area-id: Specifies an area by its ID, an IPv4 address or a decimal integer in the range of 0 to 4294967295 that is translated into an IPv4 address by the system.
Table 119 Command output Field Description Area Area ID. Interface Interface type and sequence number. Nbr-ID Neighbor ID. Request list Request list information. Type LSA type. AdvRouter Advertising router. SeqNum LSA sequence number. Age LSA age. CkSum Checksum. display ospfv3 retrans-queue Use display ospfv3 retrans-queue to display retransmission list information.
If no neighbor is specified, this command displays retransmission list information for all neighbors. Examples # Display OSPFv3 retransmission list information. display ospfv3 retrans-queue OSPFv3 Process 1 with Router ID 1.1.1.1 Area: 0.0.0.0 Interface Vlan-interface1 ------------------------------------------------------------------------Nbr-ID 1.2.2.2 Retransmit List Type LinkState ID AdvRouter SeqNum Age CkSum 0x2009 0.0.0.0 1.3.3.
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. display ospfv3 routing OSPFv3 Process 1 with Router ID 1.1.1.
Syntax display ospfv3 [ process-id ] [ area area-id ] spf-tree [ verbose ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-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 122 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.
Nexthop count: 1 -->NbrID : 1.1.1.1 NbrIntID : 21 Interface : Vlan2 NhFlag : Valid Nexthop : FE80::20C:29FF:FED7:F308 RefCount : 4 SPFLink count: 1 -->AdvID : 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 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.
DB Description 505 941 Ls Req 252 136 Ls Upd 851 1553 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 12
Field Description Unknown-LSA Number of Unknown-LSAs. Total Total number. Routes Statistics Number of routes. Intra Area Intra-area routes. Inter Area Inter-area routes. ASE/NSSA External routes. # Display OSPFv3 error statistics. display ospfv3 statistics error OSPFv3 Process 1 with Router ID 1.1.1.
Field Description Bad virtual link Packets on wrong virtual links. 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: 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.
display ospfv3 vlink OSPFv3 Process 1 with Router ID 1.1.1.1 Virtual-link Neighbor-id: 12.2.2.2, Neighbor-state: Full Interface: 2348 (Vlan-interface12), Instance-ID: 0 Local IPv6 address: 3:3333::12 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 Table 126 Command output Field Description Virtual-link Neighbor-ID ID of the neighbor on the virtual link.
mdc-admin Parameters acl6-number: Specifies an IPv6 ACL by its number in the range of 2000 to 3999 to filter inbound/outbound Inter-Area-Prefix-LSAs. prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter inbound/outbound Inter-Area-Prefix-LSAs. route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to filter inbound/outbound Inter-Area-Prefix-LSAs.
process-id: Specifies a process by its ID in the range of 1 to 65535. This argument is available only when the protocol is ripng, ospfv3, or isisv6. Usage guidelines To reference an advanced ACL (with a number from 3000 to 3999) in the command, configure the ACL in one of the following ways: • To deny/permit a route with the specified destination, use rule [ rule-id ] { deny | permit } ipv6 source sour sour-prefix.
Predefined user roles network-admin mdc-admin Parameters acl6-number: Specifies an IPv6 ACL by its number in the range of 2000 to 3999 to filter routes by destination. gateway prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter routes by next hop. Without this option, this command does not filter routes by next hop.
Use undo graceful-restart enable to disable the GR capability for OSPFv3. Syntax graceful-restart enable undo graceful-restart enable Default The GR capability for OSPFv3 is disabled. Views OSPFv3 view Predefined user roles network-admin mdc-admin Usage guidelines To prevent service interruption after a master/backup switchover, a GR restarter running OSPFv3 must complete the following tasks: • Keep the GR restarter forwarding entries stable during reboot.
Usage guidelines Upon receiving the Grace-LSA, the neighbors with the GR helper capability enter the helper mode (and are called "GR helpers"). Then, the GR restarter retrieves its adjacencies and LSDB with the help of the GR helpers. Examples # Enable the GR helper capability for OSPFv3 process 1.
Use undo graceful-restart interval to restore the default. Syntax graceful-restart interval interval-value undo graceful-restart interval Default The GR restart interval is 120 seconds. Views OSPFv3 view Predefined user roles network-admin mdc-admin Parameters interval-value: Specifies GR restart interval in the range of 40 to 1800 seconds. Usage guidelines The value of the GR restart interval cannot be smaller than the maximum OSPFv3 neighbor dead time of all the OSPFv3 interfaces.
mdc-admin Parameters protocol: Redistributes routes from the specified routing protocol, which can be bgp4+, direct, isisv6, ospfv3, ripng, or static. process-id: Specifies the process ID of a routing protocol, in the range of 1 to 65536. It defaults to 1. This argument takes effect only when the protocol is isisv6, ospfv3, or ripng. all-processes: Redistributes routes from all the processes of the specified routing protocol. This keyword takes effect only when the protocol is ripng, ospfv3, or isisv6.
Use undo log-peer-change to disable the logging of neighbor state changes. Syntax log-peer-change undo log-peer-change Default The logging of neighbor state changes is enabled. Views OSPFv3 view Predefined user roles network-admin mdc-admin Usage guidelines This feature enables the device to deliver logs about neighbor state changes to its information center, which processes logs according to user-defined output rules (whether to output logs and where to output).
Parameters maximum-interval: Specifies the maximum OSPFv3 LSA generation interval in the range of 1 to 60 seconds. minimum-interval: Specifies the minimum OSPFv3 LSA generation interval in the range of 10 to 60000 milliseconds. The default is 0, which indicates that the minimum interval can be any value. incremental-interval: Specifies the OSPFv3 LSA generation incremental interval in the range of 10 to 60000 milliseconds.
If you set the maximum number of ECMP routes to m by using the max-ecmp-num command, the maximum argument in the maximum load-balancing command is in the range of 1 to m and defaults to m. Examples # Configure the maximum number of ECMP routes as 2. system-view [Sysname] ospfv3 100 [Sysname-ospfv3-100] maximum load-balancing 2 Related commands max-ecmp-num ospfv3 Use ospfv3 to enable an OSPFv3 process and enter OSPFv3 view. Use undo ospfv3 to disable an OSPFv3 process.
Use undo ospfv3 area to disable an OSPFv3 process. Syntax ospfv3 process-id area area-id [ instance instance-id ] undo ospfv3 process-id area area-id [ instance instance-id ] Default No OSPFv3 process is enabled on an interface. Views Interface view Predefined user roles network-admin mdc-admin Parameters process-id: Specifies an OSPFv3 process by its ID in the range of 1 to 65535.
Usage guidelines BFD provides a mechanism to quickly detect the connectivity of links between OSPFv3 neighbors, improving the convergence speed of OSPFv3. OSPFv3 uses BFD to implement bidirectional control detection. Examples # Enable BFD on VLAN-interface 11 in instance 1. system-view [Sysname] interface vlan-interface 11 [Sysname-Vlan-interface11] ospfv3 bfd enable instance 1 ospfv3 cost Use ospfv3 cost to configure an OSPFv3 cost for an interface in an instance.
Syntax ospfv3 dr-priority priority [ instance instance-id ] undo ospfv3 dr-priority [ instance instance-id ] Default An interface has a router ID of 1. Views Interface view Predefined user roles network-admin mdc-admin Parameters priority: Specifies a router priority in the range of 0 to 255. instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0. Usage guidelines An interface's router priority determines its privilege in DR/BDR selection.
Usage guidelines A neighbor relationship can be established only if the interface's MTU is the same as that of the peer. Examples # Configure VLAN-interface 10 that belongs to instance 1 to ignore MTU check during DD packet exchange. system-view [Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] ospfv3 mtu-ignore instance 1 ospfv3 network-type Use ospfv3 network-type to set the network type for an OSPFv3 interface. Use undo ospfv3 network-type to restore the default.
directly connected, configure the P2MP network type so that the two routers can exchange routing information through another router. When the network type of an interface is NBMA or P2MP unicast, you must use the peer command to specify the neighbor. When the network type of an interface is P2MP unicast, all OSPFv3 packets are unicast by the interface. Examples # Configure the OSPFv3 network type for VLAN-interface 20 as NBMA.
[Sysname] interface vlan-interface 10 [Sysname-Vlan-interface10] ospfv3 peer fe80::1111 ospfv3 timer dead Use ospfv3 timer dead to configure the OSPFv3 neighbor dead time. Use undo ospfv3 timer dead to restore the default. Syntax ospfv3 timer dead seconds [ instance instance-id ] undo ospfv3 timer dead [ instance instance-id ] Default The OSPFv3 neighbor dead time is 40 seconds for P2P and broadcast interfaces, and is 120 seconds for P2MP and NBMA interfaces.
Default The hello interval is 10 seconds for P2P and broadcast interfaces, and is 30 seconds for P2MP or NBMA interfaces. Views Interface view Predefined user roles network-admin mdc-admin Parameters seconds: Specifies the hello interval in the range of 1 to 65535 seconds. instance-id: Specifies an instance by its ID in the range of 0 to 255. The default is 0. Usage guidelines The shorter the hello interval is, the faster the topology converges and the more resources are consumed.
instance-id: Specifies an interface instance by its ID in the range of 0 to 255. The default is 0. Usage guidelines When an NBMA interface finds its neighbor is down, it sends hello packets at the poll interval. The poll interval must be at least four times the hello interval. Examples # Set the poll interval on VLAN-interface 10 to 120 seconds.
ospfv3 trans-delay Use ospfv3 trans-delay to configure the transmission delay for an interface. Use undo ospfv3 trans-delay to restore the default. Syntax ospfv3 trans-delay seconds [ instance instance-id ] undo ospfv3 trans-delay [ instance instance-id ] Default The transmission delay is 1 second. Views Interface view Predefined user roles network-admin mdc-admin Parameters seconds: Specifies the transmission delay in the range of 1 to 3600 seconds.
Predefined user roles network-admin mdc-admin Parameters ase: Sets a preference to OSPFv3 external routes. If the keyword is not specified, the command sets a preference for OSPFv3 internal routes. route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to set a preference for matching routes. preference: Specifies the preference of OSPFv3, in the range of 1 to 255. The smaller the value, the higher the preference.
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.3 Related commands ospfv3 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.
spf-schedule-interval Use spf-schedule-interval to set the OSPFv3 SPF calculation interval. Use undo spf-schedule-interval to restore the default. Syntax spf-schedule-interval maximum-interval [ minimum-interval [ incremental-interval ] ] undo spf-schedule-interval Default The maximum SPF calculation interval is 5 seconds, the minimum interval is 50 milliseconds, and the incremental interval is 200 milliseconds.
Use undo stub to restore the default. Syntax stub [ default-route-advertise-always | no-summary ] * undo stub Default No area is configured as a stub area. Views OSPFv3 area view Predefined user roles network-admin mdc-admin Parameters default-route-advertise-always: Enables the ABR to always advertise the default route. no-summary: Enables the ABR of a stub area to advertise only a default route in an Inter-Area-Prefix-LSA into the stub area.
Views OSPFv3 view Predefined user roles network-admin mdc-admin Parameters interval interval: Specifies an interval at which an interface sends LSU packets, in the range of 10 to 1000 milliseconds. If the router has multiple OSPFv3 interfaces, increase this interval to reduce the total number of LSU packets sent by the router every second. count count: Specifies the maximum number of LSU packets sent by an interface at each interval, in the range of 1 to 200.
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. instance instance-id: Sets the instance ID of a virtual link, in the range of 0 to 255. The default is 0. retransmit seconds: Sets the retransmission interval in the range of 1 to 3600 seconds. The default is 5. trans-delay seconds: Sets the transmission delay interval in the range of 1 to 3600 seconds. The default is 1.
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.
Level-2 IPv6 Redistribute Table -------------------------------Type : direct Destination: 12:1::/64 IntCost : 0 Tag State : Active : Table 127 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.
verbose: Displays detailed IPv6 IS-IS routing information. process-id: Specifies an IS-IS process by its ID in the range of 1 to 65535. Usage guidelines If no level is specified, this command displays both Level-1 and Level-2 route information. Examples # Display IPv6 IS-IS route information.
Field Description Route flag: • • • • Flag/Flags D—This is a direct route. R—The route has been added into the routing table. L—The route has been advertised in an LSP. U—Route leaking flag, indicating that the Level-1 route is from Level-2. U means the route will not be returned to Level-2. Cost Route cost. Next Hop Next hop. Interface Outbound interface. # Display detailed IPv6 IS-IS routing information.
Table 129 Command output Field Description IPV6 Dest IPv6 destination address and prefix. Cost Route cost. Route flag: Flag/Flags • • • • D—This is a direct route. R—The route has been added into the routing table. L—The route has been advertised in an LSP. U—Route leaking flag, indicating the Level-1 route is from Level-2. U means the route will not be returned to Level-2. Admin Tag Administrative tag. Src Count Number of advertisement sources. Next Hop Next hop.
display isis spf-tree ipv6 Shortest Path Tree for IS-IS(1) ------------------------------- Flags: S-Node is on SPF tree T-Node is on tent list O-Node is overload R-Node is directly reachable I-Node or Link is isolated D-Node or Link is to be deleted 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(Topo 2) Shortest Path Tree ---------------------------------- SpfNode No
Flags: S-Node is on SPF tree T-Node is on tent list O-Node is overload R-Node is directly reachable I-Node or Link is isolated D-Node or Link is to be deleted 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(Topo 2) Shortest Path Tree ---------------------------------- SpfNode : 0000.0000.0032.00 Distance : 0 NodeFlag : S/-/-/-/-/- NextHopCnt: 0 SpfLinkCnt: 2 -->0000.0000.
Type: Adjacent Interface: N/A Cost: 0 Nexthop SpfNode : 0000.0000.0064.00 Distance : 10 NodeFlag : S/-/-/R/-/- : N/A NextHopCnt: 2 Neighbor : 0000.0000.0064.00 Interface NextHop : FE80::200:12FF:FE34:1 BkNeighbor: N/A : Vlan2 BkInterface: N/A BkNextHop : N/A Neighbor : 0000.0000.0064.00 NextHop : FE80::A0A:A40 Interface BkNeighbor: N/A : Tun1 BkInterface: N/A BkNextHop : N/A SpfLinkCnt: 2 -->0000.0000.0032.
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.00 LinkCost : 0 LinkNewCost: 0 LinkFlag : -/-/C/-/-/-/-/-/- LinkSrcCnt : 1 Type: Adjacent Interface: Vlan2 Cost: 0 Nexthop : FE80::200:12FF:FE34:1 -->0000.0000.0032.
LinkNewCost: 10 LinkFlag : -/-/-/P/-/-/-/-/- LinkSrcCnt : 1 Type: Remote Interface: N/A Cost: 10 Nexthop : N/A Table 130 Command output Field Description SpfNode ID of the topology node. Distance Shortest distance from the root node to the current 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.
Field Description Cost Cost of the link advertising source. ipv6 default-route-advertise Use ipv6 default-route-advertise to generate a Level-1 or Level-2 IPv6 IS-IS default route. Use undo ipv6 default-route-advertise to disable generating a default route. Syntax ipv6 default-route-advertise [ [ level-1 | level-1-2 | level-2 ] | route-policy route-policy-name ] * undo ipv6 default-route-advertise Default No IPv6 IS-IS default route is generated.
ipv6 enable Use ipv6 enable to enable IPv6 for an IS-IS process. Use undo ipv6 enable to disable IPv6. Syntax ipv6 enable undo ipv6 enable Default IPv6 is disabled for an IS-IS process. Views IS-IS view Predefined user roles network-admin mdc-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.
prefix-list prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters, to filter the redistributed routes. route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to filter redistributed routes. protocol: Filters routes redistributed from the specified routing protocol, which can be bgp4+, direct, isisv6, ospfv3, ripng, or static.
Use undo ipv6 filter-policy import to remove the configuration. Syntax ipv6 filter-policy { acl6-number | prefix-list prefix-list-name | route-policy route-policy-name } import undo ipv6 filter-policy import Default IPv6 IS-IS does not filter received routes. Views IS-IS view Predefined user roles network-admin mdc-admin Parameters acl6-number: Specifies an IPv6 ACL by its number in the range of 2000 to 3999 to filter received routes.
[Sysname] isis 1 [Sysname-isis-1] ipv6 filter-policy 3000 import Related commands ipv6 filter-policy export ipv6 import-route Use ipv6 import-route to enable IPv6 IS-IS to redistribute routes from another routing protocol. Use undo ipv6 import-route to disable route redistribution.
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 IPv6–IS-IS to redistribute static routes and set the cost for redistributed routes to 15.
ipv6 import-route isisv6 level-2 into level-1 Use ipv6 import-route isisv6 level-2 into level-1 to enable IPv6 IS-IS route advertisement from Level-2 to Level-1. Use undo ipv6 import-route isisv6 level-2 into level-1 to restore the default.
undo ipv6 import-route limit Default The maximum number of redistributed Level 1/Level 2 IPv6 routes is not configured. Views IS-IS view Predefined user roles network-admin mdc-admin Parameters number: Specifies the maximum number of redistributed Level 1/Level 2 IPv6 routes, in the range of 1 to 65536. Examples # Configure IS-IS process 1 to redistribute up to 1000 Level 1/Level 2 IPv6 routes.
Examples # Configure the maximum number of ECMP routes as 2. system-view [Sysname] isis 100 [Sysname-isis-100] ipv6 maximum load-balancing 2 ipv6 preference Use ipv6 preference to configure the preference for IPv6 IS-IS. Use undo ipv6 preference to restore the default. Syntax ipv6 preference { preference | route-policy route-policy-name } * undo ipv6 preference Default The preference for IPv6 IS-IS is 15.
Default IPv6 IS-IS routes have the low convergence priority. Views IS-IS view Predefined user roles network-admin mdc-admin Parameters critical: Specifies the highest convergence priority. high: Specifies the high convergence priority. medium: Specifies the medium convergence priority. prefix-list prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters. tag tag-value: Specifies a tag value in the range of 1 to 4294967295.
Parameters ipv6-prefix: Specifies an IPv6 prefix for the summary route. prefix-length: Specifies the length of the IPv6 prefix, in the range of 0 to 128. avoid-feedback: Avoids learning the summary route by route calculation. generate_null0_route: Generates a NULL 0 route to avoid routing loops. level-1: Summarizes only the routes redistributed to Level-1. level-1-2: Summarizes all the routes redistributed to both Level-1 and Level-2. level-2: Summarize only the routes redistributed to Level-2.
[Sysname-Vlan-interface11] isis ipv6 bfd enable isis ipv6 enable Use isis ipv6 enable to enable IPv6 for an IS-IS process on an interface. Use undo isis ipv6 enable to disable the configuration. Syntax isis ipv6 enable [ process-id ] undo isis ipv6 enable Default IPv6 is disabled for an IS-IS process. Views Interface view Predefined user roles network-admin mdc-admin Parameters process-id: Specifies an IS-IS process by its ID in the range of 1 to 65535. The default is 1.
IPv6 policy-based routing commands apply next-hop Use apply next-hop to set a next hop. Use undo apply next-hop to remove the configuration. Syntax apply next-hop [ vpn-instance vpn-instance-name ] { ipv6-address [ direct ] [ track track-entry-number ] } &<1-n> undo apply next-hop [ [ vpn-instance vpn-instance-name ] ipv6-address&<1-n> ] Default No next hop is set.
Related commands apply loadshare display ipv6 policy-based-route Use display ipv6 policy-based-route to display IPv6 PBR policy information. Syntax display ipv6 policy-based-route [ policy policy-name ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters policy policy-name: Specifies a policy by its name, a case-sensitive string of 1 to 19 characters. Usage guidelines If no policy is specified, this command displays information about all policies.
Syntax In standalone mode: display ipv6 policy-based-route interface interface-type interface-number [ slot slot-number ] In IRF mode: display ipv6 policy-based-route interface interface-type interface-number [ chassis chassis-number slot slot-number ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters interface-type interface-number: Specifies an interface by its type and number.
Matched: 0 node 1 permit: if-match acl 3999 Matched: 0 node 2 permit(no resource): if-match acl 2000 apply next-hop 1000::1 Matched: 0 node 5 permit: if-match acl 3101 apply next-hop 1000::1 Matched: 0 (no statistics resource) Total matched: 0 Table 132 Command output Field Description IPv6 PBR configuration and statistics on VLAN-interface 1. Policy based routing information for interface Vlan-interface1(failed) failed indicates the policy (including all its nodes) failed to be assigned to the driver.
Syntax In standalone mode: display ipv6 policy-based-route local [ slot slot-number ] In IRF mode: display ipv6 policy-based-route local [ chassis chassis-number slot slot-number ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters slot slot-number: Displays the IPv6 PBR configuration and statistics on a card. The slot-number argument is the number of the slot that holds the card. (In standalone mode.
Field Description 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. Related commands reset ipv6 policy-based-route statistics display ipv6 policy-based-route setup Use display ipv6 policy-based-route setup to display IPv6 PBR configuration.
Syntax if-match acl { acl6-number | name acl6-name } undo if-match acl Default No ACL match criterion is configured. Views IPv6 policy node view Predefined user roles network-admin mdc-admin Parameters acl6-number: Specifies an ACL by its number in the range of 2000 to 3999. The value range of a basic ACL is 2000 to 2999 and that of an advanced ACL is 3000 to 3999. name acl6-name: Specifies an ACL by its name, a case-insensitive string of 1 to 63 characters starting with letter a to z or A to Z.
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-Vlan2] interface vlan-interface 2 [Sysname-Vlan-interface2] ipv6 policy-based-route aaa Related commands • display ipv6 policy-based-route setup • ipv6 policy-based-route (system view) ipv6 policy-based-route (system view) Use ipv6 policy-based-route to create an IPv6 policy or policy node and enter IPv6 policy node view. If the specified IPv6 policy node already exists, the command directly places you into IPv6 policy node view.
Related commands display ipv6 policy-based-route 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 mdc-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 mdc-admin Parameters as-number&<1-32>: Specifies an AS by its number in the range of 1 to 4294967295.
apply comm-list delete Use apply comm-list delete to delete the COMMUNITY attributes from BGP routes. 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 mdc-admin 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.
Views Routing policy node view Predefined user roles network-admin mdc-admin 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.
Usage guidelines Used for IS-IS, the apply cost-type internal command sets the cost type for a matching IS-IS route to IS-IS internal route. Used for BGP, the apply cost-type internal command sets the MED for a matching BGP route learned from an IBGP peer to the IGP metric of the route's next hop before BGP advertises the route to an EBGP peer. Examples # Configure node 10 in permit mode for routing policy policy1 to set the cost type for routes that have a tag of 8 to IS-IS internal route.
Examples # Configure node 10 in permit mode for routing policy policy1 to add the RT extended community attribute 100:2 to BGP routes matching AS path list 1. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] if-match as-path 1 [Sysname-route-policy-policy1-10] apply extcommunity rt 100:2 additive apply isis Use apply isis to redistribute routes into a specified ISIS level. Use undo apply isis to restore the default.
undo apply local-preference Default No local preference is set for BGP routes. Views Routing policy node view Predefined user roles network-admin mdc-admin Parameters preference: Specifies a local preference in the range of 0 to 4294967295. Examples # Configure node 10 in permit mode for routing policy policy1 to set a local preference of 130 for routes matching AS path list 1.
apply origin Use apply origin to set an ORIGIN attribute for BGP routes. Use undo apply origin to restore the default. Syntax apply origin { egp as-number | igp | incomplete } undo apply origin Default No ORIGIN attribute is set for BGP routes. Views Routing policy node view Predefined user roles network-admin mdc-admin 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.
Predefined user roles network-admin mdc-admin Parameters preference: Specifies a preference in the range of 1 to 255. Usage guidelines If you have set preferences for routing protocols with the preference command, the apply preference command sets a new preference for the matching routing protocol. Non-matching routing protocols still use the preferences set by the preference command.
apply prefix-priority Use apply prefix-priority to set a prefix priority for routes. Use undo apply prefix-priority to restore the default. Syntax apply prefix-priority { critical | high | medium } undo apply prefix-priority Default No prefix priority is set, which means the prefix priority is low. Views Routing policy node view Predefined user roles network-admin mdc-admin Parameters critical: Sets the critical prefix priority for routes. high: Sets the high prefix priority for routes.
Predefined user roles network-admin mdc-admin Parameters value: Specifies the tag value in the range of 0 to 4294967295. Examples # Configure node 10 in permit mode for routing policy policy1 to set a tag of 100. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] apply tag 100 continue Use continue to specify the next node to be matched. Use undo continue to restore the default.
Syntax display ip as-path [ as-path-number ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters as-path-number: Specifies an AS path list by its number in the range of 1 to 256. Without this argument, the command displays information about all BGP AS path lists. Examples # Display information about BGP AS path list 1.
Parameters basic-community-list-number: Specifies a basic community list by its number in the range of 1 to 99. adv-community-list-number: Specifies an advanced community list by its number in the range of 100 to 199. name comm-list-name: Specifies a community list by its name, a case-sensitive string of 1 to 63 characters that cannot comprise only numbers. Usage guidelines If no community list is specified, this command displays information about all BGP community lists.
Examples # Display information about BGP extended community list 1. display ip extcommunity-list 1 Extended Community List Number 1 permit rt : 9:6 Table 137 Command output Field Description Extended Community List Number Extended community list. Match mode: permit • permit. • deny. rt Route Target (RT) extended community attribute. display route-policy Use display route-policy to display routing policy information.
Table 138 Command output Field Description Route-policy Routing policy name. permit • permit. • deny. if-match Match criterion. continue Specify the next node to be matched. apply Action. Match mode: if-match as-path Use if-match as-path to match BGP routes whose AS_PATH attribute matches a specified AS path list. Use undo if-match as-path to remove the configuration.
if-match community Use if-match community to match BGP routes whose COMMUNITY attribute matches a specified community list. Use undo if-match community to remove the configuration. Syntax if-match community { { basic-community-list-number | name comm-list-name } [ whole-match ] | adv-community-list-number }&<1-32> undo if-match community [ { basic-community-list-number | name comm-list-name } [ whole-match ] | adv-community-list-number ]&<1-32> Default No community list match criterion is configured.
Syntax if-match cost value undo if-match cost Default No cost match criterion is configured. Views Routing policy node view Predefined user roles network-admin mdc-admin Parameters value: Specifies a cost in the range of 0 to 4294967295. Examples # Configure node 10 in permit mode for routing policy policy1 to permit routing information with a cost of 8.
Examples # Configure node 10 in permit mode for routing policy policy1 to match BGP routes whose extended community attribute matches extended community lists 100 and 150.
Use undo if-match local-preference to restore the default. Syntax if-match local-preference preference undo if-match local-preference Default No local preference match criterion is configured. Views Routing policy node view Predefined user roles network-admin mdc-admin Parameters preference: Specifies a local preference in the range of 0 to 4294967295. Examples # Create node 10 in permit mode for routing policy policy1 to match BGP routes having a local preference of 2.
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.
undo if-match tag Default No tag match criterion is configured. Views Routing policy node view Predefined user roles network-admin mdc-admin Parameters value: Specifies a tag in the range of 0 to 4294967295. Examples # Configure node 10 in permit mode for routing policy policy1 to match RIP, OSPF, and IS-IS routing information having a tag of 8.
Usage guidelines BGP routing updates contain an AS_PATH attribute field that identifies the ASs through which the routes have passed. An AS path regular expression, for example, ^200. *100$, matches the AS_PATH attribute that starts with AS 200 and ends with AS 100. For the meanings of special characters used in regular expressions, see Fundamentals Configuration Guide. Examples # Create AS path list 1 to permit routes whose AS_PATH attribute starts with 10.
basic-comm-list-name: Specifies the basic community list name, a case-sensitive string of 1 to 63 characters that cannot comprise only letters. adv-comm-list-name: Specifies the advanced community list name, a case-sensitive string of 1 to 63 characters that cannot comprise only letters. adv-comm-list-num: Specifies the advanced community list number in the range of 100 to 199. regular-expression: Specifies a regular expression for the advanced community list, a string of 1 to 63 characters.
Syntax ip extcommunity-list ext-comm-list-number { deny | permit } { rt route-target }&<1-32> undo ip extcommunity-list ext-comm-list-number [ { deny | permit } [ rt route-target ]&<1-32> ] Default No extended community list is defined. Views System view Predefined user roles network-admin mdc-admin Parameters ext-comm-list-number: Specifies a number for the extended community list, in the range of 1 to 199. deny: Specifies the match mode for the extended community list as deny.
Predefined user roles network-admin mdc-admin Parameters mac-list-name: Specifies a MAC list by its name, a case-sensitive string of 1 to 63 characters. Without this argument, the command clears statistics for all MAC lists. Examples # Clear the statistics for MAC list abc. reset mac-list abc route-policy Use route-policy to create a routing policy and a node, and enter routing policy node view. Use undo route-policy to remove a routing policy or a node of it.
Examples # Create node 10 in permit mode for routing policy policy1 and enter routing policy node view. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy-policy1-10] Related commands display route-policy IPv4 routing policy configuration commands apply fast-reroute Use apply fast-reroute to set a backup link for fast route (FRR). Use undo apply fast-reroute to remove the configuration.
[Sysname-route-policy-policy1-10] if-match ip address prefix-list abc [Sysname-route-policy-policy1-10] apply fast-reroute backup-interface vlan-interface 1 backup-nexthop 193.1.1.8 apply ip-address next-hop Use apply ip-address next-hop to set a next hop for IPv4 routes. Use undo apply ip-address next-hop to restore the default. Syntax apply ip-address next-hop ip-address [ public | vpn-instance vpn-instance-name ] undo apply ip-address next-hop Default No next hop is set for IPv4 routes.
Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters name 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 displays statistics for all IPv4 prefix lists. Examples # Display the statistics for IPv4 prefix list abc. display ip prefix-list name abc Prefix-list: abc Permitted 0 Denied 0 index: 10 deny 6.6.6.
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. Views Routing policy node view Predefined user roles network-admin mdc-admin Parameters address: Matches the destination address of IPv4 routes. next-hop: Matches the next hop of IPv4 routes. route-source: Matches the source address of IPv4 route information.
mdc-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. If a route matches the item, the route is denied without matching against the next item; if not, the route matches against the next item (suppose the IPv4 prefix list has multiple items).
Predefined user roles network-admin mdc-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.
[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. Syntax display ipv6 prefix-list [ name prefix-list-name ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters name prefix-list-name: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters.
• reset ipv6 prefix-list if-match ipv6 Use if-match ipv6 to match IPv6 routes whose destination, next hop, or source matches the specified IPv6 prefix list. Use undo if-match ipv6 to remove the configuration. Syntax if-match ipv6 { address | next-hop | route-source } { acl acl6-number | prefix-list prefix-list-name undo if-match ipv6 { address | next-hop | route-source } [ acl | prefix-list ] Default No IPv6 prefix list match criterion is configured.
Default No IPv6 prefix list is configured. Views System view Predefined user roles network-admin mdc-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 mdc-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 ABCDEFGHILMNOPRSTV bandwidth-reference (IS-IS view),188 A bandwidth-reference (OSPF view),93 abr-summary (OSPF area view),89 bestroute as-path-neglect,272 abr-summary (OSPFv3 area view),443 bestroute compare-med,273 address-family ipv4,1 bestroute med-confederation,274 address-family ipv4,266 bgp,275 address-family ipv6,1 address-family ipv6,267 C advertise-rib-active,267 checkzero,53 aggregate,268 checkzero,424 apply as-path,535 circuit-cost,188 apply comm-list delete,536 compare-
display bgp network,290 display ipv6 rib nib,15 display bgp paths,292 display ipv6 route-direct nib,16 display bgp peer ipv4 unicast,293 display ipv6 route-static nib,416 display bgp peer ipv6 unicast,296 display ipv6 route-static routing-table,419 display bgp routing-table dampened ipv4 unicast,300 display ipv6 routing-table,19 display bgp routing-table dampened ipv6 unicast,301 display ipv6 routing-table acl,22 display bgp routing-table flap-info ipv4 unicast,303 display ipv6 routing-table ip
display ospfv3,447 filter-policy export,328 display ospfv3 abr-asbr,451 filter-policy export,62 display ospfv3 abr-summary,452 filter-policy export,222 display ospfv3 graceful-restart,454 filter-policy export (OSPF view),141 display ospfv3 interface,455 filter-policy export (OSPFv3 view),478 display ospfv3 lsdb,457 filter-policy import,330 display ospfv3 nexthop,462 filter-policy import,64 display ospfv3 peer,462 filter-policy import,431 display ospfv3 request-queue,465 filter-policy import
isis bfd enable,235 if-match ip,562 if-match ipv6,567 isis circuit-level,235 if-match local-preference,552 isis circuit-type p2p,236 if-match mpls-label,553 isis cost,237 if-match route-type,554 isis dis-name,238 if-match tag,554 isis dis-priority,239 ignore-first-as,336 isis enable,239 import-route,229 isis ipv6 bfd enable,523 import-route,337 isis ipv6 enable,524 import-route,433 isis mib-binding,240 import-route,66 isis silent,241 import-route (OSPF view),147 isis small-hello,241 i
peer as-number (for a BGP peer group),349 network,340 network,68 peer as-number (for a BGP peer),348 network (OSPF area view),154 peer as-path-acl,350 network short-cut,342 peer bfd,351 network-entity,252 peer capability-advertise conventional,352 nssa,155 peer capability-advertise route-refresh,354 O peer capability-advertise suppress-4-byte-as,355 peer connect-interface,356 opaque-capability enable,156 peer default-route-advertise,357 ospf,157 peer description,359 ospf area,158 peer ebgp
reflect between-clients,389 rip summary-address,83 reflector cluster-id,390 rip version,83 refresh bgp ipv4 unicast,392 ripng,436 refresh bgp ipv6 unicast,393 ripng default-route,437 reset bgp all,394 ripng enable,438 reset bgp dampening ipv4 unicast,394 ripng metricin,438 reset bgp dampening ipv6 unicast,395 ripng metricout,439 reset bgp flap-info ipv4 unicast,396 ripng poison-reverse,439 reset bgp flap-info ipv6 unicast,397 ripng split-horizon,440 reset bgp ipv4 unicast,398 ripng summar
V virtual-system,264 validate-source-address,87 vlink-peer (OSPF area view),183 vlink-peer (OSPFv3 area view),501 version,87 579