HP FlexFabric 5930 Switch Series Layer 2—LAN Switching Command Reference Part number: 5998-4568 Software version: Release 2406 & Release 2407P01 Document version: 6W101-20140404
Legal and notice information © Copyright 2014 Hewlett-Packard Development Company, L.P. No part of this documentation may be reproduced or transmitted in any form or by any means without prior written consent of Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Contents Ethernet interface commands ······································································································································ 1 Common Ethernet interface commands ·························································································································· 1 bandwidth ································································································································································· 1 desc
mac-address mac-address mac-address mac-address information enable (system view) ·································································································· 51 information interval ························································································································· 52 information mode···························································································································· 53 information queue-length··············
stp enable ····························································································································································· 104 stp global config-digest-snooping ······················································································································ 104 stp global enable················································································································································· 105 stp global mche
port link-type ························································································································································ 146 port trunk permit vlan ·········································································································································· 147 port trunk pvid ····················································································································································· 148 LLD
Ethernet interface commands Common Ethernet interface commands bandwidth Use bandwidth to configure the expected bandwidth of an interface. Use undo bandwidth to restore the default. Syntax bandwidth bandwidth-value undo bandwidth Default The expected bandwidth (in kbps) is the interface baud rate divided by 1000. Views Ethernet interface view Predefined user roles network-admin Parameters bandwidth-value: Specifies the expected bandwidth in the range of 1 to 400000000 kbps.
Syntax description text undo description Default The description of an interface is the interface name plus Interface (for example, FortyGigE1/0/1 Interface). Views Ethernet interface view Predefined user roles network-admin Parameters text: Specifies the interface description, a case-sensitive string of 1 to 255 characters. Examples # Change the description of interface FortyGigE 1/0/1 to lanswitch-interface.
If no interface type is specified, this command displays traffic statistics for all interfaces that have traffic counters. If an interface type is specified but no interface number is specified, this command displays traffic statistics for all interfaces of the specified type. If an interface type and an interface number are specified, this command displays traffic statistics of the specified interface. Examples # Display inbound traffic statistics for all FortyGigE interfaces.
Predefined user roles network-admin network-operator Parameters inbound: Displays inbound traffic rate statistics. outbound: Displays outbound traffic rate statistics. interface-type: Specifies an interface type. interface-number: Specifies an interface number. Usage guidelines The statistics cover only interfaces in up state. If an interface type is specified, the command displays traffic rate statistics for all up interfaces of the specified type over the last statistics polling interval.
Related commands • flow-interval • reset counters interface display ethernet statistics Use display ethernet statistics to display the Ethernet statistics. Syntax display ethernet statistics slot slot-number Views User view Predefined user roles network-admin network-operator Parameters slot slot-number: Displays the Ethernet statistics on the specified device. The slot-number argument represents the ID of the device, and it is always 1. Examples # Display the Ethernet statistics.
IfShut : 0 IfErr : 0 Table 3 Command output Field Description ETH receive packet statistics Statistics about the Ethernet packets received on the Ethernet interface module. Total number of received packets: Totalnum • • • • • • ETHIINum—Number of packets encapsulated by using Ethernet-II. • • • • • • ForwardNum—Number of packets forwarded at Layer 2 or sent to the CPU. SNAPNum—Number of packets encapsulated by using SNAP. RAWNum—Number of packets encapsulated by using RAW.
Field Description Statistics about the error Ethernet packets in the outbound direction on the Ethernet interface module: ETH send error statistics • • • • • • • • NullMbuf—Number of packets with null pointers. ErrAdjFwd—Number of packets with adjacency table errors. ErrPrepend—Number of packets with extension errors. ErrHdrLen—Number of packets with header length errors. ErrPad—Number of packets with padding errors. ErrQosTrs—Number of packets that failed to be sent by QoS.
If an interface type is specified but no interface number is specified, this command displays information about all interfaces of that type. If both the interface type and interface number are specified, this command displays information about the specified interface. Examples # Display information about Layer 3 interface FortyGigE 1/0/1.
Table 4 Command output Field Description State of the interface: • Administratively DOWN—The Ethernet interface was shut down with the shutdown command. The interface is administratively down. Current state • DOWN—The Ethernet interface is administratively up but physically down (possibly because no physical link is present or the link has failed). • UP—The Ethernet interface is both administratively and physically up. Link layer state of the interface.
Line protocol state: UP IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 00e0-fc00-58a5 Description: FortyGigE1/0/1 Interface Bandwidth: 40000000kbps Loopback is not set Media type is stack wire,Port hardware type is STACK_QSFP_PLUS 40Gbps-speed mode, full-duplex mode Link speed type is autonegotiation, link duplex type is autonegotiation Flow-control is not enabled The Maximum Frame Length is 10000 Allow jumbo frame to pass Broadcast MAX-ratio: 100% Multicast MAX-ratio: 100% Unicast MAX-ratio: 100%
Table 5 Command output Field Description State of the Ethernet interface: • Administratively DOWN—The Ethernet interface was shut down with the shutdown command. The interface is administratively down. Current state • DOWN—The Ethernet interface is administratively up but physically down (possibly because no physical link is present or the link has failed). • UP—The Ethernet interface is both administratively and physically up. Link layer state of the interface.
Field Description Link speed type is autonegotiation The interface is configured with the speed auto command. Link speed type is force link The interface is configured with a specific speed by using the speed command. link duplex type is autonegotiation The interface is configured with the duplex auto command. link duplex type is force link The interface is configured with a specific duplex mode by using the duplex command.
Field Input(normal): 0 packets, 0 bytes 0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses Description Inbound normal traffic and pause frame statistics (in packets and bytes) for the interface. Number of inbound normal unicast packets, number of inbound normal broadcasts, number of inbound normal multicasts, and number of inbound normal pause frames. A hyphen (-) indicates that the statistical item is not supported. input errors Statistics of incoming error packets.
Field Description parity errors Total number of frames with parity errors. Output(total): 0 packets, 0 bytes Outbound traffic statistics (in packets and bytes) for the interface. All outbound normal and abnormal packets and normal pause frames were counted. 0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses Number of outbound unicast packets, number of outbound broadcasts, number of outbound multicasts, and number of outbound pause frames.
M-GE0/0/0 UP UP 192.168.0.
Field Description • ADM—The interface has been shut down by the network Link: ADM - administratively down; Stby - standby administrator. To recover its physical layer state, run the undo shutdown command. • Stby—The interface is a standby interface. Protocol: (s) – spoofing If the link layer protocol of an interface is UP, but its link is an on-demand link or not present at all, this field displays UP (s), where s represents the spoofing flag.
Field Description Link type of the interface: Type PVID • A—Access. • H—Hybrid. • T—Trunk. Port VLAN ID. Cause for the physical link state of an interface to be DOWN: • Administratively—The port is manually shut down with the shutdown command. To restore the physical state of the interface, use the undo shutdown command.
Parameters interface-type: Specifies an interface type. If you do not specify an interface type, this command displays information about dropped packets on all the interfaces on the device. interface-number: Specifies an interface number. If you specify an interface type only, this command displays information about dropped packets on the specified type of interfaces. summary: Displays the summary of dropped packets on all interfaces. Examples # Display information about dropped packets on FortyGigE 1/0/1.
Parameters auto: Configures the interface to autonegotiate the duplex mode with the peer. full: Configures the interface to operate in full duplex mode, so that the interface can receive and transmit packets at the same time. Examples # Configure interface FortyGigE 1/0/1 to operate in full duplex mode. system-view [Sysname] interface fortygige 1/0/1 [Sysname-FortyGigE1/0/1] duplex full flow-interval Use flow-interval to set the interface statistics polling interval.
Predefined user roles network-admin Parameters interface-type: Specifies an interface type. interface-number: Specifies an interface number. Examples # Enter FortyGigE 1/0/1 interface view. system-view [Sysname] interface fortygige 1/0/1 [Sysname-FortyGigE1/0/1] jumboframe enable Use jumboframe enable to allow jumbo frames within the specified length to pass through. Use undo jumboframe enable to prevent jumbo frames from passing through.
Syntax port link-mode { bridge | route } undo port link-mode Default Ethernet interfaces operate in route mode. Views Ethernet interface view Predefined user roles network-admin Parameters bridge: Specifies the Layer 2 mode. route: Specifies the Layer 3 mode. Usage guidelines Interfaces on the device can operate either as Layer 2 or Layer 3 Ethernet interfaces (you can use commands to set the link mode to bridge or route).
Usage guidelines CAUTION: The following operations on a fiber port will cause link updown events before the port finally stays up: • Configure the port up-mode command and the speed or duplex command at the same time. • Install or remove fiber links or transceiver modules after you forcibly bring up the fiber port. You can use this command to forcibly bring up a fiber Ethernet port, and enable the port to forward packets unidirectionally over a single link. In this way, transmission links are well utilized.
• display counters interface • display counters rate interface reset ethernet statistics Use reset ethernet statistics to clear the Ethernet statistics. Syntax reset ethernet statistics slot slot-number Views User view Predefined user roles network-admin network-operator Parameters slot slot-number: Clears the Ethernet statistics on the specified device. The slot-number argument represents the ID of the device, and it is always 1. Examples # Clear the Ethernet statistics.
Related commands display packet-drop shutdown Use shutdown to shut down an Ethernet interface. Use undo shutdown to bring up an Ethernet interface. Syntax shutdown undo shutdown Default Ethernet interfaces are in up state. Views Ethernet interface view Predefined user roles network-admin Usage guidelines You might need to shut down and then bring up an Ethernet interface to make some interface configurations take effect. Examples # Shut down and then bring up FortyGigE 1/0/1.
Parameters 40000: Sets the interface speed to 40000 Mbps. auto: Enables the interface to negotiate a speed with its peer. Usage guidelines For a fiber port, use the speed command to set its speed to match the rate of a transceiver module. Examples # Configure FortyGigE 1/0/1 to autonegotiate the speed.
The interfaces Ten-GigabitEthernet1/0/16:1 through Ten-GigabitEthernet1/0/16:4 will be deleted. Continue? [Y/N]:y Reboot the member device to make the configuration take effect. Related commands using tengige using tengige Use using tengige to split a high-bandwidth interface into multiple 10-GE interfaces. Use undo using tengige to cancel the configuration. Syntax using tengige undo using tengige Default A high-bandwidth interface is not split and operates as a single interface.
Loopback, null, and inloopback interface commands bandwidth Use bandwidth to configure the expected bandwidth of an interface. Use undo bandwidth to restore the default. Syntax bandwidth bandwidth-value undo bandwidth Default The expected bandwidth of a loopback interface is 0 kbps. Views Loopback interface view Predefined user roles network-admin Parameters bandwidth-value: Specifies the expected bandwidth in the range of 1 to 400000000 kbps.
Predefined user roles network-admin Usage guidelines CAUTION: The default command might interrupt ongoing network services. Make sure you are fully aware of the impacts of this command before using it on a live network. This command might fail to restore the default settings for some commands for reasons such as command dependencies and system restrictions.
[Sysname-LoopBack1] description for RouterID display interface inloopback Use display interface inloopback to display information about the inloopback interface. Syntax display interface [ inloopback [ 0 ] ] [ brief [ description ] ] Views Any view Predefined user roles network-admin network-operator Parameters 0: Specifies interface Inloopback 0. brief: Displays brief interface information. If you do not specify this keyword, the command displays detailed interface information.
Table 8 Command output Field Description Current state Physical layer state of the interface, which is always UP, meaning that the inloopback can receive and transmit packets. Line protocol state Data link layer protocol state of the interface, which is always UP (spoofing). Up (spoofing) means that the data link layer protocol state of the interface is up but the link is an on-demand link or not present at all.
Table 9 Command output Field Description Brief information on interface(s) under route mode Brief information about the inloopback interface. • ADM—The interface has been shut down by the network Link: ADM - administratively down; Stby - standby administrator. To recover its physical layer state, run the undo shutdown command. • Stby—The interface is a standby 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. Without this keyword, the command displays information about interfaces in all states. description: Displays the full description of the specified interface.
Field Description Internet protocol processing: disabled Indicates that the interface cannot process Layer 3 packets (displayed when the interface is not configured with an IP address). Internet Address is 1.1.1.1/32 Primary Primary IP address of the interface (displayed when the interface is configured with a primary IP address). Physical: Loopback The physical type of the interface is loopback.
Table 11 Command output Field Description Brief information on interface(s) under route mode: Brief information about loopback interfaces. • ADM—The interface has been shut down by the network Link: ADM - administratively down; Stby - standby administrator. To recover its physical layer state, run the undo shutdown command. • Stby—The interface is a standby interface.
Predefined user roles network-admin network-operator Parameters 0: Specifies interface Null 0. brief: Displays brief interface information. If you do not specify this keyword, the command displays detailed interface information. description: Displays the full description of the specified interface. When the keyword is not specified, only the first 27 characters of an interface description are displayed if the interface description is longer than 27 characters.
NULL0 UP UP(s) -- aaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa For the command output, see Table 10 and Table 11. Related commands • interface null • reset counters interface null interface loopback Use interface loopback to create a loopback interface and enter loopback interface view. Use undo interface loopback to remove a loopback interface. Syntax interface loopback interface-number undo interface loopback interface-number Default No loopback interface exists.
Default A device has only one null interface (Null 0), which cannot be created or deleted. Views System view Predefined user roles network-admin Parameters 0: Specifies interface Null 0. The null interface number is fixed at 0. Examples # Enter Null 0 interface view. system-view [Sysname] interface null 0 [Sysname-NULL0] reset counters interface loopback Use reset counters interface loopback to clear the statistics on the specified or all loopback interfaces.
reset counters interface null Use reset counters interface null to clear the statistics on the null interface. Syntax reset counters interface [ null [ 0 ] ] Views User view Predefined user roles network-admin Parameters 0: Specifies the number of the null interface, which is fixed at 0.
Examples # Shut down interface loopback 1.
Bulk interface configuration commands display interface range Use display interface range to display information about the interface ranges that are configured by using the interface range name command. Syntax display interface range [ name name ] Views Any view Predefined user roles network-admin network-operator Parameters name name: Specifies an interface range by its name, a case-sensitive string of 1 to 32 characters.
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. &<1-5> indicates that you can specify up to five interfaces or interface lists.
Syntax interface range name name [ interface interface-list ] undo interface range name name Views System view Predefined user roles network-admin Parameters name: Specifies an interface range name, a case-sensitive string of 1 to 32 characters. 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.
• The maximum number of interface range names is only limited by the system resources. To guarantee bulk interface configuration performance, HP recommends configuring fewer than 1000 interface range names. Examples # Add FortyGigE 1/0/1 through FortyGigE 1/0/12 to interface range named myEthPort, and enter the interface range view.
MAC address table commands display mac-address Use display mac-address to display MAC address entries. Syntax display mac-address [ mac-address [ vlan vlan-id ] | [ [ dynamic | static ] [ interface interface-type interface-number ] | blackhole ] [ vlan vlan-id ] [ count ] ] Views Any view Predefined user roles network-admin network-operator Parameters mac-address: Specifies a MAC address in the format of H-H-H. When entering a MAC address, you can omit the leading zeros in each H section.
# Display the total number of MAC address entries. display mac-address count 1 mac address(es) found. Table 12 Command output Field Description VLAN ID ID of the VLAN to which the outgoing interface of the MAC address entry belongs. MAC address entry state: State • Static—Static MAC address entry. • Learned—Dynamic MAC address entry. Dynamic entries can be manually configured, or learned. • Blackhole—Blackhole MAC address entry.
display mac-address statistics Use display mac-address statistics to display MAC address table statistics. Syntax display mac-address statistics Views Any view Predefined user roles network-admin network-operator Usage guidelines This command displays the number of MAC address entries per type and the maximum number of MAC address entries allowed for each type. Examples # Display the statistics of the MAC address table.
Field Description Static Multicast and Multiport MAC Address (User-defined) Count Number of static multicast and multiport unicast MAC address entries added by users. Maximum number of multicast and multiport unicast MAC address entries allowed. Total Multicast and Multiport MAC Addresses Available NOTE: The configurations of multicast and multiport unicast MAC addresses are not supported in this Release.
Examples # Add a static entry for MAC address 000f-e201-0101 on interface FortyGigE 1/0/1 that belongs to VLAN 2. system-view [Sysname] interface fortygige 1/0/1 [Sysname-FortyGigE1/0/1] mac-address static 000f-e201-0101 vlan 2 # Add a static entry for MAC address 000f-e201-0101 on Layer 2 aggregate interface Bridge-Aggregation 1 that belongs to VLAN 1.
vlan vlan-id: Specifies an existing VLAN to which the interface belongs. The value range for the vlan-id argument is 1 to 4094. interface interface-type interface-number: Specifies an outgoing interface by its type and number. interface interface-list: Specifies interfaces in the format of { interface-type interface-number [ to interface-type interface-number ] } &<1-n>. The interface type can be the Layer 2 Ethernet interface or Layer 2 aggregate interface.
Views System view Predefined user roles network-admin Parameters aging seconds: Sets an aging timer (in seconds) for dynamic MAC address entries, in the range of 10 to 1000000 seconds. no-aging: Sets dynamic MAC address entries not to age. Usage guidelines After the network topology changes, the dynamic MAC address entries are not updated in a timely manner. As a result, the device cannot learn new MAC addresses and fails to forward the user traffic correctly.
MAC Information commands mac-address information enable (interface view) Use mac-address information enable to enable MAC Information on an interface. Use undo mac-address information enable to disable MAC Information on an interface. Syntax mac-address information enable { added | deleted } undo mac-address information enable { added | deleted } Default MAC Information is disabled on an interface.
undo mac-address information enable Default MAC Information is disabled globally. Views System view Predefined user roles network-admin Usage guidelines Before you enable MAC Information on an interface, enable MAC Information globally. Examples # Enable MAC Information globally.
mac-address information mode Use mac-address information mode to set the MAC Information mode (to use syslog messages or SNMP notifications) to send MAC address changes. Use undo mac-address information mode to restore the default. Syntax mac-address information mode { syslog | trap } undo mac-address information mode Default SNMP notifications are used to send MAC address changes.
Usage guidelines If the MAC Information queue length is 0, the device sends a syslog message or SNMP notification immediately after learning or deleting a MAC address. If it is not 0, the device stores MAC address changes in the queue: • When the timer set for sending syslog messages or SNMP notifications does not expire, the device overwrites the last piece of information written into the queue with the new MAC address change if the queue has been exhausted.
Ethernet link aggregation commands bandwidth Use bandwidth to configure the expected bandwidth for an interface. Use undo bandwidth to restore the default. Syntax bandwidth bandwidth-value undo bandwidth Default The expected bandwidth (in kbps) is the interface baud rate divided by 1000. Views Layer 2 aggregate interface view, Layer 3 aggregate interface view Predefined user roles network-admin Parameters bandwidth-value: Specifies the expected bandwidth in the range of 1 to 400000000 kbps.
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 execute it on a live network. This command might fail to restore the default settings for some commands for reasons such as command dependencies and system restrictions. Use the display this command in interface view to identify these commands, and then use their undo forms or follow the command reference to individually restore their default settings.
Syntax display interface [ bridge-aggregation | route-aggregation ] [ brief [ down | description ] ] display interface { bridge-aggregation | route-aggregation } interface-number [ brief [ description ] ] Views Any view Predefined user roles network-admin network-operator Parameters bridge-aggregation: Displays information about Layer 2 aggregate interfaces. route-aggregation: Displays information about Layer 3 aggregate interfaces. interface-number: Specifies an existing aggregate interface number.
Last 300 seconds output: Input (total): 3150 packets/sec 404430 bytes/sec 0% 5364747 packets, 686688416 bytes 2682273 unicasts, 1341137 broadcasts, 1341337 multicasts, 0 pauses Input (normal): 5364747 packets, 686688416 bytes 2682273 unicasts, 1341137 broadcasts, 1341337 multicasts, 0 pauses Input: 0 input errors, 0 runts, 0 giants, 0 throttles 0 CRC, 0 frame, 0 overruns, - aborts - ignored, - parity errors Output (total): 1042508 packets, 133441832 bytes 1042306 unicasts, 0 broadcasts, 202 multicas
Table 14 Command output Field Description Bridge-Aggregation1 Layer 2 aggregate interface name. Route-Aggregation1 Layer 3 aggregate interface name. Layer 3 aggregate interface status: • DOWN (Administratively down)—The interface is administratively shut down with the shutdown command. Current state • DOWN—The interface is administratively up but physically down (possibly because no physical link is present or the link is faulty).
Field Description Line protocol state Link layer state of the interface. IP packet processing. 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. Brief information on interface(s) under route mode Brief information about Layer 3 interfaces. Brief information on interface(s) under bridge mode Brief information about Layer 2 interfaces.
Predefined user roles network-admin network-operator Usage guidelines You can use the lacp system-priority command to change the LACP priority of the local system. You specify the LACP priority value in decimal format in the lacp system-priority command, but it is displayed as a hexadecimal value by the display lacp system-id command. Examples # Display the local system ID.
To display all group-specific load sharing criteria, execute the command with the interface keyword, but do not specify a particular interface. To display the load sharing criteria of a particular aggregation group, execute the command with the aggregate interface specified. The bridge-aggregation or route-aggregation keyword becomes available only after you create Layer 2 or Layer 3 aggregate interfaces on the device. Examples # Display the default global link-aggregation load sharing criteria.
Field Description Layer 3 traffic: packet type-based sharing Default link-aggregation load sharing criteria for Layer 3 traffic. In this sample output, the criterion is the packet type. destination-mac address, source-mac address User-configured link-aggregation load sharing criteria. In this sample output, the criteria are the source and destination MAC addresses of packets.
G -- Defaulted, H -- Expired FortyGigE1/0/2: Aggregate Interface: Bridge-Aggregation10 Local: Port Number: 2 Port Priority: 32768 Oper-Key: 2 Flag: {ACDEF} Remote: System ID: 0x8000, 000f-e267-6c6a Port Number: 26 Port Priority: 32768 Oper-Key: 2 Flag: {ACDEF} Received LACP Packets: 5 packet(s) Illegal: 0 packet(s) Sent LACP Packets: 7 packet(s) Table 17 Command output Field Description LACP state flags.
Field Description Received LACP Packets Total number of LACP packets received. Illegal Total number of illegal packets. Sent LACP Packets Total number of LACP packets sent. display link-aggregation summary Use display link-aggregation summary to display the summary information for all aggregation groups.
Field Description Load-sharing type: Loadsharing Type • Shar—Load sharing. • NonS—Non-load sharing. Actor System ID Local system ID, which comprises the system LACP priority and the system MAC address. AGG Interface Type and number of the aggregate interface. AGG Mode Aggregation group type. Partner ID System ID of the partner, which comprises the system LACP priority and the system MAC address. Selected Ports Total number of Selected ports. Unselected Ports Total number of Unselected ports.
Examples # Display detailed information about the aggregation group that corresponds to Layer 2 aggregate interface Bridge-Aggregation 10, which is a dynamic aggregation group.
Field Description Port Status Port state: Selected or Unselected. LACP state flags. This field is one byte long, represented by ABCDEFGH from the least significant bit to the most significant bit. The letter is present when its bit is 1 and absent when its bit is 0. • A—Indicates whether LACP is enabled. 1 indicates enabled, and 0 indicates disabled. • B—Indicates the LACP short or long timeout. 1 indicates short timeout, and 0 indicates long timeout.
interface bridge-aggregation Use interface bridge-aggregation to create a Layer 2 aggregate interface and enter the Layer 2 aggregate interface view. Use undo interface bridge-aggregation to remove a Layer 2 aggregate interface. Syntax interface bridge-aggregation interface-number undo interface bridge-aggregation interface-number Default No Layer 2 aggregate interface is created.
Predefined user roles network-admin Parameters interface-number: Specifies a Layer 3 aggregate interface number in the range of 1 to 1024. Usage guidelines When you create a Layer 3 aggregate interface, the system automatically creates a Layer 3 aggregation group with the same number, which operates in static aggregation mode by default. Removing the Layer 3 aggregate interface also removes the Layer 3 aggregation group.
lacp period short Use lacp period short to set the LACP timeout interval on a port to the short timeout interval (3 seconds), and make the peer end to send LACPDUs quickly. Use undo lacp period to restore the default setting. Syntax lacp period short undo lacp period Default The LACP timeout interval is the long timeout interval (90 seconds).
[Sysname] lacp system-priority 64 Related commands link-aggregation port-priority link-aggregation global load-sharing mode Use link-aggregation global load-sharing mode to configure the global link-aggregation load sharing criteria. Use undo link-aggregation global load-sharing mode to restore the default setting.
• Source IP address and destination IP address • Source IP address and source port • Destination IP address and destination port • Source IP address, source port, destination IP address, and destination port • Any combination of ingress port, source MAC address, and destination MAC address Examples # Configure the destination MAC address as the global link-aggregation load sharing criterion.
link-aggregation lacp traffic-redirect-notification enable Use link-aggregation lacp traffic-redirect-notification enable to enable link-aggregation traffic redirection. Use undo link-aggregation lacp traffic-redirect-notification enable to disable link-aggregation traffic redirection. Syntax link-aggregation lacp traffic-redirect-notification enable undo link-aggregation lacp traffic-redirect-notification enable Default Link-aggregation traffic redirection is disabled.
Views Layer 2 aggregate interface view Predefined user roles network-admin Parameters destination-ip: Performs load sharing in link aggregation groups based on destination IP address. destination-mac: Performs load sharing in link aggregation groups based on destination MAC address. source-ip: Performs load sharing in link aggregation groups based on source IP address. source-mac: Performs load sharing in link aggregation groups based on source MAC address.
Default An aggregation group operates in static aggregation mode. Views Layer 2 aggregate interface view, Layer 3 aggregate interface view Predefined user roles network-admin Examples # Configure the aggregation group that corresponds to Bridge-Aggregation 1 to operate in dynamic aggregation mode.
link-aggregation selected-port minimum Use link-aggregation selected-port minimum to configure the minimum number of Selected ports in the aggregation group. Use undo link-aggregation selected-port minimum to restore the default setting. Syntax link-aggregation selected-port minimum number undo link-aggregation selected-port minimum Default The minimum number of Selected ports in an aggregation group is not specified.
Predefined user roles network-admin Parameters size: Specifies the maximum transmission unit (MTU) in bytes, in the range of 46 to 1560. Examples # Set the MTU of Layer 3 aggregate interface Route-Aggregation 1 to 1430 bytes. system-view [Sysname] interface route-aggregation 1 [Sysname-Route-Aggregation1] mtu 1430 Related commands display interface port link-aggregation group Use port link-aggregation group to assign the Ethernet interface to the specified aggregation group.
[Sysname] interface fortygige 1/0/2 [Sysname-FortyGigE1/0/2] port link-aggregation group 2 reset counters interface Use reset counters interface to clear the statistics for the specified aggregate interface or interfaces. Syntax reset counters interface [ { bridge-aggregation | route-aggregation } [ interface-number ] ] Views User view Predefined user roles network-admin Parameters bridge-aggregation: Clears statistics for Layer 2 aggregate interfaces.
Parameters interface interface-list: Specifies a list of link aggregation member ports, in the format interface-type interface-number [ to interface-type interface-number ], where interface-type interface-number indicates the port type and port number. If no member ports are specified, the command clears the LACP statistics on all member ports. Examples # Clear the LACP statistics on all link aggregation member ports.
Spanning tree commands active region-configuration Use active region-configuration to activate your MST region configuration. Syntax active region-configuration Views MST region view Predefined user roles network-admin Usage guidelines When you configure MST region parameters, MSTP launches a new spanning tree calculation process that might cause network topology instability. This is most likely to occur when you configure the VLAN-to-instance mapping table.
Syntax bpdu-drop any undo bpdu-drop any Default BPDU drop is disabled on a port. Views Layer 2 Ethernet interface view Predefined user roles network-admin Examples # Enable BPDU drop on port FortyGigE 1/0/1. system-view [Sysname] interface fortygige 1/0/1 [Sysname-FortyGigE1/0/1] bpdu-drop any check region-configuration Use check region-configuration to display MST region pre-configuration information, including the region name, revision level, and VLAN-to-instance mapping settings.
Configuration digest : 0x3ab68794d602fdf43b21c0b37ac3bca8 Instance VLANs Mapped 0 1, 3 to 4094 15 2 Table 20 Command output Field Description Format selector Format selector of the MST region, which is 0 (not configurable). Region name MST region name. Revision level Revision level of the MST region. Instance VLANs Mapped VLAN-to-instance mappings in the MST region.
brief: Displays brief spanning tree status and statistics. If this keyword is not specified, the command displays the detailed spanning tree status and statistics. slot slot-number: Displays the spanning tree status and statistics on the device. The slot number is fixed at 1. Usage guidelines In STP or RSTP mode: • If you do not specify any port, this command displays the spanning tree information for all ports. The displayed information is sorted by port name.
Field Description Spanning tree status on the port: • FORWARDING—The port can receive and send BPDUs and also forward user traffic. STP State • DISCARDING—The port can receive and send BPDUs but cannot forward user traffic. • LEARNING—The port is in a transitional state. It can receive and send BPDUs but cannot forward user traffic. Protection type on the port: • • • • Protection ROOT—Root guard. LOOP—Loop guard. BPDU—BPDU guard. NONE—No protection.
BPDU received : 0 TCN: 0, Config: 0, RST: 0, MST: 0 -------[MSTI 1 Global Info]------Bridge ID : 0.000f-e23e-9ca4 RegRoot ID/IRPC : 0.000f-e23e-9ca4, 0 RootPort ID : 0.0 Root type : Primary root Master bridge : 32768.000f-e23e-9ca4 Cost to master : 0 TC received : 0 # Display the spanning tree status and statistics when the spanning tree feature is disabled. display stp Protocol status : Disabled Protocol Std. : IEEE 802.1s Version : 3 CIST Bridge-Prio.
Field Description [LEARNING] The port is in learning state. Port protocol Status of the spanning tree feature on the port. Port role: Port role (Boundary) Port cost(Legacy) Desg.bridge/port • • • • • • Alternate. Backup. Root. Designated. Master. Disabled. The port is a regional boundary port. Path cost of the port. The field in parentheses indicates the standard (legacy, dot1d-1998, or dot1t) used for port path cost calculation. • Config—Configured value. • Active—Actual value.
Field Description Major parameters for the port: Port times • • • • • Hello—Hello timer. MaxAge—Maximum age timer. FwdDelay—Forward delay timer. MsgAge—Message age timer. RemHops—Remaining hops. BPDU sent Statistics on sent BPDUs. BPDU received Statistics on received BPDUs. RegRoot ID/IRPC MSTI regional root/internal path cost. MSTI root type: Root Type • Primary root. • Secondary root. Master bridge MSTI root bridge ID. Cost to master Path cost from the MSTI to the master bridge.
Examples # In MSTP mode, display information about ports that are blocked by spanning tree protection functions. display stp abnormal-port MSTID Blocked Port Reason 1 FortyGigE1/0/1 Root-Protected 2 FortyGigE1/0/2 Loop-Protected 12 FortyGigE1/0/3 Loopback-Protected Table 23 Command output Field Description MSTID MSTI of the blocked port. Blocked Port Name of a blocked port. Reason that the port was blocked: Reason • Root-Protected—Root guard function.
• If you specify a port but not an MSTI, this command displays the BPDU statistics of all MSTIs on the port. The displayed information is sorted by MSTI ID. • If you specify both an MSTI ID and a port, this command displays the BPDU statistics of the specified MSTI on the port. In STP or RSTP mode: • If you do not specify any port, this command displays the BPDU statistics of on all ports. The displayed information is sorted by port name.
Field Description Looped-back BPDUs BPDUs sent and then received by the same port. MAX-aged BPDUs BPDUs whose max age was exceeded. TCN sent TCN BPDUs sent. TCN received TCN BPDUs received. TCA sent TCA BPDUs sent. TCA received TCA BPDUs received. Config sent Configuration BPDUs sent. Config received Configuration BPDUs sent. RST sent Configuration BPDUs received. RST received RSTP BPDUs sent. MST sent RSTP BPDUs received. MST received MSTP BPDUs sent.
Table 25 Command output Field Description Down Port Name of a port that was shut down by the spanning tree protection functions. Reason Reason that the port was shut down. BPDU-Protected indicates the BPDU guard function. display stp history Use display stp history to display the historical port role calculation information for the specified MSTI or all MSTIs.
Port FortyGigE1/0/2 Role change : ALTER->ROOT Time : 2009/02/08 00:22:56 Port priority : 0.00e0-fc01-6510 0 0.00e0-fc01-6510 128.2 128.153 Table 26 Command output Field Description Port Port name. Role change Role change of the port ("Aged" means that the change was caused by expiration of the received configuration BPDU). Time Time of port role calculation. Port priority Port priority.
Field Description Revision level Revision level of the MST region. The default value is 0, and the level can be configured by using the revision-level command. VLANs Mapped VLANs mapped to the MSTI. Related commands • instance • region-name • revision-level • vlan-mapping modulo display stp root Use display stp root to display the root bridge information of all MSTIs.
Views Any view Predefined user roles network-admin network-operator Parameters instance instance-list: Displays the statistics of TC/TCN BPDUs received and sent by all ports in the MSTIs that are specified by an instance list, in the format of instance-list = { instance-id [ to instance-id ] }&<1-10>, where &<1-10> indicates that you can specify up to 10 instances or instance ranges. The value range for the instance-id argument is 0 to 4094, and the value 0 represents the CIST.
Default All VLANs are mapped to the CIST. Views MST region view Predefined user roles network-admin Parameters instance-id: Specifies an MSTI ID. The minimum value is 0, representing the CIST, and the maximum value is 4094. vlan vlan-id-list: Specifies a VLAN list in the format of vlan-id-list = { vlan-id [ to vlan-id ] }&<1-10>, where the vlan-id argument represents the VLAN ID in the range of 1 to 4094, and &<1-10> indicates that you can specify up to 10 VLAN IDs or VLAN ID ranges.
Default The MST region name of a device is its MAC address. Views MST region view Predefined user roles network-admin Parameters name: Specifies the MST region name, a string of 1 to 32 characters. Usage guidelines The MST region name, the VLAN-to-instance mapping table, and the MSTP revision level of a device determine the device's MST region. After configuring this command, run the active region-configuration command to activate the configured MST region name.
&<1-10> indicates that you can specify up to 10 ports or port ranges. If you don't specify this option, this command clears the spanning tree-related statistics information on all ports. Examples # Clear the spanning tree-related statistics on ports FortyGigE 1/0/1 through FortyGigE 1/0/3. reset stp interface fortygige 1/0/1 to fortygige 1/0/3 Related commands display stp revision-level Use revision-level to configure the MSTP revision level.
• vlan-mapping modulo stp bpdu-protection Use stp bpdu-protection to enable the BPDU guard function. Use undo stp bpdu-protection to disable the BPDU guard function. Syntax stp bpdu-protection undo stp bpdu-protection Default The BPDU guard function is disabled. Views System view Predefined user roles network-admin Examples # Enable the BPDU guard function. system-view [Sysname] stp bpdu-protection stp bridge-diameter Use stp bridge-diameter to specify the network diameter.
An appropriate setting of hello time, forward delay, and max age can speed up network convergence. The values of these timers are related to the network size, and you can set the timers by setting the network diameter. With the network diameter set to 7 (the default), the three timers are also set to their defaults. Each MST region is considered a device, and the configured network diameter of the switched network is effective only on MSTI 0 (or the common root bridge).
When the setting is configured on a member port in an aggregation group, it takes effect only after the port leaves the aggregation group. Examples # Configure FortyGigE 1/0/1 to send only standard-format (802.1s) MSTP packets. system-view [Sysname] interface fortygige 1/0/1 [Sysname-FortyGigE1/0/1] stp compliance dot1s stp config-digest-snooping Use stp config-digest-snooping to enable digest snooping. Use undo stp config-digest-snooping to disable digest snooping.
stp cost Use stp cost to set the path cost of the port or ports. Use undo stp cost to restore the default. Syntax stp [ instance instance-list ] cost cost undo stp [ instance instance-list ] cost Default The device automatically calculates the path costs of ports in each spanning tree based on the corresponding standard.
[Sysname] interface fortygige 1/0/3 [Sysname-FortyGigE1/0/3] stp instance 2 cost 200 Related commands • display stp • stp pathcost-standard stp edged-port Use stp edged-port to configure the ports as edge ports. Use undo stp edged-port to configure the ports as non-edge ports. Syntax stp edged-port undo stp edged-port Default All ports are non-edge ports.
• stp loop-protection • stp root-protection stp enable Use stp enable to enable the spanning tree feature. Use undo stp enable to disable the spanning tree feature. Syntax stp enable undo stp enable Default The spanning tree feature is enabled on all ports.
Syntax stp global config-digest-snooping undo stp global config-digest-snooping Default The feature is disabled globally. Views System view Predefined user roles network-admin Usage guidelines Enable this feature both globally and on ports connected to other vendors' devices. To minimize impact, enable the feature on all associated ports before you enable it globally. Examples # Enable digest snooping on FortyGigE 1/0/1 and then globally.
Predefined user roles network-admin Usage guidelines When you enable the spanning tree feature, the device operates in STP, RSTP, or MSTP mode, depending on the spanning tree mode setting. When the spanning tree feature is enabled, the device dynamically maintains the spanning tree status of VLANs based on received configuration BPDUs. When the spanning tree feature is disabled, the device stops maintaining the spanning tree status. Examples # Enable the spanning tree feature globally.
stp loop-protection Use stp loop-protection to enable the loop guard function on the ports. Use undo stp loop-protection to disable the loop guard function on the ports. Syntax stp loop-protection undo stp loop-protection Default The loop guard function is disabled. Views Layer 2 Ethernet interface view, Layer 2 aggregate interface view Predefined user roles network-admin Usage guidelines On a port, the loop guard function is mutually exclusive with the root guard function or the edge port setting.
Views System view Predefined user roles network-admin Parameters hops: Sets the maximum hops in the range of 1 to 40. Examples # Set the maximum hops of the MST region to 35. system-view [Sysname] stp max-hops 35 Related commands display stp stp mcheck Use stp mcheck to perform the mCheck operation on a port.
Examples # Perform mCheck on FortyGigE 1/0/1. system-view [Sysname] interface fortygige 1/0/1 [Sysname-FortyGigE1/0/1] stp mcheck Related commands • stp global mcheck • stp mode stp mode Use stp mode to configure the spanning tree operating mode. Use undo stp mode to restore the default. Syntax stp mode { mstp | rstp | stp } undo stp mode Default A spanning tree device operates in MSTP mode.
stp no-agreement-check Use stp no-agreement-check to enable No Agreement Check on the ports. Use undo stp no-agreement-check to disable No Agreement Check on the ports. Syntax stp no-agreement-check undo stp no-agreement-check Default No Agreement Check is disabled. Views Layer 2 Ethernet interface view, Layer 2 aggregate interface view Predefined user roles network-admin Usage guidelines This command takes effect only after you enable it on the root port.
Predefined user roles network-admin Parameters dot1d-1998: Configures the device to calculate the default path cost for ports based on IEEE 802.1d-1998. dot1t: Configures the device to calculate the default path cost for ports based on IEEE 802.1t. legacy: Configures the device to calculate the default path cost for ports based on a private standard. Usage guidelines If you change the standard that the device uses in calculating the default path costs, you restore the path costs to the default.
You can configure the link type as point-to-point for a Layer 2 aggregate interface or a port that operates in full duplex mode. HP recommends that you use the default setting, which lets the device automatically detect the port link type. The stp point-to-point force-false or stp point-to-point force-true command configured on a port in MSTP mode is effective on all MSTIs or VLANs.
Usage guidelines The smaller the value, the higher the port priority. If all ports on your device use the same priority value, the port priority depends on the port index. The smaller the index, the higher the priority. When the setting is configured in Layer 2 Ethernet interface view, it takes effect on only that interface. When the setting is configured in Layer 2 aggregate interface view, it takes effect on only the aggregate interface.
%Aug 16 00:49:41:856 2011 Sysname MSTP/3/MSTP_DISCARDING: Instance 2's port FortyGigE1/0/1 has been set to discarding state. %Aug 16 00:49:41:856 2011 Sysname MSTP/3/MSTP_FORWARDING: Instance 2's port FortyGigE1/0/2 has been set to forwarding state. The output shows that FortyGigE 1/0/1 in MSTI 2 transited to the discarding state and FortyGigE 1/0/2 in MSTI 2 transited to the forwarding state. stp priority Use stp priority to set the priority of the device.
Default The default settings for the MST region are as follows: • The MST region name of the device is the MAC address of the device. • All VLANs are mapped to the CIST. • The MSTP revision level is 0. Views System view Predefined user roles network-admin Usage guidelines After you enter MST region view, you can configure the MST region parameters, including the region name, VLAN-to-instance mappings, and revision level. Examples # Enter MST region view.
Examples # Enable port role restriction on interface FortyGigE 1/0/1. system-view [Sysname] interface fortygige 1/0/1 [Sysname-FortyGigE1/0/1] stp role-restriction stp root primary Use stp root primary to configure the device as the root bridge. Use undo stp root to restore the default. Syntax stp [ instance instance-list ] root primary undo stp [ instance instance-list ] root Default A device is not a root bridge.
Syntax stp [ instance instance-list ] root secondary undo stp [ instance instance-list ] root Default A device is not a secondary root bridge. Views System view Predefined user roles network-admin Parameters instance instance-list: Configures the device as a secondary root bridge in the MSTIs that are specified by an instance list, in the format of instance-list = { instance-id [ to instance-id ] }&<1-10>, where &<1-10> indicates that you can specify up to 10 instances or instance ranges.
Usage guidelines On a port, the loop guard function and the root guard function are mutually exclusive. When the setting is configured in Layer 2 Ethernet interface view, it takes effect on only that interface. When the setting is configured in Layer 2 aggregate interface view, it takes effect on only the aggregate interface. When the setting is configured on a member port in an aggregation group, it takes effect only after the port leaves the aggregation group.
stp tc-protection threshold Use stp tc-protection threshold to configure the maximum number of forwarding address entry flushes that the device can perform within a certain interval (every 10 seconds). Use undo stp tc-protection threshold to restore the default. Syntax stp tc-protection threshold number undo stp tc-protection threshold Default By default, the device can perform a maximum of six forwarding address entry flushes every 10 seconds.
Usage guidelines When TC-BPDU transmission restriction is enabled on a port, the port does not send TC-BPDUs to the other ports, and it does not delete the MAC address entries. When the setting is configured in Layer 2 Ethernet interface view, it takes effect on only that interface. When the setting is configured in Layer 2 aggregate interface view, it takes effect on only the aggregate interface.
system-view [Sysname] stp timer forward-delay 2000 Related commands • stp bridge-diameter • stp timer hello • stp timer max-age stp timer hello Use stp timer hello to set the hello time of the device. Use undo stp timer hello to restore the default. Syntax stp timer hello time undo stp timer hello Default The hello time is 200 centiseconds.
stp timer max-age Use stp timer max-age to set the max age timer of the device. Use undo stp timer max-age to restore the default. Syntax stp timer max-age time undo stp timer max-age Default The max age is 2000 centiseconds. Views System view Predefined user roles network-admin Parameters time: Sets the max age in centiseconds in the range of 600 to 4000 in increments of 100 (as in 600, 700, 800).
undo stp timer-factor Default The timeout factor of a device is set to 3. Views System view Predefined user roles network-admin Parameters factor: Sets the timeout factor in the range of 1 to 20. Usage guidelines After the network topology is stabilized, each non-root-bridge device forwards configuration BPDUs to the surrounding devices at the interval of hello time to determine whether any link is faulty.
Parameters limit: Sets the BPDU transmission rate in the range of 1 to 255. Usage guidelines The maximum number of BPDUs a port can send within each hello time equals the BPDU transmission rate plus the hello timer value. A larger BPDU transmission rate value requires more system resources. An appropriate BPDU transmission rate setting can prevent spanning tree protocols from using excessive bandwidth resources during network topology changes. HP recommends that you use the default value.
system-view [Sysname] stp region-configuration [Sysname-mst-region] vlan-mapping modulo 8 Related commands • active region-configuration • check region-configuration • display stp region-configuration • region-name • revision-level 125
Loop detection commands display loopback-detection Use display loopback-detection to display the loop detection configuration and status. Syntax display loopback-detection Views Any view Predefined user roles network-admin network-operator Example # Display the loop detection configuration and status. display loopback-detection Loopback detection is enabled. Loopback detection interval is 30 second(s).
loopback-detection action Use loopback-detection action to configure the loop protection action on a port. Use undo loopback-detection action to restore the default. Syntax In Layer 2 Ethernet interface view: loopback-detection action { block | no-learning | shutdown } undo loopback-detection action In Layer 2 aggregate interface view: loopback-detection action shutdown undo loopback-detection action Default When the device detects a loop on a port, it generates a log but performs no action on the port.
• loopback-detection global action loopback-detection enable Use loopback-detection enable to enable loop detection on a port. Use undo loopback-detection enable to disable loop detection on a port. Syntax loopback-detection enable vlan { vlan-list | all } undo loopback-detection enable vlan { vlan-list | all } Default The loop detection function is disabled on ports.
Syntax loopback-detection global action shutdown undo loopback-detection global action Default When the device detects a loop on a port, it generates a log but performs no action on the port. Views System view Predefined user roles network-admin Parameters shutdown: Enables the shutdown mode. If a loop is detected, the device generates a log and shuts down the port. The device automatically brings up the port after the detection timer expires.
Predefined user roles network-admin Parameters vlan-list: Specifies a VLAN list, in the format of { vlan-id [ to vlan-id ] }&<1-10>, where vlan-id represents the VLAN ID in the range of 1 to 4094, and &<1-10> indicates that you can specify up to 10 vlan-id [ to vlan-id ] parameters. all: Specifies all existing VLANs. Usage guidelines Use this command to enable loop detection globally. To enable loop detection on specific ports, use the loopback-detection enable command in interface view.
Usage guidelines With loop detection enabled, the device sends loop detection frames at the specified interval. A shorter interval offers more sensitive detection but consumes more resources. Consider the system performance and loop detection speed when you set the loop detection interval. Example # Set the loop detection interval to 10 seconds.
VLAN commands Basic VLAN commands bandwidth Use bandwidth to configure the expected bandwidth of an interface. Use undo bandwidth to restore the default. Syntax bandwidth bandwidth-value undo bandwidth Default The expected bandwidth (in kbps) is the interface baud rate divided by 1000. Views VLAN interface view Predefined user roles network-admin Parameters bandwidth-value: Specifies the expected bandwidth in the range of 1 to 400000000 kbps.
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 on a live network. This command might fail to restore the default settings for some commands for reasons such as command dependencies or system restrictions. Use the display this command in interface view to identify these commands, and then use their undo forms or follow the command reference to individually restore their default settings.
Usage guidelines You can configure a description to describe the function or connection of a VLAN or VLAN interface, which is very helpful when a large number of VLANs are created on the device. Examples # Change the description of VLAN 2 to sales-private. system-view [Sysname] vlan 2 [Sysname-vlan2] description sales-private # Change the description of VLAN-interface 2 to linktoPC56.
Current state: UP Line protocol state: UP Description: Vlan-interface10 Interface Bandwidth: 100000kbps Maximum Transmit Unit: 1500 Internet Address is 192.168.1.54/24 Primary IP Packet Frame Type:PKTFMT_ETHNT_2, Hardware Address: 0023-89b6-d613 IPv6 Packet Frame Type:PKTFMT_ETHNT_2, Hardware Address: 0023-89b6-d613 Last clearing of counters: Never # Display brief information for VLAN-interface 2.
Field Description IPv6 Packet Frame Type IPv6 outgoing frame format. Brief information on interface(s) under route mode Brief information about Layer 3 interfaces. Link layer state of the interface: Link: ADM - administratively down; Stby – standby • ADM—The interface has been administratively shut down. To recover its physical state, run the undo shutdown command. • Stby—The interface is operating as a standby interface.
reserved: Displays information about the reserved VLANs. Protocol modules determine which VLANs are reserved VLANs according to function implementation, and reserved VLANs serve protocol modules. You cannot configure reserved VLANs. static: Displays the number of static VLANs and the ID for each static VLAN. The static VLANs are manually created. Examples # Display VLAN 2 information.
Related commands vlan interface vlan-interface Use interface vlan-interface to create a VLAN interface and enter its view or to enter the view of an existing VLAN interface. Use undo interface vlan-interface to delete the specified VLAN interface. Syntax interface vlan-interface vlan-interface-id undo interface vlan-interface vlan-interface-id Default No VLAN interface is created. Views System view Predefined user roles network-admin Parameters vlan-interface-id: Specifies a VLAN interface number.
Default The MTU of a VLAN interface is 1500 bytes. Views VLAN interface view Predefined user roles network-admin Parameters size: Sets the MTU in bytes. The value range is 46 to 1500. Usage guidelines The ip mtu command or mtu command configuration on an interface takes effect on only the packets sent to the CPU for software forwarding, for example, the packets destined to or sourced from the interface. Configure the MTU as appropriate to avoid fragmentation.
($), percent sign (%), caret (^), ampersand sign (&), asterisk (*), left brace ({), right brace (}), left parenthesis ((), right parenthesis ()), left bracket ([), right bracket (]), left angle bracket (<), right angle bracket (>), hyphen (-), underscore(_), plus sign (+), equal sign (=), vertical bar (|), back slash (\), colon (:), semi-colon (;) quotation marks ("), apostrophe ('), comma (,), dot (.), and slash (/), spaces, and other Unicode characters and symbols.
In a VLAN, the state of any Ethernet port is independent of the state of the VLAN interface. Examples # Shut down VLAN-interface 2, and then cancel the action of manually shutting down the VLAN interface. system-view [Sysname] interface vlan-interface 2 [Sysname-Vlan-interface2] shutdown [Sysname-Vlan-interface2] undo shutdown vlan Use vlan vlan-id to create a VLAN and enter its view or to enter the view of an existing VLAN.
[Sysname-vlan2] # Create VLAN 4 through VLAN 100. system-view [Sysname] vlan 4 to 100 Related commands display vlan Port-based VLAN commands display port Use display port to display information about the hybrid or trunk ports on the device, including the port names, PVIDs, and allowed VLAN IDs. Syntax display port { hybrid | trunk } Views Any view Predefined user roles network-admin network-operator Parameters hybrid: Displays hybrid ports. trunk: Displays trunk ports.
Field Description VLAN Passing Existing VLANs allowed on the port. Tagged VLANs for which the port sends packets without removing VLAN tags. Untagged VLANs for which the port sends packets after removing VLAN tags. port Use port to assign the specified access ports to the VLAN. Use undo port to remove the specified access ports from the VLAN. Syntax port interface-list undo port interface-list Default All ports are in VLAN 1.
Syntax port access vlan vlan-id undo port access vlan Default All access ports belong to VLAN 1. Views Layer 2 Ethernet interface view, Layer 2 aggregate interface view Predefined user roles network-admin Parameters vlan-id: Specifies a VLAN ID in the range of 1 to 4094. Make sure the VLAN specified by the VLAN ID already exists. Usage guidelines Before assigning an access port to a VLAN, make sure the VLAN has been created.
Predefined user roles network-admin Parameters vlan-id: Specifies a VLAN ID in the range of 1 to 4094. Usage guidelines You can use a nonexistent VLAN as the PVID for a hybrid port. If you remove the PVID of a hybrid port with the undo vlan command, the setting of the PVID on the port is not affected. HP recommends that you set the same PVID for the local and remote hybrid ports. You must configure the hybrid port to allow and forward packets from the PVID by using the port hybrid vlan command.
Views Layer 2 Ethernet interface view, Layer 2 aggregate interface view Predefined user roles network-admin Parameters vlan-id-list: Specifies a list of existing VLANs in the format of vlan-id-list = { vlan-id1 [ to vlan-id2 ] }&<1-10>, where the value range for vlan-id1 and vlan-id2 is 1 to 4094, vlan-id2 cannot be smaller than vlan-id1, and &<1-10> indicates that you can specify up to 10 vlan-id1 [ to vlan-id2 ] parameters.
Views Layer 2 Ethernet interface view, Layer 2 aggregate interface view Predefined user roles network-admin 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, first set the link type to access. • The configuration made in Layer 2 Ethernet interface view applies only to the port.
all: Permits all VLANs to pass through the trunk ports. To prevent unauthorized VLAN users from accessing restricted resources through a port, use the port trunk permit vlan all command with caution. Usage guidelines A trunk port can carry multiple VLANs. If you execute the port trunk permit vlan command multiple times, the trunk port allows the VLANs that are specified by vlan-id-list in each execution. On a trunk port, only packets from the PVID can pass through untagged.
The local and remote trunk ports must use the same PVID for the packets of the PVID to be transmitted correctly. You must configure the trunk port to allow and forward packets from the PVID by using the port trunk permit vlan command. • The configuration made in Layer 2 Ethernet interface view applies only to the port. • The configuration made in Layer 2 aggregate interface view applies to the aggregate interface and its aggregation member ports.
LLDP commands display lldp local-information Use display lldp local-information to display local LLDP information, which will be contained in the advertisable LLDP TLVs and sent to neighboring devices. Syntax display lldp local-information [ global | interface interface-type interface-number ] Views Any view Predefined user roles network-admin network-operator Parameters global: Displays the global local LLDP information.
Manufacturer name : HP Model name : HP FF 5930-32QSFP+ Switch Asset tracking identifier : Unknown LLDP local-information of port 109[FortyGigE1/0/28]: Port ID type : Interface name Port ID : FortyGigE1/0/28 Port description : FortyGigE1/0/28 Interface LLDP agent nearest-bridge management address: Management address type : All802 Management address : 00e0-fc00-5828 Management address interface type : IfIndex Management address interface ID : Unknown Management address OID : 0 LLDP agent n
Field Description Supported capabilities: • Bridge—Switching is supported. • Router—Routing is supported. • DocsisCableDevice—The local device can serve as a System capabilities supported DOCSIS-compliant cable device. • • • • • StationOnly—The local device can serve as a station only. Customer Bridge—The customer bridge function is supported. Service Bridge—The service bridge function is supported. TPMR—The TPMR function is supported. Other—Functions other than those listed above are supported.
Field Description Management address OID Management address object ID. Auto-negotiation supported Indicates whether auto-negotiation is supported on the port. Auto-negotiation enabled Indicates whether auto-negotiation is enabled on the port. OperMau Speed and duplex state of the port. Power port class • PSE—Power sourcing equipment. • PD—Powered device. PSE power supported Indicates whether the device can operate as a PSE. PSE power enabled Indicates whether the device is operating as a PSE.
Parameters interface interface-type interface-number: Displays the LLDP information that a port specified by its type and number receives from the neighboring devices. If this option is not specified, this command displays the LLDP information that all ports receive from the neighboring devices. agent: Displays the LLDP information that the LLDP agents of a specific type receive from the neighboring devices.
Port and protocol VLAN enabled : No VLAN name of VLAN 12: VLAN 0012 Management VLAN ID : 5 Auto-negotiation supported : Yes Auto-negotiation enabled : Yes OperMau : Speed(1000)/Duplex(Full) Power port class : PD PSE power supported : Yes PSE power enabled : Yes PSE pairs control ability : Yes Power pairs : Signal Port power classification : Class 0 Link aggregation supported : Yes Link aggregation enabled : Yes Aggregation port ID : 52 Maximum frame size : 1500 # Display the detail
Power port class : PD PSE power supported : Yes PSE power enabled : Yes PSE pairs control ability : Yes Power pairs : Signal Port power classification : Class 0 Link aggregation supported : Yes Link aggregation enabled : Yes Aggregation port ID : 52 Maximum frame size : 1500 LLDP neighbor-information of port 1[FortyGigE1/0/1]: LLDP agent nearest-nontpmr: LLDP Neighbor index : 1 Update time : 0 days, 0 hours, 1 minutes, 1 seconds Chassis type : MAC address Chassis ID : 000f-0055-0002
# Display the summary LLDP information that all LLDP agents on all ports receive from the neighboring devices.
Field Description Update time Time when LLDP information about a neighboring device was last updated. Type of the neighbor MAC address: LLDP mac type • Nearest bridge. • Nearest customer bridge. • Nearest non-tpmr bridge. Chassis ID representation: Chassis type • • • • • • • Chassis component. Interface alias. Port component. MAC address. Network address (ipv4). Interface name. Locally assigned—Locally-defined chassis type other than those listed above.
Field Description Capabilities enabled on the neighboring device: • Repeater—Signal repeating is enabled. • Bridge—Switching is enabled. • WlanAccessPoint—The neighboring device is serving as a wireless access point. System capabilities enabled • Router—Routing is enabled. • Telephone—The neighboring device is serving as a telephone. • DocsisCableDevice—The neighboring device is serving as a DOCSIS-compliant cable device. • • • • • StationOnly—The neighboring device is serving as a station only.
Field Description TLV information Information contained in the unknown basic TLV type. Unknown organizationally-defined TLV Unknown organizationally specific TLV. TLV OUI OUI of the unknown organizationally specific TLV. TLV subtype Unknown organizationally specific TLV subtype. Index Unknown organization index. Capabilities enabled on the neighboring device: • Repeater—Signal repeating is enabled. • Bridge—Switching is enabled.
nearest-customer: Specifies nearest customer bridge agents. nearest-nontpmr: Specifies nearest non-TPMR bridge agents. Usage guidelines If no keyword or argument is specified, this command displays the global LLDP statistics and the LLDP statistics of all ports. Examples # Display the global LLDP statistics and the LLDP statistics of all ports.
The number of LLDP TLVs discarded : 0 The number of LLDP TLVs unrecognized : 0 The number of LLDP neighbor information aged out : 0 The number of CDP frames transmitted : 0 The number of CDP frames received : 0 The number of CDP frames discarded : 0 The number of CDP error frames : 0 # Display the LLDP statistics for the nearest customer bridge agents on FortyGigE 1/0/1.
network-operator Parameters interface interface-type interface-number: Specifies a port by its type and number. agent: Specifies an LLDP agent type. If no agent type is specified, the command displays the status information for all LLDP agents. nearest-bridge: Specifies nearest bridge agents. nearest-customer: Specifies nearest customer bridge agents. nearest-nontpmr: Specifies nearest non-TPMR bridge agents.
Number of MED neighbors : 2 Number of CDP neighbors : 0 Number of sent optional TLV : 12 Number of received unknown TLV : 5 LLDP agent nearest-customer: Port status of LLDP : Enable Admin status : Tx_Rx Trap flag : No Polling interval : 0s Number of LLDP neighbors : 5 Number of MED neighbors : 2 Number of CDP neighbors : 0 Number of sent optional TLV : 12 Number of received unknown TLV : 5 Table 37 Command output Field Description Bridge mode of LLDP LLDP bridge mode: service-brid
Field Description Number of received unknown TLV Number of unknown TLVs contained in a received LLDPDU. display lldp tlv-config Use display lldp tlv-config to display the types of advertisable optional LLDP TLVs of a port.
IEEE 802.
Management VID TLV YES YES MAC-Physic TLV YES NO Power via MDI TLV YES NO Maximum Frame Size TLV YES NO IEEE 802.3 extend TLV: LLDP-MED extend TLV: Capabilities TLV YES YES Network Policy TLV YES YES Location Identification TLV NO NO Extended Power via MDI TLV YES NO Inventory TLV YES YES Table 38 Command output Field Description LLDP tlv-config of port 1 Advertisable optional TLVs of port 1. NAME TLV type.
Field Description Inventory TLVs: Inventory TLV • • • • • • • Hardware Revision TLV. Firmware Revision TLV. Software Revision TLV. Serial Number TLV. Manufacturer Name TLV. Model name TLV. Asset id TLV. lldp admin-status Use lldp admin-status to specify the LLDP operating mode. Use undo lldp admin-status to restore the default.
Examples # Configure the LLDP operating mode as Rx for the nearest customer bridge agents on FortyGigE 1/0/1. system-view [Sysname] interface fortygige 1/0/1 [Sysname-FortyGigE1/0/1] lldp agent nearest-customer admin-status rx lldp check-change-interval Use lldp check-change-interval to enable LLDP polling and set the polling interval. Use undo lldp check-change-interval to restore the default.
Use undo lldp compliance admin-status cdp to restore the default. Syntax lldp compliance admin-status cdp { disable | txrx } undo lldp compliance admin-status cdp Default CDP-compatible LLDP operates in disable mode. Views Layer 2 Ethernet interface view, Layer 3 Ethernet interface view Predefined user roles network-admin Parameters disable: Specifies the disable mode, where CDP-compatible LLDP cannot receive or transmit CDP packets.
Predefined user roles network-admin Usage guidelines Because the maximum TTL allowed by CDP is 255 seconds, the TTL configuration must be no more than 255 seconds for CDP-compatible LLDP to operate with Cisco IP phones. The TTL configuration is the product of the TTL multiplier and the LLDPDU transmit interval, which should be configured to be no more than 1/3 of the TTL value. Examples # Enable LLDP to be compatible with CDP globally.
lldp encapsulation snap Use lldp encapsulation snap to configure the encapsulation format for LLDPDUs as SNAP. Use undo lldp encapsulation to restore the default.
Default The number is 4. Views System view Predefined user roles network-admin Parameters count: Sets the number of LLDPDUs sent each time fast LLDPDU transmission is triggered. The value range is 1 to 8. Examples # Configure the device to send five LLDPDUs each time fast LLDPDU transmission is triggered. system-view [Sysname] lldp fast-count 5 lldp global enable Use lldp global enable to enable LLDP globally. Use undo lldp global enable to disable LLDP globally.
lldp hold-multiplier Use lldp hold-multiplier to set the TTL multiplier. Use undo lldp hold-multiplier to restore the default. Syntax lldp hold-multiplier value undo lldp hold-multiplier Default The TTL multiplier is 4. Views System view Predefined user roles network-admin Parameters value: Sets the TTL multiplier in the range of 2 to 10. Usage guidelines The TTL TLV carried in an LLDPDU determines how long the device information carried in the LLDPDU can be saved on a recipient device.
In Layer 2 or Layer 3 aggregate interface view: lldp agent { nearest-customer | nearest-nontpmr } management-address-format string undo lldp agent { nearest-customer | nearest-nontpmr } management-address-format Default The value in the management address TLV is numeric type. Views Layer 2 Ethernet interface view, Layer 3 Ethernet interface view, Layer 2 aggregate interface view, Layer 3 aggregate interface view Predefined user roles network-admin Parameters agent: Specifies an LLDP agent type.
Parameters credit-value: Specifies the token bucket size for sending LLDPDUs, in the range of 1 to 100. Examples # Set the token bucket size for sending LLDPDUs to 10. system-view [Sysname] lldp max-credit 10 lldp mode Use lldp mode to configure LLDP to operate in service bridge mode. Use undo lldp mode to restore the default. Syntax lldp mode service-bridge undo lldp mode Default LLDP operates in customer bridge mode.
lldp notification med-topology-change enable Use lldp notification med-topology-change enable to enable LLDP-MED trapping. Use undo lldp notification med-topology-change enable to disable LLDP-MED trapping. Syntax lldp notification med-topology-change enable undo lldp notification med-topology-change enable Default LLDP-MED trapping is disabled on ports.
Parameters agent: Specifies an LLDP agent type. If no agent type is specified in Ethernet interface view, the command enables LLDP trapping for nearest bridge agents. nearest-customer: Specifies nearest customer bridge agents. nearest-nontpmr: Specifies nearest non-TPMR bridge agents. Examples # Enable LLDP trapping for the nearest customer bridge agents on FortyGigE 1/0/1.
Default The LLDP trap transmit interval and LLDP-MED trap transmit interval are both 30 seconds. Views System view Predefined user roles network-admin Parameters interval: Sets the LLDP trap transmit interval and LLDP-MED trap transmit interval in the range of 5 to 3600 seconds. Examples # Set both the LLDP trap transmit interval and LLDP-MED trap transmit interval to 8 seconds.
Syntax lldp timer tx-interval interval undo lldp timer tx-interval Default The LLDPDU transmit interval is 30 seconds. Views System view Predefined user roles network-admin Parameters interval: Sets the LLDPDU transmit interval in the range of 5 to 32768 seconds. Examples # Set the LLDPDU transmit interval to 20 seconds. system-view [Sysname] lldp timer tx-interval 20 lldp tlv-enable Use lldp tlv-enable to configure the types of advertisable TLVs.
lldp agent nearest-customer tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ip-address ] } | dot1-tlv { all | port-vlan-id | link-aggregation } } undo lldp agent nearest-customer tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv } | dot1-tlv { all | port-vlan-id | link-aggregation } } In Layer 3 Ethernet interface view: • lldp tlv-enable { basic-tlv
Default On Layer 2 Ethernet interfaces: • Nearest bridge agents can advertise all types of LLDP TLVs except the location identification TLV, port and protocol VLAN ID TLVs, VLAN name TLVs, and management VLAN ID TLVs. • Nearest non-TPMR bridge agents cannot advertise any TLVs. • Nearest customer bridge agents can advertise basic TLVs and IEEE 802.1 organizationally specific TLVs.
VLANs permitted on the port. If none of the VLAN interfaces of the permitted VLANs is assigned an IP address or all VLAN interfaces are down, the MAC address of the port will be advertised. • For a Layer 3 Ethernet interface or a Layer 3 aggregate interface, the management address is its own IP address. If no IP address is configured for the Layer 3 Ethernet or the Layer 3 aggregate interface, the MAC address of the port will be advertised. port-description: Advertises port description TLVs.
tel-number: Sets the telephone number for emergencies, a string of 10 to 25 characters. network-policy: Advertises network policy TLVs. power-over-ethernet: Advertises extended power-via-MDI TLVs. Usage guidelines Nearest bridge agents are not supported on aggregate interfaces. You can enable the device to advertise multiple types of TLVs by using this command without the all keyword specified.
Cut-through forwarding commands cut-through enable Use cut-through enable to enable cut-through forwarding. Use undo cut-through enable to restore the default. Syntax cut-through enable undo cut-through enable Default Cut-through forwarding is disabled. Views System view Predefined user roles network-admin Usage guidelines A cut-through forwarding-enabled device forwards a frame after it receives the first 64 bytes of the frame.
Service loopback group commands display service-loopback group Use display service-loopback group to display information about the service loopback group. Syntax display service-loopback group [ number ] Views Any view Predefined user roles network-admin network-operator Parameters number: Specifies the service loopback group ID. The value range for the number argument is 1 to 1024. You do not need to specify the group ID for this command to display information about the service loopback group.
Syntax port service-loopback group number undo port service-loopback group Default The service loopback group does not contain ports. Views Layer 2 Ethernet interface view Predefined user roles network-admin Parameters number: Specifies the service loopback group ID. The value range for the number argument is 1 to 1024. Usage guidelines Before assigning a port to the service loopback group, make sure the port supports the service type of the group.
tunnel: Specifies the unicast tunnel service. Usage guidelines The device supports only one service loopback group. The service loopback group must work with other features, such as GRE. It can be used by multiple features. You must create the service loopback group before you can use it with a feature. You cannot change the service type of the service loopback group. For correct traffic processing, do not delete a service loopback group that is being used by a feature.
Support and other resources Contacting HP For worldwide technical support information, see the HP support website: http://www.hp.
Conventions This section describes the conventions used in this documentation set. Command conventions Convention Description Boldface Bold text represents commands and keywords that you enter literally as shown. Italic Italic text represents arguments that you replace with actual values. [] Square brackets enclose syntax choices (keywords or arguments) that are optional. { x | y | ... } Braces enclose a set of required syntax choices separated by vertical bars, from which you select one.
Network topology icons Represents a generic network device, such as a router, switch, or firewall. Represents a routing-capable device, such as a router or Layer 3 switch. Represents a generic switch, such as a Layer 2 or Layer 3 switch, or a router that supports Layer 2 forwarding and other Layer 2 features. Represents an access controller, a unified wired-WLAN module, or the switching engine on a unified wired-WLAN switch. Represents an access point.
Index ABCDFIJLMNPRSUV display lldp statistics,160 A display lldp status,162 active region-configuration,81 display lldp tlv-config,165 B display loopback-detection,126 bandwidth,132 display mac-address,44 bandwidth,27 display mac-address aging-time,45 bandwidth,55 display mac-address statistics,46 bandwidth,1 display packet-drop,17 bpdu-drop any,81 display port,142 C display service-loopback group,186 display stp,83 check region-configuration,82 display stp abnormal-port,88 cut-through
lacp period short,71 mtu,138 lacp system-priority,71 N link-aggregation global load-sharing mode,72 name,139 link-aggregation ignore vlan,73 link-aggregation lacp traffic-redirect-notification enable,74 P link-aggregation load-sharing mode,74 port access vlan,143 port,143 link-aggregation mode,75 port hybrid pvid,144 link-aggregation port-priority,76 port hybrid vlan,145 link-aggregation selected-port minimum,77 port link-aggregation group,78 lldp admin-status,168 port link-mode,20 lldp c
stp tc-protection,118 stp loop-protection,107 stp max-hops,107 stp tc-protection threshold,119 stp mcheck,108 stp tc-restriction,119 stp mode,109 stp timer forward-delay,120 stp no-agreement-check,110 stp timer hello,121 stp pathcost-standard,110 stp timer max-age,122 stp point-to-point,111 stp timer-factor,122 stp port priority,112 stp transmit-limit,123 stp port-log,113 U stp priority,114 using fortygige,25 stp region-configuration,114 using tengige,26 stp role-restriction,115 stp roo