Download  Print this page

Advertisement

HP A5830 Switch Series
Layer 2 - LAN Switching

Command Reference

Abstract
This document describes the commands and command syntax options available for the HP A Series
products.
This document is intended for network planners, field technical support and servicing engineers, and
network administrators who work with HP A Series products.
Part number: 5998-2073
Software version: Release 1109
Document version: 6W100-20110715

Advertisement

Table of Contents

   Summary of Contents for HP A5830 Series

  • Page 1: Command Reference

    Layer 2 - LAN Switching Command Reference Abstract This document describes the commands and command syntax options available for the HP A Series products. This document is intended for network planners, field technical support and servicing engineers, and network administrators who work with HP A Series products.
  • Page 2 The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an...
  • Page 3: Table Of Contents

    Contents Ethernet interface configuration commands ·················································································································· 1 General Ethernet interface configuration commands ···································································································· 1 default ········································································································································································ 1 description ································································································································································· 1 display counters ························································································································································ 2 display counters rate ················································································································································ 3 display interface ······················································································································································· 5 display packet-drop interface······························································································································· 14 display packet-drop summary ······························································································································ 15 display port combo ···············································································································································...
  • Page 4 reset counters interface null ·································································································································· 47 shutdown ································································································································································ 48 MAC address table configuration commands ············································································································ 49 display mac-address ············································································································································· 49 display mac-address aging-time ·························································································································· 50 display mac-address statistics ······························································································································ 51 mac-address (interface view) ······························································································································· 52 mac-address (system view) ··································································································································· 53 mac-address mac-learning disable ······················································································································...
  • Page 5 display stp region-configuration ························································································································ 107 display stp root ···················································································································································· 108 display stp tc ························································································································································ 109 instance ································································································································································ 111 region-name ························································································································································· 112 reset stp ································································································································································ 112 revision-level ························································································································································· 113 stp bpdu-protection ·············································································································································· 114 stp bridge-diameter ············································································································································· 114 stp compliance ····················································································································································· 115 stp config-digest-snooping ··································································································································...
  • Page 6 display port ·························································································································································· 154 port········································································································································································ 155 port access vlan ··················································································································································· 156 port hybrid pvid ··················································································································································· 157 port hybrid vlan ··················································································································································· 158 port link-type ························································································································································ 160 port trunk permit vlan ·········································································································································· 161 port trunk pvid ····················································································································································· 162 MAC-based VLAN configuration commands ············································································································ 163 display mac-vlan ··················································································································································...
  • Page 7 Service loopback group configuration commands ································································································· 234 display service-loopback group ························································································································· 234 port service-loopback group ······························································································································ 235 service-loopback group ······································································································································ 236 Support and other resources ····································································································································· 237 Contacting HP ······························································································································································ 237 Subscription service ············································································································································ 237 Related information ······················································································································································ 237 Documents ···························································································································································· 237 Websites ······························································································································································ 237 Conventions ··································································································································································...
  • Page 8: Ethernet Interface Configuration Commands

    Ethernet interface configuration commands General Ethernet interface configuration commands default Description Use the default command to restore the default settings for an Ethernet interface. This command might fail to restore the default settings for some commands for reasons such as command dependencies and system restrictions.
  • Page 9: Display Counters

    The default description of an interface is the interface name plus Interface. For example, GigabitEthernet1/0/1 Interface. Related commands: display interface. Syntax description text undo description View Ethernet interface view Default level 2: System level Parameter text: Specifies the interface description, a string of 1 to 80 characters. The string can include case- sensitive letters, digits, special characters (including ~ ! @ # $ % ^ &...
  • Page 10: Display Counters Rate

    Default level 1: Monitor level Parameters inbound: Displays inbound traffic statistics. outbound: Displays outbound traffic statistics. interface-type: Specifies an interface type. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
  • Page 11 The statistics cover only interfaces in the up state. If an interface type is specified, the command displays traffic rate statistics for all up interfaces of the specified type. If no interface type is specified, the command displays traffic rate statistics for all up interfaces that have traffic counters. To set the statistics polling interval, use the flow-interval command.
  • Page 12: Display Interface

    Field Description Average rate (packets per second) of receiving or sending multicast packets Multicast (pkts/sec) during the sampling interval The command displays Overflow, if any of the following applies: Overflow: more than 14 The data length of an error statistic is greater than 7 decimal digits decimal digits.
  • Page 13 GigabitEthernet1/0/1 current state: DOWN Line protocol current state: DOWN Description: GigabitEthernet1/0/1 Interface The Maximum Transmit Unit is 1500 Internet protocol processing : disabled IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 3ce5-a6df-e139 IPv6 Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 3ce5-a6df-e139 Media type is twisted pair Port hardware type is 1000_BASE_T Port priority: 0...
  • Page 14 Field Description Link layer state of the interface: DOWN—Interface is down physically. Line protocol current state UP—Interface is up physically. Description Description of the Ethernet interface. 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.
  • Page 15 PVID: 1 Mdi type: auto Port link-type: access Tagged VLAN ID : none Untagged VLAN ID : 1 Port priority: 0 Last clearing of counters: Never Peak value of input: 0 bytes/sec, at 2011-05-28 10:02:36 Peak value of output: 0 bytes/sec, at 2011-05-28 10:02:36 Last 300 seconds input: 0 packets/sec 0 bytes/sec -% Last 300 seconds output:...
  • Page 16 Field Description Multicast suppression threshold as a percentage of the interface Multicast MAX-ratio transmission capability. When the threshold is exceeded, the interface drops multicast packets. Maximum length of Ethernet frames that are allowed to pass through Allow jumbo frame to pass the interface.
  • Page 17 Field Description Total number of illegal inbound packets: Fragment frames—CRC error frames shorter than 64 bytes. The length can be an integral or non-integral value. Jabber frames—CRC error frames greater than the maximum frame length supported on the Ethernet interface (with an integral or non- integral length).
  • Page 18 Field Description Number of times that the port failed to detect the carrier when - no carrier attempting to send frames. This counter applies to serial WAN interfaces. NOTE: If an output field is not available, a hyphen (-) is displayed. Table 5 Description on the possible physical states of a Layer 2 Ethernet interface Field Description...
  • Page 19 GE1/0/3 DOWN auto GE1/0/4 DOWN auto GE1/0/5 DOWN auto GE1/0/6 DOWN auto GE1/0/7 DOWN auto GE1/0/8 DOWN auto GE1/0/9 DOWN auto GE1/0/10 DOWN auto GE1/0/11 DOWN auto # Filter the brief interface information to display the line starting with the (s) string and all subsequent lines.
  • Page 20 Field Description If the network layer protocol state of an interface is shown as UP, but its link is an on-demand link or not present at all, its protocol attribute includes the Protocol: (s) - spoofing spoofing flag (an s in parentheses). This attribute is typical of interface Null 0 and the loopback interfaces.
  • Page 21: Display Packet-drop Interface

    Field Description Port was shut down with the shutdown command. To restore the physical Administratively state of the interface, use the undo shutdown command. Link-Aggregation interface Aggregate interface corresponding to the aggregation group to which the down interface belongs was shut down with the shutdown command. OAM connection fails (possibly because the connection fails to be OAM connection failure established or the connection is disconnected).
  • Page 22: Display Packet-drop Summary

    Example # Display information about dropped packets on GigabitEthernet 1/0/1. <Sysname> display packet-drop interface gigabitethernet 1/0/1 GigabitEthernet1/0/1: Packets dropped by GBP full or insufficient bandwidth: 301 Packets dropped by FFP: 261 Packets dropped by STP non-forwarding state: 321 Table 8 Command output Field Description Packets dropped by GBP full or insufficient...
  • Page 23: Display Port Combo

    For the description of some fields in the output, see Table display port combo Description Use the display port combo command to display the combo interfaces of the switch and the fiber and copper combo ports. Syntax display port combo [ | { begin | exclude | include } regular-expression ] View Any view Default level...
  • Page 24: Flow-interval

    Use the undo duplex command to restore the default duplex mode of the Ethernet interface. By default, Ethernet interfaces operate in auto-negotiation mode. Related commands: speed. Syntax duplex { auto | full | half } undo duplex View Ethernet interface view Default level 2: System level Parameters...
  • Page 25: Interface

    Parameter interval: Sets the statistics polling interval, in seconds. It ranges from 5 to 300 and must be a multiple of Example # Set the statistics polling interval to 100 seconds on GigabitEthernet 1/0/1. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] flow-interval 100 interface Description...
  • Page 26: Link-delay

    View Ethernet interface view, port group view Default level 2: System level Parameter value: Sets the maximum length of Ethernet frames that are allowed to pass through, ranging from 1536 to 9216 bytes. If you set the value parameter multiple times, the latest configuration takes effect. Example # Configure the switch to allow jumbo frames within 9216 bytes to pass through GigabitEthernet 1/0/1.
  • Page 27: Loopback

    loopback Description Use the loopback command to enable loopback testing on an Ethernet interface. By default, loopback testing is disabled on Ethernet interfaces. Enable loopback testing for troubleshooting purposes, such as identifying an Ethernet problem. During loopback testing, the speed, duplex, mdi, and shutdown commands are not available. In addition, the port is operating in full duplex mode, regardless of its duplex configuration.
  • Page 28: Port Link-mode Interface-list

    View Ethernet interface view Default level 2: System level Parameters bridge: Specifies the Layer 2 mode. route: Specifies the Layer 3 mode. Example # Configure GigabitEthernet 1/0/1 to operate in Layer 2 mode. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] display this interface GigabitEthernet1/0/1 port link-mode route Return...
  • Page 29: Reset Counters Interface

    The link mode configuration for an Ethernet interface in system view and that in interface view supersede each other. The command that is configured last takes effect. Syntax port link-mode { bridge | route } interface-list View System view Default level 2: System level Parameters bridge: Specifies the Layer 2 mode.
  • Page 30: Reset Packet-drop Interface

    Example # Clear the statistics of GigabitEthernet 1/0/1. <Sysname> reset counters interface gigabitethernet 1/0/1 reset packet-drop interface Description Use the reset packet-drop interface command to clear statistics of dropped packets on an interface or multiple interfaces. Sometimes you need to clear the old statistics before you can collect statistics of dropped packets: If you do not specify an interface type, this command clears statistics of dropped packets on all the interfaces on the switch.
  • Page 31: Speed

    Syntax shutdown undo shutdown View Ethernet interface view, port group view Default level 2: System level Parameters None Examples # Shut down and then bring up GigabitEthernet 1/0/1. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] shutdown [Sysname-GigabitEthernet1/0/1] undo shutdown # Shut down all member ports in the port group named group1. <Sysname>...
  • Page 32: Layer 2 Ethernet Interface Configuration Commands

    Default level 2: System level Parameters 10: Sets the interface speed to 10 Mbps. This parameter is not applicable to GE and 10-GE fiber ports. 100: Sets the interface speed to 100 Mbps. This parameter is not applicable to 10-GE fiber ports. 1000: Sets the interface speed to 1000 Mbps.
  • Page 33: Display Loopback-detection

    Parameters ratio: Sets the broadcast suppression threshold as a percentage of the transmission capability of an Ethernet interface, ranging from 1 to 100. The smaller the percentage, the less broadcast traffic is allowed to pass through. pps max-pps: Specifies the maximum number of broadcast packets that the Ethernet interface can forward per second: For GE ports, the max-pps parameter ranges from 1 to 1,488,100 pps.
  • Page 34: Display Port-group Manual

    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. Example # Display information about loopback detection. <Sysname> display loopback-detection Loopback detection is running. Detection interval is 30 seconds. No port is detected with loopback.
  • Page 35: Group-member

    Examples # Display the names of all port groups. <Sysname> display port-group manual The following manual port group exist(s): group1 group2 # Display detailed information about all port groups. <Sysname> display port-group manual all Member of group1: GigabitEthernet1/0/3 GigabitEthernet1/0/4 GigabitEthernet1/0/5 GigabitEthernet1/0/6 GigabitEthernet1/0/7 Member of group2:...
  • Page 36: Loopback-detection Action

    [Sysname] port-group manual group1 [Sysname-port-group-manual-group1] group-member gigabitethernet 1/0/1 loopback-detection action Description Use the loopback-detection action command to configure the action for loop protection on Ethernet interfaces. Use the undo loopback-detection action command to restore the default. By default, a looped interface does not receive or send packets. When you change the link type of an Ethernet interface by using the port link-type command, the switch removes the protective action configured on the interface.
  • Page 37: Loopback-detection Control Enable

    loopback-detection control enable Description Use the loopback-detection control enable command to enable loopback detection control on trunk or hybrid ports. Use the undo loopback-detection control enable command to restore the default. By default, loopback detection control is disabled on trunk and hybrid ports. When a hybrid or trunk port detects a loop condition, it sends traps, whether loopback detection control is enabled or not.
  • Page 38: Loopback-detection Interval-time

    If an interface receives a packet that it sent out, a loop has occurred. Loops may cause broadcast storms, which degrade network performance. You can enable loopback detection to detect loops on an interface and, if the interface supports the loopback-detection action command, configure the protective action (for example, shut down the port) to take on the interface when a loop is detected.
  • Page 39: Loopback-detection Per-vlan Enable

    Use the undo loopback-detection interval-time command to restore the default loopback detection interval. The default loopback detection interval is 30 seconds. Related commands: display loopback-detection. Syntax loopback-detection interval-time time undo loopback-detection interval-time View System view Default level 2: System level Parameter time: Sets the loopback detection interval, ranging from 5 to 300 seconds.
  • Page 40: Mdi

    <Sysname> system-view [Sysname] loopback-detection enable [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] loopback-detection enable [Sysname-GigabitEthernet1/0/1] port link-type trunk [Sysname-GigabitEthernet1/0/1] loopback-detection per-vlan enable Description Use the mdi command to configure the MDI mode of a copper Ethernet interface. Use the undo mdi command to restore the default. By default, Ethernet interfaces operate in auto MDI mode.
  • Page 41 If you execute this command in Ethernet interface view, the configurations take effect only on the interface. If you execute this command in port group view, the configurations take effect on all ports in the port group. When multicast traffic exceeds the threshold you configure, the system discards multicast packets until the multicast traffic drops below the threshold.
  • Page 42: Port Auto-power-down

    port auto-power-down Description Use the port auto-power-down command to enable auto power-down on Ethernet interfaces for energy efficiency. Use the undo port auto-power-down to restore the default. By default, auto power-down is disabled on Ethernet interfaces. Syntax port auto-power-down undo port auto-power-down View Layer 2 Ethernet interface view, port group view Default level...
  • Page 43: Speed Auto

    Default level 2: System level Parameter port-group-name: Sets the port group name, a string of 1 to 32 characters. Example # Create port group group1. <Sysname> system-view [Sysname] port-group manual group1 [Sysname-port-group-manual-group1] speed auto Description Use the speed auto command to set options for speed auto negotiation. Use the undo speed command to restore the default.
  • Page 44: Unicast-suppression

    [Sysname-GigabitEthernet1/0/1] speed auto 10 1000 unicast-suppression Description Use the unicast-suppression command to set the unknown unicast suppression threshold on one or multiple Ethernet interfaces. Use the undo unicast-suppression command to restore the default. By default, Ethernet interfaces do not suppress unknown unicast traffic. If you execute this command in Ethernet interface view, the configurations take effect only on the interface.
  • Page 45: Virtual-cable-test

    <Sysname> system-view [Sysname] port-group manual group1 [Sysname-port-group-manual-group1] group-member gigabitethernet 1/0/1 [Sysname-port-group-manual-group1] group-member gigabitethernet 1/0/2 [Sysname-port-group-manual-group1] unicast-suppression 20 virtual-cable-test Description Use the virtual-cable-test command to test the cable connection of an Ethernet interface. The test results are displayed within five seconds. The following cable states are available: Normal—The cable is in good condition.
  • Page 46: Layer 3 Ethernet Interface Configuration Commands

    NOTE: The Pair Impedance mismatch field has the following values: Yes—Match No—Mismatch Layer 3 Ethernet interface configuration commands Description Use the mtu command to set the MTU for a Layer 3 Ethernet interface. Use the undo mtu command to restore the default. By default, the MTU of a Layer 3 Ethernet interface is 1500 bytes.
  • Page 47: Loopback And Null Interface Configuration Commands

    Loopback and null interface configuration commands default Description Use the default command to restore the default settings for the loopback or null interface. This command might fail to restore the default settings for some commands for reasons such as command dependencies and system restrictions.
  • Page 48: Display Interface Loopback

    By default, the description of a loopback or null interface is interface name Interface. For example: Loopback1 interface. Related commands: display interface. Syntax description text undo description View Loopback interface view, null interface view Default level 2: System level Parameter text: Creates an interface description, a string of 1 to 80 characters.
  • Page 49 display interface loopback interface-number [ brief ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters interface-number: Specifies the loopback interface number, which can be the number of any existing loopback interface.
  • Page 50 Table 12 Command output Field Description current state Physical state (up or administratively down) of the interface. State of the data link layer protocol: up (spoofing). Spoofing refers to the spoofing attribute of the interface. When the Line protocol current state 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.
  • Page 51: Display Interface Null

    Field Description Link status: ADM—Interface has been shut down administratively. To Link: ADM - administratively down; Stby - recover its physical state, perform the undo shutdown command. standby Stby—Interface is operating as a backup interface. To see the primary interface, use the display standby state command in the High Availability Command Reference.
  • Page 52 Default level 1: Monitor level Parameters 0: Specifies interface Null 0. The null interface number is fixed at 0, because the device has only one null interface. brief: Displays brief interface information. If you do not specify this parameter, this command displays detailed interface information.
  • Page 53: Interface Loopback

    interface loopback Description Use the interface loopback command to create a loopback interface or enter loopback interface view. Use the undo interface loopback command to remove a loopback interface. Related commands: display interface loopback. Syntax interface loopback interface-number undo interface loopback interface-number View System view Default level...
  • Page 54: Reset Counters Interface Loopback

    Example # Enter Null 0 interface view. <Sysname> system-view [Sysname] interface null 0 [Sysname-NULL0] reset counters interface loopback Description Use the reset counters interface loopback command to clear statistics on loopback interfaces. Before collecting traffic statistics within a specific period of time on a loopback interface, clear the existing statistics: If you do not specify the loopback parameter, this command clears the statistics on all interfaces in the system.
  • Page 55: Shutdown

    View User view Default level 2: System level Parameter 0: Specifies the number of the null interface, which is fixed at 0. Example # Clear statistics on interface Null 0. <Sysname> reset counters interface null 0 shutdown Description Use the shutdown command to shut down the loopback interface. Use the undo shutdown command to bring up the loopback interface.
  • Page 56: Mac Address Table Configuration Commands

    MAC address table configuration commands The MAC address table can contain only Layer 2 Ethernet ports and Layer 2 aggregate interfaces. This document covers only the configuration of unicast MAC address table entries, including static, dynamic, and blackhole MAC address table entries. display mac-address Description Use the display mac-address command to display information about the MAC address table.
  • Page 57: Display Mac-address Aging-time

    |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals 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.
  • Page 58: Display Mac-address Statistics

    Related commands: mac-address (system view), mac-address (interface view), mac-address timer, and display mac-address. Syntax display mac-address aging-time [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
  • Page 59: Mac-address (interface View)

    regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Example # Display the statistics of the MAC address table. <Sysname> display mac-address statistics MAC TYPE LEARNED USER-DEFINED SYSTEM-DEFINED IN-USE AVAILABLE Dynamic Unicast Static Unicast 5120 Total Unicast 32768 Dynamic Multicast...
  • Page 60: Mac-address (system View)

    View Layer 2 Ethernet interface view, Layer 2 aggregate interface view Default level 2: System level Parameters dynamic: Specifies dynamic MAC address entries. These entries can age. static: Specifies static MAC address entries. They do not age, but you can add or remove them. mac-address: Specifies a MAC address in the format of H-H-H, where 0s at the beginning of each H (16- bit hexadecimal digit) can be omitted.
  • Page 61: Mac-address Mac-learning Disable

    Syntax mac-address blackhole mac-address vlan vlan-id mac-address { dynamic | static } mac-address interface interface-type interface-number vlan vlan-id undo mac-address [ { dynamic | static } mac-address interface interface-type interface-number vlan vlan- id ] undo mac-address [ blackhole | dynamic | static ] [ mac-address ] vlan vlan-id undo mac-address [ dynamic | static ] mac-address interface interface-type interface-number vlan vlan-id undo mac-address [ dynamic | static ] interface interface-type interface-number View...
  • Page 62: Mac-address Max-mac-count

    Follow these guidelines when configuring MAC address learning: You may need to disable MAC address learning to prevent the MAC address table from being saturated. For example, when your device is being attacked by many packets with different source MAC addresses, it affects the update of the MAC address table. Because disabling MAC address learning may result in broadcast storms, enable broadcast storm suppression after you disable MAC address learning on a port.
  • Page 63: Mac-address Timer

    Use the undo mac-address max-mac-count command to restore the default maximum number of MAC addresses that can be learned on an Ethernet port. By default, no MAC learning limit is configured. If the command is executed in interface view, the configuration takes effect on the interface only. If the command is executed in port group view, the configuration takes effect on all ports in the port group.
  • Page 64 Default level 2: System level Parameters aging seconds: Sets an aging timer (in seconds) for dynamic MAC address entries. The value is in the range of 10 to 1,000,000 seconds. no-aging: Sets dynamic MAC address entries not to age. Example # Set the aging timer for dynamic MAC address entries to 500 seconds.
  • Page 65: Mac Information Configuration Commands

    MAC Information configuration commands MAC Information applies only to Layer 2 Ethernet interfaces. mac-address information enable (Ethernet interface view) Description Use the mac-address information enable command to enable MAC Information on the Layer 2 Ethernet interface. Use the undo mac-address information enable command to disable MAC Information on the Layer 2 Ethernet interface.
  • Page 66: Mac-address Information Interval

    Syntax mac-address information enable undo mac-address information enable View System view Default level 2: System level Parameters None Example # Enable MAC Information globally. <Sysname> system-view [Sysname] mac-address information enable mac-address information interval Description Use the mac-address information interval command to set the interval for sending Syslog or trap messages.
  • Page 67: Mac-address Information Mode

    mac-address information mode Description Use the mac-address information mode command to set the MAC Information mode (to use Syslog messages or trap messages) to inform the remote network management device of MAC address changes. Use the undo mac-address information mode command to restore the default. By default, trap messages are sent to inform the remote network management device of MAC address changes.
  • Page 68 View System view Default level 2: System level Parameter value: Specifies the MAC Information queue length, in the range of 0 to 1000. Example # Set the MAC Information queue length to 600. <Sysname> system-view [Sysname] mac-address information queue-length 600...
  • Page 69: Ethernet Link Aggregation Configuration Commands

    Ethernet link aggregation configuration commands default Description Use the default command to restore the default settings for an aggregate interface. This command might fail to restore the default settings for some commands for reasons such as command dependencies and system restrictions. You can use the display this command in interface view to check for these commands, and perform their undo forms or follow the command reference to individually restore their default settings.
  • Page 70: Display Interface

    By default, the description of an interface is interface-name Interface. For example, the default description of Bridge-Aggregation1 is Bridge-Aggregation1 Interface. Syntax description text undo description View Layer 2 aggregate interface view Default level 2: System level Parameter text: Specifies the interface description, a string of 1 to 80 characters. Example # Set the description of Layer 2 aggregate interface Bridge-Aggregation 1 to connect to the lab.
  • Page 71 interface-number: Specifies an existing aggregate interface number. The value range for the interface- number parameter is the set of all existing aggregate interface numbers. brief: Displays brief interface information. If you do not specify this parameter, this command displays detailed interface information. down: Displays information about interfaces in the DOWN state and the causes.
  • Page 72 Link: ADM - administratively down; Stby - standby Speed or Duplex: (a)/A - auto; H - half; F - full Type: A - access; T - trunk; H - hybrid Interface Link Speed Duplex Type PVID Description BAGG1 DOWN auto Table 15 Command output Field Description...
  • Page 73: Display Lacp System-id

    Field Description Link status: ADM—Interface has been shut down administratively. To recover its Link: ADM - administratively physical layer state, perform the undo shutdown command. down; Stby - standby Stby—Interface is operating as a backup interface. To see the primary interface, use the display standby state command (see High Availability Command Reference).
  • Page 74: Display Link-aggregation Load-sharing Mode

    Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals 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.
  • Page 75 Parameters bridge-aggregation: Displays the load sharing criteria of the aggregation group corresponding to the specified Layer 2 aggregate interface. interface-number: Specifies an existing aggregate interface number. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
  • Page 76: Display Link-aggregation Member-port

    Field Description Link-aggregation load sharing criteria of the aggregation group corresponding to the aggregate interface Bridge-Aggregation 10. Bridge-Aggregation10 Load- By default, the global link-aggregation load sharing criteria are Sharing Mode displayed. If you have configured link-aggregation load sharing criteria especially for this aggregation group, the configured ones are displayed.
  • Page 77 |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals 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.
  • Page 78: Display Link-aggregation Summary

    Table 18 Command output Field Description LACP state flags: A—LACP is enabled B—Indicates the LACP short timeout C—Sending system detects that the link is aggregatable Flags D—Sending system detects that the link is synchronized E—Sending system detects that the incoming frames are collected F—Sending system detects that the outgoing frames are distributed G—Sending system receives frames in the default state H—Sending system receives frames in the expired state...
  • Page 79 Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals 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.
  • Page 80: Display Link-aggregation Verbose

    Field Description Share Type Load sharing type display link-aggregation verbose Description Use the display link-aggregation verbose command to display detailed information about the aggregation groups corresponding to the aggregate interfaces. Use the display link-aggregation verbose bridge-aggregation interface-number command to display information about a specific Layer 2 aggregation group.
  • Page 81 Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, D -- Synchronization, E -- Collecting, F -- Distributing, G -- Defaulted, H -- Expired Aggregation Interface: Bridge-Aggregation10 Aggregation Mode: Dynamic Loadsharing Type: Shar System ID: 0x8000, 000f-e267-6c6a Local: Port Status Priority Oper-Key Flag...
  • Page 82: Enable Snmp Trap Updown

    Field Description LACP state flags: A—LACP is enabled. B—Indicates the LACP short timeout. C—Sending system detects that the link is aggregatable Flags D—Sending system detects that the link is synchronized E—Sending system detects that the incoming frames are collected F—Sending system detects that the outgoing frames are distributed G—Sending system receives frames in the default state H—Sending system receives frames in the expired state Aggregation Interface...
  • Page 83: Interface Bridge-aggregation

    Syntax enable snmp trap updown undo enable snmp trap updown View Layer 2 aggregate interface view Default level 2: System level Parameters None Example # Enable linkUp/linkDown trap generation on Layer 2 aggregate interface Bridge-Aggregation 1. <Sysname> system-view [Sysname] snmp-agent trap enable [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] enable snmp trap updown interface bridge-aggregation...
  • Page 84: Lacp Period Short

    [Sysname-Bridge-Aggregation1] lacp period short Description Use the lacp period short command to set the LACP timeout interval on a port to the short timeout interval (1 second). Use the undo lacp period command to restore the default setting. The default LACP timeout interval is the long timeout interval (30 seconds). Syntax lacp period short undo lacp period...
  • Page 85: Link-aggregation Lacp Traffic-redirect-notification Enable

    Parameter system-priority: Specifies the LACP priority of the local system, in the range of 0 to 65,535. The smaller the value, the higher the system LACP priority. Example # Set the system LACP priority to 64. <Sysname> system-view [Sysname] lacp system-priority 64 link-aggregation lacp traffic-redirect-notification enable Description Use the link-aggregation lacp traffic-redirect-notification enable command to enable link-aggregation...
  • Page 86 Use the undo link-aggregation load-sharing mode command to restore the default setting. By default, Layer 2 packets are load-shared based on the source/destination MAC addresses and incoming ports; Layer 3 packets are load-shared based on the source/destination IP addresses. The load sharing criteria that you configure will overwrite the previous criteria. If unsupported load sharing criteria are configured, an error prompt will appear.
  • Page 87: Link-aggregation Load-sharing Mode Local-first

    destination-mac: Performs load sharing in link aggregation groups based on destination MAC address. destination-port: Performs load sharing in link aggregation groups based on destination port. ingress-port: Performs load sharing in link aggregation groups based on ingress port. 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.
  • Page 88: Link-aggregation Mode

    link-aggregation mode Description Use the link-aggregation mode dynamic command to configure an aggregation group to work in dynamic aggregation mode. Use the undo link-aggregation mode command to restore the default setting. By default, an aggregation group works in static aggregation mode. To change the aggregation mode of an aggregation group that contains member ports, remove all the member ports from the aggregation group first.
  • Page 89: Port Link-aggregation Group

    Parameter port-priority: Specifies a port aggregation priority, in the range of 0 to 65,535. The smaller the value, the higher the port aggregation priority. Example # Set the aggregation priority of port GigabitEthernet 1/0/1 to 64. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] link-aggregation port-priority 64 port link-aggregation group Description...
  • Page 90: Reset Lacp Statistics

    Before collecting statistics for a Layer 2 aggregate interface within a specific period, clear the existing statistics of the interface: If no keywords or parameter is specified, the command clears the statistics of all interfaces in the system. If only the bridge-aggregation parameter is specified, the command clears the statistics of all Layer 2 aggregate interfaces.
  • Page 91: Shutdown

    Parameter 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. Example # Clear the LACP statistics on all link aggregation member ports. <Sysname>...
  • Page 92: Port Isolation Configuration Commands

    Port isolation configuration commands display port-isolate group Description Use the display port-isolate group command to display information about one or all isolation groups. Syntax display port-isolate group [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters...
  • Page 93: Port-isolate Enable

    port-isolate enable Description Use the port-isolate enable command to add a port or a group of ports to an isolation group as isolated ports. Use the undo port-isolate enable command to remove the port or ports from the isolation group. In Layer 2 Ethernet interface view, the configuration applies to the current port.
  • Page 94 [Sysname-port-group-manual-aa] group-member gigabitethernet 1/0/3 [Sysname-port-group-manual-aa] group-member gigabitethernet 1/0/4 [Sysname-port-group-manual-aa] port-isolate enable # Assign Layer 2 aggregate interface Bridge-aggregation 1 and its member ports to the isolation group on a single-isolation-group device. <Sysname> system-view [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] quit [Sysname] interface GigabitEthernet 1/0/1 [Sysname-GigabitEthernet1/0/1] port link-aggregation group 1 [Sysname-GigabitEthernet1/0/1] quit [Sysname] interface GigabitEthernet 1/0/2...
  • Page 95: Spanning Tree Configuration Commands

    MSTP by using the stp enable command. HP recommends that you use the check region-configuration command to determine whether the MST region configurations to be activated are correct. Run this command only when they are correct.
  • Page 96: Check Region-configuration

    VLAN-to-instance mapping entries in the MST region, and if they are connected via a physical link. HP recommends that you use this command to determine whether the MST region configurations to be activated are correct. Activate them only when they are correct.
  • Page 97: Display Stp

    <Sysname> system-view [Sysname] stp region-configuration [Sysname-mst-region] check region-configuration Admin Configuration Format selector Region name :000fe26a58ed Revision level Configuration digest :0x41b5018aca57daa8dcfdba2984d99d06 Instance Vlans Mapped 1 to 9, 11 to 4094 Table 22 Command output Field Description Format selector of the MST region, which is 0 (not Format selector configurable) Region name...
  • Page 98 If you do not specify any VLAN or port, this command displays the spanning tree information of all VLANs on all ports. The displayed information is sorted by VLAN ID and by port name in each VLAN. If you specify a VLAN but not a port, this command displays the spanning tree information on all ports in that VLAN.
  • Page 99 Forward delay  Message age  Remaining hops  Status of rapid state transition (enabled or disabled) for designated ports  MSTI global parameters: MSTI ID  Bridge priority of the MSTI  Regional root  Internal path cost  MSTI root port ...
  • Page 100 Designated port  Edge port/non-edge port  Connecting to a point-to-point link or not  Maximum transmission rate (transmit limit)  Status of the root guard function (enabled or disabled)  Hello time  Max age  Forward delay  Message age ...
  • Page 101 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 # In MSTP mode, display the brief spanning tree status and statistics of MSTI 0 on ports GigabitEthernet 1/0/1 through GigabitEthernet 1/0/4.
  • Page 102 Field Description Protection type on the port: ROOT—Root guard LOOP—Loop guard Protection BPDU—BPDU guard BPDU/ROOT—BPDU guard and root guard NONE—No protection # In MSTP mode, display the spanning tree status and statistics of all MSTIs on all ports. <Sysname> display stp -------[CIST Global Info][Mode MSTP]------- CIST Bridge :32768.000f-e200-2200...
  • Page 103 MSTI RootPortId :0.0 MSTI Root Type :PRIMARY root Master Bridge :32768.000f-e23e-9ca4 Cost to Master TC received # In PVST mode, display the spanning tree status and statistics of all VLANs on all ports. <Sysname> system-view [Sysname] stp mode pvst [Sysname] display stp -------[VLAN 1 Global Info]------- Protocol Status :enabled...
  • Page 104 Protocol Status :disabled Protocol Std. :IEEE 802.1s Version Bridge-Prio. :32768 MAC address :000f-e200-8048 Max age(s) Forward delay(s) Hello time(s) Max hops Table 24 display stp command output description Field Description CIST bridge ID, which comprises the device’s priority in the CIST and its MAC address.
  • Page 105 Field Description Port role, which can be Alternate, Backup, Root, Designated, Master, or Port Role Disabled. Path cost of the port. The field in parentheses indicates the standard (legacy, dot1d-1998, or dot1t) used for port path cost calculation. Port Cost(Legacy) Config—Configured value.
  • Page 106: Display Stp Abnormal-port

    Field Description MSTI RootPortId MSTI root port ID. MSTI Root Type MSTI root type, which can be primary root or secondary root. Master Bridge MSTI root bridge ID. Cost to Master Path cost from the MSTI to the master bridge. TC received Number of received TC BPDUs.
  • Page 107: Display Stp Bpdu-statistics

    Examples # In MSTP mode, display information about ports blocked by spanning tree protection functions. <Sysname> display stp abnormal-port MSTID Blocked Port Reason GigabitEthernet1/0/1 ROOT-Protected GigabitEthernet1/0/2 LOOP-Protected GigabitEthernet1/0/3 Formatcompatibility–Protected # In PVST mode, display information about ports blocked by spanning tree protection functions. <Sysname>...
  • Page 108 Syntax display stp bpdu-statistics [ interface interface-type interface-number [ instance instance-id ] ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters interface interface-type interface-number: Displays the BPDU statistics on a specified port, where interface-type interface-number indicates the port type and number.
  • Page 109 Type Count Last Updated --------------------------- ---------- ----------------- Timeout BPDUs MAX-hoped BPDUs TC detected 10:32:40 01/13/2010 TC sent 10:33:11 01/13/2010 TC received Instance 1: Type Count Last Updated --------------------------- ---------- ----------------- Timeout BPDUs MAX-hoped BPDUs TC detected TC sent TC received Instance 2: Type Count...
  • Page 110: Display Stp Down-port

    MST sent 10:33:11 01/13/2010 MST received 10:37:43 01/13/2010 Timeout BPDUs MAX-hoped BPDUs TC detected 10:32:40 01/13/2010 TC sent 8844 10:33:11 01/13/2010 TC received 1426 10:33:32 01/13/2010 Table 26 Command output Field Description Port Port name Instance-independent Statistics not related to any particular MSTI Type Statistical item Looped-back BPDUs...
  • Page 111: Display Stp History

    View Any view Default level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals 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.
  • Page 112 If you do not specify any VLAN, this command displays the historical port role calculation information of all VLANs. The displayed information is sorted by VLAN ID, and by port role calculation time in each VLAN. If you specify a VLAN, this command displays the historical port role calculation information of the specified VLAN by the sequence of port role calculation time.
  • Page 113: Display Stp Ignored-vlan

    Time : 2009/02/08 00:22:56 Port priority : 0.00e0-fc01-6510 0 0.00e0-fc01-6510 128.2 # In PVST mode, display the historical port role calculation information of IRF member switch 1 in VLAN <Sysname> system-view [Sysname] stp mode pvst [Sysname] display stp vlan 2 history slot 1 --------------- STP slot 1 history trace --------------- ------------------- VLAN 2...
  • Page 114: Display Stp Region-configuration

    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. Example # Display VLAN Ignore-enabled VLANs.
  • Page 115: Display Stp Root

    Revision level Configuration digest :0x5f762d9a46311effb7a488a3267fca9f Instance Vlans Mapped 21 to 4094 1 to 10 11 to 20 # In PVST mode, display the effective MST region configuration information. <Sysname> system-view [Sysname] stp mode pvst [Sysname] display stp region-configuration Oper Configuration Format selector Region name :hello...
  • Page 116: Display Stp Tc

    Default level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals 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.
  • Page 117 If you specify an MSTI, this command displays the statistics of TC/TCN BPDUs received and sent by all ports in the specified MSTI, in port name order. In PVST mode, follow these guidelines: If you do not specify any VLAN, this command displays the statistics of TC/TCN BPDUs received and sent by all ports in all VLANs.
  • Page 118: Instance

    [Sysname] stp mode pvst [Sysname] display stp vlan 2 tc slot 1 -------------- STP slot 1 TC or TCN count ------------- VLAN Port Receive Send GigabitEthernet1/0/1 GigabitEthernet1/0/2 Table 32 Command output Field Description Port Port name Receive Number of TC/TCN BPDUs received on each port Send Number of TC/TCN BPDUs sent by each port instance...
  • Page 119: Region-name

    vlan vlan-list: Specifies a VLAN list in the format of vlan-list = { vlan-id [ to vlan-id ] }&<1- 1 0>, where the vlan-id parameter represents the VLAN ID, in the range of 1 to 4094, and &<1- 1 0> indicates that you can specify up to 10 VLAN IDs or VLAN ID ranges.
  • Page 120: Revision-level

    The MSTP statistics information includes the numbers of TCN BPDUs, configuration BPDUs, RST BPDUs and MST BPDUs sent/received through the specified ports. The STP BPDUs and TCN BPDUs are counted only for the CIST. If you specify the interface-list parameter, the reset stp command clears the spanning tree-related statistics information on the specified ports.
  • Page 121: Stp Bpdu-protection

    View MST region view Default level 2: System level Parameter level: Specifies an MSTP revision level, in the range of 0 to 65,535. Example # Set the MSTP revision level of the MST region to 5. <Sysname> system-view [Sysname] stp region-configuration [Sysname-mst-region] revision-level 5 stp bpdu-protection Description...
  • Page 122: Stp Compliance

    By default, the network diameter of the switched network is 7. 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.
  • Page 123: Stp Config-digest-snooping

    By default, a port automatically recognizes the formats of received MSTP packets and determines the formats of MSTP packets to be sent based on the recognized formats. Configured in Ethernet interface view, the setting takes effect on that interface only. Configured in port group view, the setting takes effect on all ports in the port group.
  • Page 124: Stp Cost

    Enable this feature both globally and on ports connected to other vendors' devices to make it effective. To minimize impact, enable the feature on all associated ports before you enable it globally. Related commands: display stp. Syntax stp config-digest-snooping undo stp config-digest-snooping View System view, Ethernet interface view, port group view, Layer 2 aggregate interface view Default level...
  • Page 125: Stp Edged-port

    The path cost setting of a port can affect the role selection of the port. When the path cost of a port is changed, the system will re-calculate the role of the port and initiate a state transition. Related commands: display stp and stp pathcost-standard. Syntax stp [ instance instance-id | vlan vlan-list ] cost cost undo stp [ instance instance-id | vlan vlan-list ] cost...
  • Page 126: Stp Enable

    You can enable the port to transition to the forwarding state rapidly by configuring it as an edge port. HP recommends you to configure ports directly connecting to user terminals as edge ports. Typically, configuration BPDUs from other devices cannot reach an edge port, because the edge port does not connect to any other device.
  • Page 127 By default, the spanning tree feature is disabled globally, enabled on all VLANs, and enabled on all ports. To enable or disable the spanning tree feature globally (not for any VLANs), use this command without specifying any VLAN in system view. To enable or disable the spanning tree feature on specific VLANs, use this command with the VLANs specified in system view.
  • Page 128: Stp Ignored Vlan

    [Sysname] stp mode pvst [Sysname] stp enable [Sysname] stp vlan 2 enable # In MSTP mode, disable the spanning tree feature on port GigabitEthernet 1/0/1. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] undo stp enable stp ignored vlan Description Use the stp ignored vlan command to enable VLAN Ignore for the specified VLANs. Use the undo stp ignored vlan command to disable VLAN Ignore for the specified VLANs.
  • Page 129: Stp Max-hops

    Configured in Layer 2 aggregate interface view, the setting takes effect only on the aggregate interface. Configured on a member port in an aggregation group, the setting takes effect only after the port leaves the aggregation group. You cannot configure edge port settings and loop guard, or configure root guard and loop guard on a port at the same time.
  • Page 130: Stp Mcheck

    Example # Set the maximum hops of the MST region to 35. <Sysname> system-view [Sysname] stp max-hops 35 stp mcheck Description Use the stp mcheck command to perform the mCheck operation globally or on a port. If a port on a device running MSTP, RSTP, or PVST mode connects to an STP device, the port will automatically migrate to the STP-compatible mode.
  • Page 131: Stp Mode

    stp mode Description Use the stp mode command to configure the spanning tree work mode. Use the undo stp mode command to restore the default. By default, a spanning tree device works in MSTP mode. Related commands: stp mcheck and stp enable. Syntax stp mode { stp | rstp | mstp | pvst } undo stp mode...
  • Page 132: Stp Pathcost-standard

    Syntax stp no-agreement-check undo stp no-agreement-check View Ethernet interface view, port group view, Layer 2 aggregate interface view Default level 2: System level Parameters None Example # Enable No Agreement Check on GigabitEthernet 1/0/1. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] stp no-agreement-check stp pathcost-standard Description...
  • Page 133: Stp Point-to-point

    You can configure the link type as point-to-point for a Layer 2 aggregate interface or a port that works in full duplex mode. HP recommends that you use the default setting, which lets the device automatically detect the port link type.
  • Page 134: Stp Port Priority

    Example # Configure the link connecting GigabitEthernet 1/0/3 as a point-to-point link. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/3 [Sysname-GigabitEthernet1/0/3] stp point-to-point force-true stp port priority Description Use the stp port priority command to set the priority of the ports. Use the undo stp port priority command to restore the default. By default, the port priority is 128.
  • Page 135: Stp Port-log

    Examples # In MSTP mode, set the priority of port GigabitEthernet 1/0/3 to 16 in MSTI 2. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/3 [Sysname-GigabitEthernet1/0/3] stp instance 2 port priority 16 # In PVST mode, set the priority of port GigabitEthernet 1/0/3 to 16 in VLAN 2. <Sysname>...
  • Page 136: Stp Priority

    %Aug 00:49:41:856 2006 Sysname MSTP/3/MSTP_DISCARDING: Instance GigabitEthernet1/0/2 has been set to forwarding state! The output shows that GigabitEthernet 1/0/1 in MSTI 2 transitioned to the discarding state and GigabitEthernet 1/0/2 in MSTI 2 transitioned to the forwarding state. # In PVST mode, enable output of port state transition information for VLAN 1 to VLAN 4094. <Sysname>...
  • Page 137: Stp Region-configuration

    Examples # In MSTP mode, set the device priority to 4096 in MSTI 1. <Sysname> system-view [Sysname] stp instance 1 priority 4096 # In PVST mode, set the device priority to 4096 in VLAN 1. <Sysname> system-view [Sysname] stp mode pvst [Sysname] stp vlan 1 priority 4096 stp region-configuration Description...
  • Page 138: Stp Root Secondary

    Use the undo stp root command to restore the default. By default, a device is not a root bridge. To set an MSTP device as the root bridge in a specific MSTI, use this command with the MSTI specified. To set a PVST device as the root bridge in a specific VLAN or multiple VLANs, use this command with a VLAN list specified.
  • Page 139: Stp Root-protection

    Once you specify the device as a secondary root bridge, you cannot change the priority of the device. Related commands: stp priority and stp root primary. Syntax stp [ instance instance-id | vlan vlan-list ] root secondary undo stp [ instance instance-id | vlan vlan-list ] root View System view Default level...
  • Page 140: Stp Tc-protection

    Syntax stp root-protection undo stp root-protection View Ethernet interface view, port group view, Layer 2 aggregate interface view Default level 2: System level Parameters None Example # Enable the root guard function for GigabitEthernet 1/0/1. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] stp root-protection stp tc-protection Description...
  • Page 141: Stp Tc-protection Threshold

    VLAN or multiple VLANs in PVST mode, use this command with a VLAN list specified. HP does not recommend that you set the forward delay with this command. Instead, you can specify the network diameter of the switched network by using the stp bridge-diameter command and let spanning tree protocols automatically calculate optimal settings of the forward delay timer.
  • Page 142: Stp Timer Hello

    VLAN or multiple VLANs in PVST mode, use this command with a VLAN list specified. HP does not recommend that you set the hello time with this command. Instead, you can specify the network diameter of the switched network by using the stp bridge-diameter command and let spanning tree protocols automatically calculate optimal settings of the hello timer.
  • Page 143: Stp Timer Max-age

    VLAN or multiple VLANs in PVST mode, use this command with a VLAN list specified. HP does not recommend that you set the max age timer with this command. Instead, you can specify the network diameter of the switched network by using the stp bridge-diameter command and let spanning tree protocols automatically calculate optimal settings of the max age timer.
  • Page 144: Stp Timer-factor

    You can avoid such unwanted spanning tree calculations by lengthening the timeout time (by setting the timeout factor to 4 or more), saving the network resources. HP recommends you to set the timeout factor to 5, 6, or 7 for a stable network.
  • Page 145: Stp Transmit-limit

    A larger maximum transmission rate value requires more system resources. An appropriate maximum 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. Syntax stp transmit-limit limit...
  • Page 146: Vlan-mapping Modulo

    Example # Set the maximum transmission rate of port GigabitEthernet 1/0/1 to 5. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] stp transmit-limit 5 vlan-mapping modulo Description Use the vlan-mapping modulo command to map VLANs in the MST region to MSTIs according to the specified modulo value, quickly creating a VLAN-to-instance mapping table.
  • Page 147: Bpdu Tunneling Configuration Commands

    BPDU tunneling configuration commands bpdu-tunnel dot1q Description Use the bpdu-tunnel dot1q command to enable BPDU tunneling for a protocol on the ports. Use the undo bpdu-tunnel dot1q command to disable BPDU tunneling for a protocol on the ports. By default, BPDU tunneling for any protocol is disabled. Settings made in Layer 2 Ethernet interface view or Layer 2 aggregate interface view take effect only on the Ethernet interface or aggregate interface.
  • Page 148: Bpdu-tunnel Tunnel-dmac

    hgmp: Specifies the HGMP. lacp: Specifies the LACP. lldp: Specifies the LLDP. pagp: Specifies the PAGP. pvst: Specifies PVST. stp: Specifies the STP. udld: Specifies UDLD. vtp: Specifies the VTP. Examples # Disable STP on GigabitEthernet 1/0/1, and then enable BPDU tunneling for STP on the port. <Sysname>...
  • Page 149 Default level 2: System level Parameter mac-address: Specifies a destination multicast MAC address for BPDUs, in the format of H-H-H. The allowed values are 0x0100-0CCD-CDD0, 0x0100-0CCD-CDD1, 0x0100-0CCD-CDD2, and 0x010F- E200-0003. Example # Set the destination multicast MAC address for BPDUs to 0x0100-0CCD-CDD0. <Sysname>...
  • Page 150: Vlan Configuration Commands

    VLAN configuration commands VLAN configuration commands default Description Use the default command to restore the default settings for a VLAN interface. This command might fail to restore the default settings for some commands for reasons such as command dependencies and system restrictions. You can use the display this command in interface view to check for these commands, and perform their undo forms or follow the command reference to individually restore their default settings.
  • Page 151: Display Interface Vlan-interface

    The default description for a VLAN is the VLAN ID. For example, VLAN 0001. The default description for a VLAN interface is the name of the interface. For example, Vlan- interface 1 Interface. You can configure a description to describe the function or connection of a VLAN or VLAN interface for easy management.
  • Page 152 If you do not provide the vlan-interface parameter, this command displays information about all interfaces. If you provide the vlan-interface parameter but do not specify the VLAN interface number, this command displays information about all VLAN interfaces. Related commands: reset counters interface vlan-interface. Syntax display interface [ vlan-interface ] [ brief [ down ] ] [ | { begin | exclude | include } regular-expression ] display interface vlan-interface vlan-interface-id [ brief ] [ | { begin | exclude | include } regular-...
  • Page 153 # Display brief information for VLAN-interface 2. <Sysname> 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 Description Vlan2 DOWN DOWN # Display brief information for VLAN interfaces in DOWN state.
  • Page 154: Display Vlan

    Field Description Time when the reset counts interface vlan-interface command was last used to clear the interface statistics. Last clearing of counters Never indicates the reset counters interface command has never been used on the interface since the device’s startup. Last 300 seconds input: 0 bytes/sec Average rate of input packets in the last 300 seconds (in bps and 0 packets/sec...
  • Page 155 Syntax display vlan [ vlan-id1 [ to vlan-id2 ] | all | dynamic | reserved | static ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters vlan-id1: Displays information about a VLAN specified by VLAN ID, in the range of 1 to 4094. vlan-id1 to vlan-id2: Displays information about VLANs specified by a VLAN ID range.
  • Page 156: Interface Vlan-interface

    IP Address: 1.1.1.1 Subnet Mask: 255.255.255.0 Description: VLAN 0003 Name: VLAN 0003 Tagged Ports: none Untagged Ports: none Table 34 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.
  • Page 157: Ip Address

    Parameter vlan-interface-id: Specifies a VLAN interface number, in the range of 1 to 4094. Example # Create VLAN-interface 2. <Sysname> system-view [Sysname] vlan 2 [Sysname-vlan2] quit [Sysname] interface vlan-interface 2 [Sysname-Vlan-interface2] ip address Description Use the ip address command to assign an IP address and subnet mask to a VLAN interface. Use the undo ip address command to remove the IP address and subnet mask for a VLAN interface.
  • Page 158: Mtu

    Example # Specify the IP address as 1.1.0.1, the subnet mask as 255.255.255.0 for VLAN interface 1. <Sysname> system-view [Sysname] interface vlan-interface 1 [Sysname-Vlan-interface1] ip address 1.1.0.1 255.255.255.0 Description Use the mtu command to set the MTU for a VLAN interface. Use the undo mtu command to restore the default.
  • Page 159: Reset Counters Interface Vlan-interface

    Syntax name text undo name View VLAN view Default level 2: System level Parameter text: Specifies a VLAN name, a string of 1 to 32 characters. The string can include case-sensitive letters, digits, special characters (including ~ ! @ # $ % ^ & * ( ) - _ + = { } [ ] | \ : ; " ' < > , . /), and spaces. Example # Configure the name of VLAN 2 as Test VLAN.
  • Page 160: Shutdown

    shutdown Description Use the shutdown command to shut down a VLAN interface. Use the undo shutdown command to bring up a VLAN interface. By default, a VLAN interface is up unless all ports in the VLAN are down. Use the undo shutdown command to bring up a VLAN interface after configuring related parameters and protocols for the VLAN interface.
  • Page 161: Port-based Vlan Configuration Commands

    Dynamic VLANs VLANs configured with QoS policies Control VLANs configured for smart link groups or RRPP domains Source VLANs for port mirroring Remote probe VLANs for remote port mirroring If an isolate-user-VLAN is associated with a secondary VLAN with the isolate-user-vlan command, you cannot remove the isolate-user-VLAN or secondary VLAN unless you remove the association first.
  • Page 162: Port

    View Any view Default 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 Fundamentals 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.
  • Page 163: Port Access Vlan

    Use the undo port command to remove the specified access ports from the VLAN. By default, all ports are in VLAN 1. This command is only applicable on access ports. By default, all ports are access ports. However, you can manually configure the port type. For more information, see ―port link-type.‖...
  • Page 164: Port Hybrid Pvid

    Syntax port access vlan vlan-id undo port access vlan View Layer 2 Ethernet interface view, port group view, Layer 2 aggregate interface view Default level 2: System level Parameter vlan-id: Specifies a VLAN ID, in the range of 1 to 4094. Verify that the VLAN specified by the VLAN ID already exists.
  • Page 165: Port Hybrid Vlan

    HP recommends that you set the same PVID for the local and remote hybrid ports. You must use the port hybrid vlan command to configure the hybrid port to allow and forward packets from the PVID. Related commands: port link-type and port hybrid vlan.
  • Page 166 If the system fails to apply the configuration to the aggregate interface, it stops applying the configuration to aggregation member ports. If the system fails to apply the configuration to an aggregation member port, it skips the port and moves to the next member port. Related commands: port link-type.
  • Page 167: Port Link-type

    <Sysname> system-view [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] port link-type hybrid [Sysname-Bridge-Aggregation1] port hybrid vlan 2 untagged Please wait... Done. Configuring GigabitEthernet1/0/1... Done. Configuring GigabitEthernet1/0/2... Done. Configuring GigabitEthernet1/0/3... Done. The output shows that Gigab.itEthernet 1/0/1, GigabitEthernet 1/0/2, and GigabitEthernet 1/0/3 are the member ports of the aggregation group corresponding to Bridge-Aggregation 1.
  • Page 168: Port Trunk Permit Vlan

    trunk: Configures the link type of a port as trunk. Examples # Configure GigabitEthernet 1/0/1 as a trunk port. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] port link-type trunk # Configure all the ports in the manual port group group1 as hybrid ports. <Sysname>...
  • Page 169: Port Trunk Pvid

    Syntax port trunk permit vlan { vlan-id-list | all } undo port trunk permit vlan { vlan-id-list | all } View Layer 2 Ethernet interface view, port group view, Layer 2 aggregate interface view Default level 2: System level Parameters vlan-id-list: Specifies a list of VLANs that the trunk ports will be assigned to, in the format of [vlan-id1 [ to vlan-id2 ] ]&<1- 1 0>, where vlan-id is in the range of 1 to 4094 and &<1- 1 0>...
  • Page 170: Mac-based Vlan Configuration Commands

    The configuration made in Layer 2 aggregate interface view applies to the aggregate interface and its aggregation member ports: If the system fails to apply the configuration to the aggregate interface, it stops applying the configuration to aggregation member ports. If the system fails to apply the configuration to an aggregation member port, it skips the port and moves to the next member port.
  • Page 171 Syntax display mac-vlan { all | dynamic | mac-address mac-address [ mask mac-mask ] | static | vlan vlan-id } [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters all: Displays all the MAC address-to-VLAN entries.
  • Page 172: Display Mac-vlan Interface

    Field Description MAC ADDR MAC address of a MAC address-to-VLAN entry. MASK Mask of the MAC address of a MAC address-to-VLAN entry. VLAN ID VLAN ID of a MAC address-to-VLAN entry. 802.1p priority corresponding to the MAC address of a MAC address-to- PRIO VLAN entry State of a MAC address-to-VLAN entry:...
  • Page 173: Mac-vlan Enable

    mac-vlan enable Description Use the mac-vlan enable command to enable the MAC-based VLAN feature on a port. Use the undo mac-vlan enable command to disable the MAC-based VLAN feature on a port. By default, the MAC-based VLAN feature is disabled on a port. Syntax mac-vlan enable undo mac-vlan enable...
  • Page 174: Mac-vlan Trigger Enable

    Default level 2: System level Parameters mac-address mac-address: Specifies a MAC address. mask mac-mask: Specifies a mask for the MAC address in the format of H-H-H. The mac-mask parameter is comprised of the high-order part (all the binary bits of which are 1s) and the low-order part (all the binary bits of which are 0s).
  • Page 175: Port Pvid Disable

    View Layer 2 Ethernet port view Default level 2: System level Parameters None Example # Enable dynamic MAC-based VLAN assignment on GigabitEthernet 1/0/1. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] mac-vlan trigger enable port pvid disable Description Use the port pvid disable command to disable the PVID of the port from forwarding packets whose source MAC addresses do not match any MAC address-to-VLAN entry.
  • Page 176: Vlan Precedence

    vlan precedence Description Use the vlan precedence command to set the order of VLAN matching. Use the undo vlan precedence command to restore the default. By default, VLANs are matched based on MAC addresses preferentially. This command only applies to VLANs based on a single MAC address and IP subnet-based VLANs. If both the MAC-based VLAN function and the IP subnet-based VLAN function are created on a port, MAC address-to-VLAN entries are matched preferentially, and the remaining VLAN entries (VLAN entries based on a single MAC address and IP subnet-based VLANs) are matched as configured by the vlan...
  • Page 177: Display Protocol-vlan Vlan

    View Any view Default level 2: System level Parameters interface-type interface-number1: Specifies an interface by its type and number. interface-type interface-number1 to interface-type interface-number2: Specifies an interface range. all: Displays information about protocol-based VLANs on all ports. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
  • Page 178: Port Hybrid Protocol-vlan

    View Any view Default level 2: System level Parameters vlan-id1: Specifies a protocol-based VLAN ID, in the range of 1 to 4094. vlan-id1 to vlan-id2: Displays protocol-based VLAN information of a VLAN that is in the range of vlan-id1 to vlan-id2. The vlan-id2 parameter specifies a protocol-based VLAN ID, in the range of 1 to 4094, but you must ensure that its value is greater than or equal to that of vlan-id1.
  • Page 179 Use the undo port hybrid protocol-vlan command to remove the association. The configuration made in Layer 2 Ethernet interface view applies only to the port. The configuration made in port group view applies to all ports in the port group. The configuration made in Layer 2 aggregate interface view applies to the aggregate interface and its aggregation member ports: If the system fails to apply the configuration to the aggregate interface, it stops applying the...
  • Page 180: Protocol-vlan

    # Associate the hybrid Layer 2 aggregate interface Bridge-Aggregation 1 with protocol 0 in VLAN 2. <Sysname> system-view [Sysname] vlan 2 [Sysname-vlan2] protocol-vlan ipv4 [Sysname-vlan2] quit [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] port link-type hybrid [Sysname-Bridge-Aggregation1] port hybrid vlan 2 untagged Please wait...
  • Page 181 Default level 2: System level Parameters at: Specifies the AppleTalk based VLAN. ipv4: Specifies the IPv4 based VLAN. ipv6: Specifies the IPv6 based VLAN. ipx: Specifies the IPX based VLAN. The parameters ethernetii, llc, raw, and snap are encapsulation formats for IPX. mode: Configures a user-defined protocol template for the VLAN, which could also have the following encapsulation formats: ethernetii, llc, and snap.
  • Page 182: Ip Subnet-based Vlan Configuration Commands

    IP subnet-based VLAN configuration commands display ip-subnet-vlan interface Description Use the display ip-subnet-vlan interface command to display IP subnet-based VLANs and IP subnet indexes on the specified ports. Syntax display ip-subnet-vlan interface { interface-list | all } [ | { begin | exclude | include } regular-expression ] View Any view Default level...
  • Page 183: Display Ip-subnet-vlan Vlan

    display ip-subnet-vlan vlan Description Use the display ip-subnet-vlan vlan command to display the IP subnet information and IP subnet indexes on the specified VLANs. Related commands: display vlan. Syntax display ip-subnet-vlan vlan { vlan-id [ to vlan-id ] | all } [ | { begin | exclude | include } regular- expression ] View Any view...
  • Page 184: Ip-subnet-vlan

    ip-subnet-vlan Description Use the ip-subnet-vlan command to associate the VLAN with a specified IP subnet or IP address. Use the undo ip-subnet-vlan command to remove the association. The IP subnet or IP address cannot be a multicast network segment or a multicast address. Related commands: display ip-subnet-vlan vlan.
  • Page 185 On an Ethernet port associated with an IP subnet-based VLAN, if the source IP address of a received untagged packet belongs to the corresponding IP subnet, the port tags the packet with the corresponding VLAN tag. The configuration made in Layer 2 Ethernet interface view applies only to the port. The configuration made in port group view applies to all ports in the port group.
  • Page 186 [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] port link-type hybrid [Sysname-Bridge-Aggregation1] port hybrid vlan 3 untagged Please wait... Done Configuring GigabitEthernet1/0/1... Done. Configuring GigabitEthernet1/0/2... Done. Configuring GigabitEthernet1/0/3... Done. [Sysname-Bridge-Aggregation1] port hybrid ip-subnet-vlan vlan 3 The output shows that GigabitEthernet 1/0/1, GigabitEthernet 1/0/2, and GigabitEthernet 1/0/3 are the member ports of the aggregation group corresponding to Bridge-Aggregation 1.
  • Page 187: Isolate-user-vlan Configuration Commands

    Isolate-user-VLAN configuration commands display isolate-user-vlan Description Use the display isolate-user-vlan command to display the mapping between an isolate-user-VLAN and secondary VLANs. Related commands: isolate-user-vlan and isolate-user-vlan enable. Syntax display isolate-user-vlan [ isolate-user-vlan-id ] [ | { begin | exclude | include } regular-expression ] View Any view Default level...
  • Page 188 GigabitEthernet1/0/2 GigabitEthernet1/0/3 GigabitEthernet1/0/4 VLAN ID: 3 VLAN Type: static Isolate-user-VLAN type : secondary Route Interface: configured IP Address: 2.2.2.2 Subnet Mask: 255.255.255.0 Description: VLAN 0003 Name: VLAN 0003 Tagged Ports: none Untagged Ports: GigabitEthernet1/0/2 GigabitEthernet1/0/3 VLAN ID: 4 VLAN Type: static Isolate-user-VLAN type : secondary Route Interface: not configured Description: VLAN 0004...
  • Page 189: Isolate-user-vlan

    isolate-user-vlan Description Use the isolate-user-vlan command to associate an isolate-user-VLAN with the specified secondary VLANs. Use the undo isolate-user-vlan command to remove the association. By default, an isolate-user-VLAN is not associated with any secondary VLAN. . The undo isolate-user-vlan command without the secondary secondary-vlan-id parameter specified removes the association between the specified isolate-user-VLAN and all its secondary VLANs.
  • Page 190: Isolate-user-vlan Enable

    isolate-user-vlan enable Description Use the isolate-user-vlan enable command to configure the VLAN as an isolate-user-VLAN. Use the undo isolate-user-vlan enable command to remove the isolate-user-VLAN configuration for the VLAN. By default, no VLAN is an isolate-user-VLAN. An isolate-user-VLAN may include multiple ports, including the one connected to the upstream device. Do not configure the default VLAN (VLAN 1) as a secondary VLAN or isolate-user-VLAN.
  • Page 191: Port Isolate-user-vlan Promiscuous

    Layer 2 isolation configured with the isolated-vlan enable command takes effect only after the secondary VLAN is associated with an isolate-user-VLAN. Related commands: isolate-user-vlan. Syntax isolated-vlan enable undo isolated-vlan enable View VLAN view Default level 2: System level Parameters None Example # Configure Layer 2 isolation between ports in secondary VLAN 4, where GigabitEthernet 1/0/1 is the uplink port and GigabitEthernet 1/0/2 is the downlink port.
  • Page 192 When the device executes the port isolate-user-vlan promiscuous command, the following guidelines apply: HP recommends assigning access or hybrid ports to an isolate-user-VLAN. Before configuring the isolate-user-VLAN type of a port as promiscuous in an isolate-user-VLAN, make sure that the VLAN has been created.
  • Page 193 [Sysname-GigabitEthernet1/0/1] display this interface GigabitEthernet1/0/1 port link-mode bridge port isolate-user-vlan 2 promiscuous port link-type hybrid undo port hybrid vlan 1 port hybrid vlan 2 20 untagged port hybrid pvid vlan 2 return [Sysname-GigabitEthernet1/0/1] undo port isolate-user-vlan [Sysname-GigabitEthernet1/0/1] display this interface GigabitEthernet1/0/1 port link-mode bridge port link-type hybrid undo port hybrid vlan 1...
  • Page 194: Port Isolate-user-vlan Host

    return port isolate-user-vlan host Description Use the port isolate-user-vlan host command to configure a port to operate in host mode. If the port is assigned to a secondary VLAN, the command also assigns the port to the isolate-user-VLAN that is associated with the secondary VLAN.
  • Page 195 return [Sysname-GigabitEthernet1/0/1] port access vlan 20 [Sysname-GigabitEthernet1/0/1] display this interface GigabitEthernet1/0/1 port link-mode bridge port isolate-user-vlan host port link-type hybrid undo port hybrid vlan 1 port hybrid vlan 2 20 untagged port hybrid pvid vlan 20 return...
  • Page 196: Gvrp Configuration Commands

    GVRP configuration commands display garp statistics Description Use the display garp statistics command to display the GARP statistics of the specified ports. If no ports are specified, this command displays the GARP statistics for all ports. This command displays the statistics about GVRP PDUs received, transmitted, and dropped on GVRP- enabled ports.
  • Page 197: Display Garp Timer

    Example # Display GARP statistics on ports GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2. <Sysname> display garp statistics interface gigabitethernet 1/0/1 to gigabitethernet 1/0/2 GARP statistics on port GigabitEthernet1/0/1 Number of GVRP Frames Received Number of GVRP Frames Transmitted Number of Frames Discarded GARP statistics on port GigabitEthernet1/0/2 Number of GVRP Frames Received Number of GVRP Frames Transmitted...
  • Page 198: Display Gvrp Local-vlan

    Example # Display GARP timers on port GigabitEthernet 1/0/1. <Sysname> display garp timer interface gigabitethernet 1/0/1 GARP timers on port GigabitEthernet1/0/1 Garp Join Time : 20 centiseconds Garp Leave Time : 60 centiseconds Garp LeaveAll Time : 1000 centiseconds Garp Hold Time : 10 centiseconds display gvrp local-vlan Description...
  • Page 199 Syntax display gvrp state interface interface-type interface-number vlan vlan-id [ | { begin | exclude | include } regular-expression ] View Any view Default level 0: Visit level Parameters interface interface-type interface-number: Specifies an interface by its type and number. vlan vlan-id: Specifies a VLAN ID, ranging from 1 to 4094.
  • Page 200: Display Gvrp Statistics

    Field Description Registrar state machine records the registration of attributes declared by other participants. Its state can be INN, LV, L3, L2, L1, MT, INR, LVR, L3R, L2R, L1R, MTR, INF, LVF, L3F, L2F, L1F, and MTF. Each state consists of two or three letters or numbers with the following meanings: The first two letters or numbers indicate the state: IN...
  • Page 201: Display Gvrp Status

    Example # Display GVRP statistics for trunk port GigabitEthernet 1/0/1. <Sysname> display gvrp statistics interface gigabitethernet 1/0/1 GVRP statistics on port GigabitEthernet1/0/1 GVRP Status : Enabled GVRP Running : YES GVRP Failed Registrations GVRP Last Pdu Origin : 0000-0000-0000 GVRP Registration Type : Normal Table 43 Command output Field...
  • Page 202: Display Gvrp Vlan-operation

    <Sysname> display gvrp status GVRP is enabled display gvrp vlan-operation Description Use the display gvrp vlan-operation command to display information about dynamic VLAN operations on a port. Syntax display gvrp vlan-operation interface interface-type interface-number [ | { begin | exclude | include } regular-expression ] View Any view...
  • Page 203: Garp Timer Join

    Use the undo garp timer hold command to restore the default of the GARP Hold timer. This may fail if the default is beyond the valid value range for the Hold timer. By default, the Hold timer is 10 centiseconds. Related commands: display garp timer and garp timer join.
  • Page 204: Garp Timer Leave

    Parameter timer-value: Specifies the Join timer (in centiseconds), which must be a multiple of 5 and range from twice the Hold timer (inclusive) and half the Leave timer (inclusive). Example # Set the GARP Join timer to 25 centiseconds, assuming that both the Hold timer and the Leave timer are using the default.
  • Page 205: Gvrp

    Use the undo garp timer leaveall command to restore the default. This may fail if the default is beyond the valid value range for the LeaveAll timer. By default, the LeaveAll timer is 1000 centiseconds. To keep the dynamic VLANs learned through GVRP stable, do not set the LeaveAll timer smaller than its default value.
  • Page 206: Gvrp Registration

    View System view, Ethernet interface view, Layer-2 aggregate interface view, port group view Default level 2: System level Parameters None Example # Enable GVRP globally. <Sysname> system-view [Sysname] gvrp GVRP is enabled globally. gvrp registration Description Use the gvrp registration command to configure the GVRP registration mode. Use the undo gvrp registration command to restore the default.
  • Page 207: Reset Garp Statistics

    [Sysname-GigabitEthernet1/0/1] gvrp registration fixed reset garp statistics Description Use the reset garp statistics command to clear the GARP statistics on the specified ports. If no ports are specified, this command clears the GARP statistics on all ports. The cleared statistics include the statistics about GVRP PDUs sent, received, and dropped. Related commands: display garp statistics.
  • Page 208: Qinq Configuration Commands

    QinQ configuration commands Throughout this document, customer network VLANs (CVLAN), also called inner VLANs, refer to the VLANs that a customer uses on the private network; and service provider network VLANs (SVLAN), also called outer VLANs, refer to the VLANs that a service provider uses to carry VLAN tagged traffic for customers.
  • Page 209: Qinq Enable

    qinq enable Description Use the qinq enable command to enable basic QinQ on the Ethernet ports. Use the undo qinq enable command to disable basic QinQ on the Ethernet ports. By default, basic QinQ is disabled on Ethernet ports. A basic QinQ-enabled port tags received frames with its PVID tag. Configured in Layer 2 Ethernet interface view, the command takes effect on the port only.
  • Page 210: Qinq Ethernet-type Service-tag

    On a port with basic QinQ or customer-side QinQ enabled, the switch judges whether a frame is VLAN tagged based on the CVLAN TPID value globally configured. For more information about customer-side QinQ, see the chapter ―VLAN mapping configuration.‖ Syntax qinq ethernet-type customer-tag hex-value undo qinq ethernet-type customer-tag View...
  • Page 211: Qinq Transparent-vlan

    Use the undo qinq ethernet-type service-tag command to restore the TPID value in SVLAN tags to the default setting. By default, the TPID value in SVLAN tags is 0x8100. On a port with basic QinQ and customer-side QinQ not enabled, the switch judges whether a frame is VLAN tagged based on the SVLAN TPID value on the port.
  • Page 212 Configured in port group view, the command takes effect on all ports in the port group. Syntax qinq transparent-vlan vlan-list undo qinq transparent-vlan { all | vlan-list } View Layer 2 Ethernet interface view, Layer 2 aggregate interface view, port group view Default level 2: System level Parameter...
  • Page 213: Vlan Mapping Configuration Commands

    VLAN mapping configuration commands VLAN mapping is achieved through QoS policies. For QoS policy configuration commands, see ACL and QoS Command Reference. nest Description Use the nest command to add a VLAN nest action to a traffic behavior. If the traffic behavior already contains a VLAN nest action, the new one overwrites the old one.
  • Page 214: Qinq Enable Uplink

    By default, customer-side QinQ is disabled on Ethernet ports. Enable or disable customer-side QinQ on one port in Ethernet interface view or on a group of ports in port group view. Syntax qinq enable downlink undo qinq enable View Layer 2 Ethernet interface view, port group view Default level 2: System level Parameters...
  • Page 215: Remark Customer-vlan-id

    Parameters None Examples # Enable network-side QinQ on GigabitEthernet 1/0/1. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] qinq enable uplink # Enable network-side QinQ on port group 1. <Sysname> system-view [Sysname] port-group manual 1 [Sysname-port-group-manual-1] group-member gigabitethernet 1/0/1 to gigabitethernet 1/0/6 [Sysname-port-group-manual-1] qinq enable uplink remark customer-vlan-id Description...
  • Page 216 The remark service-vlan-id action cannot be applied to a VLAN or applied globally. Syntax remark service-vlan-id vlan-id undo remark service-vlan-id View Traffic behavior view Default level 2: System level Parameter vlan-id: Specifies a service-provider VLAN (SVLAN) ID, ranging from 1 to 4094. Example # Configure traffic behavior b1 to mark matching packets with SVLAN 222.
  • Page 217: Lldp Configuration Commands

    Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Example # Display all LLDP information to be sent. <Sysname> display lldp local-information Global LLDP local-information: Chassis ID : 00e0-fc00-5600 System name : Sysname System description : HP Comware Platform Software System capabilities supported : Bridge,Router...
  • Page 218 SoftwareRev : 5.20 Alpha 2101 SerialNum : NONE Manufacturer name : HP Model name : HP Comware Asset tracking identifier : Unknown LLDP local-information of port 1[GigabitEthernet1/0/1]: Port ID subtype : Interface name Port ID : GigabitEthernet1/0/1 Port description : GigabitEthernet1/0/1 Interface...
  • Page 219 VLAN tagged : No Media policy VlanID Media policy L2 priority : 0 Media policy Dscp Table 45 Command output Field Description Global LLDP local-information Global LLDP information to be sent. Chassis ID Bridge MAC address of the device. Supported capabilities: System capabilities supported Bridge—Switching is supported.
  • Page 220: Display Lldp Neighbor-information

    Field Description Port and protocol VLAN Indicates whether protocol VLAN is supported on the port. supported Port and protocol VLAN enabled Indicates whether protocol VLAN is enabled on the port. VLAN name of VLAN 1 Name of VLAN 1. Auto-negotiation supported Indicates whether auto-negotiation is supported on the port.
  • Page 221 : Interface name Port ID : GigabitEthernet1/0/1 Port description : GigabitEthernet1/0/1 Interface System name : HP System description : HP Comware Platform Software System capabilities supported : Repeater,Bridge,Router System capabilities enabled : Repeater,Bridge,Router Management address type : ipv4 Management address...
  • Page 222 Management address interface type : IfIndex Management address interface ID : Unknown Management address OID Port VLAN ID(PVID): 1 Port and protocol VLAN ID(PPVID) : 1 Port and protocol VLAN supported : Yes Port and protocol VLAN enabled : No VLAN name of VLAN 1: VLAN 0001 Auto-negotiation supported : Yes Auto-negotiation enabled...
  • Page 223 Field Description Chassis information: Chassis component Interface alias Port component Chassis type MAC address Network address (the IP address type, such as ipv4) Interface name Locally assigned—Indicates the local configuration ID that identifies the LLDP sending device, which can be a MAC Chassis ID address, a network address, an interface or some other value depending on the chassis type...
  • Page 224 Field Description PSE power supported Indicates whether the device can operate as a PSE PSE power enabled Indicates whether the device is operating as a PSE PSE pairs control ability Indicates whether the PSE-PD pair control is available PoE mode: Power pairs Signal—PoE via signal lines Spare—PoE via spare lines...
  • Page 225: Display Lldp Statistics

    Field Description Available PoE power on PSE ports, or power needed on PD ports, Port available power value in watts TLV type Unknown basic TLV type TLV information Information contained in the unknown basic TLV type Unknown organizationally-defined Unknown organizationally specific TLV TLV OUI OUI of the unknown organizationally specific TLV TLV subtype...
  • Page 226: Display Lldp Status

    LLDP statistics global Information: LLDP neighbor information last change time:0 days,0 hours,4 minutes,40 seconds The number of LLDP neighbor information inserted : 1 The number of LLDP neighbor information deleted The number of LLDP neighbor information dropped The number of LLDP neighbor information aged out : 1 LLDP statistics information of port 1 [GigabitEthernet1/0/1]: The number of LLDP frames transmitted The number of LLDP frames received...
  • Page 227 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. Example # Display the global LLDP status as well as the LLDP status information of all ports.
  • Page 228: Display Lldp Tlv-config

    Field Description LLDP mode of the port: TxRx—Port sends and receives LLDPDUs Admin status Rx_Only— Port only receives LLDPDUs Tx_Only— Port only sends LLDPDUs Disable— Port does not send or receive LLDPDUs Trap Flag Indicates whether trapping is enabled Polling interval LLDP polling interval, which is 0 when LLDP polling is disabled Number of neighbors Number of LLDP neighbors connecting to the port...
  • Page 229 LLDP tlv-config of port 1[GigabitEthernet1/0/1]: NAME STATUS DEFAULT Basic optional TLV: Port Description TLV System Name TLV System Description TLV System Capabilities TLV Management Address TLV IEEE 802.1 extend TLV: Port VLAN ID TLV Port And Protocol VLAN ID TLV VLAN Name TLV IEEE 802.3 extend TLV: MAC-Physic TLV...
  • Page 230: Lldp Admin-status

    Field Description IEEE 802.3 organizationally specific TLVs: MAC-Physic TLV IEEE 802.3 extended TLV Power via MDI TLV Link aggregation TLV Maximum frame size TLV LLDP-MED TLVs: Capabilities TLV Network Policy TLV Extended Power-via-MDI TLV LLDP-MED extend TLV Location Identification TLV Inventory TLV, including hardware revision TLV, firmware revision TLV, software revision TLV, serial number TLV, manufacturer name TLV, model name TLV, and asset id TLV...
  • Page 231: Lldp Check-change-interval

    lldp check-change-interval Description Use the lldp check-change-interval command to enable LLDP polling and set the polling interval. Use the undo lldp check-change-interval command to restore the default. By default, LLDP polling is disabled. Syntax lldp check-change-interval interval undo lldp check-change-interval View Layer 2 Ethernet interface view, Layer 3 Ethernet interface view, port group view Default level...
  • Page 232: Lldp Encapsulation Snap

    Example # Disable LLDP on GigabitEthernet 1/0/1. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] undo lldp enable lldp encapsulation snap Description Use the lldp encapsulation snap command to configure the encapsulation format for LLDPDUs as SNAP on a port or a group of ports. Use the undo lldp encapsulation command to restore the default encapsulation format for LLDPDUs.
  • Page 233: Lldp Hold-multiplier

    View System view Default level 2: System level Parameter count: Sets the number of the LLDPDUs sent each time fast LLDPDU transmission is triggered. The parameter ranges from 1 to 10. Example # Configure the device to send four LLDPDUs each time fast LLDPDU transmission is triggered. <Sysname>...
  • Page 234: Lldp Management-address-format String

    lldp management-address-format string Description Use the lldp management-address-format string command to encapsulate the management address in the form of strings in TLVs. Use the undo lldp management-address-format command to restore the default. By default, the management address is encapsulated in the form of numbers in TLVs. Syntax lldp management-address-format string undo lldp management-address-format...
  • Page 235: Lldp Notification Remote-change Enable

    In Layer 3 Ethernet interface view, if you run the lldp management-address-tlv command without specifying the ip-address parameter, the advertised management address is the IP address of the Layer 3 Ethernet port. If no IP address is configured for the port, no management address will be advertised. Syntax lldp management-address-tlv [ ip-address ] undo lldp management-address-tlv...
  • Page 236: Lldp Timer Notification-interval

    [Sysname-GigabitEthernet1/0/1] lldp notification remote-change enable lldp timer notification-interval Description Use the lldp timer notification-interval command to set the LLDP trap transmit interval. Use the undo lldp timer notification-interval command to restore the default. By default, the LLDP trap transmit interval is 5 seconds. Syntax lldp timer notification-interval interval undo lldp timer notification-interval...
  • Page 237: Lldp Timer Tx-delay

    Example # Set the LLDP re-initialization delay to 4 seconds. <Sysname> system-view [Sysname] lldp timer reinit-delay 4 lldp timer tx-delay Description Use the lldp timer tx-delay command to set the LLDPDU transmit delay. Use the undo lldp timer tx-delay command to restore the default. By default, the LLDPDU transmit delay is 2 seconds.
  • Page 238: Lldp Tlv-enable

    If the LLDPDU transmit interval is less than the LLDPDU transmit delay, the device uses the LLDPDUs transmit delay as the transmit interval. Related commands: lldp timer tx-delay. Syntax lldp timer tx-interval interval undo lldp timer tx-interval View System view Default level 2: System level Parameter...
  • Page 239 link-aggregation | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | location-id { civic-address device-type country-code { ca-type ca-value }&<1- 1 0> | elin-address tel-number } | network-policy | power-over-ethernet } } undo lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system- name } | dot1-tlv { all | port-vlan-id | protocol-vlan-id | vlan-name } | dot3-tlv { all | link-aggregation | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | location-id | network-policy | power-over-ethernet } }...
  • Page 240 max-frame-size: Advertises maximum frame size TLVs. power: Advertises power via MDI TLVs and power stateful control TLVs. med-tlv: Advertises LLDP-MED TLVs. capability: Advertises LLDP-MED capabilities TLVs. inventory: Advertises the following TLVs: hardware revision, firmware revision, software revision, serial number, manufacturer name, model name, and asset ID. location-id: Advertises location identification TLVs.
  • Page 241: Service Loopback Group Configuration Commands

    Service loopback group configuration commands display service-loopback group Description Use the display service-loopback group command to display information of the specified service loopback group or all service loopback groups. Syntax display service-loopback group [ number ] [ | { begin | exclude | include } regular-expression ] View Any view Default level...
  • Page 242: Port Service-loopback Group

    Table 50 Command output Field Description Service Group ID Service loopback group ID Quote Number Reference count of the service loopback group Service type of the service loopback group: Service Type Multicast tunnel, supporting multicast tunnel traffic Tunnel, supporting unicast tunnel traffic Member Member ports of the service loopback group Status...
  • Page 243: Service-loopback Group

    service-loopback group Description Use the service-loopback group command to create a service loopback group and specify its service type. Use the undo service-loopback group command to remove a service loopback group. A service loopback group can be referenced by other features once it is created, and can process service traffic only after it is referenced.
  • Page 244: Support And Other Resources

    Related information Documents To find related documents, browse to the Manuals page of the HP Business Support Center website: http://www.hp.com/support/manuals For related documentation, navigate to the Networking section, and select a networking category. For a complete list of acronyms and their definitions, see HP A-Series Acronyms.
  • Page 245: Conventions

    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. Braces enclose a set of required syntax choices separated by vertical bars, from which { x | y | ...
  • Page 246 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.
  • Page 247: Index

    Index A B C D E F G I J L M N P Q R S U V display link-aggregation load-sharing mode,67 display link-aggregation member-port,69 active region-configuration,88 display link-aggregation summary,71 display link-aggregation verbose,73 display lldp local-information,210 bpdu-drop any,88 display lldp neighbor-information,213 bpdu-tunnel dot1q,140...
  • Page 248 lldp notification remote-change enable,228 lldp timer notification-interval,229 flow-interval,17 lldp timer reinit-delay,229 lldp timer tx-delay,230 garp timer hold,195 lldp timer tx-interval,230 garp timer join,196 lldp tlv-enable,231 garp timer leave,197 loopback,20 garp timer leaveall,197 loopback-detection action,29 group-member,28 loopback-detection control enable,30 gvrp,198 loopback-detection enable,30 gvrp registration,199...
  • Page 249 port isolate-user-vlan host,187 shutdown,48 port isolate-user-vlan promiscuous,184 speed,24 port link-aggregation group,82 speed auto,36 port link-mode,20 bpdu-protection,1 14 port link-mode interface-list,21 bridge-diameter,1 14 port link-type,160 compliance,1 15 port pvid disable,168 config-digest-snooping,1 16 port service-loopback group,235 cost,1 17 port trunk permit vlan,161 edged-port,1 18 port trunk pvid,162...

Comments to this Manuals

Symbols: 0
Latest comments: