H3C S5120-EI Series Command Reference Manual Download Page 76

 

64 

MAC Information configuration commands 

 

 

NOTE: 

MAC Information applies only to Layer 2 Ethernet interfaces. 

 

MAC Information configuration commands 

mac-address information enable (Ethernet interface view) 

Syntax 

mac-address information enable 

{

 added 

|

 deleted 

}

 

undo mac-address information enable 

{

 added 

|

 deleted 

View 

Layer 2 Ethernet interface view 

Default level 

1: Monitor level 

Parameters 

added

: Enables the device to record security information when a new MAC address is learned on the 

Ethernet port.  

deleted

: Enables the device to record security information when an existing MAC address is deleted.  

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. 
By default, MAC Information is disabled on a Layer 2 Ethernet interface. 
This command is not supported on aggregate interfaces.  
To enable MAC Information on an Ethernet interface, enable MAC Information globally first.  

Examples 

# Enable MAC Information on GigabitEthernet 1/0/1. 

<Sysname> system-view 

[Sysname] interface GigabitEthernet1/0/1 

[Sysname-GigabitEthernet1/0/1] mac-address information enable added 

Summary of Contents for S5120-EI Series

Page 1: ...H3C S5120 EI Series Ethernet Switches Layer 2 LAN Switching Command Reference Hangzhou H3C Technologies Co Ltd http www h3c com Software version Release 2208 Document version 6W100 20101224...

Page 2: ...re Secware Storware NQA VVG V2G VnG PSPT XGbus N Bus TiGem InnoVision and HUASAN are trademarks of Hangzhou H3C Technologies Co Ltd All other trademarks that may be mentioned in this manual are the pr...

Page 3: ...EI documentation set Obtaining documentation Technical support Documentation feedback Audience This documentation is intended for Network planners Field technical support and servicing engineers Netwo...

Page 4: ...isplay stp bpdu statistics BPDU tunneling configuration commands None VLAN configuration commands Added commands mac vlan trigger enable port pvid disable Isolate user VLAN configuration commands Adde...

Page 5: ...ion Description WARNING An alert that calls attention to important information that if not understood or followed can result in personal injury CAUTION An alert that calls attention to important infor...

Page 6: ...nds H3C Series Ethernet Switches Login Password Recovery Manual Describes how to find or recover a lost password Operations and maintenance Release notes Provide information about the product release...

Page 7: ...Documentation feedback You can e mail your comments about product documentation to info h3c com We appreciate your comments...

Page 8: ...oup member 22 interface 23 jumboframe enable 23 link delay 24 link delay mode up 25 loopback 26 loopback detection action 27 loopback detection control enable 28 loopback detection enable 28 loopback...

Page 9: ...net interface view 64 mac address information enable system view 65 mac address information interval 65 mac address information mode 66 mac address information queue length 66 Ethernet link aggregatio...

Page 10: ...ompliance 112 stp config digest snooping 113 stp cost 113 stp edged port 114 stp enable 115 stp loop protection 116 stp max hops 117 stp mcheck 118 stp mode 119 stp no agreement check 119 stp pathcost...

Page 11: ...158 port pvid disable 159 vlan precedence 159 Protocol based VLAN configuration commands 160 display protocol vlan interface 160 display protocol vlan vlan 161 port hybrid protocol vlan 162 protocol v...

Page 12: ...net type 198 qinq transparent vlan 199 qinq vid 200 raw vlan id inbound 201 LLDP configuration commands 202 LLDP configuration commands 202 display lldp local information 202 display lldp neighbor inf...

Page 13: ...1 to 14881000 kbps max bps Sets the broadcast suppression threshold in kbps to limit the number of kilobits of broadcast traffic passing through the Ethernet port per second For a Gigabit port the val...

Page 14: ...al group1 broadcast suppression 20 description Syntax description text undo description View Ethernet interface view Default level 2 System level Parameters text Creates an interface description a str...

Page 15: ...s see the 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 specif...

Page 16: ...isplays Overflow in any of the following cases The data length of an error statistic is greater than 7 decimal digits The data length of a statistic of any other type is greater than 14 decimal digits...

Page 17: ...ld Description Interface Abbreviated interface name Total pkts sec Average rate in packets per second of receiving sending packets during the sampling interval You can specify the direction of the pac...

Page 18: ...nd displays detailed information about all interfaces If only interface type is specified the command displays detailed information about all interfaces of the particular type If both interface type a...

Page 19: ...te of the Ethernet interface For more information see Table 4 IP Packet Frame Type Ethernet framing format on the port Hardware address Hardware address of the port Description Description of the port...

Page 20: ...s refer to frames that are longer than 1536 bytes without VLAN tags or 1540 bytes with VLAN tags For an Ethernet interface that permits jumbo frames giants refer to frames that are longer than 9212 by...

Page 21: ...iled to be transmitted for example because of Ethernet collisions deferred Number of frames that the port deferred to transmit because of detected collisions collisions Number of frames that the port...

Page 22: ...include regular expression display interface interface type brief down begin exclude include regular expression View Any view Default level 1 Monitor level Parameters interface type Specifies an inter...

Page 23: ...A 1 GE1 0 2 DOWN 1G F A 1 GE1 0 3 DOWN 1G F A 1 GE1 0 4 DOWN 1G F A 1 GE1 0 5 DOWN 1G F A 1 GE1 0 6 DOWN 1G F A 1 GE1 0 7 DOWN 1G F A 1 GE1 0 8 DOWN 1G F A 1 GE1 0 9 DOWN 1G F A 1 Filter the brief in...

Page 24: ...1 Display information about interfaces in DOWN state and the relevant causes Sysname display interface brief down The brief information of interface s under route mode Link ADM administratively down S...

Page 25: ...ce is automatically negotiated its speed attribute includes the auto negotiation flag letter a in parentheses If the duplex mode of an interface is automatically negotiated its duplex mode attribute i...

Page 26: ...ay loopback detection Syntax display loopback detection begin exclude include regular expression View Any view Default level 1 Monitor level Parameters Filters command output by specifying a regular e...

Page 27: ...ckets dropped on an interface or multiple interfaces If you do not specify an interface type or interface number this command displays information about dropped packets on all the interfaces on the de...

Page 28: ...lays all lines that match the specified regular expression regular expression Specifies a regular expression which is a case sensitive string of 1 to 256 characters Description Use the display packet...

Page 29: ...group Active Inactive 1 GigabitEthernet2 0 11 GigabitEthernet2 0 25 2 GigabitEthernet2 0 12 GigabitEthernet2 0 26 3 GigabitEthernet2 0 23 GigabitEthernet2 0 27 4 GigabitEthernet2 0 24 GigabitEthernet...

Page 30: ...displays its name and member Ethernet interfaces If you specify neither the all keyword nor a port group name the command displays the name of each port group on the device Examples Display the names...

Page 31: ...mmand displays all storm control settings on all storm control enabled interfaces Examples Display the storm control settings on all storm control enabled ports Sysname display storm constrain Abbrevi...

Page 32: ...in auto negotiation mode full Sets the interface to operate in full duplex mode half Sets the interface to operate in half duplex mode This keyword is not available for the optical port of an SFP por...

Page 33: ...l frame from the peer the interface suspends sending packets To implement flow control on a link you must enable the generic flow control function at both ends of the link Examples Enable TxRx mode ge...

Page 34: ...n GigabitEthernet 1 0 1 Sysname system view Sysname interface gigabitethernet 1 0 1 Sysname GigabitEthernet1 0 1 flow control receive enable flow interval Syntax flow interval interval undo flow inter...

Page 35: ...t contain any member ports Examples Assign Ethernet interface GigabitEthernet 1 0 1 to port group group1 Sysname system view Sysname port group manual group1 Sysname port group manual group1 group mem...

Page 36: ...xecution of this command under Ethernet interface view will only apply the configurations to the current Ethernet interface Execution of this command under port group view will apply the configuration...

Page 37: ...n administratively down events When you shut down the port with the shutdown command the port reports the event without delay H3C does not recommend that you use this command on ports that are disable...

Page 38: ...internal View Ethernet interface view Default level 2 System level Parameters external Enables external loopback testing to test all on chip functions related to Ethernet ports internal Enables intern...

Page 39: ...fter 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 For more information about the port link...

Page 40: ...detection control is enabled or not However only after loopback detection control is enabled will the port perform the protective action configured with the loopback detection action command This comm...

Page 41: ...10 Actions to take upon detection of a loop condition Actions Port type No protective action is configured A protective action is configured Access port Put the port in controlled mode The port disca...

Page 42: ...tection multi port mode enable View System view Default level 2 System level Parameters None Description Use the loopback detection multi port mode enable command to enable multi port loopback detecti...

Page 43: ...ame GigabitEthernet1 0 2 loopback detection enable loopback detection per vlan enable Syntax loopback detection per vlan enable undo loopback detection per vlan enable View Ethernet interface view por...

Page 44: ...of the port are transmit pins and pins 3 and 6 are receive pins Description Use the mdi command to configure the MDI mode of a copper Ethernet interface Use the undo mdi command to restore the defaul...

Page 45: ...this command in Ethernet interface view the configurations take effect only on the current interface If you execute this command in port group view the configurations take effect on all ports in the p...

Page 46: ...ew or multiple ports in bulk in port group view Examples Enable auto power down on GigabitEthernet 1 0 1 Sysname system view Sysname interface gigabitethernet 1 0 1 Sysname GigabitEthernet1 0 1 port a...

Page 47: ...GigabitEthernet1 0 1 port bridge enable port group manual Syntax port group manual port group name undo port group manual port group name View System view Default level 2 System level Parameters port...

Page 48: ...erface interface type interface number View Any view Default level 2 System level Parameters interface type Specify an interface type as GE port or 10 GE port t interface number Specify an interface n...

Page 49: ...d the electrical port is disabled automatically and vice versa Configured in interface view this command takes effect on the current interface only Configured in port group view this command takes eff...

Page 50: ...them Description Use the speed command to set the speed of an Ethernet interface Use the undo speed command to restore the default By default Ethernet ports operate in auto negotiation mode For an Eth...

Page 51: ...ffect For example if you configure speed 100 after configuring speed auto 100 1000 on an interface the interface speed is set to 100 Mbps by force without negotiation If you configure speed auto 100 1...

Page 52: ...is disabled NOTE To achieve desirable storm protection effect avoid configuring both the storm constrain command and any storm suppression command unicast suppression multicast suppression and broadca...

Page 53: ...control command to set the protective action to take on an Ethernet interface when a type of traffic exceeds the upper storm control threshold Use the undo storm constrain control command to restore...

Page 54: ...nable trap Syntax storm constrain enable trap undo storm constrain enable trap View Ethernet interface view Default level 2 System level Parameters None Description Use the storm constrain enable trap...

Page 55: ...lling interval of the storm control module to 60 seconds Sysname system view Sysname storm constrain interval 60 unicast suppression Syntax unicast suppression ratio pps max pps kbps max kbps undo uni...

Page 56: ...he threshold NOTE If you set different unknown unicast suppression thresholds in Ethernet interface view or port group view multiple times the one configured last takes effect For a particular type of...

Page 57: ...the local port to the faulty point NOTE Optical interfaces do not support this command If the link of an Ethernet interface is up testing its cable connection will cause the link to go down and then u...

Page 58: ...d length To use a type of Unicode characters or symbols in an interface description you must install the corresponding Input Method Editor IME and log in to the switch through remote login software th...

Page 59: ...mand output by specifying a regular expression For more information about regular expressions see the Fundamentals Configuration Guide begin Displays the first line that matches the specified regular...

Page 60: ...y down of the interface Line protocol current state State of the data link layer protocol up spoofing Spoofing refers to the spoofing attribute of the interface When the network layer protocol state o...

Page 61: ...form the undo shutdown command Stby The interface is operating as a backup interface Protocol s spoofing If the network layer protocol state of an interface is shown as UP but its link is an on demand...

Page 62: ...expression include Displays all lines that match the specified regular expression regular expression Specifies a regular expression which is a case sensitive string of 1 to 256 characters Description...

Page 63: ...back interface number undo interface loopback interface number View System view Default level 2 System level Parameters interface number Loopback interface number ranging from 0 to 3 Description Use t...

Page 64: ...oopback interface With this argument the command clears statistics on a specified loopback interface Description Use the reset counters interface loopback command to clear statistics on loopback inter...

Page 65: ...and clears the statistics on interface Null 0 with or without the 0 keyword because the device supports only one interface Null 0 Examples Clear statistics on interface Null 0 Sysname reset counters i...

Page 66: ...ation blackhole MAC address entries are dropped vlan vlan id Displays MAC address entries of the specified VLAN where vlan id is in the range 1 to 4094 count Displays the number of MAC address entries...

Page 67: ...nd Reference Examples Display the MAC address table entry for MAC address 000f e201 0101 Sysname display mac address 000f e201 0101 MAC ADDR VLAN ID STATE PORT INDEX AGING TIME 000f e201 0101 1 Learne...

Page 68: ...ression include Displays all lines that match the specified regular expression regular expression Specifies a regular expression which is a case sensitive string of 1 to 256 characters Description Use...

Page 69: ...iption Use the display mac address mac learning command to display the MAC address learning status of the specified or all Layer 2 Ethernet ports Examples Display MAC address learning status of all Et...

Page 70: ...Sysname display mac address statistics MAC TYPE LEARNED USER DEFINED SYSTEM DEFINED IN USE AVAILABLE Dynamic Unicast 33 0 1 34 Static Unicast 0 0 3 3 1024 Total Unicast 37 16384 Dynamic Multicast 0 0...

Page 71: ...The dynamic MAC address table entries will be lost whether you save the configuration or not Related commands display mac address Examples Add a static entry for MAC address 000f e201 0101 on port Et...

Page 72: ...MAC address entry will not be overwritten by a dynamic MAC address entry A dynamic MAC address entry can be overwritten by a static or blackhole MAC address entry If you execute the undo mac address c...

Page 73: ...ng attacked by a great deal of packets with different source MAC addresses the update of the MAC address table can be affected Because disabling MAC address learning may result in broadcast storms ena...

Page 74: ...nterface If the command is executed in port group view the configuration takes effect on all ports belonging to the port group Related commands mac address and mac address timer Examples Set the maxim...

Page 75: ...tries and fail to accommodate the latest network changes A short aging interval may result in removal of valid entries and unnecessary broadcasts that may affect device performance Examples Set the ag...

Page 76: ...he device to record security information when an existing MAC address is deleted Description Use the mac address information enable command to enable MAC Information on the Layer 2 Ethernet interface...

Page 77: ...c address information enable mac address information interval Syntax mac address information interval value undo mac address information interval View System view Default level 2 System level Paramete...

Page 78: ...AC Information mode that is whether 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 r...

Page 79: ...t By default the MAC Information queue length is 50 Setting the MAC Information queue length to 0 indicates that the device sends a Syslog or trap message to the network management device as soon as a...

Page 80: ...an include information such as the purpose of the interface for the ease of management Use the undo description command to restore the default By default the description of an interface is interface n...

Page 81: ...which is a case sensitive string of 1 to 256 characters Description Use the display interface bridge aggregation command to display aggregate interface information If interface number is not specified...

Page 82: ...le 15 Output description Field Description Bridge Aggregation1 Route Aggr egation1 current state The Layer 2 aggregate interface status which can be DOWN Administratively The interface is administrati...

Page 83: ...play lacp system id 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...

Page 84: ...gular expressions see the 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...

Page 85: ...c address source mac address Table 17 Output description Field Description Link Aggregation Load Sharing Mode The global link aggregation load sharing criteria By default the link aggregation load sha...

Page 86: ...ensitive string of 1 to 256 characters Description Use the display link aggregation member port command to display the detailed link aggregation information on the specified member ports or all member...

Page 87: ...system detects that the incoming frames are collected F The sending system detects that the outgoing frames are distributed G The sending system receives frames in the default state H The sending sys...

Page 88: ...ion summary command to display the summary information of all aggregation groups You may find that information about the remote system for a static link aggregation group is either displayed as none o...

Page 89: ...include regular expression View Any view Default level 1 Monitor level Parameters bridge aggregation Displays detailed information about the Layer 2 aggregation groups corresponding to Layer 2 aggrega...

Page 90: ...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...

Page 91: ...t state H The sending system receives frames in the expired state Aggregation Interface Name of the aggregate interface Aggregation Mode Mode of the aggregation group Static for static aggregation and...

Page 92: ...own 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 snm...

Page 93: ...from 0 to 65535 The smaller the value the higher the port LACP priority Description Use the lacp port priority command to set the LACP priority of a port Use the undo lacp port priority command to res...

Page 94: ...ty undo lacp system priority View System view Default level 2 System level Parameters system priority Specifies the LACP priority of the local system ranging from 0 to 65535 The smaller the value the...

Page 95: ...tion slight packet loss can occur when the IRF member device enabled with link aggregation traffic redirection reboots To prevent packet loss you can enable local first load sharing for link aggregati...

Page 96: ...fault for all link aggregation groups You can set the following global link aggregation load sharing criteria Source IP address Destination IP address Source MAC address Destination MAC address Source...

Page 97: ...mode local first undo link aggregation load sharing mode local first View System view Default level 2 System level Parameters None Description Use the link aggregation load sharing mode local first co...

Page 98: ...t link aggregation group View Ethernet interface view Default level 2 System level Parameters number Specifies an aggregate interface number corresponding to an aggregation group ranging from 1 to 128...

Page 99: ...tatistics of all interfaces in the system If only the bridge aggregation keyword is specified the command clears the statistics of all Layer 2 aggregate interfaces If the bridge aggregation interface...

Page 100: ...set lacp statistics shutdown Syntax shutdown undo shutdown View Layer 2 aggregate interface view Default level 2 System level Parameters None Description Use the shutdown command to shut down the curr...

Page 101: ...ude Displays all lines that match the specified regular expression regular expression Specifies a regular expression which is a case sensitive string of 1 to 256 characters Description Use the display...

Page 102: ...rface to the isolation group If the failure occurs on a member port the switch can still assign other member ports to the isolation group For detailed information about Layer 2 aggregate interfaces se...

Page 103: ...ernet1 0 1 port link aggregation group 1 Sysname GigabitEthernet1 0 1 quit Sysname interface gigabitethernet 1 0 2 Sysname GigabitEthernet1 0 2 port link aggregation group 1 Sysname GigabitEthernet1 0...

Page 104: ...on process when processing MST region related configurations The launch will only occur after you activate the MST region related parameters by using this command or enable MSTP by using the stp enabl...

Page 105: ...guration command to display MST region pre configuration information including the region name revision level and VLAN to instance mapping settings Two or more MSTP enabled switches belong to the same...

Page 106: ...spanning tree CIST interface interface list Displays the MSTP status and statistics on the ports specified by a port list in the format of interface list interface type interface number to interface...

Page 107: ...th cost from the switch to the CIST common root regional root the internal path cost from the switch to the regional root CIST root port of the switch and status of the BPDU guard function enabled or...

Page 108: ...r traffic LEARNING The port learns MAC addresses but does not forward user traffic Protection Protection type on the port ROOT Root guard LOOP Loop guard BPDU BPDU guard NONE No protection Display the...

Page 109: ...status and statistics when STP is not enabled Sysname display stp Protocol Status disabled Protocol Std IEEE 802 1s Version 3 CIST Bridge Prio 32768 MAC address 000f e200 8048 Max age s 20 Forward del...

Page 110: ...ard used for port path cost calculation which can be legacy dot1d 1998 or dot1t Config indicates the configured value and Active indicates the actual value Desg Bridge Port Designated bridge ID and po...

Page 111: ...ocol standard Version MSTP protocol version CIST Bridge Prio The switch s priority in the CIST MAC address MAC address of the switch Max age s Aging timer in seconds for BPDUs Forward delay s Port sta...

Page 112: ...MSTI Reason Reason that the port was blocked ROOT Protected Root guard function LOOP Protected Loop guard function Formatcompatibility Protected MSTP BPDU format incompatibility protection function di...

Page 113: ...ll MSTIs on the specified port The displayed information is sorted by MSTI ID If you specify both an MSTI ID and a port this command displays the BPDU statistics of a specified MSTI on a specified por...

Page 114: ...t and then received by the same port Max Aged BPDUs BPDUs whose max age was exceeded TCN Sent TCN BPDUs sent TCN Received TCN BPDUs received TCA Sent TCA BPDUs sent TCA Received TCA BPDUs received Con...

Page 115: ...gular expression Specifies a regular expression which is a case sensitive string of 1 to 256 characters Description Use the display stp down port command to display information about ports shut down b...

Page 116: ...pecified 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 expressi...

Page 117: ...on 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 Dis...

Page 118: ...on 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 Dis...

Page 119: ...s not support IRF the slot number argument must be 1 Filters command output by specifying a regular expression For more information about regular expressions see the Fundamentals Configuration Guide b...

Page 120: ...indicates you can specify up to 10 VLAN IDs or VLAN ID ranges Description Use the instance command to map a list of VLANs to the specified MSTI Use the undo instance command to remap the specified VL...

Page 121: ...configuring this command run the active region configuration command to activate the configured MST region name Related commands instance revision level vlan mapping modulo display stp region configu...

Page 122: ...stem level Parameters level Specifies an MSTP revision level ranging from 0 to 65535 Description Use the revision level command to configure the MSTP revision level Use the undo revision level command...

Page 123: ...ew Default level 2 System level Parameters diameter Specifies the switched network diameter ranging from 2 to 7 Description Use the stp bridge diameter command to specify the network diameter namely t...

Page 124: ...port s to receive and send only compatible format MSTP BPDUs Description Use the stp compliance command to configure the mode the specified port s will use to recognize and send MSTP BPDUs Use the und...

Page 125: ...ured 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 leave...

Page 126: ...ed in Layer 2 Ethernet interface view the setting takes effect on the current interface only Configured in port group view the setting takes effect on all ports in the port group Configured in Layer 2...

Page 127: ...aves the aggregation group If a port directly connects to a user terminal rather than to another switch or a shared LAN segment this port is regarded as an edge port When the network topology changes...

Page 128: ...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 aggregat...

Page 129: ...ng loop guard root guard and edge port settings only one function whichever is configured the earliest takes effect on a port at the same time Related commands stp edged port and stp root protection E...

Page 130: ...or RSTP mode Then you can perform an mCheck operation to force the port to migrate to the MSTP or RSTP mode The switch works in STP compatible mode RSTP mode or MSTP mode depending on the MSTP mode se...

Page 131: ...ult setting By default an MSTP enabled switch works in MSTP mode Related commands stp mcheck and stp enable Examples Configure the MSTP enabled switch to work in STP compatible mode Sysname system vie...

Page 132: ...efault level 2 System level Parameters dot1d 1998 Configures the switch to calculate the default path cost for ports based on IEEE 802 1d 1998 dot1t Configures the switch to calculate the default path...

Page 133: ...e 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...

Page 134: ...kes effect on the current interface only Configured in port group view the setting takes effect on all ports in the port group Configured in Layer 2 aggregate interface view the setting takes effect o...

Page 135: ...nce 2 Aug 16 00 49 41 856 2006 Sysname MSTP 3 PDISC Instance 2 s GigabitEthernet1 0 1 has been set to discarding state Aug 16 00 49 41 856 2006 Sysname MSTP 3 PFWD Instance 2 s GigabitEthernet1 0 2 ha...

Page 136: ...onfiguration command to enter MST region view Use the undo stp region configuration command to restore the default MST region configurations These are the default settings for the MST region The MST r...

Page 137: ...condary root bridge you cannot change its priority Related commands stp priority and stp root secondary Examples Specify the switch as the root bridge of MSTI 0 Sysname system view Sysname stp instanc...

Page 138: ...ndo stp root protection command to restore the default By default the root guard function is disabled Configured in Layer 2 Ethernet interface view the setting takes effect on the current interface on...

Page 139: ...ax stp tc protection threshold number undo stp tc protection threshold View System view Default level 2 System level Parameters number Sets the maximum number of immediate forwarding address entry flu...

Page 140: ...terval of state transition To prevent temporary loops a port must go through the learning intermediate state before it transitions from the discarding to the forwarding state To stay synchronized with...

Page 141: ...he network size When the network diameter is the default value the hello time is also set to the default Related commands stp timer forward delay stp timer max age and stp bridge diameter Examples Set...

Page 142: ...es the timeout time Timeout time timeout factor 3 hello time Use the undo stp timer factor command to restore the default By default the timeout factor is 3 After the network topology is stabilized ea...

Page 143: ...only Configured in port group view the setting takes effect on all member ports in the port group Configured in Layer 2 aggregate interface view the setting takes effect only on the aggregate interfac...

Page 144: ...a new MSTI the old mapping will be automatically removed This command maps each VLAN to the MSTI whose ID is VLAN ID 1 modulo 1 where VLAN ID 1 modulo is the modulo operation for VLAN ID 1 If the mod...

Page 145: ...thernet Operation Administration and Maintenance EOAM gvrp Enables BPDU tunneling for the GARP VLAN Registration Protocol GVRP hgmp Enables BPDU tunneling for the HW Group Management Protocol HGMP lac...

Page 146: ...group 1 and then enable BPDU tunneling for STP in the port group Sysname system view Sysname port group manual 1 Sysname port group manual 1 group member gigabitethernet 1 0 1 to gigabitethernet 1 0...

Page 147: ...the destination multicast MAC address for BPDUs is 0x010F E200 0003 Examples Set the destination multicast MAC address for BPDUs to 0x0100 0CCD CDD0 Sysname system view Sysname bpdu tunnel tunnel dmac...

Page 148: ...rough remote login software that supports the character type When the length of a description string reaches or exceeds the maximum line width on the terminal software the software starts a new line p...

Page 149: ...tch the specified regular expression include Displays all lines that match the specified regular expression regular expression Specifies a regular expression which is a case sensitive string of 1 to 2...

Page 150: ...of the interface is 192 168 1 54 24 This information is displayed only if the primary IP address is configured for the interface Internet Address is 6 4 4 4 24 Sub The secondary IP address of the inte...

Page 151: ...erved VLANs according to function implementation and reserved VLANs serve protocol modules You cannot do any configuration on reserved VLANs static Displays the number of static VLANs and the ID of ea...

Page 152: ...Address Primary IP address of the VLAN interface available only on a VLAN interface configured with an IP address You can use the display interface vlan interface command in any view or the display t...

Page 153: ...cifies an IP address in dotted decimal notation mask Specifies a subnet mask in dotted decimal notation mask length Sets the number of consecutive ones in the subnet mask ranging from 0 to 32 sub Indi...

Page 154: ...VLAN name a string of 1 to 32 characters Spaces and special characters can be included in the name Description Use the name command to configure a name for the current VLAN Use the undo name command t...

Page 155: ...interface Examples Clear the statistics on VLAN interface 2 Sysname reset counters interface vlan interface 2 shutdown Syntax shutdown undo shutdown View VLAN interface view Default level 2 System le...

Page 156: ...an id1 to vlan id2 command to create a range of VLANs specified by vlan id1 to vlan id2 except reserved VLANs Use the undo vlan command to remove the specified VLAN s NOTE As the default VLAN VLAN 1 c...

Page 157: ...that do not match the specified regular expression include Displays all lines that match the specified regular expression regular expression Specifies a regular expression which is a case sensitive s...

Page 158: ...er to interface type interface number 1 10 where 1 10 indicates that you can specify up to 10 ports or port ranges Description Use the port command to assign the specified access port s to the current...

Page 159: ...iguration 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 stop...

Page 160: ...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 For more information about Layer 2 aggrega...

Page 161: ...es the VLANs the hybrid port carries are the set of VLANs specified by vlan id list in each execution In port group view this command applies to all ports in the port group For more information about...

Page 162: ...aggregation 1 Sysname Bridge Aggregation1 port link type hybrid Sysname Bridge Aggregation1 port hybrid vlan 2 untagged Please wait Done Configuring GigabitEthernet1 0 2 Done Configuring GigabitEther...

Page 163: ...the loopback detection action command see the chapter Ethernet interface configuration commands NOTE To change the link type of a port from trunk to hybrid or vice versa you must set the link type to...

Page 164: ...the port group For more information about port groups see the Layer 2 LAN Switching Configuration Guide The configuration made in Layer 2 aggregate interface view applies to the aggregate interface an...

Page 165: ...o configure the default VLAN ID for the trunk port Use the undo port trunk pvid command to restore the default By default the default VLAN of a trunk port is VLAN 1 You can use a nonexistent VLAN as t...

Page 166: ...100 as the default VLAN of the trunk Layer 2 aggregate interface Bridge aggregation 1 Among the member ports of the aggregation group corresponding to Bridge aggregation 1 GigabitEthernet 1 0 2 is an...

Page 167: ...characters Description Use the display mac vlan command to display the specified MAC address to VLAN entries If mac address mac address is specified but mask is not specified only the MAC address to...

Page 168: ...ed 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 reg...

Page 169: ...s the 802 1p priority value corresponding to the specified MAC address This argument ranges from 0 to 7 all Removes all the static MAC address to VLAN entries Description Use the mac vlan mac address...

Page 170: ...and to enable MAC based dynamic port assignment The port configured with this command will be dynamically assigned to VLANs based on the source MAC addresses of the received packets Use the undo mac v...

Page 171: ...he packet in its default VLAN Examples Disable the default VLAN of GigabitEthernet 1 0 1 from forwarding packets whose source MAC addresses do not match any MAC address to VLAN mapping Sysname system...

Page 172: ...ssion 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...

Page 173: ...ts value is greater than or equal to that of vlan id1 all Displays information about all protocol based VLANs Filters command output by specifying a regular expression For more information about regul...

Page 174: ...ol end argument must be greater than or equal to the beginning protocol index all Specifies all protocols bound to vlan id Description Use the port hybrid protocol vlan command to associate the hybrid...

Page 175: ...at 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 Done Sysname Bridge A...

Page 176: ...protocol type values The etype id argument is the protocol type ID of inbound packets ranging from 0x0600 to 0xffff excluding 0x0800 0x809b 0x8137 and 0x86dd llc Specifies to match the llc encapsulat...

Page 177: ...mplate for the VLAN Use the undo protocol vlan command to remove the configured protocol template By default no VLAN is bound to any protocol template Related commands display protocol vlan vlan NOTE...

Page 178: ...ch the specified regular expression include Displays all lines that match the specified regular expression regular expression Specifies a regular expression which is a case sensitive string of 1 to 25...

Page 179: ...nes that match the specified regular expression regular expression Specifies a regular expression which is a case sensitive string of 1 to 256 characters Description Use the display ip subnet vlan vla...

Page 180: ...the beginning IP subnet index all Removes all the associations between VLANs and IP subnets or IP addresses Description Use the ip subnet vlan command to associate the current VLAN with a specified IP...

Page 181: ...rts support this feature Before issuing this command assign the port to the IP subnet based VLAN to be associated with Related commands display ip subnet vlan interface Examples Associate GigabitEther...

Page 182: ...access Please wait Done Configuring GigabitEthernet1 0 2 Done Configuring GigabitEthernet1 0 3 Done Sysname Bridge Aggregation1 port link type hybrid Sysname Bridge Aggregation1 port hybrid vlan 3 un...

Page 183: ...w 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...

Page 184: ...cription Field Description Isolate user VLAN VLAN ID Isolate user VLAN ID Secondary VLAN ID Secondary VLAN ID VLAN Type VLAN type static or dynamic Isolate user VLAN type Current VLAN type isolate use...

Page 185: ...s its isolate user VLAN or secondary VLAN to pass through and the default VLAN of the port must be its isolate user VLAN or secondary VLAN The undo isolate user vlan command without the secondary seco...

Page 186: ...tion for the current 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 Related commands display isolate...

Page 187: ...net 1 0 2 Sysname vlan2 vlan 3 Sysname vlan3 port gigabitethernet 1 0 3 Sysname vlan3 vlan 4 Sysname vlan4 port gigabitethernet 1 0 4 Sysname vlan4 quit Sysname isolate user vlan 2 secondary 3 to 4 Sy...

Page 188: ...ost Configure the Layer 2 aggregate interface Bridge Aggregation 1 as a hybrid port and then configure it as an upstream port Sysname system view Sysname interface bridge aggregation 1 Sysname Bridge...

Page 189: ...ice vlan oui command to display the supported organizationally unique identifier OUI addresses the OUI address masks and the description strings Related commands voice vlan mac address NOTE In general...

Page 190: ...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 al...

Page 191: ...ameters minutes Sets the voice VLAN aging time ranging from 5 to 43200 minutes Description Use the voice vlan aging command to configure the voice VLAN aging time Use the undo voice vlan aging command...

Page 192: ...VLAN assignment mode but not on an access port operating in automatic voice VLAN assignment mode Examples Enable the voice VLAN feature on GigabitEthernet 1 0 1 Sysname system view Sysname interface g...

Page 193: ...ports up to 16 OUI addresses By default the system is configured with the default OUI addresses You can remove the default OUI addresses and then add recognizable OUI addresses manually Table 42 Defau...

Page 194: ...manual voice VLAN assignment mode Sysname system view Sysname interface gigabitethernet 1 0 1 Sysname GigabitEthernet1 0 1 undo voice vlan mode auto voice vlan qos Syntax voice vlan qos cos value dscp...

Page 195: ...the voice vlan qos trust command to configure the current interface to trust the priority settings carried in incoming voice traffic With this command configured an interface keeps the CoS and DSCP v...

Page 196: ...ity mode By default voice VLAN security mode is disabled When you enable the security mode for a voice VLAN only voice traffic can be transmitted in the voice VLAN The device matches the source MAC ad...

Page 197: ...t match the specified regular expression include Displays all lines that match the specified regular expression regular expression Specifies a regular expression which is a case sensitive string of 1...

Page 198: ...ce type interface number2 where the end port number specified by interface number2 must be greater than the start port number specified by interface number1 If no ports are specified this command disp...

Page 199: ...ar 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 exp...

Page 200: ...ne MTR Table 43 Output description Field Description GVRP state of VLAN 2 on port GigabitEthernet1 0 1 Information about the GVRP state machines in VLAN 2 on port GigabitEthernet 1 0 1 Applicant state...

Page 201: ...ber1 If no ports are specified this command displays the GVRP statistics for all trunk ports Filters command output by specifying a regular expression For more information about regular expressions se...

Page 202: ...pression For more information about regular expressions see the Fundamentals Configuration Guide begin Displays the first line that matches the specified regular expression and all lines that follow e...

Page 203: ...ernet 1 0 1 Sysname display gvrp vlan operation interface gigabitethernet 1 0 1 Dynamic VLAN operations on port GigabitEthernet1 0 1 Operations of creating VLAN 2 100 Operations of deleting VLAN none...

Page 204: ...escription Use the garp timer join command to set the GARP Join timer for an Ethernet port Layer 2 aggregate interface or all ports in a port group Use the undo garp timer join command to restore the...

Page 205: ...mer and the LeaveAll timer are using the default Sysname system view Sysname interface gigabitethernet 1 0 1 Sysname GigabitEthernet1 0 1 garp timer leave 100 garp timer leaveall Syntax garp timer lea...

Page 206: ...iew or Layer 2 aggregate interface take effect on the current interface Settings in port group view take effect on all ports in the port group To enable GVRP on a port enable GVRP globally first and t...

Page 207: ...me GigabitEthernet1 0 1 gvrp registration fixed reset garp statistics Syntax reset garp statistics interface interface list View User view Default level 2 System level Parameters interface interface l...

Page 208: ...196 Related commands display garp statistics Examples Clear the GARP statistics on all ports Sysname reset garp statistics...

Page 209: ...et port s Use the undo qinq enable command to disable basic QinQ on the current Ethernet port s By default basic QinQ is disabled on Ethernet ports A basic QinQ enabled port tags received frames with...

Page 210: ...ex value undo qinq ethernet type View System view Default Level 2 System level Parameters hex value Hexadecimal protocol type value ranging from 0x0001 to 0xFFFF excluding the common protocol type val...

Page 211: ...n id argument ranges from 1 to 4094 all Sepcfies all VLANs Description Use the qinq transparent vlan command to configure VLAN transparent transmission on one or multiple ports so the port or ports ca...

Page 212: ...l ports in the port group Configured in Layer 2 aggregate interface view this command takes effect on the Layer 2 aggregate interface and the member ports in its aggregation group You can configure th...

Page 213: ...mes of the specified CVLANs with the current SVLAN Use the undo raw vlan id inbound command to remove the configuration CAUTION You can run this command in the same view many times A new configuration...

Page 214: ...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 w...

Page 215: ...ipv4 Management address 192 168 1 11 Management address interface type IfIndex Management address interface ID 54 Management address OID 0 Port VLAN ID PVID 1 Port and protocol VLAN ID PPVID 1 Port an...

Page 216: ...al terminal device It requires the basic LLDP discovery services Class II Media terminal device It supports media streams and can also function as a normal terminal device Class III Communication term...

Page 217: ...o negotiation is enabled OperMau Current speed and duplex state of the port PoE supported Indicates whether PoE is supported on the port Power port class PoE device type PSE Power sourcing equipment P...

Page 218: ...cation information is invalid Coordinate based LCI Location information is coordinate based Civic Address LCI Typical address information ECS ELIN Telephone number for urgencies PoE PSE power source P...

Page 219: ...ns see the 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 speci...

Page 220: ...dp neighbor information list System Name Local Interface Chassis ID Port ID System1 GE1 0 1 000f e25d ee91 GigabitEthernet1 0 5 System2 GE1 0 2 000f e25d ee92 GigabitEthernet1 0 6 System3 GE1 0 3 000f...

Page 221: ...led Router Routing is enabled Management address OID Management address object ID Port VLAN ID Port VLAN ID Port and protocol VLAN ID PPVID Port protocol VLAN ID Port and protocol VLAN supported Indic...

Page 222: ...ress LCI Typical address information ECS ELIN Telephone for urgencies Location Information Location information PoE PSE power source PSE power type Unknown Unknown power supply Primary Primary power s...

Page 223: ...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 Displa...

Page 224: ...of dropping neighbor information due to lack of available memory space The number of LLDP neighbor information aged out Number of the neighbor information entries that have aged out LLDP statistics I...

Page 225: ...r expression Specifies a regular expression which is a case sensitive string of 1 to 256 characters Description Use the display lldp status command to display LLDP status information If no port is spe...

Page 226: ...LLDP Indicates whether LLDP is enabled on the port Admin status LLDP mode of the port TxRx A port in this mode sends and receives LLDPDUs Rx_Only A port in this mode receives LLDPDUs only Tx_Only A p...

Page 227: ...of advertisable optional LLDP TLVs of a port If no port is specified this command displays the types of advertisable optional TLVs of each port Examples Display the types of advertisable optional LLD...

Page 228: ...izationally specific TLVs Port VLAN ID TLV Port and protocol VLAN ID TLV VLAN name TLV IEEE 802 3 extended TLV IEEE 802 3 organizationally specific TLVs MAC Physic TLV Power via MDI TLV Link aggregati...

Page 229: ...thernet 1 0 1 Sysname system view Sysname interface gigabitethernet 1 0 1 Sysname GigabitEthernet1 0 1 lldp admin status rx lldp check change interval Syntax lldp check change interval interval undo l...

Page 230: ...P operates in disable mode To have your device work with Cisco IP phones you must enable CDP compatible LLDP globally and then configure CDP compatible LLDP to operate in TxRx mode on the specified po...

Page 231: ...cdp lldp enable Syntax lldp enable undo lldp enable View System view Layer 2 Ethernet interface view port group view Default level 2 System level Parameters None Description Use the lldp enable comman...

Page 232: ...system view Sysname interface gigabitethernet 1 0 1 Sysname GigabitEthernet1 0 1 lldp encapsulation snap lldp fast count Syntax lldp fast count count undo lldp fast count View System view Default leve...

Page 233: ...rmation of a device is determined by the following expression TTL multiplier LLDPDU transmit interval The TTL can be up to 65535 seconds Longer TTLs will be rounded off to 65535 seconds Related comman...

Page 234: ...address Use the undo lldp management address tlv command to disable management address advertising in LLDPDUs By default the management address is advertised through LLDPDUs For a Layer 2 Ethernet po...

Page 235: ...LLDP trapping for GigabitEthernet 1 0 1 Sysname system view Sysname interface gigabitethernet 1 0 1 Sysname GigabitEthernet1 0 1 lldp notification remote change enable lldp timer notification interval...

Page 236: ...it delay command to restore the default By default the LLDP re initialization delay is 2 seconds Examples Set the LLDP re initialization delay to 4 seconds Sysname system view Sysname lldp timer reini...

Page 237: ...lldp timer tx interval 20 lldp tlv enable Syntax lldp tlv enable basic tlv all port description system capability system description system name dot1 tlv all port vlan id protocol vlan id vlan id vla...

Page 238: ...ation status TLVs 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...

Page 239: ...t disable it from advertising other LLDP MED TLVs To disable the device from advertising MAC PHY configuration status TLVs you must first disable it from advertising LLDP MED capabilities TLVs If you...

Page 240: ...isplay link aggregation member port 74 display link aggregation summary 76 display link aggregation verbose 77 display lldp local information 202 display lldp neighbor information 206 display lldp sta...

Page 241: ...plier 221 lldp management address format string 221 lldp management address tlv 222 lldp notification remote change enable 223 lldp timer notification interval 223 lldp timer reinit delay 224 lldp tim...

Page 242: ...ain enable log 41 storm constrain enable trap 42 storm constrain interval 42 stp bpdu protection 1 1 1 stp bridge diameter 1 1 1 stp compliance 1 12 stp config digest snooping 1 13 stp cost 1 13 stp e...

Reviews: