HP Load Balancing Module Network Management Command Reference Part number: 5998-4225 Software version: Feature 3221 Document version: 6PW100-20130326
Legal and notice information © Copyright 2013 Hewlett-Packard Development Company, L.P. No part of this documentation may be reproduced or transmitted in any form or by any means without prior written consent of Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Contents Interface configuration commands ······························································································································ 1 General Ethernet interface and subinterface configuration commands ······································································ 1 combo enable ··························································································································································· 1 default ······················
Layer 2 forwarding configuration commands ·········································································································· 49 Normal Layer 2 forwarding configuration commands ······························································································ 49 display mac-forwarding statistics ························································································································· 49 reset mac-forwarding statistics ······················
display proxy-arp ·················································································································································· 90 local-proxy-arp enable ·········································································································································· 91 proxy-arp enable ··················································································································································· 92 IP forward
display dns server ··············································································································································· 137 display ip host ····················································································································································· 138 dns domain ·························································································································································· 139 dns p
asbr-summary ······················································································································································· 179 authentication-mode ············································································································································ 180 bandwidth-reference (OSPF view) ····················································································································· 181 default ················
reset ospf redistribution ······································································································································· 233 rfc1583 compatible ············································································································································ 234 router id ································································································································································ 234 silent-
peer advertise-community (BGP view) ··············································································································· 280 peer advertise-ext-community (BGP view) ········································································································· 281 peer allow-as-loop (BGP view) ··························································································································· 281 peer as-number (BGP view) ··························
Policy-based routing configuration commands ····································································································· 328 apply access-vpn vpn-instance ··························································································································· 328 apply default output-interface····························································································································· 328 apply ip-address default next-hop ··········
ipv6 nd ra router-lifetime ···································································································································· 375 ipv6 neighbor ······················································································································································ 376 ipv6 neighbor stale-aging ·································································································································· 377 ipv6 neighbors max
area (OSPFv3 view) ············································································································································ 411 bandwidth-reference ··········································································································································· 412 default cost ··························································································································································· 413 default-cos
display bgp ipv6 paths ······································································································································· 463 display bgp ipv6 peer ········································································································································ 464 display bgp ipv6 peer received ipv6-prefix ····································································································· 469 display bgp ipv6 routing-table ······
peer timer (IPv6 address family view) ··············································································································· 511 preference (IPv6 address family view/IPv6 BGP-VPN instance view) ··························································· 512 reflect between-clients (IPv6 address family view) ··························································································· 512 reflector cluster-id (IPv6 address family view)···································
if-match as-path ···················································································································································· 553 if-match community ·············································································································································· 554 if-match cost ························································································································································· 555 if-m
Interface configuration commands General Ethernet interface and subinterface configuration commands combo enable Use combo enable to activate the copper or fiber combo port. Syntax combo enable { copper | fiber } Default The copper combo port is activated. Views Ethernet interface view (combo interface) Default command level 2: System level Parameters copper: Activates the copper(electrical) combo port. fiber: Activates the fiber (optical) combo port.
default Use default to restore the default settings for an Ethernet interface or subinterface. Syntax default Views Ethernet interface view, Ethernet subinterface view Default command level 2: System level Usage guidelines CAUTION: The default command might interrupt ongoing network services. Make sure you are fully aware of the impacts of this command when you use it in a live network.
Views Ethernet interface view, Ethernet subinterface view Default command level 2: System level Parameters text: Specifies the interface description, a string of 1 to 80 characters.
Parameters interface-type: Specifies an interface type. interface-number: Specifies an interface number. interface-number.subnumber: Specifies a subinterface number, where interface-number is an interface number, and subnumber is the number of a subinterface created under the interface. The subnumber argument ranges from 1 to 4094. brief: Displays brief interface information. If you do not specify this keyword, the command displays detailed interface information.
Output:0 packets, 0 bytes, 0 buffers 0 broadcasts, 0 multicasts, 0 pauses 0 errors, 0 underruns, 0 collisions 0 deferred, 0 lost carriers # Display information about Layer 3 interface GigabitEthernet 0/1, which includes only the interface name and traffic statistics.
Field Description Average input rate over the last 300 seconds in Bps, bps, and pps. Last 300 seconds input rate The statistics polling interval, 300 seconds in this example, can be configured by using the flow-interval command. Average output rate over the last 300 seconds in Bps, bps, and pps. Last 300 seconds output rate The statistics polling interval, 300 seconds in this example, can be configured by using the flow-interval command. Input Input packets. Output Output packets.
Field Description Link layer state of the subinterface: Line protocol current state • DOWN—The interface is physically down. • UP—The interface is physically up. Disabled indicates that IP packets cannot be processed. Internet protocol processing For an interface configured with an IP address, this field changes to Internet Address is. IP Packet Frame Type Encapsulation format for IPv4 packets. Hardware Address MAC address corresponding to the subinterface.
Output (total): 1502 packets, 138924 bytes - unicasts, 2 broadcasts, 406 multicasts, 0 pauses Output (normal): - packets, - bytes 1094 unicasts, - broadcasts, - multicasts, - pauses Output: 3 output errors, - underruns, - buffer failures - aborts, 1 deferred, 2 collisions, 0 late collisions - lost carrier, - no carrier Table 3 Command output Field Description GigabitEthernet0/1 current state Physical state of the Ethernet interface. For more information, see Table 4.
Field Description Peak time of input Time of peak inbound traffic. Peak value of output Peak value of outbound traffic, in Bps. Peak time of output Time of peak outbound traffic. Last 300 seconds input: 0 packets/sec 0 bytes/sec Average rate of input and output traffic in the last 300 seconds, in pps and Bps. Last 300 seconds output: 0 packets/sec 0 bytes/sec The statistics polling interval, 300 seconds in this example, can be configured by using the flow-interval command.
Field Description ignored Number of inbound frames dropped because the receive buffer of the port ran low. - parity errors Total number of frames with parity errors. Output (total): 1502 packets, 138924 bytes - unicasts, 2 broadcasts, 406 multicasts, 0 pauses Output (normal): - packets, - bytes 1094 unicasts, - broadcasts, multicasts, - pauses Outbound traffic statistics (in packets and bytes) for the port.
display interface gigabitethernet 0/1.1 GigabitEthernet0/1.1 current state: DOWN IP Sending Frames' Format: PKTFMT_ETHNT_2, Hardware Address: 000f-e245-7911 Description: GigabitEthernet 0/1.1 Interface Broadcast MAX-ratio: 100% PVID: 1 Port link-type: access Tagged VLAN ID : none Untagged VLAN ID : 1 0 packets input, 0 bytes, 0 drops 0 packets output, 0 bytes, 0 drops Table 5 Command output Field Description State of the Ethernet subinterface: GigabitEthernet0/1.
GE0/2 DOWN auto GE0/3 UP GE0/4 DOWN auto A 100M(a) F(a) A A 1 A 1 A 1 # Filter the brief interface information to display the line starting with the (s) string and all subsequent lines. display interface brief | begin (s) The brief information of interface(s) under route mode: Link: ADM - administratively down; Stby - standby Protocol: (s) - spoofing Interface Link Protocol Main IP GE0/1 Stby DOWN Description -- Loop0 UP UP(s) 2.2.2.
Table 6 Command output Field Description The brief information of interface(s) under route mode: The command displays brief information about Layer 3 interfaces. Link layer state of the interface: Link: ADM administratively down; Stby - standby • ADM—The interface has been shut down by the network administrator. To recover its physical layer state, use the undo shutdown command. • Stby—The interface is a standby interface.
Field Description Link type of the interface: Type • A—Access. • H—Hybrid. • T—Trunk. PVID Port VLAN ID. Cause Causes for the physical state of an interface to be DOWN. For more information, see Table 7. Table 7 Causes for the physical state of an interface to be DOWN Field Description Not connected No physical connection exists (possibly because the network cable is disconnected or faulty). Administratively The port was shut down with the shutdown command.
[Sysname-GigabitEthernet0/1] duplex full flow-control Use flow-control to enable TxRx mode generic flow control on an Ethernet interface. Use undo flow-control to disable generic flow control on the Ethernet interface. Syntax flow-control undo flow-control Default Generic flow control on an Ethernet interface is disabled.
Default command level 2: System level Parameters interval: Sets the statistics polling interval, in seconds. It ranges from 5 to 300 and must be a multiple of 5. Usage guidelines The statistics polling interval takes effect on all Ethernet interfaces. Examples # Set the statistics polling interval to 100 seconds for all Ethernet interfaces. system-view [Sysname] flow-interval 100 interface Use interface to enter interface or subinterface view. If you specify the interface-number.
[Sysname-GigabitEthernet0/2] # Create Ethernet subinterface GigabitEthernet 0/2.1 and enter GigabitEthernet 0/2.1 subinterface view (assuming that GigabitEthernet 0/2 is a Layer 3 Ethernet interface and the subinterface does not exist). system-view [Sysname] interface gigabitethernet 0/2.1 [Sysname-GigabitEthernet0/2.1] port link-mode Use port link-mode to change the link mode of an Ethernet interface. Use undo port link-mode to restore the default.
interface GigabitEthernet0/1 port link-mode bridge # Return The output shows that GigabitEthernet 0/1 is now operating in Layer 2 mode. NOTE: The display this command displays the configuration that takes effect in the current view. Related commands port link-mode interface-list reset counters interface Use reset counters interface to clear the Ethernet interface or subinterface statistics. Syntax reset counters interface [ interface-type [ interface-number | interface-number.
shutdown Use shutdown to shut down an Ethernet interface or subinterface. Use undo shutdown to bring up an Ethernet interface or subinterface. Syntax shutdown undo shutdown Default Ethernet interfaces and subinterfaces are up. Views Ethernet interface view, Ethernet subinterface view Default command level 2: System level Usage guidelines You may need to shut down and then bring up an Ethernet interface to activate configuration changes such as speed or duplex mode changes.
Default command level 2: System level Parameters 10: Sets the interface speed to 10 Mbps. 100: Sets the interface speed to 100 Mbps. 1000: Sets the interface speed to 1000 Mbps. auto: Enables the interface to negotiate a speed with its peer. Usage guidelines For an Ethernet copper port, use the speed command to set its speed to match the speed of the peer interface. For a fiber port, use the speed command to set its speed to match the rate of a pluggable transceiver.
[Sysname-GigabitEthernet0/1] sub-interface rate-statistic Layer 2 Ethernet interface and subinterface configuration commands broadcast-suppression Use broadcast-suppression to set the broadcast suppression threshold on an Ethernet interface or subinterface. Use undo broadcast-suppression to restore the default broadcast suppression threshold. Syntax broadcast-suppression ratio undo broadcast-suppression Default Ethernet interfaces do not suppress broadcast traffic.
mdi NOTE: This command is not applicable to fiber ports. Use mdi to configure the MDI mode of an Ethernet copper interface. Use undo mdi to restore the default. Syntax mdi { across | auto | normal } undo mdi Default Ethernet interfaces operate in auto MDI mode. Views Layer 2 Ethernet interface view Default command level 2: System level Parameters across: Sets the MDI mode to across. In this mode, pins 1 and 2 are receive pins, and pins 3 and 6 are transmit pins. auto: Sets the MDI mode to auto.
Default command level 2: System level Parameters ratio: Sets the multicast suppression threshold as a percentage of the maximum interface rate, ranging from 1 to 100. The smaller the percentage, the less multicast traffic is allowed to be received. Usage guidelines When the received multicast traffic exceeds the threshold, the system discards multicast packets until multicast traffic drops below the threshold.
If you set different unknown unicast suppression thresholds in Ethernet interface view multiple times, the most recent configuration takes effect. Examples # Set the unknown unicast threshold to 20% on GigabitEthernet 0/1. system-view [Sysname] interface gigabitethernet 0/1 [Sysname-GigabitEthernet0/1] unicast-suppression 20 # Set the unknown unicast threshold to 20% on Ethernet subinterface GigabitEthernet 0/1.1. system-view [Sysname] interface gigabitethernet 0/1.
Examples # Enable internal loopback testing on GigabitEthernet 0/1. system-view [Sysname] interface gigabitethernet 0/1 [Sysname-GigabitEthernet0/1] loopback internal mtu Use mtu to set the MTU for an Ethernet interface or subinterface. Use undo mtu to restore the default. Syntax mtu size undo mtu Default The MTU of an Ethernet interface or subinterface is 1500 bytes.
Views Layer 3 Ethernet interface view Examples # Configure GigabitEthernet 0/1 to operate in promiscuous mode. system-view [Sysname] interface gigabitethernet 0/1 [Sysname-GigabitEthernet0/1] promiscuous Loopback and null interface configuration commands default Use default to restore the default settings for the loopback or null interface.
Syntax description text undo description Default The description of a loopback or null interface is interface name Interface, for example, Loopback1 interface. Views Loopback interface view, null interface view Default command level 2: System level Parameters text: Specifies an interface description, a case-sensitive string of 1 to 80 characters. The description can include letters, digits, special characters, spaces, and other Unicode characters and symbols.
Parameters interface-number: Specifies a loopback interface by its number, which can be the number of any existing loopback interface. With this argument, this command displays information about a specified loopback interface. brief: Displays brief interface information. If you do not specify this keyword, the command displays detailed interface information. down: Displays information about interfaces in DOWN state and the causes.
Interface Link Cause Loop1 ADM Administratively Table 8 Command output Field Description current state Physical state of the interface, which can be up or administratively down. Line protocol current state State of the data link layer protocol: up (spoofing). Spoofing refers to the spoofing attribute of the interface. When the network layer protocol state of the interface is displayed as up, the corresponding link may not exist, or the corresponding link is non-permanent and established on demand.
Field Description Protocol Protocol connection state of the interface, which can be UP, DOWN, or UP(s). Main IP Main IP address of the interface. Description Description of the interface. Cause Cause of a DOWN physical link. If the port has been shut down with the shutdown command, this field displays Administratively. To restore the physical state of the interface, use the undo shutdown command.
If you specify the null keyword, this command displays information about interface Null 0 with or without the 0 keyword, because the device supports only one null interface. Examples # Display detailed information about null interface Null 0.
system-view [Sysname] interface loopback 5 [Sysname-LoopBack5] Related commands display interface loopback interface null Use interface null to enter null interface view. Syntax interface null 0 Views System view Default command level 2: System level Parameters 0: Specifies interface Null 0. The null interface number is fixed to 0. Usage guidelines A device has only one null interface, always named interface Null 0. Interface Null 0 is always up. You cannot remove it or shut it down.
Usage guidelines Clear the existing statistics on the interface before starting to collect new traffic statistics. If you do not specify the loopback keyword, this command clears the statistics on all interfaces in the system. If you specify the loopback keyword without the interface-number argument, this command clears the statistics on all loopback interfaces. Examples # Clear statistics on loopback interface Loopback 5.
Views Loopback interface view Default command level 2: System level Examples # Shut down loopback interface loopback 1.
Bulk interface configuration commands interface range Use interface range to create an interface range and enter interface range view. Syntax interface range interface-list Views System view Default command level 2: System level Parameters interface-list: Specifies an interface list in the format of interface-list = { interface-type interface-number [ to interface-type interface-number ] }&<1-5>. The interface-type interface-number argument specifies an interface by its type and number.
interface range name Use interface range name name interface interface-list to create an interface range, configure a name for the interface range, add interfaces to the interface range, and enter the interface range view. Use interface range name without the interface keyword to enter the view of an interface range with the specified name. Use undo interface range name to delete the interface range with the specified name.
• The maximum number of interface range names is only limited by the system resources. To guarantee bulk interface configuration performance, configure fewer than 1000 interface range names. Examples # Add GigabitEthernet 0/2 through GigabitEthernet 0/4 to interface range named myEthPort, and enter the interface range view.
IPv4 addressing configuration commands display ip interface Use display ip interface to display IP configuration information for a specific Layer 3 interface or for all Layer 3 interfaces. Syntax display ip interface [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters interface-type interface-number: Specifies an interface by its type and number.
Routing redirect: 0 Echo request: 0 Router advert: 0 Router solicit: 0 Time exceed: 0 IP header bad: 0 Timestamp request: 0 Timestamp reply: 0 Information request: 0 Information reply: 0 Netmask request: 0 Netmask reply: 0 Unknown type: 0 Table 9 Command output Field Description Current physical state of the interface: • Administrative DOWN—The interface is shut down with the shutdown current state command.
Field Description TTL invalid packet number Number of TTL-invalid packets received on the interface (statistics start at device startup).
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines If you do not specify the interface type or the interface number, this command displays the brief IP configuration information for all Layer 3 interfaces. If you specify only the interface type, this command displays the brief IP configuration information for all Layer 3 interfaces of the specified type.
ip address Use ip address to assign an IP address and mask to the interface. Use undo ip address to remove all IP addresses from the interface. Use undo ip address ip-address { mask | mask-length } to remove the primary IP address. Use undo ip address ip-address { mask | mask-length } sub to remove a secondary IP address. Syntax ip address ip-address { mask-length | mask } [ sub ] undo ip address [ ip-address { mask-length | mask } [ sub ] ] Default No IP address is assigned to any interface.
MAC address table configuration commands The MAC address table contains only Layer 2 Ethernet interfaces. This document covers only the configuration of unicast MAC address table entries, including static, dynamic, and destination blackhole entries. display mac-address Use display mac-address to display MAC address table entries.
Examples # Display the MAC address table entry for MAC address 000f-e201-0101. display mac-address 000f-e201-0101 MAC ADDR VLAN ID STATE PORT INDEX AGING TIME(s) 000f-e201-0101 1 Learned GigabitEthernet0/1 AGING --- 1 mac address(es) found --- Table 11 Command output Field Description MAC ADDR MAC address. VLAN ID ID of the VLAN to which the MAC address belongs. State of a MAC address entry: STATE PORT INDEX • • • • Config static—Static entry manually configured by the user.
exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # Display the aging timer for dynamic entries in the MAC address table. display mac-address aging-time Mac address aging time: 300s The output shows that the aging timer for dynamic entries in the MAC address table is 300 seconds.
Examples # Add a static entry for MAC address 000f-e201-0101 on port GigabitEthernet 0/1 that belongs to VLAN 2. system-view [Sysname] interface gigabitethernet 0/1 [Sysname-GigabitEthernet0/1] mac-address static 000f-e201-0101 vlan 2 Related commands display mac-address mac-address (system view) Use mac-address to add or modify a MAC address entry. Use undo mac-address to remove one or all MAC address entries.
Usage guidelines A static or blackhole MAC address entry will not be overwritten by a dynamic MAC address entry. A dynamic MAC address entry can be overwritten by a static or blackhole MAC address entry. If you execute the undo mac-address command without specifying any parameters, this command deletes all MAC address entries. You can delete all the MAC address entries of a VLAN, or you can choose to delete a specific type (dynamic, static, or blackhole) of MAC address entries only.
Examples # Set the aging timer for dynamic MAC address entries to 500 seconds.
Layer 2 forwarding configuration commands Normal Layer 2 forwarding configuration commands display mac-forwarding statistics Use display mac-forwarding statistics to display Layer 2 forwarding statistics.
Total sent: 666 Filtered:0 STP discarded:0 # Display forwarding statistics of GigabitEthernet 0/1. display mac-forwarding statistics interface gigabitethernet 0/1 GigabitEthernet0/1: Input frames:100 Input bytes:23 Output frames:100 Output bytes:23 Filtered:0 Invalid Tag:0 Table 12 Command output Field Description Total received Total number of received Ethernet frames. Filtered Number of frames filtered out by 802.1Q Tagged VLAN inbound filtering rules.
Views User view Default command level 1: Monitor level Examples # Clear all Layer 2 forwarding statistics. reset mac-forwarding statistics Inline forwarding configuration commands display inline-interfaces Use display inline-interfaces to display inline forwarding information. Syntax display inline-interfaces [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression.
Field Description Interface Interface pair or interface in an inline forwarding entry. inline-interfaces Use inline-interfaces to create an inline forwarding entry. Use undo inline-interfaces to remove an inline forwarding entry. Syntax inline-interfaces id [ blackhole | reflect ] undo inline-interfaces id Views System view Default command level 2: System level Parameters id: Specifies the ID for an inline forwarding entry, in the range of 1 to 100.
Default command level 2: System level Parameters id: Specifies the ID of an existing inline forwarding entry. Usage guidelines A forward-type inline forwarding entry must contain two interfaces. Otherwise, it does not take effect. If only one interface is assigned, the interface performs normal Layer 2 forwarding. A reflect-type or blackhole-type inline forwarding entry can contain only one interface.
VLAN configuration commands Basic VLAN configuration commands default Use default to restore the default settings for a VLAN-interface. Syntax default Views VLAN-interface view Default command level 2: System level Usage guidelines CAUTION: The default command might interrupt ongoing network services. Make sure you are fully aware of the impacts of this command when you use it in a live network.
Default The description for a VLAN is VLAN vlan-id, which is the ID of the VLAN. For example, the default description of VLAN 100 is VLAN 0100. The default description for a VLAN-interface is the name of the interface. For example, the default description of VLAN-interface 1 is Vlan-interface1 Interface. Views VLAN view, VLAN-interface view Default command level 2: System level Parameters text: Specifies a description for a VLAN or VLAN-interface.
display interface vlan-interface Use display interface vlan-interface to display information about a specified or all VLAN-interfaces. Syntax display interface [ vlan-interface ] [ brief [ down ] ] [ | { begin | exclude | include } regular-expression ] display interface vlan-interface vlan-interface-id [ brief ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters vlan-interface-id: Specifies a VLAN-interface number.
0 packets output, 0 bytes, 0 drops # Display brief information for VLAN-interface 2. display interface vlan-interface 2 brief The brief information of interface(s) under route mode: Link: ADM - administratively down; Stby - standby Protocol: (s) - spoofing Interface Link Protocol Main IP Vlan2 DOWN DOWN Description -- # Display brief information for VLAN-interfaces in DOWN state.
Field Last clearing of counters Description Time when the reset counters interface vlan-interface command was last used to clear the interface statistics. Never indicates the reset counters interface vlan-interface command has never been used on the interface after the device's startup. Last 5 seconds input: 0 bytes/sec 0 packets/sec Average rate of input packets in the last 5 seconds (in bps and pps).
Views Any view Default command level 1: Monitor level Parameters vlan-id1: Displays information about a VLAN specified by VLAN ID, ranging from 1 to 4094. vlan-id1 to vlan-id2: Displays information about VLANs specified by a VLAN ID range. vlan-id2 must be no smaller than vlan-id1. all: Displays all VLAN information but the reserved VLANs. dynamic: Displays the number of dynamic VLANs and the ID for each dynamic VLAN. reserved: Displays information about the reserved VLANs.
Untagged Ports: none Table 15 Command output Field Description VLAN Type VLAN type, static or dynamic. Route interface Indicates whether the VLAN-interface is configured or not. Description Description of the VLAN. Name Name configured for the VLAN. IP Address Primary IP address of the VLAN-interface. This is available only when an IP address is configured for the VLAN-interface.
[Sysname] vlan 2 [Sysname-vlan2] quit [Sysname] interface vlan-interface 2 [Sysname-Vlan-interface2] Related commands display interface vlan-interface ip address Use ip address to assign an IP address and subnet mask to a VLAN-interface. Use undo ip address to remove the IP address and subnet mask for a VLAN-interface. Syntax ip address ip-address { mask | mask-length } [ sub ] undo ip address [ ip-address { mask | mask-length } [ sub ] ] Default No IP address is assigned to any VLAN-interface.
[Sysname-Vlan-interface1] ip address 1.1.0.1 255.255.255.0 Related commands display ip interface mtu Use mtu to set the MTU for a VLAN-interface. Use undo mtu to restore the default. Syntax mtu size undo mtu Default The MTU of a VLAN-interface is 1500 bytes. Views VLAN-interface view Default command level 2: System level Parameters size: Sets the MTU in bytes, in the range of 46 to 1500. Examples # Set the MTU to 1492 bytes for VLAN-interface 1.
Default command level 2: System level Parameters text: Specifies a VLAN name, a string of 1 to 32 characters.
Related commands display interface vlan-interface shutdown Use shutdown to manually shut down a VLAN-interface. Use undo shutdown to cancel the action of shutting down a VLAN-interface. Syntax shutdown undo shutdown Default A VLAN-interface is not manually shut down. The VLAN-interface is up if one or more ports in the VLAN is up, and goes down if all ports in the VLAN go down.
Syntax vlan { vlan-id1 [ to vlan-id2 ] | all } undo vlan { vlan-id1 [ to vlan-id2 ] | all } Default Only the default VLAN (VLAN 1) exists in the system. Views System view Default command level 2: System level Parameters vlan-id1, vlan-id2: Specifies a VLAN ID, ranging from 1 to 4094. vlan-id1 to vlan-id2: Specifies a VLAN range. vlan-id2 must be no smaller than vlan-id1. all: Creates or removes all VLANs except reserved VLANs.
Default command level 1: Monitor level Parameters hybrid: Displays hybrid ports. trunk: Displays trunk ports. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
Default All ports are in VLAN 1. All ports are access ports. However, you can manually configure the port type. For more information, see "port link-type.
system-view [Sysname] vlan 3 [Sysname-vlan3] quit [Sysname] interface gigabitethernet 0/1 [Sysname-GigabitEthernet0/1] port access vlan 3 port hybrid pvid Use port hybrid pvid to configure the PVID of the hybrid port. Use undo port hybrid pvid to restore the default. Syntax port hybrid pvid vlan vlan-id undo port hybrid pvid Default The PVID of a hybrid port is VLAN 1.
Use undo port hybrid vlan to remove the hybrid ports from the specified VLANs. Syntax port hybrid vlan vlan-list { tagged | untagged } undo port hybrid vlan vlan-list Default A hybrid port only allows packets from VLAN 1 to pass through untagged.
Views Ethernet interface view Default command level 2: System level Parameters access: Configures the link type of a port as access. hybrid: Configures the link type of a port as hybrid. trunk: Configures the link type of a port as trunk. Usage guidelines To change the link type of a port from trunk to hybrid or vice versa, you must first set the link type to access. Examples # Configure GigabitEthernet 0/1 as a trunk port.
The port trunk permit vlan all command can be ineffective to isolate-user-VLANs, but does not display any configuration error message. On a trunk port, only traffic of the PVID can pass through untagged. To prevent unauthorized VLAN users from accessing restricted resources, use the port trunk permit vlan all command with caution. Examples # Assign the trunk port GigabitEthernet 0/1 to VLAN 2, VLAN 4, and VLAN 50 through VLAN 100.
[Sysname] interface gigabitethernet 0/1 [Sysname-GigabitEthernet0/1] port link-type trunk [Sysname-GigabitEthernet0/1] port trunk pvid vlan 100 [Sysname-GigabitEthernet0/1] port trunk permit vlan 100 Related commands • port link-type • port trunk permit vlan 72
Isolate-user-VLAN configuration commands display isolate-user-vlan Use display isolate-user-vlan to display the mapping between an isolate-user-VLAN and secondary VLANs. Syntax display isolate-user-vlan [ isolate-user-vlan-id ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters isolate-user-vlan-id: Specifies an isolate-user-VLAN ID, ranging from 1 to 4094. |: Filters command output by specifying a regular expression.
Isolate-user-VLAN type : secondary Route Interface: configured IP Address: 2.2.2.2 Subnet Mask: 255.255.255.
undo isolate-user-vlan isolate-user-vlan-id [ secondary secondary-vlan-id [ to secondary-vlan-id ] ] Default An isolate-user-VLAN is not associated with any secondary VLAN. . Views System view Default command level 2: System level Parameters isolate-user-vlan-id: Specifies an isolate-user-VLAN ID, ranging from 1 to 4094. secondary secondary-vlan-id [ to secondary-vlan-id ]: Specifies a secondary VLAN ID or a secondary VLAN ID range.
Views VLAN view Default command level 2: System level Usage guidelines An isolate-user-VLAN may include multiple ports, including the one connected to the upstream device. Examples # Configure VLAN 5 as an isolate-user-VLAN.
If the port is a hybrid port, the system automatically assigns the port to the isolate-user-VLAN and its associated secondary VLANs (if the isolate-user-VLAN has been associated with secondary VLANs) as an untagged member (if the port has been assigned to a secondary VLAN as a tagged member, the tagged member attribute is not changed), and keeps the PVID of the port.
# Assign access port GigabitEthernet 0/1 to VLAN 10, which is not an isolate-user-VLAN, configure the port to operate in promiscuous mode in VLAN 10, and then cancel the configuration.
• If the port is an access port and has been assigned to a secondary VLAN, the device changes the link type of the port to hybrid and sets the secondary VLAN as the PVID of the port. • If the port is a trunk or hybrid port and has been assigned to a secondary VLAN, the device does not change the link type or PVID of the port.
ARP configuration commands arp max-learning-num Use arp max-learning-num to configure the maximum number of dynamic ARP entries that an interface can learn. Use undo arp max-learning-num to restore the default. Syntax arp max-learning-num number undo arp max-learning-num Default A Layer 2 interface does not limit the number of dynamic ARP entries. A Layer 3 interface can learn a maximum of 4096 dynamic ARP entries.
undo arp ip-address Views System view Default command level 2: System level Parameters ip-address: IP address in an ARP entry. mac-address: MAC address in an ARP entry, in the format H-H-H. vlan-id: ID of a VLAN to which a static ARP entry belongs, in the range of 1 to 4094. interface-type interface-number: Interface type and interface number. Usage guidelines A static ARP entry is effective when the device works normally.
Default command level 2: System level Parameters aging-time: Aging time for dynamic ARP entries in minutes, in the range of 1 to 1440. Examples # Set aging timer for dynamic ARP entries to 10 minutes. system-view [Sysname] arp timer aging 10 Related commands display arp timer aging display arp Use display arp to display ARP entries.
Examples # Display detailed information about all ARP entries. display arp all verbose Type: S-Static IP Address MAC Address D-Dynamic VLAN ID Interface Aging Type 100 GE0/1 14 D GE0/2 18 D GE0/3 20 D Vpn-instance Name 193.1.1.70 00e0-fe50-6503 [No Vrf] 192.168.0.115 voice 000d-88f7-9f7d [No Vrf] 192.168.0.39 1 data 0012-a990-2241 [No Vrf] 1 [No MT] Table 18 Command output Field Description IP Address IP address in an ARP entry. MAC Address MAC address in an ARP entry.
verbose: Displays the detailed information about the specified ARP entry. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
naturemask-arp enable Use naturemask-arp enable to enable natural mask support for ARP requests. Use undo naturemask-arp enable to restore the default. Syntax naturemask-arp enable undo naturemask-arp enable Default Natural mask support for ARP requests is disabled. Views System view Default command level 2: System level Examples # Enable natural mask support for ARP requests.
Related commands • arp static • display arp 86
Gratuitous ARP configuration commands arp send-gratuitous-arp Use arp send-gratuitous-arp to enable periodic sending of gratuitous ARP packets and set the sending interval on an interface. Use undo arp send-gratuitous-arp to disable the interface from periodically sending gratuitous ARP packets. Syntax arp send-gratuitous-arp [ interval milliseconds ] undo arp send-gratuitous-arp Default An interface is disabled from sending gratuitous ARP packets periodically.
gratuitous-arp-learning enable Use gratuitous-arp-learning enable to enable the gratuitous ARP packet learning function. Use undo gratuitous-arp-learning enable to disable the function. Syntax gratuitous-arp-learning enable undo gratuitous-arp-learning enable Default The function is enabled.
system-view [Sysname] undo gratuitous-arp-sending enable 89
Proxy ARP configuration commands display local-proxy-arp Use display local-proxy-arp to display the status of the local proxy ARP. Syntax display local-proxy-arp [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 2: System level Parameters interface interface-type interface-number: Displays the local proxy ARP status of the interface specified by the argument interface-type interface-number.
Views Any view Default command level 2: System level Parameters interface interface-type interface-number: Displays the proxy ARP status of the interface specified by the argument interface-type interface-number. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
Parameters ip-range startIP to endIP: Specifies the IP address range for which local proxy ARP is enabled. The start IP address must be lower than or equal to the end IP address. Usage guidelines Only one IP address range can be specified by using the ip-range keyword on an interface. Examples # Enable local proxy ARP on GigabitEthernet 0/1.
IP forwarding basics commands display fib Use display fib to display FIB entries. If you do not specify any parameter, this command displays all FIB entries. Syntax display fib [ vpn-instance vpn-instance-name ] [ acl acl-number | ip-prefix ip-prefix-name ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters vpn-instance vpn-instance-name: Displays the FIB entries of the specified VPN.
127.0.0.1/32 127.0.0.1 UH InLoop0 Null Invalid # Display FIB entries matching ACL 2000. system-view [Sysname] acl number 2000 [Sysname-acl-basic-2000] rule permit source 10.2.0.0 0.0.255.255 [Sysname-acl-basic-2000] display fib acl 2000 Destination count: 2 FIB entry count: 2 Flag: U:Useable G:Gateway H:Host B:Blackhole D:Dynamic S:Static R:Relay Destination/Mask Nexthop Flag OutInterface InnerLabel Token 10.2.0.0/16 10.2.1.1 U GE0/1 Null Invalid 10.2.1.1/32 127.0.0.
Field Description Flags of routes: Flag • • • • • • • U—Usable route. G—Gateway route. H—Host route. B—Blackhole route. D—Dynamic route. S—Static route. R—Recursive route. OutInterface Outbound interface. InnerLabel Inner label. Token Label switched path index number. display fib ip-address Use display fib ip-address to display FIB entries that match the specified destination IP address.
Examples # Display the FIB entry that matches the destination IP address of 10.2.1.1 and has the longest mask. display fib 10.2.1.1 Destination count: 1 FIB entry count: 1 Flag: U:Useable G:Gateway H:Host B:Blackhole D:Dynamic S:Static R:Relay Destination/Mask Nexthop Flag OutInterface InnerLabel Token 10.2.1.1/32 127.0.0.1 UH InLoop0 Null For the output description, see Table 19.
IP forwarding mode configuration commands display ip forwarding mode Use display ip forwarding mode to display forwarding modes being used and to be used after reboot. Syntax display ip forwarding mode [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide.
Parameters None. Usage guidelines The module supports the following forwarding modes: • Flow-based mode—The module forwards flows with the same 5-tuple elements (source IP address, destination IP address, source port number, destination port number, and protocol number) to a same CPU for processing. This mode takes the first-in first-out rule. • Packet-based mode—The module forwards packets in sequence to different CPUs for processing, even though they are the same flow.
NAT configuration commands address Use address to add a member that specifies an address pool to the address group. The address pools of group members may not be consecutive. Use undo address to remove a group member from the address group. Syntax address start-address end-address undo address start-address end-address Views Address group view Default command level 2: System level Parameters start-address: Start IP address of the address group member.
Syntax display nat address-group [ group-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters group-number: NAT address group number in the range of 0 to 255. If this argument is not provided, this command displays information about all NAT address pools. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide.
Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
There are currently 2 nat address-group(s) 1 : from 202.110.10.10 to 202.110.10.15 2 : from 202.110.10.20 to 202.110.10.25 NAT bound information: There are currently 1 nat bound rule(s) Interface: GigabitEthernet0/1 Direction: outbound ACL: 2036 Address-group: --- NO-PAT: N VPN-instance: --- NAT server in private network information: There are currently 1 internal server(s) Interface: GigabitEthernet0/1, Protocol: 6(tcp) Global: 50.1.1.1 : 23(telnet) Local : 192.168.10.
Field Description NAT server in private network information Internal server information. See the display nat server command for descriptions on the specific fields. NAT static information Information about static NAT. See the display nat static command for descriptions on the specific fields. NAT static enabled information Information about static NAT entries and interfaces with static NAT enabled. See the display nat static command for descriptions on the specific fields.
Table 22 Command output Field Description NAT bound information: Display configured NAT address translation information. Interface Interface associated with a NAT address pool. Direction Address translation direction. ACL ACL number. Address-group Address group number. The field is displayed as null in Easy IP mode. NO-PAT Identifies whether NO-PAT mode is supported. VPN-instance VPN where the NAT address pool belongs. The field is displayed as "---" if it is not configured.
Protocol : 6(tcp) Domain-name: ftp.server.com Global-IP : 202.113.16.100 Global-port: 21(ftp) Protocol : 6(tcp) Table 23 Command output Field Description Domain-name Domain name of the internal server. Global-IP External IP address of the internal server. Global-port Public port number of the internal server. Protocol Protocol type of the internal server. Related commands nat dns-map display nat server Use display nat server to display information about internal servers.
Interface: GigabitEthernet0/1, Protocol: 6(tcp) Global: 100.100.100.121 : 80(www) Local : 192.168.100.101 : 80(www) vpn2 Table 24 Command output Field Description Server in private network information Information about internal servers. Interface Internal server interface. Protocol Protocol type. Global External IP address and port number of a server, and the VPN to which the external address belongs.
Netmask : 255.255.255.0 Unidirectional : N Local-VPN : vpn1 Global-VPN : vpn2 single static: Local-IP : 4.4.4.4 Global-IP : 5.5.5.5 Unidirectional : N Local-VPN : --- Global-VPN : --- NAT static enabled information: Interface GigabitEthernet0/2 Direction out-static Table 25 Command output Field Description NAT static information Configuration information about static NAT. net-to-net Net-to-net static NAT. single static One-to-one static NAT. Local-IP Internal IP address.
begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # Display NAT statistics.
• Different address pools must not overlap. • The address pools of group members must not overlap with each other or with other address pools. • The number of addresses in all address pools and address groups cannot exceed a specific value. The value varies with device models. • An address pool or address group is not needed in the case of Easy IP where the interface's public IP address is used as the translated IP address. Examples # Configure an address pool numbered 1 that contains addresses 202.
Usage guidelines A device supports a maximum of 16 DNS mappings. Examples # A company provides Web service to external users. The domain name of the internal server is www.server.com, and the public IP address is 202.112.0.1. Configure a DNS mapping, so that internal users can access the Web server using its domain name. system-view [Sysname] nat dns-map domain www.server.com protocol tcp ip 202.112.0.
Usage guidelines You can configure multiple associations or use the undo command to remove an association from an interface that serves as the egress of an internal network to the external network. When the undo nat outbound command is executed to remove an association, the NAT entries depending on the association are not deleted. They are aged out automatically after 5 to 10 minutes. During this period, the involved users cannot access the external network whereas all the other users are not affected.
nat outbound static Use nat outbound static to enable static NAT on an interface, making the configured static NAT mappings take effect. Use undo nat outbound static to disable static NAT on the interface. Syntax nat outbound static [ track vrrp virtual-router-id ] undo nat outbound static [ track vrrp virtual-router-id ] Views Interface view Default command level 2: System level Parameters track vrrp virtual-router-id: Associates static NAT with a VRRP group.
Parameters acl-number: ACL number in the range of 2000 to 3999. protocol pro-type: Specifies a protocol type. pro-type supports TCP, UDP, and ICMP. If ICMP is specified, do not specify port number for the internal server. global-address: Public IP address for the internal server. current-interface: Uses the current interface address as the external IP address for the internal server. interface: Uses a specific interface address as the external IP address for the internal server, enabling Easy IP.
In general, this command is configured on an interface that serves as the egress of an internal network and connects to the external network. The device supports using an interface address as the external IP address of an internal server, which is Easy IP. If you specify the current-interface keyword, the internal server uses the current primary IP address of the current interface.
[Sysname-GigabitEthernet0/1] nat server protocol tcp global 202.110.10.10 1001 1100 inside 10.110.10.1 10.110.10.100 telnet vpn-instance vrf10 # Remove the Web server. system-view [Sysname] interface gigabitethernet 0/1 [Sysname-GigabitEthernet0/1] undo nat server protocol tcp global 202.110.10.10 8080 inside 10.110.10.10 www # Remove the FTP server from VPN vrf10. system-view [Sysname] interface gigabitethernet 0/1 [Sysname-GigabitEthernet0/1] undo nat server protocol tcp global 202.
vpn-instance local-name: Specifies the VPN to which the advertised internal network address belongs. The local-name argument is a case-sensitive string of 1 to 31 characters. Without this option, the advertised internal IP address does not belong to any VPN. Examples # Create an ACL. Allow packets with destination address 202.110.10.100/24 (public address of the internal server) to pass. system-view [Sysname] acl number 3000 [Sysname-acl-adv-3000] rule permit ip destination 202.110.10.100 0.0.0.
system-view [Sysname] nat static 192.168.1.1 2.2.2.2 # Configure static NAT to allow the internal host 192.168.1.1 to access only the external network 3.3.3.0/24 by using the external IP address 2.2.2.2. system-view [Sysname] acl number 3001 [Sysname-acl-adv-3001] rule permit ip destination 3.3.3.0 0.0.0.255 [Sysname-acl-adv-3001] quit [Sysname] nat static 3001 192.168.1.1 2.2.2.
[Sysname] nat static net-to-net 192.168.1.1 2.2.2.
NAT-PT configuration commands NAT-PT is not supported on VLAN interfaces and does not support VPN instances, IPv4 fragments, or ICMPv6 fragments. display natpt address-group Use display natpt address-group to display NAT-PT address pool configuration information. Syntax display natpt address-group [ | { begin | exclude | include } regular-expression ] Views Any view Default Level 1: Monitor level Parameters |: Filters command output by specifying a regular expression.
Views Any view Default Level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays the lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
display natpt all Use display natpt all to display all NAT-PT configuration information. Syntax display natpt all [ | { begin | exclude | include } regular-expression ] Views Any view Default Level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
Expired Sessions: 0 Hits: 0 Misses: 0 Total Address Mapping: 0 (static: 0 dynamic: 0 ) Total V6Server Mappings: 0 Enabled Interfaces: GigabitEthernet0/1 For the explanations to the information displayed above, see the descriptions of related commands. display natpt statistics Use display natpt statistics to display NAT-PT statistics.
Table 28 Command output Field Description Total Sessions Total number of sessions. Expired Sessions Number of expired sessions. Hits Number of times that a packet matches a NAT-PT session. Misses Number of times that a packet matches no NAT-PT sessions. Total Address Mapping Number of static and dynamic mappings. Total V6Server Mappings Number of V6Server mappings (address/port mappings). Enabled Interfaces NAT-PT enabled interfaces.
Examples # Configure a NAT-PT address pool. system-view [Sysname] natpt address-group 3 2.3.4.5 2.3.4.10 natpt enable Use natpt enable to enable the NAT-PT feature on an interface. Use undo natpt enable to disable the NAT-PT feature on an interface. Syntax natpt enable undo natpt enable Default The NAT-PT feature is disabled on an interface. No NAT-PT is implemented for packets received or sent on the interface.
nexthop ipv4-address: This option does not take effect. Usage guidelines A NAT-PT prefix must be different from the IPv6 address prefix of the receiving interface on the NAT-PT device. Otherwise, NAT-PT translation for a received packet with the prefix results in packet loss. To delete a NAT-PT prefix that has been referenced by using the natpt v4bound dynamic or natpt v6bound dynamic command, you must cancel the reference configuration first.
Default The value of the Traffic Class field in an IPv6 packet translated from an IPv4 packet is the same as that of the ToS field in the IPv4 packet. Views System view Default Level 2: System level Examples # Set the Traffic Class field in an IPv6 packet translated from an IPv4 packet to 0.
natpt v4bound static Use natpt v4bound static to configure a static IPv4/IPv6 address mapping on the IPv4 side. Use undo natpt v4bound static to remove a static IPv4/IPv6 address mapping on the IPv4 side. Syntax natpt v4bound static ipv4-address ipv6-address undo natpt v4bound static ipv4-address ipv6-address Views System view Default Level 2: System level Parameters ipv4-address: IPv4 address to be mapped. ipv6-address: IPv6 address to which an IPv4 address is mapped.
• tcp: Specifies the TCP protocol. • udp: Specifies the UDP protocol. ipv4-address-destination: IPv4 address to which an IPv6 address is mapped. ipv4-port-number: IPv4 port number in the range of 1 to 12287. ipv6-address-destination: Destination IPv6 address to be mapped. ipv6-port-number: IPv6 port number in the range of 1 to 12287. Examples # Configure a static NAPT-PT mapping for an IPV6 server, in which the protocol type is TCP, the IPv4 address and port number are 2.3.4.
interface interface-type interface-number: Specifies the IPv4 address of the interface as the translated source IPv6 address. The interface-type interface-number argument specifies the interface type and number. Examples # Configure a dynamic source address mapping policy for packets from IPv6 hosts to IPv4 hosts. Translate the source address of an IPv6 packet that matches IPv6 ACL 2001 into an IPv4 address in address pool 1. system-view [Sysname] natpt address-group 1 2.3.4.5 2.3.4.
Views User view Default Level 1: Monitor level Parameters None Usage guidelines This command cannot clear the statistics of total sessions and total address mappings. Examples # Clear all NAT-PT statistics.
ALG configuration commands alg Use alg to enable ALG for a protocol. Use undo alg to disable ALG for a protocol. Syntax alg { all | dns | ftp | h323 | ils | msn | nbt | pptp | qq | rtsp | sccp | sip | sqlnet | tftp } undo alg { all | dns | ftp | h323 | ils | msn | nbt | pptp | qq | rtsp | sccp | sip | sqlnet | tftp } Default The ALG feature is enabled only for FTP. Views System view Default command level 2: System level Parameters all: Enables ALG for all protocols. dns: Enables ALG for DNS.
system-view [Sysname] undo alg dns 132
Flow classification configuration commands display forwarding policy Use display forwarding policy to display the current flow classification policy. Syntax display forwarding policy [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 2: System level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide.
Usage guidelines Flow classification consumes many system resources. HP recommends you disable this function to improve device performance. Examples # Disable flow classification.
IPv4 DNS configuration commands display dns domain Use display dns domain to display the domain name suffixes. Syntax display dns domain [ dynamic ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters dynamic: Displays the domain name suffixes dynamically obtained through DHCP or other protocols. |: Filters command output by specifying a regular expression.
display dns host Use display dns host to display dynamic DNS cache information. Syntax display dns host [ ip | ipv6 ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters ip: Displays dynamic cache information about type A queries. A type A query resolves a domain name to the mapped IPv4 address. ipv6: Displays dynamic cache information about type AAAA queries. A type AAAA query resolves a domain name to the mapped IPv6 address.
Field Description Reply data concerning the query type: • For an IP query, the reply data is an IPv4 address. • For an IPv6 query, the reply data is an IPv6 address. • For a NAPTR query, the reply data comprises order, preference, flags, Reply Data services, regular expression, and replacement. • For an SRV query, the reply data comprises the priority, weight, port, and target domain name.
Field Description Type of domain name server: Type • S—A manually configured DNS server. • D—A DNS server obtained dynamically through DHCP. IP Address IPv4 address of the DNS server. Related commands dns server display ip host Use display ip host to display the host names and corresponding IPv4 addresses in the static domain name resolution table.
Field Description Address Host IPv4 address. dns domain Use dns domain to configure a domain name suffix. The system can automatically add the suffix to part of the domain name you entered for resolution. Use undo dns domain to delete a domain name suffix (with a domain name suffix specified) or all domain name suffixes (with no domain name suffix specified). Syntax dns domain domain-name undo dns domain [ domain-name ] Default No domain name suffix is configured.
undo dns proxy enable Default DNS proxy is disabled. Views System view Default command level 2: System level Examples # Enable DNS proxy. system-view [Sysname] dns proxy enable dns resolve Use dns resolve to enable dynamic domain name resolution. Use undo dns resolve to disable dynamic domain name resolution. Syntax dns resolve undo dns resolve Default Dynamic domain name resolution is disabled.
undo dns server [ ip-address ] In interface view: dns server ip-address undo dns server ip-address Default No DNS server is specified. Views System view, interface view Default command level 2: System level Parameters ip-address: IPv4 address of the DNS server. Usage guidelines You can configure a maximum of six DNS servers, including those with IPv6 addresses, in system view, and a maximum of six DNS servers on all interfaces of a device.
Default command level 2. System level Parameters interface-type interface-number: Specifies the interface type and number. Usage guidelines The device uses the primary IP address of the specified source interface as the source IP address of a DNS request, which is still forwarded through the output interface of the matching route. Examples # Specify interface GigabitEthernet 0/1 as the source interface of DNS requests.
ip host Use ip host to create a host name to IPv4 address mapping in the static resolution table. Use undo ip host to remove a mapping. Syntax ip host hostname ip-address undo ip host hostname [ ip-address ] Default No mappings are created. Views System view Default command level 2: System level Parameters hostname: Host name, consisting of 1 to 255 characters, including case-insensitive letters, numbers, hyphens (-), underscores (_), or dots (.). The host name must include at least one letter.
ipv6: Clears dynamic cache information about type AAAA queries. A type AAAA query resolves a domain name to the mapped IPv6 address. For more information, see Network Management Configuration Guide. Usage guidelines If you do not specify any parameter, this command clears dynamic DNS cache information about all query types. Examples # Clear dynamic DNS cache information about all query types.
Static routing configuration commands The term "router" in this document refers to both routers and LB module. delete static-routes all Use delete static-routes all to delete all static routes. Syntax delete static-routes all Views System view Default command level 2: System level Usage guidelines When you use this command, the system prompts you to confirm the operation before deleting all the static routes. To delete one static route, use the undo ip route-static command.
ip route-static vpn-instance s-vpn-instance-name&<1-6> dest-address { mask | mask-length } { next-hop-address [ public ] [ track track-entry-number ] | interface-type interface-number next-hop-address } [ preference preference-value ] [ tag tag-value ] [ permanent ] [ description description-text ] undo ip route-static vpn-instance s-vpn-instance-name&<1-6> dest-address { mask | mask-length } [ next-hop-address [ public ] | interface-type interface-number [ next-hop-address ] ] [ preference preference-value
• If the destination IP address and the mask are both 0.0.0.0 (or 0), the configured route is a default route. The default route is used for forwarding packets that match no specific entry in the routing table. • Implement different routing policies to tune route preferences. For example, to enable load sharing for multiple routes to the same destination, assign the same preference to the routes. To enable them to back up one another, assign different preferences to them.
Default The default preference of static routes is 60. Views System view Default command level 2: System level Parameters default-preference-value: Specifies a default preference for static routes, in the range of 1 to 255. Usage guidelines If no preference is specified for a static route, the default preference applies. When the default preference is re-configured, it applies to only newly added static routes. Examples # Set a default preference of 120 for static routes.
RIP configuration commands The term "router" in this document refers to both routers and LB module. 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 Default command level 2: System level Usage guidelines When the zero field check is enabled, the router discards RIPv1 messages in which zero fields contain non-zero values.
Default command level 2: System level Parameters value: Specifies a default metric for redistributed routes, in the range of 0 to 16. Usage guidelines When you use the import-route command to redistribute routes from another routing protocol without specifying a metric, the metric specified by the default cost command applies. Examples # Configure a default metric of 3 for redistributed routes.
[Sysname-rip-100] default-route only cost 2 Related commands rip default-route display rip Use display rip to display state and configuration information for a RIP process. Syntax display rip [ process-id | vpn-instance vpn-instance-name ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535.
Silent interfaces : None Default routes : Only Default route cost : 3 Verify-source : Enabled Networks : 192.168.1.0 Configured peers : None Triggered updates sent : 0 Number of routes changes : 0 Number of replies to queries : 0 Table 33 Command output Field Description Public VPN-instance name (or 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 route priority.
Field Description Verify-source Indicates whether the source IP address is checked on the received RIP routing updates. Networks Networks enabled with RIP. Configured peers Configured neighbors. Triggered updates sent Number of sent triggered updates. Number of routes changes Number of changed routes in the database. Number of replies to queries Number of RIP responses.
Field Description classful-summ Indicates that the route is a RIP summary route. Nexthop Address of the next hop. Rip-interface Routes learned from a RIP-enabled interface. imported Routes redistributed from other routing protocols. display rip interface Use display rip interface to display the RIP interface information for a RIP process.
Table 35 Command output Field Description Interface-name Name of an interface running RIP. Address/Mask IP address and mask of the interface. Version RIP version running on the interface. MetricIn Additional routing metric added to the incoming routes. MetricIn route policy Name of the routing policy used to add the additional routing metric for the incoming routes. If no routing policy is referenced, the field displays Not designated.
peer ip-address: Displays all routing information learned from a specified neighbor. statistics: Displays the route statistics, including total number of routes and number of routes of each neighbor. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
Table 37 Command output Field Description Peer IP address of a neighbor. Aging Total number of aging routes learned from the specified neighbor. Permanent Total number of permanent routes learned from the specified neighbor. Garbage Total number of routes in the Garbage-collection state learned from the specified neighbor. Total Total number of routes learned from all RIP neighbors. filter-policy export (RIP view) Use filter-policy export to configure RIP to filter outbound routes.
• To deny/permit a route with the specified destination, use the rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard command • To deny/permit a route with the specified destination and mask, use the rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard destination dest-addr dest-wildcard command. The source keyword specifies the destination address of a route and the destination keyword specifies the subnet mask of the route. The specified subnet mask must be contiguous.
Default command level 2: System level Parameters acl-number: Specifies an ACL by its number in the range of 2000 to 3999 to filter inbound routes. ip-prefix ip-prefix-name: Specifies an IP prefix list by its name, a string of 1 to 19 characters, to filter inbound routes. gateway ip-prefix-name: Specifies an IP prefix list by its name, a string of 1 to 19 characters, to filter routes from the gateway. interface-type interface-number: Specifies an interface by its type and number.
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 Default command level 2: System level Usage guidelines A router might receive many host routes from the same subnet. These routes are not helpful for routing and occupy many resources. To solve this problem, use the undo host-route command to disable RIP from receiving host routes.
Parameters protocol: Specifies a routing protocol from which to redistribute routes. It can be bgp, direct, 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 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 or ospf. allow-ibgp: Allows redistribution of IBGP routes.
undo maximum load-balancing Default The maximum number of ECMP routes is 8. Views RIP view Default command level 2: System level Parameters number: Specifies the maximum number of ECMP routes in the range of 1 to 8. Examples # Specify the maximum number of ECMP routes as 2. system-view [Sysname] rip [Sysname-rip-1] maximum load-balancing 2 network Use network to enable RIP on an interface attached to a specified network.
system-view [Sysname] rip 100 [Sysname-rip-100] network 129.102.0.0 output-delay Use output-delay to configure the rate at which an interface sends RIP packets. Use undo output-delay to restore the default. Syntax output-delay time count count undo output-delay Default An interface sends up to three RIP packets every 20 milliseconds. Views RIP view Default command level 2: System level Parameters time: Specifies the sending interval, in the range of 10 to 100 milliseconds.
Parameters ip-address: Specifies the IP address of a RIP neighbor, in dotted decimal notation. Usage guidelines Do not use the peer ip-address command when the neighbor is directly connected. Otherwise the neighbor might receive the same routing information in both unicast and multicast (or broadcast) mode. Examples # Specify RIP to unicast updates to peer 202.38.165.1. system-view [Sysname] rip 1 [Sysname-rip-1] peer 202.38.165.
reset rip process Use reset rip process to reset a RIP process. Syntax reset rip process-id process Views User view Default command level 1: Monitor level Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535. Usage guidelines After you execute the command, you are prompted to confirm the operation. Examples # Reset RIP process 100.
Default No RIP process runs. Views System view Default command level 2: System level Parameters process-id: Specifies a RIP process by its ID in the range of 1 to 65535. The default is 1. vpn-instance vpn-instance-name: Specifies a VPN by its name, a case-sensitive string of 1 to 31 characters. If no VPN is specified, the RIP process will run under the public network. Usage guidelines You must create a VPN instance before you apply a RIP process to it.
key-id: Specifies the MD5 key number, in the range of 1 to 255. rfc2453: Uses the message format defined in RFC 2453 (IETF standard). simple: Specifies the simple authentication mode. password: Sets the password in simple authentication mode. This argument is case sensitive. It must be a plaintext string of 1 to 16 characters, or a ciphertext string of 33 to 53 characters. Usage guidelines A newly configured key string or password overwrites the old one, if any.
Usage guidelines A RIP interface that is enabled to advertise a default does not receive any default routes from RIP neighbors. Examples # Configure GigabitEthernet 0/1 to advertise only a default route with a metric of 2. system-view [Sysname] interface gigabitethernet 0/1 [Sysname-GigabitEthernet0/1] rip default-route only cost 2 Related commands default-route rip input Use rip input to enable an interface to receive RIP messages.
Views Interface view Default command level 2: System level Parameters route-policy route-policy-name: Uses the specified routing policy used to add an additional metric for the routes matching it. The route-policy-name argument is a string of 1 to 63 case-sensitive characters. value: Add an additional metric to inbound routes, in the range of 0 to 16. Usage guidelines When a valid RIP route is received, the system adds a metric to it and then installs it into the routing table.
Views Interface view Parameters route-policy route-policy-name: Uses the specified routing policy to add an additional metric for the routes matching it. The route-policy-name argument is a case-sensitive string of 1 to 63 characters. value: Add an additional metric to outbound routes, in the range of 1 to 16. Usage guidelines With the command configured on an interface, the metric of RIP routes sent on the interface is increased.
Parameters process-id: RIP process ID, in the range of 1 to 65535. Examples # Enable RIP process 100 to receive SNMP requests. system-view [Sysname] rip mib-binding 100 # Restore the default. [Sysname] undo rip mib-binding rip output Use rip output to enable the interface to send RIP messages. Use undo rip output to disable the interface from sending RIP messages. Syntax rip output undo rip output Default Sending RIP messages is enabled on an interface.
Default command level 2: System level Examples # Enable the poison reverse function for RIP routing updates on GigabitEthernet 0/1. system-view [Sysname] interface gigabitethernet 0/1 [Sysname-GigabitEthernet0/1] rip poison-reverse rip split-horizon Use rip split-horizon to enable the split horizon function. Use undo rip split-horizon to disable the split horizon function. Syntax rip split-horizon undo rip split-horizon Default The split horizon function is enabled.
Default command level 2: System level Parameters ip-address: Specifies the destination IP address of summary route. mask: Specifies the subnet mask of summary route, in dotted decimal notation. mask-length: Specifies the subnet mask length of summary route, in the range of 0 to 32. Usage guidelines The summary address takes effect only when the automatic summarization is disabled. Examples # Advertise a local summary address on GigabitEthernet 0/1.
• Sends RIPv1 broadcast messages. • Receives RIPv1 broadcast and unicast messages. When RIPv2 runs on the interface in broadcast mode, the interface can perform the following operations: • Sends RIPv2 broadcast messages. • Receives RIPv1 broadcast and unicast messages, and RIPv2 broadcast, multicast, and unicast messages. When RIPv2 runs on the interface in multicast mode, the interface can perform the following operations: • Sends RIPv2 multicast messages.
summary Use summary to enable automatic RIPv2 summarization. Natural masks are used to advertise summary routes so as to reduce the size of routing tables. Use undo summary to disable automatic RIPv2 summarization to advertise all subnet routes. Syntax summary undo summary Default Automatic RIPv2 summarization is enabled.
Parameters garbage-collect-value: Specifies the garbage-collect timer time in seconds, in the range of 1 to 3600. suppress-value: Specifies the suppress timer time in seconds, in the range of 0 to 3600. timeout-value: Specifies the timeout timer time in seconds, in the range of 1 to 3600. update-value: Specifies the update timer time in seconds, in the range of 1 to 3600. Usage guidelines RIP is controlled by the following timers: • Update timer—Specifies the interval between routing updates.
Examples # Disable the source IP address check on inbound RIP routing updates. system-view [Sysname-rip] rip 100 [Sysname-rip-100] undo validate-source-address version Use version to specify a global RIP version. Use undo version to remove the configuration. Syntax version { 1 | 2 } undo version Default If an interface has a RIP version specified, the RIP version takes effect.
OSPF configuration commands The term "router" in this document refers to both routers and LB module. abr-summary (OSPF area view) Use abr-summary to configure a summary route on an area border router (ABR). Use undo abr-summary to remove a summary route. Syntax abr-summary ip-address { mask | mask-length } [ advertise | not-advertise ] [ cost cost ] undo abr-summary ip-address { mask | mask-length } Default No route summarization is configured on an ABR.
area (OSPF view) Use area to create an area and enter area view. Use undo area to remove an area. Syntax area area-id undo area area-id Default No OSPF area is created. Views OSPF view Default command level 2: System level 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.
mask-length: Specifies the mask length in the range of 0 to 32 bits. cost cost: Specifies the cost of the summary route, in the range of 1 to 16777214. For Type-1 external routes, the cost defaults to the largest cost among routes that are summarized. For Type-2 external routes, the cost defaults to the largest cost among routes that are summarized plus 1. not-advertise: Disables advertising the summary route. If the keyword is not specified, the command advertises the route.
Parameters md5: Specifies the MD5 authentication mode. simple: Specifies the simple authentication mode. Usage guidelines Routers that reside in the same area must have the same authentication mode: non-authentication, simple, or MD5. Examples # Configure OSPF area 0 to use the MD5 authentication mode. system-view [Sysname] ospf 100 [Sysname-ospf-100] area 0 [Sysname-ospf-100-area-0.0.0.
default Use default to configure default parameters for redistributed routes. Use undo default to restore default values. Syntax default { cost cost | limit limit | tag tag | type type } * undo default { cost | limit | tag | type } * Default The cost, route type, tag, and the upper limit are 1, 2, 1, and 1000. Views OSPF view Default command level 2: System level Parameters cost: Specifies the default cost for redistributed routes, in the range of 0 to 16777214.
Default command level 2: System level Parameters cost: Specifies a cost for the default route advertised to the Stub or NSSA area, in the range of 0 to 16777214. Usage guidelines This command takes effect only on the ABR of a stub area or the ABR/ASBR of an NSSA area. Examples # Configure Area 1 as a stub area, and specify the cost of the default route advertised to the stub area as 20. system-view [Sysname] ospf 100 [Sysname-ospf-100] area 1 [Sysname-ospf-100-area-0.0.0.
a Type-5 LSA into the OSPF routing domain, the router calculates default routes from other routers regardless of whether this keyword is specified. cost cost: Specifies a cost for the default route, in the range of 0 to 16777214. If no cost is specified, the default cost specified by the default cost command applies. route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.
Parameters description: Configures a description for the OSPF process in OSPF view, or for the OSPF area in OSPF area view. The description argument is a string of up to 80 characters. Usage guidelines The description specified by this command is used to identify an OSPF process or area. Examples # Describe OSPF process 100 as abc. system-view [Sysname] ospf 100 [Sysname-ospf-100] description abc # Describe OSPF area 0 as bone area.
Routing Table to ABR and ASBR Type Destination Area Cost Nexthop RtType Inter 3.3.3.3 0.0.0.0 3124 10.1.1.2 ASBR Intra 2.2.2.2 0.0.0.0 1562 10.1.1.2 ABR Table 38 Command output Field Description Type of the route to the ABR or ASBR: Type • Intra—Intra-area route. • Inter—Inter-area route. Destination Router ID of an ABR/ASBR. Area ID of the area of the next hop. Cost Cost from the router to the ABR/ASBR. Nexthop Next hop address. RtType Router type: ABR, or ASBR.
Usage guidelines If no OSPF process is specified, this command displays the summarized redistributed routes for all OSPF processes. If no IP address is specified, the command displays all summarized redistributed routes. Examples # Display information about all summarized redistributed routes. display ospf asbr-summary OSPF Process 1 with Router ID 2.2.2.2 Summary Addresses Total Summary Address Count: 1 Summary Address Net : 30.1.0.0 Mask : 255.255.0.
Related commands asbr-summary display ospf brief Use display ospf brief to display OSPF brief information. Syntax display ospf [ process-id ] brief [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide.
7/5 translator state: Disabled 7/5 translate stability timer interval: 0 ExChange/Loading Neighbors: 0 Area: 0.0.0.1 (MPLS TE not enabled) Authtype: None Area flag: NSSA SPF Scheduled Count: 5 ExChange/Loading Neighbors: 0 Interface: 192.168.1.2 (GigabitEthernet0/1) Cost: 1 State: DR Type: Broadcast MTU: 1500 Priority: 1 Designated Router: 192.168.1.2 Backup Designated Router: 192.168.1.
Field Description Nssa Area Count NSSA area number of the current process. State of the translator that translates Type-7 LSAs to Type-5 LSAs: 7/5 translator state • Enabled—The translator is specified through commands. • Elected—The translator is designated through election. • Disabled—The device is not a translator that translates Type-7 LSAs to Type-5 LSAs. 7/5 translate stability timer interval Stability interval for Type-7 LSA-to-Type-5 LSA translation.
include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines If no process is specified, this command displays statistics for all OSPF processes. Examples # Display OSPF statistics. display ospf cumulative OSPF Process 1 with Router ID 2.2.2.
Field Description Link-State Ack Link-State Acknowledge packet. LSAs originated by this router LSAs originated by this router. Router Number of Type-1 LSAs originated. Network Number of Type-2 LSAs originated. Sum-Net Number of Type-3 LSAs originated. Sum-Asbr Number of Type-4 LSAs originated. External Number of Type-5 LSAs originated. NSSA Number of Type-7 LSAs originated. Opq-Link Number of Type-9 LSAs originated. Opq-Area Number of Type-10 LSAs originated.
Usage guidelines If no process is specified, the command displays OSPF error information for all OSPF processes. Examples # Display OSPF error information. display ospf error OSPF Process 1 with Router ID 192.168.80.
Field Description HELLO: Hello timer mismatch Hello packets with mismatched hello timer. HELLO: Dead timer mismatch Hello packets with mismatched dead timer. HELLO: Extern option mismatch Hello packets with mismatched option field. HELLO: Neighbor unknown Hello packets received from unknown neighbors. DD: MTU option mismatch DD packets with mismatched MTU. DD: Unknown LSA type DD packets with unknown LSA type. DD: Extern option mismatch DD packets with mismatched option field.
Usage guidelines If no OSPF process is specified, the command displays the OSPF interface information for all OSPF processes. Examples # Display information about all OSPF interfaces. display ospf interface OSPF Process 1 with Router ID 192.168.1.1 Interfaces Area: 0.0.0.0 IP Address Type State Cost Pri DR BDR 192.168.1.1 PTP P-2-P 1562 1 0.0.0.0 0.0.0.0 IP Address Type State Cost Pri DR BDR 172.16.0.1 Broadcast DR 1 1 172.16.0.1 0.0.0.0 Area: 0.0.0.
Field Description Interface state defined by interface state machine: • Down—No protocol traffic is sent or received on the interface. • Loopback—The interface is in loopback state. A loopback interface can only collect interface information. • Waiting—The interface starts sending and receiving Hello packets and the State router is trying to determine the identity of the (Backup) designated router for the network.
Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. brief: Displays brief LSDB information. asbr: Displays Type-4 LSA (ASBR Summary LSA) information in the LSDB. ase: Displays Type-5 LSA (AS External LSA) information in the LSDB. network: Displays Type-2 LSA (Network LSA) information in the LSDB. nssa: Displays Type-7 LSA (NSSA External LSA) information in the LSDB. opaque-area: Displays Type-10 LSA (Opaque-area LSA) information in the LSDB.
Sum-Net 192.168.0.0 192.168.0.1 321 28 80000002 Table 44 Command output Field Description Area LSDB information of the area. Type LSA type. LinkState ID Link state ID. AdvRouter Advertising router. Age Age of the LSA. Len Length of the LSA. Sequence Sequence number of the LSA. Metric Cost of the LSA. # 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.
Table 45 Command output Field Description Type LSA type. LS ID DR IP address. Adv Rtr Router that advertised the LSA. LS Age LSA age time. Len LSA length. LSA options: 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.
Examples # Display OSPF next hop information. display ospf nexthop OSPF Process 1 with Router ID 192.168.0.1 Routing Nexthop Information Next Hops: Address Refcount IntfAddr Intf Name ---------------------------------------------------------------192.168.0.1 1 192.168.0.1 GigabitEthernet0/1 192.168.0.2 1 192.168.0.1 GigabitEthernet0/1 192.168.1.1 1 192.168.1.1 GigabitEthernet0/2 Table 46 Command output Field Description Next Hops Information about next hops.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines If no OSPF process is specified, this command displays OSPF neighbor information for all OSPF processes. If an interface is specified, this command displays the neighbor on the interface. If a neighbor ID is specified, this command displays detailed information about the neighbor.
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).
Table 48 Command output Field Description Area Neighbor area. Router ID Neighbor router ID. Address Neighbor interface address. Pri Neighboring router priority. Dead-Time Dead interval remained. Interface Interface connected to the neighbor. State Neighbor state: Down, Init, Attempt, 2-Way, Exstart, Exchange, Loading, Full. display ospf peer statistics Use display ospf peer statistics to display OSPF neighbor statistics.
Table 49 Command output Field Description Area ID The state statistics of all the routers in the area to which the router belongs is displayed. Down Number of neighboring routers in Down state in the same area. Attempt Number of neighboring routers in Attempt state in the same area. Init Number of neighboring routers in Init state in the same area. 2-Way Number of neighboring routers in 2-Way state in the same area. ExStart Number of neighboring routers in ExStart state in the same area.
Examples # Display OSPF request queue information. display ospf request-queue The Router's Neighbor is Router ID 2.2.2.2 Interface 10.1.1.1 Address 10.1.1.2 Area 0.0.0.0 Request list: Type LinkState ID AdvRouter Sequence Age Router 2.2.2.2 1.1.1.1 80000004 1 Network 192.168.0.1 1.1.1.1 80000003 1 Sum-Net 192.168.1.0 1.1.1.1 80000002 2 Table 50 Command output Field Description The Router's Neighbor is Router ID Neighbor router ID. Address Neighbor interface IP address.
begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines If no OSPF process is specified, this command displays the retransmission queue information for all OSPF processes.
Default command level 1: Monitor level Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. interface interface-type interface-number: Displays routes passing the specified output interface. nexthop nexthop-address: Displays routes passing the specified next hop. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide.
Field Description ASE Total ASE routes. NSSA Total NSSA routes. display ospf vlink Use display ospf vlink to display OSPF virtual link information. Syntax display ospf [ process-id ] vlink [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. |: Filters command output by specifying a regular expression.
Field Description Interface IP address and name of the local interface on the virtual link. Cost Interface route cost. State Interface state. Type Type: virtual link. Transit Area Transit area ID. Timers Timers: Hello, dead, retransmit, and interface transmission delay. display router id Use display router id to display the global router ID.
Views OSPF view Default command level 2: System level Parameters config: Enables configuration logging. error: Enables error logging. state: Enables state logging. Usage guidelines If no keyword is specified, the command enables all logging. Examples # Enable OSPF logging. system-view [Sysname] ospf 100 [Sysname-ospf-100] enable log filter NOTE: This command is only available on an ABR. Use filter to configure OSPF to filter inbound/outbound Type-3 LSAs on an ABR.
Examples # Use IP prefix list my-prefix-list to filter inbound Type-3 LSAs, and use ACL 2000 to filter outbound Type-3 LSAs in OSPF Area 1. system-view [Sysname] ospf 100 [Sysname-ospf-100] area 1 [Sysname-ospf-100-area-0.0.0.1] filter ip-prefix my-prefix-list import [Sysname-ospf-100-area-0.0.0.1] filter 2000 export filter-policy export (OSPF view) Use filter-policy export to configure OSPF to filter redistributed routes. Use undo filter-policy export to disable the filtering.
Examples # Use ACL 2000 to filter redistributed routes. system-view [Sysname] acl number 2000 [Sysname-acl-basic-2000] rule deny source 192.168.10.0 0.0.0.255 [Sysname-acl-basic-2000] quit [Sysname] ospf 100 [Sysname-ospf-100] filter-policy 2000 export # Configure ACL 3000 to permit only route 113.0.0.0/16 to pass. Use ACL 3000 to filter redistributed routes. system-view [Sysname] acl number 3000 [Sysname-acl-adv-3000] rule 10 permit ip source 113.0.0.0 0 destination 255.255.0.
route-policy route-policy-name: Specifies a routing policy, a case-sensitive string of 1 to 63 case-sensitive characters, to filter inbound routes. For more information about routing policy, see Network Management Configuration Guide.
Parameters ip-address: Specifies the IP address of a host cost: Specifies a cost for the route, in the range of 1 to 65535. Examples # Advertise host route 1.1.1.1 with a cost of 100. system-view [Sysname] ospf 100 [Sysname-ospf-100] area 0 [Sysname-ospf-100-area-0.0.0.0] host-advertise 1.1.1.1 100 import-route (OSPF view) Use import-route to redistribute AS-external routes from another routing protocol. Use undo import-route to disable route redistribution from another routing protocol.
• Type-1 external route • Type-2 external route An intra-area route is a route in an OSPF area. An inter-area route is between any two OSPF areas. Both of them are internal routes. An external route is a route to a destination outside the OSPF AS. A Type-1 external route has high reliability. Its cost is comparable with the cost of OSPF internal routes.
Default command level 2: System level Usage guidelines Upon topology changes, ISPF recomputes only the affected part of the SPT, instead of the entire SPT. Examples # Enable OSPF ISPF. 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. Syntax log-peer-change undo log-peer-change Default The logging is enabled.
Views OSPF view Default command level 2: System level Parameters interval: Specifies the LSA arrival interval in milliseconds, in the range of 0 to 60000. Usage guidelines If an LSA that has the same LSA type, LS ID, originating router ID with the previous LSA is received within the interval, the LSA is discarded. This feature helps protect resources from being overconsumed due to frequent network changes.
incremental-interval: Specifies the LSA generation incremental interval in the range of 10 to 60000 milliseconds. The default is 5000 milliseconds. Usage guidelines When network changes are not frequent, LSAs are generated at the minimum-interval. If network changes become frequent, the LSA generation interval is incremented by incremental-interval × 2n-2 (n is the number of generation times) each time a LSA generation occurs until the maximum-interval is reached.
Syntax maximum load-balancing maximum undo maximum load-balancing Default The maximum number of ECMP routes is 8. Views OSPF view Default command level 2: System level Parameters maximum: Specifies the maximum number of ECMP routes, in the range of 1 to 8. No ECMP load balancing is available when the number is set to 1. Examples # Specify the maximum number of ECMP routes as 2.
Examples # Specify the interface whose primary IP address falls into 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.255 Related commands ospf nssa Use nssa to configure the current area as an NSSA area. Use undo nssa to restore the default.
Examples # Configure Area 1 as an NSSA area. system-view [Sysname] ospf 100 [Sysname-ospf-100] area 1 [Sysname-ospf-100-area-0.0.0.1] nssa Related commands default-cost opaque-capability enable Use opaque-capability enable to enable opaque LSA advertisement and reception. Use undo opaque-capability to restore the default. Syntax opaque-capability enable undo opaque-capability Default The feature is disabled.
Views System view Default command level 2: System level Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. router-id router-id: Specifies an OSPF router ID in dotted decimal format. vpn-instance vpn-instance-name: Specifies a VPN by its name, a case-sensitive string of 1 to 31 characters. If no VPN is specified, the OSPF process runs on the public network. Usage guidelines You can enable multiple OSPF processes on a router and specify different Router IDs for them.
simple: Enables simple authentication. key-id: Specifies a key ID in the range of 1 to 255. cipher: Specifies a ciphertext password. plain: Specifies a plaintext password. password: Specifies a password. In simple authentication mode, a plaintext password is a case-sensitive string of 1 to 8 characters, and a ciphertext password is a case-sensitive string of 1 to 41 characters.
Use undo ospf cost to restore the default. Syntax ospf cost value undo ospf cost Default The default cost depends on the interface type: 1 for a VLAN interface; 0 for a loopback interface; computed according to the bandwidth for other interfaces with the formula: Interface OSPF cost = Bandwidth reference value (100 Mbps) ÷ Interface bandwidth (Mbps).
Usage guidelines The greater the value, the higher the priority for DR/BDR election. If a device has a priority of 0, it will not be elected as a DR or BDR. Examples # Set the router priority on GigabitEthernet 0/1 to 8. system-view [Sysname] interface gigabitethernet 0/1 [Sysname-GigabitEthernet0/1] ospf dr-priority 8 ospf mib-binding Use ospf mib-binding to bind an OSPF process to MIB operation for responding to SNMP requests. Use undo ospf mib-binding to restore the default.
Default The MTU in DD packets is 0. Views Interface view Default command level 2: System level Usage guidelines After a virtual link is established via a Virtual-Template, two devices on the link from different vendors may have different MTU values. To make them consistent, set the attached interfaces' MTU to the default value 0. After you configure this command, the interface checks whether the MTU in a received DD packet is greater than its own MTU. If yes, the interface discards the packet.
Usage guidelines If a router on a broadcast network does not support multicast, configure the network type for the connected interfaces as NBMA. If any two routers on an NBMA network are directly connected via a virtual link—the network is fully meshed, you can configure the network type for the connected interfaces as NBMA. If two routers are not directly connected, you must configure the P2MP network type so that the two routers can exchange routing information via another router.
Use undo ospf timer dead to restore the default. Syntax ospf timer dead seconds undo ospf timer dead Default The dead interval is 40 seconds for broadcast and P2P interfaces and is 120 seconds for P2MP and NBMA interfaces. Views Interface view Default command level 2: System level Parameters seconds: Specifies the dead interval in seconds, in the range of 1 to 2147483647.
Parameters seconds: Specifies the hello interval in seconds, in the range of 1 to 65535. Usage guidelines The shorter the hello interval is, the faster the topology converges and the more resources are consumed. Make sure the hello interval on two neighboring interfaces is the same. Examples # Configure the hello interval on GigabitEthernet 0/1 as 20 seconds.
ospf timer retransmit Use ospf timer retransmit to set the LSA retransmission interval on an interface. Use undo ospf timer retransmit to restore the default. Syntax ospf timer retransmit interval undo ospf timer retransmit Default The LSA retransmission interval is 5 seconds. Views Interface view Default command level 2: System level Parameters interval: Specifies the LSA retransmission interval in seconds, in the range of 1 to 3600.
Parameters seconds: Specifies the LSA transmission delay in seconds, in the range of 1 to 3600. Usage guidelines Each LSA in the LSDB has an age that is incremented by 1 every second, but the age does not change during transmission. It is necessary to add a transmission delay into its age time on low speed networks. Examples # Set the LSA transmission delay to 3 seconds on GigabitEthernet 0/1.
Related commands ospf dr-priority preference Use preference to set a preference for OSPF routes. Use undo preference to restore the default. Syntax preference [ ase ] [ route-policy route-policy-name ] value undo preference [ ase ] Default The preference is 10 for OSPF internal routes and 150 for OSPF external routes (or ASE routes). Views OSPF view Default command level 2: System level Parameters ase: Sets a preference for OSPF external routes.
Default command level 1: Monitor level Parameters process-id: Clears the statistics for an OSPF process specified by its ID in the range of 1 to 65535. neighbor: Clears neighbor statistics. interface-type interface-number: Clears the statistics for the neighbor connected to the specified interface. router-id: Clears the statistics for the specified neighbor. Examples # Clear OSPF statistics.
Views User view Default command level 2: System level Parameters process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. Usage guidelines If no process ID is specified, the command restarts route redistribution for all OSPF processes. Examples # Restart OSPF route redistribution. reset ospf redistribution rfc1583 compatible Use rfc1583 compatible to enable compatibility with RFC 1583. Use undo rfc1583 compatible to disable the function.
Syntax router id router-id undo router id Default No global router ID is configured. Views System view Default command level 2: System level Parameters router-id: Specifies the router ID, in the form of a dotted decimal IPv4 address. 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.
Views OSPF view Default command level 2: System level Parameters interface-type interface-number: Specifies an interface by its type and number. all: Specifies all interfaces. Usage guidelines A disabled interface is a passive interface that cannot send any hello packets. To disable a network from receiving OSPF routes, issue the command on the interface connected to the network. Examples # Disable interface GigabitEthernet 0/1 from sending OSPF packets.
iftxretransmit: Specifies information about packet receiving and forwarding. lsdbapproachoverflow: Specifies information about cases approaching LSDB overflow. lsdboverflow: Specifies LSDB overflow information. maxagelsa: Specifies LSA max age information. nbrstatechange: Specifies information about neighbor state changes. originatelsa: Specifies information about LSAs originated locally. vifauthfail: Specifies information about virtual interface authentication failures.
minimum-interval: Specifies the minimum OSPF route calculation interval in milliseconds, in the range of 10 to 60000, which defaults to 0. incremental-interval: Specifies the incremental value in milliseconds, in the range of 10 to 60000. The default is 5000. Usage guidelines Based on the LSDB, an OSPF router uses SPF to calculate a shortest path tree with itself being the root. OSPF uses the shortest path tree to determine the next hop to a destination.
To configure an area as a stub area, issue the stub command on all routers attached to the area. Examples # Configure Area 1 as a stub area. system-view [Sysname] ospf 100 [Sysname-ospf-100] area 1 [Sysname-ospf-100-area-0.0.0.1] stub Related commands default-cost stub-router Use stub-router to configure a router as a stub router. Use undo stub-router to restore the default. Syntax stub-router undo stub-router Default No router is configured as a stub router.
undo transmit-pacing Default An OSPF interface sends up to three LSU packets every 20 milliseconds. Views OSPF view Default command level 2: System level Parameters interval interval: Specifies an interval at which an interface sends LSU packets, in the range of 10 to 1000 milliseconds. If the router has multiple OSPF interfaces, increase this interval to reduce the total number of LSU packets sent by the router every second.
trans-delay seconds: Sets the transmission delay interval in seconds, in the range of 1 to 3600. The default is 1. dead seconds: Sets the dead interval in seconds, in the range of 1 to 32768. The default is 40. It must be identical to that on the virtual link neighbor. The dead interval is at least four times the hello interval. md5: Enables MD5 authentication. hmac-md5: Enables HMAC-MD5 authentication. simple: Enables simple authentication.
BGP configuration commands For more information about routing policy configuration commands in this document, see "Routing policy configuration commands." The term "router" in this document refers to both routers and LB module. aggregate Use aggregate to create a summary route in the BGP routing table. Use undo aggregate to remove a summary route.
Keywords Function detail-suppressed This keyword does not suppress the summary route, but it suppresses the advertisement of all the more specific routes. To summarize only some specific routes, use the peer filter-policy command. suppress-policy Used to create a summary route and suppress the advertisement of some summarized routes. If you want to suppress some routes selectively and leave other routes still advertised, use the if-match clause of the route-policy command.
Usage guidelines Unlike IGP, BGP has no explicit metric for making load balancing decision. Instead, it implements load balancing by using route selection rules. If you do not provide the ibgp or the ebgp keyword, this command configures load balancing for all BGP routes. After you execute the balance ibgp number or the balance ebgp number command, the balance number command cannot be executed.
[Sysname-bgp] bestroute as-path-neglect bestroute compare-med (BGP view) Use bestroute compare-med to enable the comparison of MEDs for routes on a per-AS basis. Use undo bestroute compare-med to disable this comparison. Syntax bestroute compare-med undo bestroute compare-med Default This comparison is not enabled. Views BGP view Default command level 2: System level Examples # In BGP view, enable the comparison of MEDs for routes on a per-AS basis when selecting the best route.
Examples # In BGP view, enable the comparison of the MED for paths from peers within the confederation. system-view [Sysname] bgp 100 [Sysname-bgp] bestroute med-confederation bgp Use bgp to enable BGP and enter the BGP view. Use undo bgp to disable BGP. Syntax bgp as-number undo bgp [ as-number ] Default BGP is not enabled. Views System view Default command level 2: System level Parameters as-number: Specifies the local AS number from 1 to 4294967295.
Default command level 2: System level Usage guidelines If several paths to one destination are available, the path with the smallest MED is selected. Do not use this command unless associated ASs adopt the same IGP protocol and routing selection method. Examples # In BGP view, enable the comparison of the MED for paths from peers in different ASs. system-view [Sysname] bgp 100 [Sysname-bgp] compare-different-as-med confederation id Use confederation id to configure a confederation ID.
[Sysname-bgp] group Confed38 external [Sysname-bgp] peer Confed38 as-number 38 [Sysname-bgp] peer 10.1.1.1 group Confed38 [Sysname-bgp] group Remote98 external [Sysname-bgp] peer Remote98 as-number 98 [Sysname-bgp] peer 200.1.1.1 group Remote98 Related commands • confederation nonstandard • confederation peer-as confederation nonstandard Use confederation nonstandard to make the router compatible with routers not compliant with RFC 3065 in the confederation.
Use undo confederation peer-as to remove specified confederation peer sub-ASs. Syntax confederation peer-as as-number-list undo confederation peer-as [ as-number-list ] Default No confederation peer sub-ASs are configured. Views BGP view Default command level 2: System level Parameters as-number-list: Specifies the sub-AS number list. Up to 32 sub-ASs can be configured in one command line.
Views BGP view Default level 2: System level Parameters half-life-reachable: Specifies a half-life for active routes from 1 to 45 minutes. By default, the value is 15 minutes. half-life-unreachable: Specifies a half-life for suppressed routes from 1 to 45 minutes. By default, the value is 15 minutes. reuse: Specifies a reuse threshold value for suppressed routes from 1 to 20000. A suppressed route whose penalty value decreases under the value is reused. By default, the reuse value is 750.
Default The use of IPv4 unicast address family is enabled. Views BGP view Default command level 2: System level Usage guidelines The default ipv4-unicast or undo default ipv4-unicast command applies to only BGP peers that are established after it is executed. The default ipv4-unicast or undo default ipv4-unicast command applies to only BGP peers that are established using the peer as-number command.
system-view [Sysname] bgp 100 [Sysname-bgp] default local-preference 180 default med (BGP view) Use default med to specify a default MED value. Use undo default med to restore the default. Syntax default med med-value undo default med Default The default med-value is 0. Views BGP view Default command level 2: System level Parameters med-value: Specifies the default MED value, in the range of 0 to 4294967295. Usage guidelines Multi-exit discriminator (MED) is an external metric for routes.
Views BGP view Default command level 2: System level Usage guidelines You must use the default-route imported command together with the import-route command to redistribute default routes from other protocols. Examples # In BGP view, allow default route redistribution from OSPF into BGP. system-view [Sysname] bgp 100 [Sysname-bgp] default-route imported [Sysname-bgp] import-route ospf 1 Related commands import-route display bgp group Use display bgp group to display peer group information.
Threshold: 75% Configured hold timer value: 180 Keepalive timer value: 60 Minimum time between advertisement runs is 30 seconds Peer Preferred Value: 0 No routing policy is configured Members: Peer AS 2.2.2.1 200 MsgRcvd MsgSent 0 OutQ PrefRcv Up/Down 0 0 State 0 00:00:35 Active Table 55 Command output Field Description BGP peer-group Name of the BGP peer group. Remote AS AS number of peer group. Type of the BGP peer group: type • IBGP. • EBGP.
display bgp network Use display bgp network to display routing information advertised with the network command. Syntax display bgp network [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide.
Syntax display bgp paths [ as-regular-expression | | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters as-regular-expression: Specifies an AS path regular expression, a string of 1 to 80 characters. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide.
Views Any view Default command level 1: Monitor level Parameters ip-address: Specifies an IP address of an peer to be displayed, in dotted decimal notation. group-name: Specifies the name of a peer group to be displayed, a string of 1 to 47 characters. log-info: Displays the log information of the specified peer. verbose: Displays the detailed information of the peer/peer group. |: Filters command output by specifying a regular expression.
Negotiated: send Peer Preferred Value: 0 Routing policy configured: No routing policy is configured Table 58 Command output Field Description Peer IP address of the peer. Local Local router ID. Type Peer type. BGP version BGP version. remote router ID Router ID of the peer. BGP current state Current state of the peer. BGP current event Current event of the peer. BGP last state Previous state of the peer. Port TCP port numbers of the local router and its peer.
Field Description Negotiated: send Negotiation result: The local BGP router can send Router-refresh messages carrying the ORF information, and the peer can receive Router-refresh messages carrying the ORF information. (This field is not displayed if neither the send nor the receive capability is supported.) Peer Preferred Value Preferred value specified for the routes from the peer. Routing policy configured Local routing policy. # Display the log information of the peer 10.110.25.20.
Syntax display bgp peer ip-address received ip-prefix [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters ip-address: Specifies a BGP peer by its IP address. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
Views Any view Default command level 1: Monitor level Parameters ip-address: Specifies a destination IP address. mask: Specifies a network mask, in dotted decimal notation. mask-length: Specifies a mask length, in the range of 0 to 32. longer-prefixes: Displays the routing entries selected through the following steps: 1. AND the specified destination IP address with the specified mask. 2. AND the destination IP address of each route with the specified mask. 3.
Field Description Status codes: Status codes • • • • • • • • * – valid—Valid route. ^ - VPNv4 best—Best VPNv4 route. > – best—Best route. d – damped—Dampened route. h – history—History route. i – internal—Internal route. s – suppressed—Suppressed route. S – Stale—Stale route. Origin attributes: Origin • i – IGP—Originated in the AS. • e – EGP—Learned through EGP. • ? – incomplete—Learned by some other means. Network Destination network address. Next Hop Next hop IP address.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Total Number of Routes: 1 BGP Local router ID is 20.20.20.1 Status codes: * - valid, ^ - VPNv4 best, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? – incomplete *> Network NextHop MED 40.40.40.0/24 30.30.30.1 0 LocPrf PrefVal Path/Ogn 0 300i For description of the fields, see Table 61.
display bgp routing-table community 11:22 BGP Local router ID is 10.10.10.1 Status codes: * - valid, ^ - VPNv4 best, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? – incomplete Network NextHop MED LocPrf PrefVal Path/Ogn *> 10.10.10.0/24 0.0.0.0 0 0 i *> 40.40.40.0/24 20.20.20.1 0 0 200 300i For description of the fields, see Table 61.
Origin codes: i - IGP, e - EGP, ? – incomplete Network NextHop Metric LocPrf PrefVal Path *> 3.3.3.0/30 1.2.3.4 0 ? *> 4.4.0.0/20 1.2.3.4 0 ? *> 4.5.6.0/26 1.2.3.4 0 ? For description of the fields, see Table 61. display bgp routing-table dampened Use display bgp routing-table dampened to display dampened BGP routes.
display bgp routing-table dampening parameter Use display bgp routing-table dampening parameter to display BGP route dampening parameters. Syntax display bgp routing-table dampening parameter [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide.
display bgp routing-table different-origin-as Use display bgp routing-table different-origin-as to display BGP routes originating from different autonomous systems. Syntax display bgp routing-table different-origin-as [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide.
Default command level 1: Monitor level Parameters as-regular-expression: Displays route flap information that matches the AS path regular expression, which is a string of 1 to 80 characters. as-path-acl-number: Displays route flap information matching the AS path ACL. The number is in the range of 1 to 256. ip-address: Specifies a destination IP address. mask: Specifies a mask, in dotted decimal notation. mask-length: Mask length, in the range of 0 to 32. longer-match: Matches the longest prefix.
display bgp routing-table label Use display bgp routing-table label to display labeled BGP routing information. Syntax display bgp routing-table label [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide.
Views Any view Default command level 1: Monitor level Parameters ip-address: Specifies an IP address of a peer. advertised-routes: Displays routing information advertised to the specified peer. received-routes: Displays routing information received from the specified peer. network-address: 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.
Syntax display bgp routing-table regular-expression as-regular-expression Views Any view Default command level 1: Monitor level Parameters as-regular-expression: AS path regular expression, a string of 1 to 80 characters. Examples # Display BGP routing information with AS number ended with 300. display bgp routing-table regular-expression 300$ BGP Local router ID is 20.20.20.
display bgp routing-table statistic Total Number of Routes: 4 display router id Use display router id to display the global router ID. Syntax display router id [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide.
Usage guidelines When the link to a directly connected EBGP peer is down, the router, with quick EBGP session reestablishment enabled, tears down the session to the peer, and then immediately reestablishes a session. If the function is not enabled, the router does not tear down the session until the holdtime times out. A route flap does not affect the EBGP session state when the quick EBGP session reestablishment is disabled. Examples # In BGP view, enable quick reestablishment of direct EBGP session.
• To deny/permit a route with the specified destination and mask, use rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard destination dest-addr dest-wildcard. The source keyword specifies the destination address of a route, and the destination keyword specifies the subnet mask of the route. (The subnet mask must be valid; otherwise, the configuration is ineffective.) Examples # In BGP view, reference ACL 2000 to filter all outgoing routes.
• To deny/permit a route with the specified destination and mask, use rule [ rule-id ] { deny | permit } ip source sour-addr sour-wildcard destination dest-addr dest-wildcard. The source keyword specifies the destination address of a route, and the destination keyword specifies the subnet mask of the route. (The subnet mask must be valid; otherwise, the configuration is ineffective.) Examples # In BGP view, reference ACL 2000 to filter incoming routing information.
[Sysname-bgp] peer test as-number 200 [Sysname-bgp] peer 10.1.1.1 group test [Sysname-bgp] peer 10.1.2.1 group test ignore-first-as Use ignore-first-as to configure BGP to ignore the first AS number of EBGP route updates. Use undo ignore-first-as to configure BGP to check the first AS number of EBGP route updates. Syntax ignore-first-as undo ignore-first-as Default BGP checks the first AS number of a received EBGP route update.
all-processes: Redistributes routes from all the processes of the specified protocol. This keyword takes effect only when the protocol is rip or ospf. allow-direct: Redistributes direct routes from the specified protocol. This keyword is available only when the specified protocol is OSPF. Without this keyword, BGP does not redistribute direct routes from OSPF.
[Sysname-bgp] log-peer-change network (BGP view) Use network to inject a network to the local BGP routing table. Use undo network to remove the configuration. Syntax network ip-address [ mask | mask-length ] [ route-policy route-policy-name ] undo network ip-address [ mask | mask-length ] Default No network route is injected. Views BGP view Default command level 2: System level Parameters ip-address: Specifies a destination IP address.
Views BGP view Default command level 2: System level Parameters ip-address: Specifies a destination IP address. mask: Specifies a mask of the network address, in dotted decimal notation. mask-length: Specifies a mask length, in the range of 0 to 32. Usage guidelines The preference of an EBGP route is lower than a local route. The network short-cut command allows you configure an EBGP route as a shortcut route that has the same preference as a local route and is more likely to become the optimal route.
[Sysname-bgp] peer test advertise-community Related commands • apply community • if-match community • ip community-list peer advertise-ext-community (BGP view) Use peer advertise-ext-community to advertise the extended community attribute to a peer/peer group. Use undo peer advertise-ext-community to disable the extended community attribute advertisement to a peer/peer group.
undo peer { group-name | ip-address } allow-as-loop Default The local AS number is not allowed in routes from a peer or peer group. Views BGP view Default command level 2: System level Parameters group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ip-address: Specifies an IP address of a peer. number: Specifies the number of times for which the local AS number can appear in routes from the peer/peer group, in the range of 1 to 10. The default number is 1.
ip-address: Specifies an IP address of a peer. as-number: Specifies the AS number of the peer or peer group, in the range of 1 to 4294967295. Usage guidelines You can specify the AS number of a peer in either of the following ways: • Use the peer ip-address as-number as-number command. After that, the system creates the specified peer by default. • Specify the AS number of the peer when adding it to the specified peer group by using the peer ip-address group group-name as-number as-number command.
system-view [Sysname] bgp 100 [Sysname-bgp] peer test as-path-acl 1 export Related commands • apply as-path • if-match as-path • ip as-path peer capability-advertise conventional Use peer capability-advertise conventional to disable BGP multi-protocol extension and route refresh for a peer/peer group. Use undo peer capability-advertise conventional to enable BGP multi-protocol extension and route refresh for a peer/peer group.
Default The ORF capability is not enabled for a BGP peer or peer group. Views BGP view Default command level 2: System level Parameters group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ip-address: Specifies IP address of a peer. both: Supports sending and receiving route-refresh messages carrying the ORF information. receive: Supports receiving route-refresh messages carrying the ORF information. send: Supports sending route-refresh messages carrying the ORF information.
Use undo peer capability-advertise orf non-standard to disable the non-standard ORF capability for the BGP peer or peer group. Syntax peer { group-name | ip-address } capability-advertise orf non-standard undo peer { group-name | ip-address } capability-advertise orf non-standard Default The non-standard ORF capability is not enabled for a BGP peer or peer group.
Default command level 2: System level Parameters group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ip-address: Specifies the IP address of a peer. Examples # In BGP view, enable BGP route refresh for peer 160.89.2.33. system-view [Sysname] bgp 100 [Sysname-bgp] peer 160.89.2.33 as-number 100 [Sysname-bgp] peer 160.89.2.
peer connect-interface (BGP view) Use peer connect-interface to specify the source interface for establishing TCP connections to a peer/peer group. Use undo peer connect-interface to restore the default.
Default No default route is advertised to a peer/peer group. Views BGP view Default command level 2: System level Parameters group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ip-address: Specifies the IP address of a peer. route-policy-name: Specifies the routing policy name, a case-sensitive string of 1 to 63 characters.
Examples # In BGP view, configure the description information of the peer group test as ISP1. system-view [Sysname] bgp 100 [Sysname-bgp] peer test description ISP1 Related commands display bgp peer peer ebgp-max-hop (BGP view) Use peer ebgp-max-hop to allow establishing an EBGP session with a peer or peer group that is on an indirectly connected network. Use undo peer ebgp-max-hop to restore the default.
undo peer ip-address enable Default The BGP peer is enabled. Views BGP view Default command level 2: System level Parameters ip-address: Specifies the IP address of a peer. Usage guidelines If a peer is disabled, the router does not exchange routing information with the peer. Examples # Disable peer 18.10.0.9. system-view [Sysname] bgp 100 [Sysname-bgp] peer 18.10.0.9 group group1 [Sysname-bgp] undo peer 18.10.0.
Examples # In BGP view, configure a fake AS number of 200 for the peer group test. system-view [Sysname] bgp 100 [Sysname-bgp] peer test fake-as 200 peer filter-policy (BGP view) Use peer filter-policy to configure an ACL-based filter policy for a peer or peer group. Use undo peer filter-policy to remove the configuration.
Default No peer exists in a peer group. Views BGP view Default command level 2: System level Parameters group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ip-address: Specifies the IP address of a peer. as-number: Specifies the AS number of the peer, in the range of 1 to 4294967295. Usage guidelines If you have specified an AS number for the peer to be added, make sure that the as-number argument is consistent with the specified peer AS number.
Usage guidelines After the peer ignore command is executed, the system disables the session with the specified peer or peer group and clears all the related routing information. For a peer group, all sessions with the peer group is terminated. Examples # In BGP view, disable session establishment with peer 10.10.10.10. system-view [Sysname] bgp 100 [Sysname-bgp] peer 10.10.10.
Syntax peer { group-name | ip-address } keep-all-routes undo peer { group-name | ip-address } keep-all-routes Default The function is not enabled. Views BGP view Default command level 2: System level Parameters group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ip-address: Specifies the IP address of a peer. Examples # In BGP view, save all route updates from peer 131.100.1.1. system-view [Sysname] bgp 100 [Sysname-bgp] peer 131.100.1.
[Sysname] bgp 100 [Sysname-bgp] peer test log-change peer next-hop-local (BGP view) Use peer next-hop-local to specify the router as the next hop for routes sent to a peer/peer group. Use undo peer next-hop-local to remove the configuration.
Parameters group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ip-address: Specifies the IP address of a peer. cipher: Specifies a ciphertext password. simple: Specifies a plaintext password. password: Password, a case-sensitive string of 1 to 137 characters in cipher text, or 1 to 80 characters in plain text. Usage guidelines You can enable MD5 authentication to enhance security in the following ways: • Perform MD5 authentication when establishing TCP connections.
value: Preferred value, in the range of 0 to 65535. Usage guidelines Routes learned from a peer have an initial preferred value. Among multiple routes that have the same destination/mask and are learned from different peers, the one with the greatest preferred value is selected as the route to the destination.
[Sysname-bgp] peer test public-as-only peer reflect-client (BGP view) Use peer reflect-client to configure the router as a route reflector and specify a peer/peer group as a client. Use undo peer reflect-client to remove the configuration. Syntax peer { group-name | ip-address } reflect-client undo peer { group-name | ip-address } reflect-client Default Neither the route reflector nor the client is configured.
Default The number of routes that can be received from a peer or peer group is not limited. Views BGP view Default command level 2: System level Parameters group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ip-address: Specifies the IP address of a peer. prefix-number: Specifies the number of prefixes that can be received from the peer or peer group, in the range of 1 to 500000.
Parameters group-name: Specifies the name of a peer group, a string of 1 to 47 characters. ip-address: Specifies the IP address of a peer. route-policy-name: Specifies the routing policy name, a case-sensitive string of 1 to 63 characters. export: Applies the routing policy to routes outgoing to the peer (or peer group). import: Applies the routing policy to routes incoming from the peer (or peer group).
peer substitute-as (BGP view) Use peer substitute-as to replace the AS number of a peer/peer group in the AS_PATH attribute with the local AS number. Use undo peer substitute-as to remove the configuration. Syntax peer { group-name | ip-address } substitute-as undo peer { group-name | ip-address } substitute-as Default No AS number is replaced. Views BGP view Default command level 2: System level Parameters group-name: Specifies the name of a peer group, a sting of 1 to 47 characters.
keepalive: Specifies the keepalive interval in seconds, ranging from 0 to 21845. holdtime: Specifies the holdtime interval in seconds, whose value is 0 or in the range of 3 to 65535. Usage guidelines The timers configured with this command are preferred to the timers configured with the timer command. If the holdtime is configured as 0, no keepalive message is sent to the peer, and the peer connection never times out.
route-policy-name: Routing policy name, a case-sensitive string of 1 to 63 characters. Using the routing policy can set a preference for routes matching it. The default value applies to routes not matching the routing policy. Usage guidelines For external-preference, internal-preference, and local-preference, the greater the preference value is, the lower the preference is, and the default values are 255, 255, and 130, respectively.
Syntax reflector cluster-id { cluster-id | ip-address } undo reflector cluster-id Default Each route reflector uses its router ID as the cluster ID. Views BGP view Default command level 2: System level Parameters cluster-id: Cluster ID in the format of an integer from 1 to 4294967295. ip-address: Cluster ID in the format of an IPv4 address in dotted decimal notation. Usage guidelines Typically, a cluster has only one route reflector. The router ID of the route reflector is the ID of the cluster.
internal: IBGP session. export: Outbound soft reset. import: Inbound soft reset. Usage guidelines After the route selection policy is modified, execute this command with the export keyword to enable the local router to filter routing information based on the new policy and send the matching routes to the BGP peer. If you execute this command with the import keyword, you enable the local router to advertise a route-refresh message to the peer and the peer resends its routing information to the router.
Syntax reset bgp dampening [ ip-address [ mask | mask-length ] ] Views User view Default command level 1: Monitor level Parameters ip-address: Specifies the destination IP address of a route. mask: Specifies the mask, in dotted decimal notation. mask-length: Specifies the ask length, in the range of 0 to 32. Examples # Clear damping information of route 20.1.0.0/16 and release the suppressed route. reset bgp dampening 20.1.0.0 255.255.0.
reset bgp flap-info as-path-acl 10 reset bgp ipv4 all Use reset bgp ipv4 all to reset all the BGP sessions of IPv4 unicast address family. Syntax reset bgp ipv4 all Views User view Default command level 2: System level Examples # Reset all the BGP sessions of IPv4 unicast address family. reset bgp ipv4 all router id Use router id to configure a global router ID. Use undo router id to remove the global router ID.
IP address is configured for a loopback interface; a higher interface IP address is configured) will not trigger a router ID re-selection. Examples # Configure a global router ID. system-view [Sysname] router id 1.1.1.1 router-id Use router-id to specify a router ID. Use undo router-id to remove the router ID. Syntax router-id router-id undo router-id Default A BGP router uses the global router ID. You can execute the router id command in system view to configure the global router ID.
Syntax summary automatic undo summary automatic Default Automatic summarization is disabled. Views BGP view Default command level 2: System level Usage guidelines Neither the default route nor the routes imported using the network command can be summarized automatically. The summary automatic command helps BGP limit the number of routes redistributed from IGP to reduce the size of the routing table. Examples # In BGP view, enable automatic route summarization.
Examples # Enable the synchronization between BGP and IGP routes. system-view [Sysname] bgp 100 [Sysname-bgp] synchronization timer (BGP view) Use timer to configure the global 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, respectively.
system-view [Sysname] bgp 100 [Sysname-bgp] timer keepalive 0 hold 0 Related commands peer timer 312
Basic IP routing commands The term "router" in this document refers to both routers and LB module. display ip routing-table Use display ip routing-table to display brief information about active routes in the routing table. Use display ip routing-table verbose to display detailed information about all routes in the routing table.
Destination/Mask Proto 1.1.2.0/24 1.1.2.1/32 Pre Cost NextHop Interface Direct 0 0 1.1.2.1 GE0/1 Direct 0 0 127.0.0.1 InLoop0 2.2.2.0/24 OSPF 2 1.1.2.2 GE0/2 127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0 192.168.0.0/24 Direct 0 0 192.168.0.1 VT1 192.168.0.1/32 Direct 0 0 127.0.0.1 InLoop0 10 Table 66 Command output Field Description Destinations Number of destination addresses. Routes Number of routes.
BKTunnel ID: 0x0 State: Active NoAdv BKLabel: NULL Age: 06h46m22s Tag: 0 Destination: 2.2.2.0/24 Protocol: OSPF Preference: 10 IpPrecedence: NextHop: 1.1.2.2 BkNextHop: 0.0.0.0 RelyNextHop: 0.0.0.0 Process ID: 1 Cost: 2 QosLcId: Interface: GigabitEthernet0/2 BkInterface: Neighbor : 0.0.0.0 Tunnel ID: 0x0 Label: NULL BKTunnel ID: 0x0 BKLabel: NULL State: Active Adv Age: 00h00m53s Tag: 0 Destination: 127.0.0.0/8 Protocol: Direct Preference: 0 IpPrecedence: NextHop: 127.0.0.1 BkNextHop: 0.0.0.
BKTunnel ID: 0x0 BKLabel: NULL State: Active Adv Age: 06h46m35s Tag: 0 Destination: 192.168.0.1/32 Protocol: Direct Process ID: 0 Preference: 0 Cost: 0 IpPrecedence: QosLcId: NextHop: 127.0.0.1 BkNextHop: 0.0.0.0 Interface: InLoopBack0 BkInterface: RelyNextHop: 0.0.0.0 Neighbor : 0.0.0.
Field Description Route status: • • • • • Active—This is an active unicast route. Adv—This route can be advertised. Delete—This route is deleted. Gateway—This is an indirect route. Holddown—Number of holddown routes. Holddown is a route advertisement policy used in some routing protocols, such as RIP, to avoid the propagation of some incorrect routes. It distributes a Holddown route during a period regardless of whether a new route to the same destination is found.
acl-number: Specifies a basic ACL by its number in the range of 2000 to 2999. verbose: Displays detailed information about all routes permitted by the basic ACL. Without this argument, the command displays only brief information about active routes permitted by the basic ACL. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide.
BkNextHop: 0.0.0.0 RelyNextHop: 0.0.0.0 BkInterface: Neighbor: 0.0.0.0 Tunnel ID: 0x0 Label: NULL BKTunnel ID: 0x0 BKLabel: NULL State: Active Adv Age: 1d00h25m32s Tag: 0 Destination: 10.1.1.2/32 Protocol: Direct Preference: 0 IpPrecedence: NextHop: 127.0.0.1 BkNextHop: 0.0.0.0 RelyNextHop: 0.0.0.0 Process ID: 0 Cost: 0 QosLcId: Interface: InLoopBack0 BkInterface: Neighbor: 0.0.0.
BkNextHop: 0.0.0.0 RelyNextHop: 0.0.0.0 BkInterface: Neighbor: 0.0.0.0 Tunnel ID: 0x0 Label: NULL BKTunnel ID: 0x0 BKLabel: NULL State: Active Adv Age: 1d00h05m31s Tag: 0 Destination: 10.1.3.1/32 Protocol: Direct Preference: 0 IpPrecedence: NextHop: 127.0.0.1 BkNextHop: 0.0.0.0 RelyNextHop: 0.0.0.0 Process ID: 0 Cost: 0 QosLcId: Interface: InLoopBack0 BkInterface: Neighbor: 0.0.0.
verbose: Displays detailed information about all routes. Without this argument, the command displays only brief information about active routes. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
Routing Table : Public Summary Count : 3 Destination/Mask Proto 11.0.0.0/8 11.1.0.0/16 Pre Cost NextHop Interface Static 60 0 0.0.0.0 NULL0 Static 60 0 0.0.0.0 NULL0 # Display brief information about the routes with destination IP address 11.0.0.1 and the longest mask length. display ip routing-table 11.0.0.1 longer-match Routing Table : Public Summary Count : 1 Destination/Mask Proto Pre 11.0.0.0/24 Static 60 Cost NextHop Interface 0 0.0.0.
Views Any view Default command level 1: Monitor level Parameters vpn-instance vpn-instance-name: Specifies a VPN 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-prefix-name: Specifies an IP prefix list by its name, a string of 1 to 19 characters. verbose: Displays detailed information about all routes permitted by the IP prefix list.
NextHop: 2.2.2.1 BkNextHop: 0.0.0.0 RelyNextHop: 0.0.0.0 Interface: Vlan-interface2 BkInterface: Neighbor : 0.0.0.0 Tunnel ID: 0x0 Label: NULL BKTunnel ID: 0x0 BKLabel: NULL State: Active Adv Age: 1d00h20m52s Tag: 0 Destination: 2.2.2.1/32 Protocol: Direct Preference: 0 IpPrecedence: NextHop: 127.0.0.1 BkNextHop: 0.0.0.0 RelyNextHop: 0.0.0.0 Process ID: 0 Cost: 0 QosLcId: Interface: InLoopBack0 BkInterface: Neighbor : 0.0.0.
include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # Display brief information about direct routes. display ip routing-table protocol direct Public Routing Table : Direct Summary Count : 6 Direct Routing Table Status : Summary Count : 6 Destination/Mask Proto 2.2.2.0/24 2.2.2.2/32 Pre Cost NextHop Interface Direct 0 0 2.2.2.
Views Any view Default command level 1: Monitor level Parameters vpn-instance vpn-instance-name: Specifies a VPN by its name, a case-sensitive string of 1 to 31 characters. Without this option, the command displays routing information for the public network. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide.
Views User view Default command level 2: System level Parameters protocol: Clears route statistics for the IPv4 routing protocol. It can be bgp, direct, ospf, rip, or static. all: Clears route statistics for all IPv4 routing protocols. Examples # Clear route statistics for all IPv4 routing protocols.
Policy-based routing configuration commands apply access-vpn vpn-instance Use apply access-vpn vpn-instance to set one or multiple VPN instances. Use undo apply access-vpn vpn-instance to remove one or multiple specified VPN instances. Syntax apply access-vpn vpn-instance vpn-instance-name&<1-6> undo apply access-vpn vpn-instance [ vpn-instance-name ]&<1-6> Views Policy node view Default command level 2: System level Parameters vpn-instance-name&<1-6>: Specifies a VPN.
undo apply default interface-number ] ] output-interface [ interface-type interface-number [ interface-type Views Policy node view Default command level 2: System level Parameters interface-type interface-number: Specifies an interface by its type and number. track track-entry-number: Specifies a track entry by its number, in the range of 1 to 1024. Usage guidelines You can specify up to two default output interfaces by performing this command once or twice.
Usage guidelines You can specify up to two default next hops by performing this command once or twice. With a next hop specified, the undo apply ip-address default next-hop command removes the specified default next hop. Without any next hop specified, the undo apply ip-address default next-hop command removes all default next hops. Examples # Set the default next hop of 1.1.1.1. system-view [Sysname] policy-based-route aa permit node 11 [Sysname-pbr-aa-11] apply ip-address default next-hop 1.1.
apply ip-precedence Use apply ip-precedence to set a precedence for packets. Use undo apply ip-precedence to remove the configuration. Syntax apply ip-precedence value undo apply ip-precedence Views Policy node view Default command level 2: System level Parameters value: Sets the precedence for IP packets. Eight precedence values (0 to 7) are available. Each precedence value corresponds to a precedence type, as shown in Table 69. You can set either a precedence value or a precedence type for IP packets.
Views Policy node view Default command level 2: System level Parameters interface-type interface-number: Specifies an interface by its type and number. track track-entry-number: Specifies a track entry by its number, in the range of 1 to 1024. Usage guidelines You can specify up to two output interfaces by performing this command once or twice. A specified output interface must be P2P type.
Examples # Display information about local PBR and interface PBR. display ip policy-based-route Policy Name interface pr02 local pr02 Virtual-Template0 pr01 GigabitEthernet 0/1 Table 70 Command output Field Description Policy Name Policy name. PBR type. interface This field displays local for a local PBR or a specific interface (such as GigabitEthernet 0/1) to which the policy has been applied to implement interface PBR.
# Display PBR configuration on GigabitEthernet 0/1. display ip policy-based-route setup interface gigabitethernet 0/1 Interface GigabitEthernet0/1 policy based routing configuration information: policy-based-route: pr01 permit node 1 if-match acl 3101 apply output-interface GigabitEthernet 0/2 # Display local PBR configuration.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Parameters policy-name: Displays information about the specified policy. A policy name is a string of 1 to 19 characters. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
Parameters acl-number: Specifies the ACL number, in the range of 2000 to 3999. The number of a basic ACL ranges from 2000 to 2999 and that of an advanced ACL ranges from 3000 to 3999. Examples # Permit the packets matching ACL 2010. system-view [Sysname] policy-based-route aa permit node 11 [Sysname-pbr-aa-11] if-match acl 2010 if-match packet-length Use if-match packet-length to define a packet length match criterion. Use undo if-match packet-length to remove the match criterion.
Default command level 2: System level Parameters policy-name: Policy name, a string of 1 to 19 characters. Usage guidelines You can configure only one policy for local PBR. If you perform this command multiple times, only the last specified policy takes effect. Local PBR is used to route locally generated packets. Do not configure local PBR unless required. Examples # Configure local PBR based on policy aaa.
Use undo policy-based-route to remove a created 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 ] Views System view Default command level 2: System level Parameters policy-name: Specifies a policy name, a string of 1 to 19 characters. deny: Specifies the match mode of the policy node as deny. permit: Specifies the match mode of the policy node as permit.
IPv6 basics configuration commands display ipv6 fib Use display ipv6 fib to display IPv6 FIB entries. If you do not specify any parameter, this command displays all IPv6 FIB entries. Syntax display ipv6 fib [ vpn-instance vpn-instance-name ] [ acl6 acl6-number | ipv6-prefix ipv6-prefix-name ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters vpn-instance vpn-instance-name: Displays the IPv6 FIB entries of the specified VPN.
Destination: ::1 PrefixLength : 128 NextHop : ::1 Flag : UH Label : NULL Token : 0 Interface : InLoopBack0 Table 74 Command output Field Description Total number of Routes Total number of routes in the FIB. Destination Destination address. PrefixLength Prefix length of the destination address. NextHop Next hop. Route flag: • • • • • • Flag U—Usable route. G—Gateway route. H—Host route. B—Black hole route. D—Dynamic route. S—Static route. Label Label.
exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines If you do not specify the prefix-length argument, this command displays the IPv6 FIB entry maximally matching the destination IPv6 address.
Syntax display ipv6 interface [ interface-type [ interface-number ] ] [ brief ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters interface-type: Interface type. interface-number: Interface number. brief: Displays brief IPv6 information about an interface. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide.
ND reachable time is 30000 milliseconds ND retransmit interval is 1000 milliseconds Hosts use stateless autoconfig for addresses IPv6 Packet statistics: InReceives: 0 InTooShorts: 0 InTruncatedPkts: 0 InHopLimitExceeds: 0 InBadHeaders: 0 InBadOptions: 0 ReasmReqds: 0 ReasmOKs: 0 InFragDrops: 0 InFragTimeouts: 0 OutFragFails: 0 InUnknownProtos: 0 InDelivers: 0 OutRequests: 0 OutForwDatagrams: 0 InNoRoutes: 0 InTooBigErrors: 0 OutFragOKs: 0 OutFragCreates: 0 InMcastPkts:
Field Description preferred lifetime Preferred lifetime of the global unicast address. Joined group address(es) Addresses of the multicast groups that the interface has joined. MTU Maximum transmission unit of the interface. Number of DAD attempts, with DAD enabled. ND DAD is enabled, number of DAD attempts • If DAD is enabled, the number of neighbor request messages is also displayed (configured by using the ipv6 nd dad attempts command) • If DAD is disabled, "ND DAD is disabled" is displayed.
display ipv6 neighbors Use display ipv6 neighbors to display neighbor information. Syntax display ipv6 neighbors { ipv6-address | all | dynamic | interface interface-type interface-number | static | vlan vlan-id } [ verbose ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters ipv6-address: IPv6 address whose neighbor information is to be displayed.
Link-layer : 0000-5e32-b800 VID : N/A Interface : GE0/1 State : REACH Type: S Age : - Vpn-instance : vpn1 Table 78 Command output Field Description IPv6 Address IPv6 address of a neighbor. Link-layer Link layer address (MAC address) of a neighbor. VID VLAN to which the interface connected with a neighbor belongs. Interface Interface connected with a neighbor. State of a neighbor: • INCMP—The address is being resolved. The link layer address of the neighbor is unknown.
Parameters all: Displays the total number of all neighbor entries, including neighbor entries acquired dynamically and configured statically. dynamic: Displays the total number of neighbor entries acquired dynamically. static: Displays the total number of neighbor entries configured statically. interface interface-type interface-number: Displays the total number of neighbor entries of a specific interface.
Examples # Display neighbor information for the VPN vpn1. display ipv6 neighbors vpn-instance vpn1 Type: S-Static D-Dynamic IPv6 Address Link-layer VID Interface State T Age FE80::200:5EFF:FE32:B800 0000-5e32-b800 N/A GE0/1 REACH S - Table 79 Command output Field Description IPv6 Address IPv6 address of a neighbor. Link-layer Link layer address (MAC address) of a neighbor. VID VLAN to which the interface connected with a neighbor belongs.
all: Displays all path MTU information on the public network. dynamic: Displays all dynamic path MTU information. static: Displays all static path MTU information. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines Static IPv6 prefixes are created with the ipv6 prefix command. Examples # Display information about all IPv6 prefixes.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
socket option = SO_REUSEADDR, socket state = SS_PRIV SS_ASYNC Table 82 Command output Field Description SOCK_STREAM TCP socket. SOCK_DGRAM UDP socket. SOCK_RAW Raw IP socket. Task Task name and ID of the created socket. socketid ID assigned by the kernel to the created socket. Proto Protocol type, for example, 6 indicates TCP and 17 indicates UDP. LA Local address and local port number. FA Remote address and remote port number. sndbuf Size of the send buffer.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines You can use the reset ipv6 statistics command to clear all IPv6 and ICMPv6 packet statistics. Examples # Display the statistics of IPv6 packets and ICMPv6 packets.
redirected: 0 unknown info type: 0 router renumbering: 0 Deliver failed: bad length: 0 ratelimited: 0 Table 83 Command output Field Description IPv6 Protocol Statistics of IPv6 packets. Statistics of sent IPv6 packets: Sent packets • • • • • • • • Total—Total number of packets sent and forwarded locally. local sent out—Number of packets sent locally. forwarded—Number of forwarded packets. raw packets—Number of packets sent through raw socket. discarded—Number of discarded packets.
Field Description Statistics of sent ICMPv6 packets: Sent packets • • • • • Total—Total number of sent packets. • • • • • • • • • • • parameter problem—Number of Parameter Problem packets. unreached—Number of Destination Unreachable packets. too big—Number of Packet Too Big packets. hopcount exceeded—Number of Hop Limit Exceeded packets. reassembly timeout—Number of Fragment Reassembly Time Exceeded packets. echo request—Number of Echo Request packets. echo replied—Number of Echo Reply packets.
display tcp ipv6 statistics Use display tcp ipv6 statistics to display IPv6 TCP connection statistics. Syntax display tcp ipv6 statistics [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide.
ACK only packets: 0 (0 delayed) Retransmitted timeout: 0, connections dropped in retransmitted timeout: 0 Keepalive timeout: 0, keepalive probe: 0, Keepalive timeout, so connections disconnected : 0 Initiated connections: 0, accepted connections: 0, established connections: 0 Closed connections: 0 (dropped: 0, initiated dropped: 0) Packets dropped with MD5 authentication: 0 Packets permitted with MD5 authentication: 0 Table 84 Command output Field Description Statistics of received packets: Received pac
Field Description Keepalive timeout, so connections disconnected Number of connections dropped because of keepalive response timeout. Initiated connections Number of initiated connections. accepted connections Number of accepted connections. established connections Number of established connections. Closed connections Number of closed connections. dropped Number of dropped connections (after SYN is received from the peer).
Table 85 Command output Field Description *: TCP6 MD5 Connection The asterisk (*) indicates that the TCP6 connection is secured with MD5 authentication. TCP6CB IPv6 TCP control block address (hexadecimal). Local Address Local IPv6 address. Foreign Address Remote IPv6 address. IPv6 TCP connection status: State • • • • • • • • • • • Closed. Listening. Syn_Sent. Syn_Rcvd. Established. Close_Wait. Fin_Wait1. Closing. Last_Ack. Fin_Wait2. Time_Wait.
display udp ipv6 statistics Received packets: Total: 0 checksum error: 0 shorter than header: 0, data length larger than packet: 0 unicast(no socket on port): 0 broadcast/multicast(no socket on port): 0 not delivered, input socket full: 0 input packets missing pcb cache: 0 Sent packets: Total: 0 Table 86 Command output Field Description Total Total number of received/sent packets. checksum error Total number of packets with a checksum error.
system-view [Sysname] ipv6 ipv6 address Use ipv6 address to configure an IPv6 global unicast address for an interface. Use undo ipv6 address to remove the IPv6 address from the interface. Syntax ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length } undo ipv6 address [ ipv6-address prefix-length | ipv6-address/prefix-length ] Default No global unicast address is configured for an interface.
undo ipv6 address prefix-number Default No prefix is applied for IPv6 address generation on an interface. Views Interface view Default command level 2: System level Parameters prefix-number: Specifies an IPv6 prefix by its ID, in the range of 1 to 1024. sub-prefix/prefix-length: Specifies the sub-prefix bit and host bit for an IPv6 address, and specifies the prefix length. The prefix length ranges from 1 to 128.
Examples # Set the IPv6 anycast address of GigabitEthernet 0/1 to 2001::1 with prefix length 64. system-view [Sysname] interface gigabitethernet 0/1 [Sysname-GigabitEthernet0/1] ipv6 address 2001::1/64 anycast ipv6 address auto Use ipv6 address auto to enable the stateless address autoconfiguration function on the interface. With this function enabled, the interface can automatically generate a global unicast address. Use undo ipv6 address auto to disable this function.
Views Interface view Default command level 2: System level Usage guidelines After an IPv6 global unicast address is configured for an interface, a link-local address is generated automatically. The automatically generated link-local address is the same as the one generated by using the ipv6 address auto link-local command. The undo ipv6 address auto link-local command can only remove the link-local addresses generated through the ipv6 address auto link-local command.
Usage guidelines An EUI-64 IPv6 address is generated based on the specified prefix and the automatically generated interface identifier and is displayed by using the display ipv6 interface command. The prefix length of an EUI-64 IPv6 address cannot be greater than 64. Examples # Configure an EUI-64 IPv6 address for GigabitEthernet 0/1. The prefix length of the address is the same as that of 2001::1/64, and the interface ID is generated based on the MAC address of the device.
Use undo ipv6 fib-loadbalance-type hash-based to restore the default. Syntax ipv6 fib-loadbalance-type hash-based undo ipv6 fib-loadbalance-type hash-based Default Load sharing based on polling is adopted. ECMP routes are used in turn to forward packets. Views System view Default command level 2: System level Examples # Enable load sharing based on the HASH algorithm for packet forwarding.
Syntax ipv6 icmp-error { bucket bucket-size | ratelimit interval } * undo ipv6 icmp-error Default The size is 10 and the update period is 100 milliseconds. A maximum of 10 ICMPv6 error packets can be sent within 100 milliseconds. Views System view Default command level 2: System level Parameters bucket bucket-size: Number of tokens in the token bucket, in the range of 1 to 200. ratelimit interval: Update period of the token bucket in milliseconds, in the range of 0 to 2,147,483,647.
Use undo ipv6 mtu to restore the default MTU. Syntax ipv6 mtu mtu-size undo ipv6 mtu Default The MTU is 1500 bytes. Views Interface view Default command level 2: System level Parameters mtu-size: Size of the maximum transmission units (MTUs) of an interface in bytes. The value ranges from 1280 to 1500. Examples # Set the MTU of IPv6 packets over GigabitEthernet 0/1 to 1280 bytes.
ipv6 nd autoconfig other-flag Use ipv6 nd autoconfig other-flag to set the other stateful configuration flag (O) to 1 so that the host can acquire information other than IPv6 address through stateful autoconfiguration (for example, from a DHCP server). Use undo ipv6 nd autoconfig other-flag to restore the default. Syntax ipv6 nd autoconfig other-flag undo ipv6 nd autoconfig other-flag Default The O flag is set to 0 so that the host can acquire other information through stateless autoconfiguration.
[Sysname] interface gigabitethernet 0/1 [Sysname-GigabitEthernet0/1] ipv6 nd dad attempts 20 Related commands display ipv6 interface ipv6 nd hop-limit Use ipv6 nd hop-limit to configure the hop limit advertised by the device. Use undo ipv6 nd hop-limit to restore the default hop limit. Syntax ipv6 nd hop-limit value undo ipv6 nd hop-limit Default The hop limit advertised by the device is 64.
Default command level 2: System level Parameters value: Interval for retransmitting an NS message in milliseconds, in the range of 1000 to 4294967295. Examples # Specify GigabitEthernet 0/1 to retransmit NS messages at intervals of 10000 milliseconds.
ipv6 nd ra halt Use ipv6 nd ra halt to enable RA message suppression. Use undo ipv6 nd ra halt to disable RA message suppression. Syntax ipv6 nd ra halt undo ipv6 nd ra halt Default RA messages are suppressed. Views Interface view Default command level 2: System level Examples # Suppress RA messages on GigabitEthernet 0/1.
Usage guidelines The minimum interval should be three-fourths of the maximum interval or less. The maximum interval for sending RA messages should be less than or equal to the router lifetime in RA messages. Examples # Set the maximum interval for advertising RA messages to 1000 seconds and the minimum interval to 700 seconds.
Default No prefix information is configured in RA messages and the IPv6 address of the interface sending RA messages is used as the prefix information with valid lifetime 2592000 seconds (30 days) and preferred lifetime 604800 seconds (7 days). Views Interface view Default command level 2: System level Parameters ipv6-prefix: IPv6 prefix. prefix-length: Prefix length of the IPv6 address. valid-lifetime: Valid lifetime of a prefix in seconds, in the range of 0 to 4294967295.
Usage guidelines The router lifetime in RA messages should be greater than or equal to the advertising interval. Examples # Set the router lifetime in RA messages on GigabitEthernet 0/1 to 1000 seconds. system-view [Sysname] interface gigabitethernet 0/1 [Sysname-GigabitEthernet0/1] ipv6 nd ra router-lifetime 1000 ipv6 neighbor Use ipv6 neighbor to configure a static neighbor entry. Use undo ipv6 neighbor to remove a static neighbor entry.
To remove a static neighbor entry, you only need to specify the corresponding VLAN interface and the neighbor address. Examples # Configure a static neighbor entry for Layer 3 interface GigabitEthernet 0/1. system-view [Sysname] ipv6 neighbor 2000::1 fe-e0-89 interface gigabitethernet 0/1 Related commands display ipv6 neighbors ipv6 neighbor stale-aging Use ipv6 neighbor stale-aging to set the age timer for ND entries in stale state. Use undo ipv6 neighbor stale-aging to restore the default.
Views Interface view Default command level 2: System level Parameters number: Maximum number of neighbors that can be dynamically learned by the interface. The value ranges from 1 to 4096. Examples # Set the maximum number of neighbors that can be dynamically learned on GigabitEthernet 0/1 to 10.
Use undo ipv6 pathmtu age to restore the default. Syntax ipv6 pathmtu age age-time undo ipv6 pathmtu age Default The aging time is 10 minutes. Views System view Default command level 2: System level Parameters age-time: Aging time for path MTU in minutes, in the range of 10 to 100. Usage guidelines The aging time is invalid for a static path MTU. Examples # Set the aging time for a dynamic path MTU to 40 minutes.
Parameters prefix-number: Specifies a prefix ID, in the range of 1 to 1024. ipv6-prefix/prefix-length: Specifies a prefix and the prefix length. The value range for the prefix-length argument is from 1 to 128. Usage guidelines You cannot execute the ipv6 prefix command to modify an existing static prefix. The prefix IDs of a static IPv6 prefix and a dynamical IPv6 prefix cannot be the same. Examples # Create static IPv6 prefix 2001::2:1/32 with prefix ID 1.
Default Sending ICMPv6 destination unreachable packets is disabled. Views System view Default command level 2: System level Examples # Enable sending ICMPv6 destination unreachable packets. system-view [Sysname] ipv6 unreachables enable local-proxy-nd enable Use local-proxy-nd enable to enable local ND proxy. Use undo local-proxy-nd enable to restore the default. Syntax local-proxy-nd enable undo local-proxy-nd enable Default Local ND proxy is disabled.
Views VLAN interface view, Layer 3 Ethernet interface view, Layer 3 Ethernet subinterface view Default command level 2: System level Examples # Enable ND proxy on interface GigabitEthernet 0/1. system-view [Sysname] interface gigabitethernet 0/1 [Sysname-GigabitEthernet0/1] proxy-nd enable reset ipv6 neighbors Use reset ipv6 neighbors to clear IPv6 neighbor information.
Views User view Default command level 2: System level Parameters all: Clears all path MTUs. static: Clears all static path MTUs. dynamic: Clears all dynamic path MTUs. Examples # Clear all path MTUs. reset ipv6 pathmtu all reset ipv6 statistics Use reset ipv6 statistics to clear the statistics of IPv6 packets and ICMPv6 packets.
Usage guidelines You can use the display tcp ipv6 statistics command to display the statistics of IPv6 TCP connections. Examples # Clear the statistics of all IPv6 TCP connections. reset tcp ipv6 statistics reset udp ipv6 statistics Use reset udp ipv6 statistics to clear the statistics of all IPv6 UDP packets.
tcp ipv6 timer syn-timeout Use tcp ipv6 timer syn-timeout to set the synwait timer for IPv6 TCP connections Use undo tcp ipv6 timer syn-timeout to restore the default. Syntax tcp ipv6 timer syn-timeout wait-time undo tcp ipv6 timer syn-timeout Default The synwait timer of IPv6 TCP connections is 75 seconds. Views System view Default command level 2: System level Parameters wait-time: Sets the synwait timer for IPv6 TCP connections in seconds, in the range of 2 to 600.
IPv6 DNS configuration commands display dns ipv6 server Use display dns ipv6 server to display IPv6 DNS server information. Syntax display dns ipv6 server [ dynamic ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters dynamic: Displays IPv6 DNS server information acquired dynamically through DHCP or other protocols. |: Filters command output by specifying a regular expression.
display ipv6 host Use display ipv6 host to display the mappings between host names and IPv6 addresses in the static domain name resolution table. Syntax display ipv6 host [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide.
undo dns server ipv6 ipv6-address [ interface-type interface-number ] Default No DNS server is configured. Views System view Default command level 2: System level Parameters ipv6-address: IPv6 address of a DNS server. interface-type interface-number: Specifies an interface. When the IPv6 address of the DNS server is a link-local address, the two arguments must be specified. Usage guidelines You can configure a maximum of six DNS servers, including those with IPv4 addresses.
Examples # Configure the mapping between a host name and an IPv6 address.
IPv6 static routing configuration commands The term "router" in this document refers to both routers and LB module. delete ipv6 static-routes all Use delete ipv6 static-routes all to delete all IPv6 static routes. Syntax delete ipv6 static-routes all Views System view Default command level 2: System level Usage guidelines When you use this command, the system prompts you to confirm the operation before deleting all the IPv6 static routes.
Default No IPv6 static route is configured. Views System view Default command level 2: System level Parameters ipv6-address prefix-length: IPv6 address and prefix length. interface-type interface-number: Specifies the output interface by its type and number.
RIPng configuration commands The term "router" in this document refers to both routers and LB module. 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 is enabled. Views RIPng view Default command level 2: System level Usage guidelines Some fields in RIPng packet headers must be zero. These fields are called "zero fields.
Default command level 2: System level Parameters cost: Default metric of redistributed routes, in the range of 0 to 16. Usage guidelines The specified default metric applies to the routes redistributed by the import-route command with no metric specified. Examples # Set the default metric of redistributed routes to 2.
display ripng Public VPN-instance name : RIPng process : 1 Preference : 100 Checkzero : Enabled Default Cost : 0 Maximum number of balanced paths : 8 Update time : 30 sec(s) Suppress time : 120 sec(s) Timeout time : 180 sec(s) Garbage-Collect time : 120 sec(s) Number of periodic updates sent : 0 Number of trigger updates sent : 0 Table 89 Command output Field Description Public VPN-instance name Public VPN instance name. RIPng process RIPng process ID.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
display ripng interface Use display ripng interface to display the interface information of the RIPng process. Syntax display ripng process-id interface [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters process-id: RIPng process ID, in the range of 1 to 65535. interface-type interface-number: Specifies an interface by its type and number. |: Filters command output by specifying a regular expression.
Field Description Indicates whether the poison reverse function is enabled: Poison-reverse • on—Enabled. • off—Disabled. MetricIn/MetricOut Additional metric to incoming and outgoing routes. • Only/Originate—Only means that the interface advertises only the default route. Originate means that the default route and other RIPng routes are advertised. Default route • Off—No default route is advertised or the garbage-collect time expires after the default route advertisement was disabled.
via FE80::200:5EFF:FE04:B602, cost 2, tag 0, A, 34 Sec Dest 3FFE:C00:C18:2::/64, via FE80::200:5EFF:FE04:B602, cost 2, tag 0, A, 34 Sec Peer FE80::200:5EFF:FE04:B601 on GigabitEthernet0/2 Dest 3FFE:C00:C18:1::/64, via FE80::200:5EFF:FE04:B601, cost 2, tag 0, A, 13 Sec Dest 3FFE:C00:C18:3::/64, via FE80::200:5EFF:FE04:B601, cost Peer FE80::200:5EFF:FE04:3302 2, tag 0, A, 13 Sec on GigabitEthernet0/3 Dest 100::/32, via FE80::200:5EFF:FE04:3302, cost 2, tag 0, A, 6 Sec Dest 4000:1::/64, via FE80::2
Default RIPng does not filter any outbound routing information. Views RIPng view Default command level 2: System level Parameters acl6-number: Specifies the number of an ACL to filter advertised routing information, in the range of 2000 to 3999. ipv6-prefix ipv6-prefix-name: Specifies the name of an IPv6 prefix list used to filter routing information, a string of 1 to 19 characters. protocol: Filters routes redistributed from a routing protocol, including bgp4+, direct, ospfv3, ripng, and static.
filter-policy import (RIPng view) Use filter-policy import to define an inbound route filtering policy. Only routes that match the filtering policy can be received. Use undo filter-policy import to disable inbound route filtering. Syntax filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } import undo filter-policy import Default RIPng does not filter incoming routing information.
[Sysname-ripng-100] filter-policy 3000 import import-route Use import-route to redistribute routes from another routing protocol. Use undo import-route to disable redistributing routes from another routing protocol. 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 other routing protocols.
Syntax maximum load-balancing number undo maximum load-balancing Default The maximum number of ECMP routes is 8. Views RIPng view Default command level 2: System level Parameters number: Maximum number of ECMP routes in the range of 1 to 8. Usage guidelines Configure the maximum number of ECMP routes according to the memory size. Examples # Set the maximum number of ECMP routes to 2.
• The preference set by the routing policy applies to all matching RIPng routes. The preference of other routes is set by the preference command. • If no preference is set by the routing policy, the preference of all RIPng routes is set by the preference command. Examples # Set the RIPng route preference to 120. system-view [Sysname] ripng 100 [Sysname-ripng-100] preference 120 # Restore the default RIPng route preference.
Examples # Clear the statistics of 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. Syntax ripng [ process-id ] [ vpn-instance vpn-instance-name ] undo ripng [ process-id ] [ vpn-instance vpn-instance-name ] Default No RIPng process is enabled. Views System view Default command level 2: System level Parameters process-id: RIPng process ID, in the range of 1 to 65535.
ripng default-route Use ripng default-route to advertise a default route with the specified routing metric to a RIPng neighbor. Use undo ripng default-route to stop advertising or forwarding the default route. Syntax ripng default-route { only | originate } [ cost cost ] undo ripng default-route Default A RIP process does not advertise any default route.
Views Interface view Default command level 2: System level Parameters process-id: RIPng process ID, in the range of 1 to 65535. Examples # Enable RIPng 100 on GigabitEthernet 0/1. system-view [Sysname] interface gigabitethernet0/1 [Sysname-GigabitEthernet0/1] ripng 100 enable ripng metricin Use ripng metricin to specify an additional metric for received RIPng routes. Use undo ripng metricin to restore the default.
Syntax ripng metricout value undo ripng metricout Default The default additional routing metric is 1. Views Interface view Default command level 2: System level Parameters value: Additional metric to advertised routes, in the range of 1 to 16. Examples # Set the additional metric to 12 for routes advertised by GigabitEthernet 0/1.
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 split-horizon undo ripng split-horizon Default The split horizon function is enabled. Views Interface view Default command level 2: System level Usage guidelines The split horizon function is necessary for preventing routing loops. Do not disable it unless you make sure that it is necessary.
Usage guidelines Networks falling into the summary network will not be advertised. The cost of the summary route is the lowest cost among summarized routes. Examples # Assign an IPv6 address with the 64-bit prefix to GigabitEthernet 0/1 and configure a summary with the 35-bit prefix.
• Garbage-collect timer—Defines 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, RIPng advertises the route with the routing metric set to 16. If no update message is announced for that route before the garbage-collect timer expires, the route will be completely deleted from the routing table. HP does not recommend changing the default values of these timers under normal circumstances.
OSPFv3 configuration commands The term "router" in this document refers to both routers and LB module. abr-summary (OSPFv3 area view) Use abr-summary to configure an IPv6 summary route on an area border router. Use undo abr-summary to remove an IPv6 summary route. Then the summarized routes are advertised. Syntax abr-summary ipv6-address prefix-length [ not-advertise ] undo abr-summary ipv6-address prefix-length Default No route summarization is available on an ABR.
Views OSPFv3 view Default command level 2: System level Parameters area-id: ID of an area, a decimal integer (in the range of 0 to 4294967295 and changed to IPv4 address format by the system) or an IPv4 address. Usage guidelines The undo form of the command is not available. An area is removed automatically if no configuration is made and no interface is up in the area. Examples # Enter OSPFv3 Area 0 view. system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] area 0 [Sysname-ospfv3-1-area-0.0.0.
Examples # Specify the reference bandwidth value as 1000 Mbps. system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] bandwidth-reference 1000 default cost Use default cost to configure a default cost for redistributed routes. Use undo default cost to restore the default. Syntax default cost value undo default cost Default The default cost is 1.
Default command level 2: System level Parameters value: Specifies a cost for the default route advertised to the stub area, in the range of 0 to 65535. The default is 1. Usage guidelines Use of this command is only available on the ABR that is connected to a stub area. You have two commands to configure a stub area: stub, defaulted-cost. Use the stub command on routers connected to a stub area to configure the area as stub.
route-policy route-policy-name: Specifies a routing policy, the name of which is a case-sensitive string of 1 to 63 characters. type type: Specifies a type for the ASE LSA: 1 or 2. The default is 2. Usage guidelines Using the import-route command cannot redistribute a default route. To do so, use the default-route-advertise command. If no default route exists in the routing table, use the default-route-advertise always command to generate a default route in a Type-5 LSA.
include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines If no process ID is specified, OSPFv3 brief information about all processes will be displayed. Examples # Display brief information about all OSPFv3 processes. display ospfv3 Routing Process "OSPFv3 (1)" with ID 1.1.1.
Field Description Number of AS-Scoped Unknown LSA Number of LSAs with unknown flooding scope. Number of LSA originated Number of LSAs originated. Number of LSA received Number of LSAs received. Number of areas in this router Number of areas this router is attached to. Area Area ID. Number of interfaces in this area Number of interfaces attached to this area. SPF algorithm executed 1 times SPF algorithm is executed 1 time. Number of LSA Number of LSAs.
OSPFv3 Process (1), Area 0.0.0.1, Instance ID 0 Router ID 2.2.2.2, Network Type POINTOPOINT, Cost: 1562 Transmit Delay is 1 sec, State Point-To-Point, Priority 1 No designated router on this link No backup designated router on this link Timer interval configured, Hello: 10, Dead: 40, Wait: 40, Retransmit: 5 Hello due in 00:00:02 Neighbor Count is 1, Adjacent neighbor count is 1 Table 94 Command output Field Description Interface ID Interface ID. IPv6 Prefixes IPv6 Prefix.
Views Any view Default command level 1: Monitor level Parameters process-id: Specifies ID of an OSPFv3 process, ranging from 1 to 65535. external: Displays information about AS-external LSAs. inter-prefix: Displays information about Inter-area-prefix LSAs. inter-router: Displays information about Inter-area-router LSAs. intra-prefix: Displays information about Intra-area-prefix LSAs. link: Displays information about Link-LSAs. network: Displays information about Network-LSAs.
0.0.0.0 1.1.1.1 0050 0x80000002 0x12d1 1 0.0.0.0 2.2.2.2 0048 0x80000002 0xa142 1 Table 95 Command output Field Description Link-LSA Type 8 LSA. Link State ID Link State ID. Origin Router Originating Router. Age Age of LSAs. Seq# LSA sequence number. CkSum LSA Checksum. Prefix Number of Prefixes. Router-LSA Router-LSA. Link Number of links. Network-LSA Network-LSA. Intra-Area-Prefix-LSA Type 9 LSA. Grace-LSA Type 11 LSA. Reference Type of referenced LSA.
Field Description LS Seq Number LSA sequence number. Checksum LSA checksum. Length LSA length. Priority Router priority. Prefix Address prefix. # Display Grace-LSA information in the LSDB. display ospfv3 lsdb grace OSPFv3 Router with ID (1.1.1.1) (Process 1) Grace-LSA (Interface GigabitEthernet0/1) LS age : 15 LS Type : Grace-LSA Link State ID : 0.0.2.6 Originating Router : 1.1.1.
Table 98 Command output Field Description Type Of LSA Type of LSA. Number Number of LSAs. Router-LSA Type 1 LSA. Network-LSA Type 2 LSA. Inter-Area-Prefix-LSA Type 3 LSA. Inter-Area-Router-LSA Type 4 LSA. AS-external-LSA Type 5 LSA. Link-LSA Type 8 LSA. Intra-Area-Prefix-LSA Type 9 LSA. Grace-LSA Type 11 LSA. Unknown-LSA Unknown LSA. Total Number Of LSAs Total number of LSAs.
0.0.0.0 2 1 1 0 1 0.0.0.1 1 0 1 0 1 Total 3 1 2 0 2 3 0 0 Table 99 Command output Field Description Area ID Area ID. Router Router-LSA number. Network Network-LSA number. InterPre Inter-Area-Prefix-LSA number. InterRou Inter-Area-Router-LSA number. IntraPre Intra-Area-Prefix-LSA number. Link Link-LSA number. Grace Grace-LSA number. ASE AS-external-LSA number. Total Total LSA number.
display ospfv3 next-hop OSPFv3 Router with ID (2.2.2.2) (Process 1) Neighbor-Id Next-Hop Interface 1.1.1.1 FE80::20F:E2FF:FE00:1 GE0/1 RefCount 1 Table 100 Command output Field Description Neighbor-Id Neighboring router ID. Next-hop Next-hop address. Interface Outbound interface. RefCount Reference count. display ospfv3 peer Use display ospfv3 peer to display OSPFv3 neighbor information.
If no process-id is specified, the information of all processes is displayed. If no interface or neighbor Router-ID is specified, the neighbor information of all interfaces is displayed. Examples # Display the neighbor information of OSPFv3 process 1 on an interface. display ospfv3 1 peer gigabitethernet 0/1 OSPFv3 Process (1) OSPFv3 Area (0.0.0.1) Neighbor ID Pri State Dead Time Interface 1.1.1.
Field Description Database Summary List Number of LSAs sent in DD packet. Link State Request List Number of LSAs in the link state request list. Link State Retransmission List Number of LSAs in the link state retransmission list. display ospfv3 peer statistic Use display ospfv3 peer statistic to display information about all OSPFv3 neighbors on the router—numbers of neighbors in different states.
Field Description 2-Way Indicates that mutual communication between the router and its neighbor is available. DR/BDR election is finished under this state (or higher). ExStart In this state, the router decides on the initial DD sequence number and master/slave relationship of the two parties. Exchange In this state, the router exchanges DD packets with the neighbor. Loading In this state, the router sends LSRs to request the neighbor for needed LSAs.
include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines If no process is specified, the link state request list information of all OSPFv3 processes is displayed. Examples # Display the information of OSPFv3 link state request list. display ospfv3 request-list OSPFv3 Router with ID (11.1.1.1) (Process 1) Interface GE0/1 Area-ID 0.0.0.
Syntax display ospfv3 [ process-id ] retrans-list [ { external | grace | inter-prefix | inter-router | intra-prefix | link | network | router } [ link-state-id ] [ originate-router ip-address ] | statistics ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters process-id: OSPFv3 process ID, in the range of 1 to 65535. external: Displays the AS-external LSA information of the OSPFv3 link state retransmission list.
Router-LSA 0.0.0.0 12.1.1.1 0x80000014 774 0xe5b0 Table 106 Command output Field Description Interface Interface name. Area-ID Area ID. Nbr-ID Neighbor router ID. LS-Type Type of LSA. LS-ID Link state ID. AdvRouter Advertising router. SeqNum LSA sequence number. Age Age of LSA. CkSum Checksum. # Display the statistics of OSPFv3 link state retransmission list. display ospfv3 retrans-list statistics OSPFv3 Router with ID (11.1.1.
abr-routes: Displays routes to ABR. asbr-routes: Displays routes to ASBR. all: Displays all routes. statistics: Displays the OSPFv3 routing table statistics. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
Table 109 Command output Field Description Intra-area-routes Number of Intra-area-routes. Inter-area-routes Number of inter-area routes. External-routes Number of external routes. display ospfv3 statistics Use display ospfv3 statistics to display outbound/inbound OSPFv3 packet statistics on associated interfaces.
Field Description Type Type of packet. Input Number of packets received by the interface. Output Number of packets sent by the interface. Hello Hello packet. DB Description Database description packet. Ls Req Link state request packet. Ls Upd Link state update packet. Ls Ack Link state acknowledgement packet. Discarded Number of discarded packets. display ospfv3 topology Use display ospfv3 topology to display OSPFv3 topology information.
display ospfv3 topology area 1 OSPFv3 Process (1) OSPFv3 Area (0.0.0.1) topology Type ID(If-Index) Rtr 1.1.1.1 Bits Metric -- Next-Hop Interface Rtr 2.2.2.2 Rtr 3.3.3.3 1 2.2.2.2 GE0/1 1 3.3.3.3 GE0/1 Rtr Net 4.4.4.4 1 4.4.4.4 GE0/1 4.4.4.4(983049) 1 0.0.0.0 GE0/1 Table 111 Command output Field Description Type Type of node. ID(If-Index) Router ID. Bits Flag bit. Metric Cost value. Next-Hop Next hop. Interface Outbound interface.
Examples # Display OSPFv3 virtual link information. display ospfv3 vlink Virtual Link VLINK1 to router 1.1.1.1 is up Transit area :0.0.0.1 via interface GigabitEthernet0/1, instance ID: 0 Local address: 2000:1::1 Remote address: 2001:1:1::1 Transmit Delay is 1 sec, State: P-To-P, Timer intervals configured, Hello: 10, Dead: 40, Wait: 40, Retransmit: 5 Hello due in 00:00:02 Adjacency state :Full Table 112 Command output Field Description Virtual Link VLINK1 to router 1.1.1.
Default command level 2: System level Parameters acl6-number: Specifies the ACL6 number, ranging from 2000 to 3999. ipv6-prefix ipv6-prefix-name: Specifies the name of an IPv6 prefix list, a string of up to 19 characters. bgp4+: Filters IPv6 BGP routes. direct: Filters direct routes. ospfv3 process-id: Specifies to filter the routes of an OSPFv3 process, which is in the range of 1 to 65535. ripng process-id: Specifies to filter the routes of a RIPng process, which in the range of 1 to 65535.
filter-policy import (OSPFv3 view) Use filter-policy import to configure OSPFv3 to filter routes computed from received LSAs. Use undo filter-policy import to remove the configuration. Syntax filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } import undo filter-policy import Default OSPFv3 does not filter routes computed from received LSAs. Views OSPFv3 view Default command level 2: System level Parameters acl6-number: Specifies an ACL number, ranging from 2000 to 3999.
[Sysname-ospfv3-1] filter-policy 3000 import import-route (OSPFv3 view) Use import-route to redistribute routes. Use undo import-route to disable routes redistribution. Syntax import-route protocol [ process-id | allow-ibgp ] [ cost value | route-policy route-policy-name | type type ] * undo import-route protocol [ process-id ] Default OSPFv3 does not redistribute routes from other protocols.
log-peer-change Use log-peer-change to enable the logging on neighbor state changes. Use undo log-peer-change to disable the logging. Syntax log-peer-change undo log-peer-change Views OSPFv3 view Default command level 2: System level Usage guidelines With this feature enabled, information about neighbor state changes of the current OSPFv3 process will display on the configuration terminal. Examples # Disable the logging on neighbor state changes of OSPFv3 process 100.
[Sysname-ospfv3-1] maximum load-balancing 6 ospfv3 Use ospfv3 to enable an OSPFv3 process and enter OSPFv3 view. Use undo ospfv3 to disable an OSPFv3 process. Syntax ospfv3 [ process-id ] [ vpn-instance vpn-instance-name ] undo ospfv3 [ process-id ] Default The system runs no OSPFv3 process. Views System view Default command level 2: System level Parameters process-id: OSPFv3 process ID, ranging from 1 to 65535. The process ID defaults to 1. vpn-instance vpn-instance-name: Specifies a VPN.
Views Interface view Default command level 2: System level Parameters process-id: OSPFv3 process ID, in the range of 1 to 65535. area-id: Area ID, a decimal integer (in the range of 0 to 4294967295) that is translated into IPv4 address format by the system or an IPv4 address. instance-id: Instance ID of an interface, in the range of 0 to 255. The default is 0. Examples # Enable OSPFv3 process 1 on GigabitEthernet 0/1 that belongs to instance 1 and specify area 1 for the interface.
system-view [Sysname] interface gigabitethernet 0/1 [Sysname-GigabitEthernet0/1] ospfv3 cost 33 instance 1 ospfv3 dr-priority Use ospfv3 dr-priority to set the DR priority for an interface in an instance. Use undo ospfv3 dr-priority to restore the default value. Syntax ospfv3 dr-priority priority [ instance instance-id ] undo ospfv3 dr-priority [ priority ] [ instance instance-id ] Default The DR priority on an interface defaults to 1.
Views Interface view Default command level 2: System level Parameters instance-id: Instance ID, in the range of 0 to 255, which defaults to 0. Examples # Configure GigabitEthernet 0/1 that belongs to instance 1 to ignore MTU check during DD packet exchange. system-view [Sysname] interface gigabitethernet 0/1 [Sysname-GigabitEthernet0/1] ospfv3 mtu-ignore instance 1 ospfv3 network-type Use ospfv3 network-type to set the network type for an OSPFv3 interface.
[Sysname] interface gigabitethernet0/1 [Sysname-GigabitEthernet0/1] ospfv3 network-type nbma ospfv3 peer Use ospfv3 peer to specify a neighbor and the DR priority of the neighbor. Use undo ospfv3 peer to remove the configuration.
Default command level 2: System level Parameters seconds: Dead time in seconds, in the range of 1 to 65535. instance-id: Instance ID of an interface, in the range of 0 to 255, which defaults to 0. Usage guidelines OSPFv3 neighbor dead time: if an interface receives no hello packet from a neighbor after dead time elapses, the interface considers the neighbor dead. The dead seconds value is at least four times the Hello seconds value and must be identical on interfaces attached to the same network segment.
Related commands ospfv3 timer dead ospfv3 timer retransmit Use ospfv3 timer retransmit to configure the LSA retransmission interval for an interface in an instance. Use undo ospfv3 timer retransmit to restore the default. Syntax ospfv3 timer retransmit interval [ instance instance-id ] undo ospfv3 timer retransmit [ interval ] [ instance instance-id ] Default The interval defaults to 5 seconds.
Default command level 2: System level Parameters seconds: Poll interval in seconds, in the range of 1 to 65535. instance-id: Interface instance ID, in the range of 0 to 255. The default is 0. Examples # Set the poll timer interval on GigabitEthernet 0/1 to 130 seconds. system-view [Sysname] interface gigabitethernet0/1 [Sysname-GigabitEthernet0/1] ospfv3 timer poll 130 ospfv3 trans-delay Use ospfv3 trans-delay to configure the transmission delay for an interface with an instance ID.
Syntax preference [ ase ] [ route-policy route-policy-name ] preference undo preference [ ase ] Default The preference for OSPFv3 internal routes is 10 and that for OSPFv3 external routes is 150. Views OSPFv3 view Default command level 2: System level Parameters ase: Applies the preference to OSPFv3 external routes. If the keyword is not specified, the preference applies to OSPFv3 internal routes. route-policy route-policy-name: References a routing policy to set preference for specific routes.
Usage guidelines Router ID is the unique identifier of a device running an OSPFv3 process in the AS. The OSPFv3 process cannot run without a Router ID. Make sure that different processes have different Router IDs. By configuring different router IDs for different processes, you can run multiple OSPFv3 processes on a router. Examples # Configure the Router ID as 10.1.1.3 for OSPFv3 process 1. system-view [Sysname] ospfv3 1 [Sysname-ospfv3-1] router-id 10.1.1.
[Sysname] ospfv3 200 [Sysname-ospfv3-200] router-id 20.18.0.7 [Sysname-ospfv3-200] silent-interface gigabitethernet 0/1 spf timers Use spf timers to configure the delay interval and hold interval for OSPFv3 SPF calculation. Use undo spf timers to restore the default. Syntax spf timers delay-interval hold-interval undo spf timers Default The delay interval and hold interval default to 5s and 10s.
Default An area is not configured as a stub area. Views OSPFv3 area view Default command level 2: System level Parameters no-summary: This argument is only applicable to the ABR of a stub area. With this keyword configured, the ABR advertises only a default route in an Inter-Area-Prefix-LSA into the stub area. No AS-external-LSA, Inter-Area-Router-LSA, or other Inter-Area-Prefix-LSA is advertised in the area. The stub area of this kind is also known as a "totally stub area.
trans-delay seconds: Specifies the delay interval in seconds for sending LSA packets, ranging from 1 to 3600, with the default as 1. dead seconds: Specifies the neighbor dead time in seconds, ranging from 1 to 32768, with the default as 40. This value must be equal to the dead seconds configured on the virtual link peer, and at least four times the value of hello seconds. instance Instance-id: Instance ID of an virtual link, in the range of 0 to 255, with the default as 0.
IPv6 BGP configuration commands For more information about routing policy configuration commands in this document, see "Routing policy configuration commands." The term "router" in this document refers to both routers and LB module. aggregate (IPv6 address family view) Use aggregate to create an IPv6 summary route in the IPv6 BGP routing table. Use undo aggregate to remove an IPv6 summary route.
Keywords Function detail-suppressed This keyword does not suppress the summary route, but it suppresses the advertisement of all the more specific routes. To summarize only some specific routes, use the peer filter-policy command. suppress-policy Used to create a summary route and suppress the advertisement of some summarized routes. If you want to suppress some routes selectively and leave other routes still advertised, use the if-match clause of the route-policy command.
If you do not provide the ibgp or the ebgp keyword, this command configures load balancing for all IPv6 BGP routes. After you execute the balance ibgp number or the balance ebgp number command, the balance number command cannot be executed. To execute the balance number command, you must first use the undo form of the balance ibgp number or balance ebgp number command to remove the former configuration. Examples # Set the number of IPv6 BGP ECMP routes to 2.
[Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] bestroute as-path-neglect bestroute compare-med (IPv6 address family view) Use bestroute compare-med to enable the comparison of the MED for paths from each AS. Use undo bestroute compare-med to disable this comparison. Syntax bestroute compare-med undo bestroute compare-med Default This comparison is not enabled.
Usage guidelines With this feature enabled, the system can only compare the MED for paths from peers within the confederation. Paths from external ASs are advertised throughout the confederation without MED comparison. Examples # Compare the MED for paths from peers within the confederation.
Syntax dampening [ half-life-reachable half-life-unreachable reuse suppress ceiling | route-policy route-policy-name ] * undo dampening Default No route dampening is configured. Views IPv6 address family view Default command level 2: System level Parameters half-life-reachable: Half-life for reachable routes, in the range of 1 to 45 minutes. By default, the value is 15 minutes. half-life-unreachable: Half-life for unreachable routes, in the range of 1 to 45 minutes. By default, the value is 15 minutes.
default local-preference (IPv6 address family view/IPv6 BGP-VPN instance view) Use default local-preference to configure the default local preference. Use undo default local-preference to restore the default value. Syntax default local-preference value undo default local-preference Default The default local preference is 100. Views IPv6 address family view, IPv6 BGP-VPN instance view Default command level 2: System level Parameters value: Default local preference, in the range of 0 to 4294967295.
Default command level 2: System level Parameters med-value: MED value, in the range of 0 to 4294967295. Usage guidelines The multi-exit discriminator (MED) is an external metric of a route. Different from local preference, MED is exchanged between ASs and will stay in the AS once it enters the AS. The route with a lower MED is preferred.
display bgp ipv6 group Use display bgp ipv6 group to display IPv6 peer group information. Syntax display bgp ipv6 group [ ipv6-group-name ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters ipv6-group-name: Peer group name, a string of 1 to 47 characters. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide.
Field Description AS number of the peer group. Remote AS If the peer group AS number has been specified with the peer ipv6-address as-number as-number command, the specified AS number is displayed in this field. Otherwise, a "Remote AS number not specified" prompt is displayed. Types of the peer group: Type • internal—IBGP peer group. • external—EBGP peer group. Maximum allowed prefix number Maximum allowed prefix number. Threshold Threshold value. Configured hold timer value Holdtime.
display bgp ipv6 network Use display bgp ipv6 network to display IPv6 routes advertised with the network command. Syntax display bgp ipv6 network [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide.
Views Any view Default command level 1: Monitor level Parameters as-regular-expression: AS path regular expression, a string of 1 to 80 characters. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
Syntax display bgp ipv6 peer [ group-name log-info | ipv4-address verbose | ipv6-address { log-info | verbose } | verbose ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters group-name: Name of an IPv4 or IPv6 peer group, a string of 1 to 47 characters. ipv4-address: IPv4 address of a peer. ipv6-address: Specifies the IPv6 address of a peer to be displayed. log-info: Displays log information of the specified peer.
Field Description Peer IPv6 address of the peer. AS AS number. MsgRcvd Messages received. MsgSent Messages sent. OutQ Messages to be sent. PrefRcv Number of prefixes received. Up/Down Duration of a session/duration of present state (when no session is established) State Peer state. # Display the detailed information of IPv6 peer 1::1. display bgp ipv6 peer 1::1 verbose BGP Peer is 1::1, remote AS 100, Type: EBGP link BGP version 4, remote router ID 45.1.1.
display bgp ipv6 peer verbose BGP Peer is 2::4, remote AS 1, Type: IBGP link BGP version 4, remote router ID 1.1.1.
Field Description Minimum time between advertisement runs is 30 seconds Minimum interval between advertisements. Optional capabilities enabled on the peer: • Route-refresh is enabled. • The IPv6 BGP peer supports the ORF capability based on IP Optional capabilities prefix. The capability value is 64.
Field Description Error refers to the error code, which identifies the type of the Notification. Error/SubError SubError refers to the error subcode of the Notification, which identifies the specific information about the reported error. display bgp ipv6 peer received ipv6-prefix Use display bgp ipv6 peer received ipv6-prefix to display the prefix entries in the ORF information of the specified BGP peer.
Field Description ge Greater-equal, indicating that the mask length must be greater than or equal to the specific value. le Less-equal, indicating that the mask length must be less than or equal to the specific value. display bgp ipv6 routing-table Use display bgp ipv6 routing-table to display IPv6 BGP routing table information.
*> Network : 40:40:: PrefixLen : 64 NextHop : 40:40::40:1 LocPrf : PrefVal : 0 Label : NULL MED : 0 Path/Ogn: i Table 121 Command output Field Description Local router ID Local router ID. Status codes: Status codes • • • • • • • • * – valid—Valid route. ^ - VPNv4 best—Best VPNv4 route. > – best—Best route. d – damped—Dampened route. h – history—History route. i – internal—Internal route. s –suppressed—Suppressed route. S – Stale—Stale route.
Views Any view Default command level 1: Monitor level Parameters as-path-acl-number: Number of an AS path ACL permitted by which to display routing information, ranging from 1 to 256. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
&<1-13>: Indicates that the argument before it can be entered up to 13 times. no-advertise: Displays IPv6 BGP routes that cannot be advertised to any peer. no-export: Displays IPv6 BGP routes that cannot be advertised out of the AS; if a confederation exists, it displays IPv6 BGP routes that cannot be advertised out of the confederation, but can be advertised to other sub ASs in the confederation.
adv-community-list-number: Specifies an advanced community-list number, in the range of 100 to 199. comm-list-name: Specifies a community list name, a string of 1 to 31 characters (not all are numbers). whole-match: Displays routes exactly matching the specified basic-community-list-number. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide.
Examples # Display IPv6 BGP dampened routes. display bgp ipv6 routing-table dampened BGP Local router ID is 1.1.1.1 Status codes: * - valid, ^ - VPNv4 best, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? - incomplete *d Network : 111:: PrefixLen : 64 From Reuse : 122::1 : 00:29:34 Path/Ogn: 200? Table 122 Command output Field Description From Source IP address of a route. Reuse Time for reuse.
Ceiling Value : 3000 Reuse Value : 1000 Reach HalfLife Time(in second) : 600 Unreach HalfLife Time(in second) : 600 Suppress-Limit : 2000 Table 123 Command output Field Description Maximum Suppress Time Maximum suppress time. Ceiling Value Upper limit of penalty value. Reuse Value Reuse value. Reach HalfLife Time(in second) Half-life time of active routes. Unreach HalfLife Time(in second) Half-life time of inactive routes. Suppress-Limit Suppress value.
Origin : i - IGP, e - EGP, ? - incomplete *> Network : 222:: PrefixLen : 64 NextHop : 122::2 LocPrf : PrefVal : 0 Label : NULL MED : 0 Path/Ogn: 100 ? For command output, see Table 121. display bgp ipv6 routing-table flap-info Use display bgp ipv6 routing-table flap-info to display IPv6 BGP route flap statistics.
From : 122::1 Duration : 00:13:47 Flaps : 3 Reuse : 00:16:36 Path/Ogn : 200? Table 124 Command output Field Description Flaps Number of flaps. Duration Flap duration. Reuse Reuse time of the route. For command output, see Table 121. display bgp ipv6 routing-table peer Use display bgp ipv6 routing-table peer to display the routing information advertised to or received from the specified IPv4 or IPv6 BGP peer.
Total Number of Routes: 2 BGP Local router ID is 20.20.20.1 Status codes: * - valid, ^ - VPNv4 best, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? - incomplete *> Network : 20:20:: PrefixLen : 64 NextHop : 20:20::20:1 LocPrf : PrefVal : 0 Label : NULL MED : 0 Path/Ogn: i *> Network : 40:40:: PrefixLen : 64 NextHop : 30:30::30:1 LocPrf : PrefVal : 0 Label : NULL MED : 0 Path/Ogn: 300 i For command output, see Table 121.
Path/Ogn: 100 i For command output, see Table 121. display bgp ipv6 routing-table statistic Use display bgp ipv6 routing-table statistic to display IPv6 BGP routing statistics. Syntax display bgp ipv6 routing-table statistic [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide.
Parameters acl6-number: Specifies the number of an ACL6 used to match against the destination of routing information. The number is in the range of 2000 to 3999. ipv6-prefix-name: Specifies the name of an IPv6 prefix list used to match against the destination of routing information. The name is a string of 1 to 19 characters. protocol: Filters routes redistributed from the routing protocol. It can be direct, ospfv3, ripng, or static. If no protocol is specified, all routes will be filtered when advertised.
Syntax filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } import undo filter-policy import Default No inbound routing information is filtered. Views IPv6 address family view, IPv6 BGP-VPN instance view Default command level 2: System level Parameters acl6-number: Number of an IPv6 ACL used to match against the destination address field of routing information, ranging from 2000 to 3999.
group (IPv6 address family view) Use group to create a peer group. Use undo group to delete a peer group. Syntax group ipv6-group-name [ internal | external ] undo group ipv6-group-name Views IPv6 address family view Default command level 2: System level Parameters ipv6-group-name: Name of an IPv6 peer group, a string of 1 to 47 characters. internal: Creates an IBGP peer group. external: Creates an EBGP peer group, which can be a group of another sub AS in the confederation.
Default command level 2: System level Parameters protocol: Redistributes routes from the specified protocol, which can be direct, ospfv3, ripng and static. process-id: Process ID, in the range of 1 to 65535. The default is 1. It is available only when the protocol is ospfv3 or ripng. med-value: Applies the MED value to redistributed routes. The value is in the range of 0 to 4294967295. If not specified, the cost of the redistributed route is used as its MED in the IPv6 BGP routing domain.
system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] # Enter IPv6 BGP-VPN instance view. system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family vpn-instance vpn1 [Sysname-bgp-ipv6-vpn1] network (IPv6 address family view/IPv6 BGP-VPN instance view) Use network to advertise a network to the IPv6 BGP routing table. Use undo network to remove an entry from the IPv6 BGP routing table.
peer advertise-community (IPv6 address family view) Use peer advertise-community to advertise the community attribute to a peer/peer group. Use undo peer advertise-community to remove the configuration. Syntax peer { group-name | ipv4-address | ipv6-address } advertise-community undo peer { group-name | ipv4-address | ipv6-address } advertise-community Default No community attribute is advertised to any peer group/peer.
ipv4-address: IPv4 address of a peer. ipv6-address: IPv6 address of a peer. Examples # Advertise the extended community attribute to the peer 1:2::3:4.
Use undo peer ipv6-address to delete a peer. Syntax peer { ipv6-group-name | ipv6-address } as-number as-number undo peer ipv6-group-name as-number undo peer ipv6-address Views IPv6 address family view Default command level 2: System level Parameters ipv6-group-name: Name of a peer group, a string of 1 to 47 characters. ipv6-address: IPv6 address of a peer. as-number: AS number of the peer/peer group, in the range of 1 to 4294967295. Examples # Configure peer group test in AS 200.
[Sysname-bgp] ipv6-family vpn-instance vpn1 [Sysname-bgp-ipv6-vpn1] peer 2001::1 as-number 200 peer as-path-acl (IPv6 address family view) Use peer as-path-acl to specify an AS path ACL to filter routes incoming from or outgoing to a peer/peer group. Use undo peer as-path-acl to remove the configuration.
undo peer { group-name | ip-address | ipv6-address } capability-advertise orf ipv6-prefix { both | receive | send } Default The ORF capability is not enabled for a BGP peer or peer group. Views IPv6 address family view Default command level 2: System level Parameters group-name: Name of a peer group, a string of 1 to 47 characters. ip-address: IP address of a peer. ipv6-address: IPv6 address of a peer. both: Supports sending and receiving route-refresh messages carrying the ORF information.
peer capability-advertise orf non-standard (IPv6 address family view) Use peer capability-advertise orf non-standard to enable the non-standard ORF capability (the early implementation of ORF is different from that defined in RFC) for a BGP peer or peer group. Use undo peer capability-advertise orf non-standard to disable the non-standard ORF capability for the BGP peer or peer group.
Default Route-refresh is enabled. Views IPv6 address family view Default command level 2: System level Parameters ipv6-group-name: Name of a peer group, a string of 1 to 47 characters. ipv6-address: IPv6 address of a peer. Examples # Disable route-refresh of peer 1:2::3:4.
system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] peer 2001::1 as-number 200 [Sysname-bgp-af-ipv6] peer 2001::1 capability-advertise suppress-4-byte-as peer capability-advertise suppress-4-byte-as (IPv6 BGP-VPN instance view) Use peer capability-advertise suppress-4-byte-as to enable 4-byte AS number suppression. Use undo peer capability-advertise suppress-4-byte-as to disable the function.
Syntax peer { ipv6-group-name | ipv6-address } connect-interface interface-type interface-number undo peer { ipv6-group-name | ipv6-address } connect-interface Default BGP uses the outbound interface of the best route to the IPv6 BGP peer/peer group as the source interface for establishing a TCP connection. Views IPv6 address family view Default command level 2: System level Parameters ipv6-group-name: Name of a peer group, a string of 1 to 47 characters. ipv6-address: IPv6 address of a peer.
Default command level 2: System level Parameters group-name: Name of an IPv4 or IPv6 peer group, a string of 1 to 47 characters. ipv4-address: IPv4 address of a peer. ipv6-address: IPv6 address of a peer. route-policy-name: Name of a routing policy, a string of 1 to 63 characters. Usage guidelines Using this command does not require availability of the default route in the routing table.
Syntax peer { ipv4-group-name | ipv4-address | ipv6-address } enable undo peer { ipv4-group-name | ipv4-address | ipv6-address } enable Default No IPv4 peer or peer group is enabled. Views IPv6 address family view Default command level 2: System level Parameters ipv4-group-name: Name of an IPv4 peer group, a string of 1 to 47 characters. The IPv4 peer group should be created beforehand. ipv4-address: IPv4 address of a peer. ipv6-address: IPv6 address of a peer.
Default command level 2: System level Parameters ipv6-group-name: Name of a peer group, a string of 1 to 47 characters. ipv6-address: IPv6 address of a peer. as-number: Local AS number, in the range of 1 to 4294967295. Examples # Configure a fake AS number of 200 for the peer group test.
[Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] peer 1:2::3:4 filter-policy 2000 export peer group (IPv6 address family view) Use peer group to add a peer to a configured peer group. Use undo peer group to delete a specified peer from a peer group. Syntax peer { ipv4-address | ipv6-address } group group-name [ as-number as-number ] undo peer ipv6-address group group-name Default The peer does not belong to any peer group.
Views IPv6 address family view Default command level 2: System level Parameters ipv6-group-name: Name of a peer group, a string of 1 to 47 characters. ipv6-address: IPv6 address of a peer. Usage guidelines After the peer ignore command is executed, the system terminates the active sessions with the specified peer or peer group and clears all related routing information. For a peer group, all sessions with the peer group are terminated. Examples # Terminate the session with peer 1:2::3:4.
Examples # Reference the IPv6 prefix list list1 to filter routes outgoing to peer 1:2::3:4. system-view [Sysname] ip ipv6-prefix list1 permit 2002:: 64 [Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] peer 1:2::3:4 ipv6-prefix list1 export peer keep-all-routes (IPv6 address family view) Use peer keep-all-routes to save the original routing information from a peer or peer group, including even routes that failed to pass the inbound policy.
Default The logging is enabled. Views IPv6 address family view Default command level 2: System level Parameters ipv6-group-name: Name of a peer group, a string of 1 to 47 characters. ipv6-address: IPv6 address of a peer. Examples # Enable the logging of session state and event information of peer 1:2::3:4.
[Sysname-bgp-af-ipv6] peer test next-hop-local peer password Use peer password to configure BGP to perform MD5 authentication when a TCP connection is being established with a peer/peer group. Use undo peer password to restore the default. Syntax peer { group-name | ipv6-address } password { cipher | simple } password undo peer { group-name | ipv6-address } password Default No MD5 authentication is performed for TCP connection establishment.
peer preferred-value (IPv6 address family view) Use peer preferred-value to assign a preferred value to routes received from a peer or peer group. Use undo peer preferred-value to restore the default. Syntax peer { ipv6-group-name | ipv6-address } preferred-value value undo peer { ipv6-group-name | ipv6-address } preferred-value Default Routes received from a peer or peer group have a preferred value of 0.
Default Routes received from a peer or peer group have a preferred value of 0. Views IPv6 BGP-VPN instance view Default command level 2: System level Parameters ipv6-address: IPv6 address of a peer. value: Preferred value, in the range of 0 to 65535. Usage guidelines Routes learned from peers each have an initial preferred value. Among multiple routes to the same destination, the route with the biggest value is selected.
Parameters ipv6-group-name: Name of a peer group, a string of 1 to 47 characters. ipv6-address: IPv6 address of a peer. Usage guidelines The command does not take effect if the BGP update has both the public AS number and private AS number. The range of private AS number is from 64512 to 65535. Examples # Configure BGP updates sent to the peer 1:2::3:4 to not carry private AS numbers.
• reflector cluster-id peer route-limit (IPv6 address family view) Use peer route-limit to set the maximum number of prefixes that can be received from a peer/peer group. Use undo peer route-limit to restore the default. Syntax peer { group-name | ipv4-address | ipv6-address } route-limit prefix-number [ { alert-only | reconnect reconnect-time } | percentage ] * undo peer { group-name | ipv4-address | ipv6-address } route-limit Default The router has no limit on prefixes from a peer/peer group.
peer route-policy (IPv6 address family view) 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. Syntax peer { group-name | ipv4-address | ipv6-address } route-policy route-policy-name { import | export } undo peer { group-name | ipv4-address | ipv6-address } route-policy route-policy-name { import | export } Default No routing policy is specified for the peer (group).
Use undo peer route-policy to remove the configuration. Syntax peer ipv6-address route-policy route-policy-name { export | import } undo peer ipv6-address [ route-policy route-policy-name { export | import } ] Default No routing policy is specified for the peer (group). Views IPv6 BGP-VPN instance view Default command level 2: System level Parameters ipv6-address: IPv6 address of a peer. route-policy-name: Name of a routing policy, a string of 1 to 63 characters.
Views IPv6 address family view Default command level 2: System level Parameters ipv6-group-name: Name of a peer group, a string of 1 to 47 characters. ipv6-address: IPv6 address of a peer. interval: Specifies the minimum interval for sending the same update to a peer (group) from 0 to 600 seconds. Examples # Specify the interval for sending the same update to the peer 1:2::3:4 as 10 seconds.
peer timer (IPv6 address family view) Use peer timer to configure the keepalive interval and the holdtime interval for a peer or peer group. Use undo peer timer to restore the default. Syntax peer { ipv6-group-name | ipv6-address } timer keepalive keepalive hold holdtime undo peer { ipv6-group-name | ipv6-address } timer Default keepalive interval defaults to 60 seconds, and holdtime interval defaults to 180 seconds.
[Sysname-bgp-af-ipv6] peer test timer keepalive 0 hold 0 Related commands timer preference (IPv6 address family view/IPv6 BGP-VPN instance view) Use preference to configure preferences for EBGP, IBGP, and local routes. Use undo preference to restore the default.
undo reflect between-clients Default Route reflection between clients is enabled. Views IPv6 address family view Default command level 2: System level Usage guidelines After a route reflector is configured, it reflects routes between clients. If the clients are fully meshed, HP recommends that you disable route reflection on the route reflector to reduce costs. Examples # Enable route reflection between clients.
Examples # Set 50 as the cluster ID for the route reflector, which is one of multiple route reflectors in the cluster. system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] reflector cluster-id 50 Related commands • peer reflect-client • reflect between-clients refresh bgp ipv6 Use refresh bgp ipv6 to soft reset specified IPv4/IPv6 BGP connections.
reset bgp ipv6 Use reset bgp ipv6 to reset specified IPv4/IPv6 BGP connections. Syntax reset bgp ipv6 { as-number | ipv4-address | ipv6-address | all | external | group group-name | internal } Views User view Default command level 2: System level Parameters as-number: Resets the IPv6 BGP connections to peers in the specified AS. The AS number is in the range of 1 to 4294967295. ipv4-address: Resets the connection to the specified IPv4 BGP peer.
Examples # Clear the dampened information of routes to 2345::/64 and release suppressed routes. reset bgp ipv6 dampening 2345:: 64 reset bgp ipv6 flap-info Use reset bgp ipv6 flap-info to clear IPv6 routing flap statistics.
Default command level 2: System level Parameters router-id: Router ID in IP address format. Usage guidelines To run IPv6 BGP protocol, a router must have a router ID, an unsigned 32-bit integer and the unique ID of the router in the AS. Specify a router ID manually, or the system selects the highest IPv4 address among loopback interface addresses as the router ID.
Examples # Enable the route synchronization between IPv6 BGP and IGP. system-view [Sysname] bgp 100 [Sysname-bgp] ipv6-family [Sysname-bgp-af-ipv6] synchronization timer (IPv6 address family view) Use timer to specify the IPv6 BGP keepalive interval and holdtime interval. Use undo timer to restore the default. Syntax timer keepalive keepalive hold holdtime undo timer Default The keepalive and holdtime intervals are 60 seconds and 180 seconds, respectively.
Related commands peer timer 519
Basic IP routing commands The term "router" in this document refers to both routers and LB module. display ipv6 routing-table Use display ipv6 routing-table to display brief IPv6 routing table information, including destination IP address and prefix, protocol type, priority, metric, next hop and output interface. Use display ipv6 routing-table verbose to display detailed information about all IPv6 routes, including both active and inactive routes.
NextHop : ::1 Preference: 0 Interface : InLoop0 Cost : 0 Table 126 Command output Field Description Destination IPv6 address of the destination network/host. NextHop Next hop address of the route. Preference Preference of the route. Interface Output interface. Protocol Protocol that installed the route. Cost Cost of the route. # Display detailed routing table information.
Field Description State of the route: State Cost Tunnel ID Label Age • • • • Active. Inactive. Adv (advertised) NoAdv (not advertised) Cost of the route. Tunnel ID. At present, this field is not supported. Label. At present, this field is not supported. Time that has elapsed since the route was generated. display ipv6 routing-table acl Use display ipv6 routing-table acl to display routing information permitted by a specific IPv6 basic ACL.
display ipv6 routing-table acl 2000 Routes Matched by Access list 2000 : Summary Count : 2 Destination : ::1/128 Protocol : Direct NextHop : ::1 Preference: 0 Interface : InLoop0 Cost : 0 Destination : 1:1::/64 Protocol : Static NextHop : :: Preference: 60 Interface : NULL0 Cost : 0 For command output, see Table 126. display ipv6 routing-table ipv6-address Use display ipv6 routing-table ipv6-address to display information about routes to an IPv6 destination address.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines Executing the command with different parameters yields different output: • display ipv6 routing-table ipv6-address: { { The system ANDs the input destination IPv6 address with the prefix length in each route entry. The system ANDs the destination IPv6 address in each route entry with the prefix length in each entry.
display ipv6 routing-table 10::1 100 Routing Table: Public Summary Count: 2 Destination: 10::/64 Protocol NextHop : :: Preference: 60 : Static Interface : NULL0 Cost : 0 Destination: 10::/68 Protocol : Static NextHop : :: Preference: 60 Interface : NULL0 Cost : 0 # Display brief information about the routes with destination IPv6 address 10::1 and the longest prefix length.
display ipv6 routing-table ipv6-prefix Use display ipv6 routing-table ipv6-prefix to display routes permitted by an IPv6 prefix list. Syntax display ipv6 routing-table [ vpn-instance vpn-instance-name ] ipv6-prefix ipv6-prefix-name [ verbose ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters vpn-instance vpn-instance-name: Specifies a VPN by its name, a case-sensitive string of 1 to 31 characters.
Default command level 1: Monitor level Parameters vpn-instance vpn-instance-name: Specifies a VPN 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, ospfv3, ripng, and static. inactive: Displays information about inactive routes. Without the keyword, the command displays information about all routes.
Default command level 1: Monitor level Parameters vpn-instance vpn-instance-name: Specifies a VPN by its name, a case-sensitive string of 1 to 31 characters. Without this option, the command displays routing information for the public network. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
Default command level 2: System level Parameters vpn-instance vpn-instance-name: Clears route statistics for a VPN specified by its name, a case-sensitive string of 1 to 31 characters. Without this option, the command clears routing statistics for the public network. protocol: Clears route statistics for an IPv6 routing protocol. It can be bgp4+, direct, ospfv3, ripng, or static. all: Clears route statistics for all IPv6 routing protocols. Examples # Clear route statistics for the public network.
IPv6 policy-based routing configuration commands apply default output-interface Use apply default output-interface to set a default output interface. Use undo apply default output-interface to remove the configuration.
Views IPv6 policy node view Default command level 2: System level Parameters ipv6-address: Specifies the default next hop IPv6 address. Usage guidelines This command only applies to packets not finding a match in the routing table. You can specify up to five default next hops for per-flow load balancing. With a next hop specified, the undo apply ipv6-address default next-hop command removes the specified default next hop.
Examples # Set a next hop of 1::1 for IPv6 packets. system-view [Sysname] ipv6 policy-based-route aa permit node 11 [Sysname-pbr6-aa-11] apply ipv6-address next-hop 1::1 apply ipv6-precedence Use apply ipv6-precedence to set a preference or preference type for IPv6 packets. Use undo apply ipv6-precedence to remove the configuration.
Use undo apply output-interface to remove the configuration. Syntax apply output-interface interface-type interface-number undo apply output-interface [ interface-type interface-number ] Views IPv6 policy node view Default command level 2: System level Parameters interface-type interface-number: Specifies an interface by its type and number. Usage guidelines Five output interfaces at most can be specified for per-flow load sharing. A specified output interface must be P2P type.
exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines If no policy name is specified, this command displays information about all policies. If a policy name is specified, this command displays information about the specified policy. Examples # Display all IPv6 policy information.
Examples # Display information about IPv6 local PBR and IPv6 interface PBR. display ipv6 policy-based-route Policy Name interface pr02 local pr01 GigabitEthernet 0/1 Table 131 Command output Field Description Policy Name Routing policy name. Local Local PBR. GigabitEthernet 0/1 The policy is applied to GigabitEthernet 0/1 to implement IPv6 PBR. display ipv6 policy-based-route setup Use display ipv6 policy-based-route setup to display PBR configuration.
Interface GigabitEthernet0/1 policy based routing configuration information: policy-based-route: test permit node 6: if-match acl6 2000 apply ipv6-address next-hop 1::1 # Display IPv6 local PBR configuration. display ipv6 policy-based-route setup local Local policy based routing configuration information: policy-based-route: test permit node 6: if-match acl6 2000 apply ipv6-address next-hop 1::1 Table 132 Command output Field Description policy Name Policy name.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Default command level 2: System level Parameters acl6-number: Specifies the IPv6 ACL number, in the range of 2000 to 3999. The number of a basic IPv6 ACL ranges from 2000 to 2999 and that of an advanced IPv6 ACL ranges from 3000 to 3999. Examples # Permit the packets matching ACL 2000. system-view [Sysname] ipv6 policy-based-route aa permit node 10 [Sysname-pbr6-aa-10] if-match acl6 2000 if-match packet-length Use if-match packet-length to define a packet length match criterion.
Default IPv6 local PBR is not configured. Views System view Default command level 2: System level Parameters policy-name: Specifies the policy name, a string of 1 to 19 characters. Usage guidelines You can configure only one IPv6 policy for local PBR. If you perform this command multiple times, only the last specified policy takes effect. 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-GigabitEthernet0/1] ipv6 policy-based-route AAA ipv6 policy-based-route (system view) Use ipv6 policy-based-route to create an IPv6 policy node, and enter IPv6 policy node view. If the specified IPv6 policy node already exists, the command directly places you into IPv6 policy node view. Use undo ipv6 policy-based-route to remove an IPv6 policy, an IPv6 policy node, or both.
Examples # Clear all IPv6 PBR statistics.
Routing policy configuration commands The common routing policy configuration commands are applicable to both IPv4 and IPv6. Common routing policy configuration commands apply as-path Use apply as-path to apply the specified AS numbers to BGP routes. Use undo apply as-path to remove the clause configuration. Syntax apply as-path as-number&<1-10> [ replace ] undo apply as-path Default No AS_PATH attribute is set.
Use undo apply comm-list to remove the clause configuration. Syntax apply comm-list { comm-list-number | comm-list-name } delete undo apply comm-list Default No community attributes are removed from BGP routes. Views Routing policy view Default command level 2: System level Parameters comm-list-number: Specifies a basic community list by its number in the range of 1 to 99 or an advanced community list by its number in the range of 100 to 199.
aa:nn: Community number. Both aa and nn are in the range of 0 to 65535. &<1-16>: Indicates that the argument before it can be entered up to 16 times. internet: Sets the internet community attribute for BGP routes. Routes with this attribute can be advertised to all BGP peers. no-advertise: Sets the no-advertise community attribute for BGP routes. Routes with this attribute cannot be advertised to any peers. no-export: Sets the no-export community attribute for BGP routes.
Examples # Configure node 10 in permit mode of routing policy policy1. Set a cost of 120 for routing information whose outbound interface is GigabitEthernet 0/1. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy] if-match interface gigabitethernet 0/1 [Sysname-route-policy] apply cost 120 apply cost-type Use apply cost-type to set a cost type for routing information. Use undo apply cost-type to remove the clause configuration.
Views Routing policy view Default command level 2: System level Parameters rt route-target: Sets the route target (RT) extended community attribute, which is a string of 3 to 21 characters. soo site-of-origin: Sets the Site of Origin (SoO) extended community attribute, which is a string of 3 to 21 characters. A route-target or site-of-origin has one of the following forms: • 16-bit AS number—32-bit self-defined number, for example, 101:3.
Default command level 2: System level Parameters preference: Local preference for BGP routes, in the range of 0 to 4294967295. Examples # Configure node 10 in permit mode of routing policy policy1. If a route matches AS path list 1, configure a local preference of 130 for the route.
Use undo apply preference to remove the clause configuration. Syntax apply preference preference undo apply preference Default No preference is set for a routing protocol. Views Routing policy view Default command level 2: System level Parameters preference: Routing protocol preference, in the range of 1 to 255. Usage guidelines If you have set preferences for routing protocols with the preference command, using the apply preference command sets a new preference for the matching routing protocol.
Examples # Configure node 10 in permit mode of routing policy policy1. Set a preferred value of 66 for BGP routing information matching AS path list 1. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy] if-match as-path 1 [Sysname-route-policy] apply preferred-value 66 apply tag Use apply tag to set a specified tag for RIP or OSPF routing information. Use undo apply tag to remove the clause configuration.
Default command level 2: System level Parameters node-number: Routing policy node number, in the range of 0 to 65535. Usage guidelines The specified next node must have a larger number than the current node number. Example # Specify the next node 20 for node 10 of routing policy policy1. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy] continue 20 display ip as-path Use display ip as-path to display BGP AS path list information.
Field Description Mode Match mode: permit or deny. Expression Regular expression for matching. Related commands • apply as-path • if-match as-path • ip as-path display ip community-list Use display ip community-list to display BGP community list information.
• if-match community • ip community-list display ip extcommunity-list Use display ip extcommunity-list to display BGP extended community list information. Syntax display ip extcommunity-list [ ext-comm-list-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters ext-comm-list-number: Specifies an extended community list by its number, in the range of 1 to 199. |: Filters command output by specifying a regular expression.
Views Any view Default command level 1: Monitor level Parameters route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
Default The match criterion is not configured. Views Routing policy view Default command level 2: System level Parameters as-path-number: Specifies an AS path list by its number, in the range of 1 to 256. &<1-16>: Indicates that the argument before it can be entered up to 16 times. Examples # Define AS path list 2, allowing BGP routing information containing AS number 200 or 300 to pass. Configure node 10 in permit mode of routing policy test to match AS path list.
comm-list-name: Specifies a community list by its name, a string of 1 to 31 characters, which can contain letters, numbers, and signs. whole-match: Exactly matches the specified community lists. &<1-16>: Indicates that the argument before it can be entered up to 16 times. Examples # Configure community list 1 to permit BGP routes with community number 100 or 200, and then configure node 10 in permit mode of routing policy test. Specify community-list 1 to match BGP routes.
Syntax if-match extcommunity ext-comm-list-number&<1-16> undo if-match extcommunity [ ext-comm-list-number&<1-16> ] Default The match criterion is not configured. Views Routing policy view Default command level 2: System level Parameters ext-comm-list-number: Specifies an extended community list by its number, in the range of 1 to 199. &<1-16>: Indicates that the argument before it can be entered up to 16 times.
Examples # Configure node 10 in permit mode of routing policy policy1 to permit routing information with the outbound interface as GigabitEthernet 0/1. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy] if-match interface gigabitethernet 0/1 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 match criterion.
Syntax if-match tag value undo if-match tag Default No tag match criterion is configured. Views Routing policy view Default command level 2: System level Parameters value: Specifies a tag in the range of 0 to 4294967295. Examples # Configure node 10 in permit mode of routing policy policy1 to match RIP and OSPF routing information having a tag of 8.
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 System Management Configuration Guide. Examples # Create AS path list 1, permitting routing information whose AS_PATH attribute starts with 10. system-view [Sysname] ip as-path 1 permit ^10 ip community-list Use ip community-list to configure a community list entry. Use undo ip community-list to remove a community list or entry.
internet: Specifies the internet community attribute. Routes with this attribute can be advertised to all BGP peers. By default, all routes have this attribute. no-advertise: Specifies the no-advertise community attribute. Routes with this attribute cannot be advertised to other BGP peers. no-export: Specifies the no-export community attribute. Routes with this attribute cannot be advertised out of the local AS, or the local confederation but can be advertised to other ASs in the confederation.
• A 32-bit AS number—16-bit self-defined number, for example, 70000:3. The AS number must be no less than 65536. &<1-16>: Indicates that the argument before it can be entered up to 16 times. Examples # Define extended community list 1 to permit routing information with RT 200:200. system-view [Sysname] ip extcommunity-list 1 permit rt 200:200 # Define extended community list 2 to permit routing information with SOO 100:100.
system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy] IPv4 routing policy configuration commands apply ip-address next-hop Use apply ip-address next-hop to set a next hop for IPv4 routing information. Use undo apply ip-address next-hop to remove the clause configuration. Syntax apply ip-address next-hop ip-address undo apply ip-address next-hop Default No next hop is set for IPv4 routing information.
Parameters ip-prefix-name: Specifies an IP prefix list by its name, a string of 1 to 19 characters. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
Default No ACL match criterion is configured. Views Routing policy view Default command level 2: System level Parameters acl-number: ACL number from 2000 to 3999. Examples # Configure node 10 of routing policy policy1 to permit routes matching ACL 2000. system-view [Sysname] route-policy policy1 permit node 10 [Sysname-route-policy] if-match acl 2000 if-match ip Use if-match ip to configure a next hop or source address match criterion for IPv4 routes.
if-match ip-prefix Use if-match ip-prefix to configure an IP prefix list-based match criterion. Use undo if-match ip-prefix to remove the match criterion. Syntax if-match ip-prefix ip-prefix-name undo if-match ip-prefix Default No IP prefix list based match criterion is configured. Views Routing policy view Default command level 2: System level Parameters ip-prefix-name: Matches an IP prefix list with a name being a string of 1 to 19 characters.
index-number: Specifies a number for the item, in the range of 1 to 65535, for uniquely specifying an item of the IPv4 prefix list. An index 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). permit: Specifies the permit mode. If a route matches the item, it passes the IPv4 prefix list.
Usage guidelines If no ip prefix list is specified, this command clears the statistics for all IPv4 prefix lists. Examples # Clear the statistics for IPv4 prefix list abc. reset ip ip-prefix abc IPv6 routing policy configuration commands apply ipv6 next-hop Use apply ipv6 next-hop to configure a next hop for IPv6 routes. Use undo apply ipv6 next-hop to remove the clause configuration.
Default command level 1: Monitor level Parameters ipv6-prefix-name: Specifies an IPv6 prefix list by its name, a string of 1 to 19 characters. |: Filters command output by specifying a regular expression. For more information about regular expressions, see System Management Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
Default No IPv6 prefix list match criterion is configured. Views Routing policy view Default command level 2: System level Parameters address: Matches the destination address of IPv6 routing information. next-hop: Matches the next hop of IPv6 routing information. route-source: Matches the source address of IPv6 routing information. acl acl6-number: Specifies an IPv6 ACL for filtering by its number, in the range of 2000 to 3999 for address, and 2000 to 2999 for next-hop and route-source.
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 IPv6 prefix list has multiple items). permit: Specifies the permit mode. If a route matches the item, it passes the IPv4 prefix list. If not, it matches against the next item (suppose the IPv6 prefix list has multiple items). ipv6-address prefix-length: Specifies an IPv6 prefix and prefix length.
Usage guidelines If no name is specified, this command clears the 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 a security product, such as a firewall, a UTM, or a load-balancing or security card that is installed in a device.
Index ABCDEFGHILMNOPRSTUVW A authentication-mode,180 abr-summary (OSPF area view),178 B abr-summary (OSPFv3 area view),411 balance (BGP view),243 address,99 balance (IPv6 address family view/IPv6 BGP-VPN instance view),454 aggregate,242 bandwidth-reference,412 aggregate (IPv6 address family view),453 bandwidth-reference (OSPF view),181 alg,131 bestroute as-path-neglect (BGP view),244 apply access-vpn vpn-instance,328 bestroute as-path-neglect (IPv6 address family view),455 apply as-path,542
display bgp paths,255 default cost (RIP view),149 default cost (RIPng view),392 display bgp peer,256 default ipv4-unicast,250 display bgp peer received ip-prefix,259 default local-preference (BGP view),251 display bgp routing-table,260 default local-preference (IPv6 address family view/IPv6 BGP-VPN instance view),459 display bgp routing-table as-path-acl,262 display bgp routing-table cidr,263 default med (BGP view),252 display bgp routing-table community,264 default med (IPv6 address family view/
display ospf nexthop,199 display ip routing-table statistics,325 display ipv6 config policy-based-route,533 display ospf peer,200 display ipv6 fib,340 display ospf peer statistics,203 display ipv6 fib ipv6-address,341 display ospf request-queue,204 display ipv6 host,387 display ospf retrans-queue,205 display ipv6 interface,342 display ospf routing,206 display ipv6 neighbors,346 display ospf vlink,208 display ipv6 neighbors count,347 display ospfv3,415 display ipv6 neighbors vpn-instance,348
Documents,572 if-match ip-prefix,565 duplex,14 if-match ipv6,568 E if-match packet-length,538 if-match packet-length,337 ebgp-interface-sensitive,273 if-match route-type,557 enable log,209 if-match tag,557 F ignore-first-as,277 filter,210 import-route,401 filter-policy export (BGP view),274 import-route (BGP view),277 filter-policy export (IPv6 address family view/IPv6 BGP-VPN instance view),480 import-route (IPv6 address family view/IPv6 BGP-VPN instance view),483 filter-policy export (OS
ipv6 icmp-error,367 maximum load-balancing (OSPF view),218 ipv6 icmpv6 multicast-echo-reply enable,368 maximum load-balancing (OSPFv3 view),439 ipv6 local policy-based-route,538 maximum load-balancing (RIP view),161 ipv6 mtu,368 maximum load-balancing (RIPng view),401 ipv6 nd autoconfig managed-address-flag,369 mdi,22 ipv6 nd autoconfig other-flag,370 mtu,62 ipv6 nd dad attempts,370 mtu,25 ipv6 nd hop-limit,371 multicast-suppression,22 ipv6 nd ns retrans-timer,371 N ipv6 nd nud reachable-t
peer capability-advertise suppress-4-byte-as (IPv6 address family view),492 ospf network-type,226 ospf packet-process prioritized-treatment,227 peer capability-advertise suppress-4-byte-as (IPv6 BGP-VPN instance view),493 ospf timer dead,227 ospf timer hello,228 peer connect-interface (BGP view),288 ospf timer poll,229 peer connect-interface (IPv6 address family view),493 ospf timer retransmit,230 peer default-route-advertise,494 ospf trans-delay,230 peer default-route-advertise (BGP view),288 os
peer route-update-interval (BGP view),301 reset counters interface,18 peer route-update-interval (IPv6 address family view),509 reset counters interface loopback,32 peer substitute-as (BGP view),302 reset counters interface vlan-interface,63 reset counters interface null,33 peer substitute-as (IPv6 address family view),510 reset dns host,143 peer timer (BGP view),302 reset ip ip-prefix,566 peer timer (IPv6 address family view),511 reset ip ipv6-prefix,570 policy-based-route,338 reset ip routin
ripng summary-address,408 summary automatic,309 route-policy,561 synchronization (BGP view),310 router id,234 synchronization (IPv6 address family view),517 router id,308 T router-id,516 tcp ipv6 timer fin-timeout,384 router-id,309 tcp ipv6 timer syn-timeout,385 router-id,448 tcp ipv6 window,385 S timer (BGP view),311 shutdown,19 timer (IPv6 address family view),518 shutdown,33 timers,175 shutdown,64 timers,409 silent-interface (OSPF view),235 transmit-pacing,239 silent-interface (RI