Page 3
The Layer 2 Command Reference describes the configuration commands for Ethernet, loopback, and null interfaces, VLAN, MAC address table, spanning tree, Layer 2 forwarding, and PPP. NOTE: Support of the H3C WA series access points for commands may vary by device model. For the • About the WA Series Access Points Command References command matrix, see The interface types and output information may vary by device model.
Port numbering in examples The port numbers in this document are for illustration only and might be unavailable on your device. About the H3C WA series access points documentation set The H3C WA series access points documentation set includes: Category Documents Purposes...
Obtaining documentation You can access the most up-to-date H3C product documentation on the World Wide Web at http://www.h3c.com. Click the links on the top navigation bar to obtain different categories of product documentation: [Technical Support &...
Page 8
name ······································································································································································· 92 port ·········································································································································································· 93 port access vlan ····················································································································································· 93 port hybrid pvid ····················································································································································· 94 port hybrid vlan ····················································································································································· 95 port link-type ·························································································································································· 96 port trunk permit vlan ············································································································································ 96 port trunk pvid ······················································································································································· 97 ...
Parameters text: Specifies the interface description, a string of 1 to 80 characters. The string can include case-sensitive letters, digits, special characters (including ~ ! @ # $ % ^ & * ( ) - _ + = { } [ ] | \ : ; " ' <...
Page 11
|: 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 12
The maximum Ethernet frame length allowed on the interface, which varies The Maximum Frame Length by device model. For more information, see About the WA Series Access Points Configuration Guides. Broadcast suppression threshold as a percentage of the interface transmission capability.
Page 13
Field Description Input (normal): 1945 packets, 247903 bytes Inbound normal traffic (including unicast, broadcast, and multicast) and pause frame statistics (in packets and bytes) for the interface. 1156 unicasts, 688 broadcasts, 101 multicasts, - A hyphen (-) is displayed for an unsupported statistical item. pauses Input: 0 input errors, 0 runts, 0 giants, - throttles...
Page 14
(46 to 1500 bytes). NOTE: Whether the illegal packets include jabber frames varies by device model. For About the WA Series Access Points Configuration more information, see Guides Number of inbound frames dropped because the receive buffer of the port ignored ran low.
Page 15
Field Description Number of frames that the interface stopped transmitting because Ethernet collisions collisions were detected during transmission. Number of frames that the interface deferred to transmit after transmitting late collisions their first 512 bits, because of detected collisions. Number of carrier losses during transmission. This counter applies to serial WAN interfaces.
Page 16
Protocol: (s) - spoofing Interface Link Protocol Main IP Description Dia1 UP(s) NULL0 UP(s) Vlan1 192.168.0.26 WLAN-Radio1/0/1 WLAN-Radio1/0/2 # Display brief information about all UP interfaces. <Sysname> display interface brief | include UP The brief information of interface(s) under route mode: Link: ADM - administratively down;...
Page 17
Interface Link Cause WLAN-BSS1 DOWN Not connected Table 3 display interface brief command output description Field Description The brief information of interface(s) under route The command displays brief information about Layer 3 interfaces. mode: ADM—The interface has been shut down by the network administrator. To Link: ADM - recover its physical layer state, perform the undo shutdown command.
Field Description Link type of the interface: • A—Access. Type • H—Hybrid. • T—Trunk. PVID Port VLAN ID. Causes for the physical state of an interface to be DOWN. For more information, Cause Table Table 4 Causes for the physical state of an interface to be DOWN Field Description No physical connection exists (possibly because the network cable is...
Examples # Configure interface GigabitEthernet 1/0/1 to operate in full-duplex mode. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] duplex full flow-control Syntax flow-control undo flow-control View Ethernet interface view Default level 2: System level Parameters None Description Use flow-control to enable TxRx mode generic flow control on an Ethernet interface. Use undo flow-control to disable generic flow control on the Ethernet interface.
reset counters interface Syntax reset counters interface [ interface-type [ interface-number ] ] View User view Default level 2: System level Parameters interface-type: Specifies an interface type. interface-type interface-number: Specifies an interface by its type and number. Description Use reset counters interface to clear the Ethernet interface statistics. Before collecting traffic statistics for a specific period of time on an interface, clear the old statistics first.
You may need to shut down and then bring up an Ethernet interface to activate configuration changes such as the speed or duplex mode changes. 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 speed...
Layer 2 Ethernet interface configuration commands broadcast-suppression Syntax broadcast-suppression { ratio | pps max-pps } undo broadcast-suppression View Layer 2 Ethernet interface view Default level 2: System level Parameters ratio: Sets the broadcast suppression threshold as a percentage of the transmission capability of an Ethernet interface, ranging from 1 to 100.
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.
Description Use flow-interval to set the statistics polling interval for all interfaces. Use undo flow-interval to restore the default interval. By default, the statistics polling interval is 300 seconds. Examples # Set the statistics polling interval to 100 seconds. <Sysname> system-view [Sysname] flow-interval 100 loopback-detection control enable Syntax...
loopback-detection enable Syntax loopback-detection enable undo loopback-detection enable View System view, Layer 2 Ethernet interface view Default level 2: System level Parameters None Description Use loopback-detection enable to enable loopback detection globally in system view or on interfaces in Ethernet interface view. To use loopback detection on an Ethernet interface, you must enable the function both globally and on the port.
loopback-detection interval-time Syntax loopback-detection interval-time time undo loopback-detection interval-time View System view Default level 2: System level Parameters time: Sets the loopback detection interval, ranging from 5 to 300 seconds. Description Use loopback-detection interval-time to set the loopback detection interval. Use undo loopback-detection interval-time to restore the default loopback detection interval.
Ethernet interface may not be the one that actually takes effect. To display the actual multicast suppression threshold value on an Ethernet interface, you can use the display interface command. When the pps keyword is not specified, or the suppression granularity is set to 1, the value of the •...
Page 29
Description Use unicast-suppression to set the unknown unicast suppression threshold on an Ethernet interface. Use undo unicast-suppression to restore the default. By default, Ethernet interfaces do not suppress unknown unicast traffic. When unknown unicast traffic exceeds the threshold you configure, the system discards unknown unicast packets until the unknown unicast traffic drops below the threshold.
Loopback and null interface configuration commands default Syntax default View Loopback interface view, null interface view Default level 2: System level Parameters None Description Use default to restore the default settings of the loopback or null interface. Examples # Restore the default settings of interface loopback 0. <Sysname>...
NOTE: An interface description can be a mixture of English characters and other Unicode characters. The • mixed description cannot exceed the specified length. To use a type of Unicode characters or symbols in an interface description, you must install the •...
Page 32
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. Description Use display interface loopback to display information about a loopback interface. If you do not specify the loopback keyword, this command displays information about all interfaces •...
Page 33
Field Description State of the data link layer protocol is up (spoofing). Spoofing refers to the spoofing attribute of the interface. When the network layer protocol Line protocol current state state of the interface is displayed as up but the corresponding link may not exist, or the corresponding link is non-permanent and established on demand.
Field Description Protocol connection state of the interface, which can be UP, DOWN, or Protocol UP(s). Main IP The main IP address of the interface. Description Description of the interface. The cause of a DOWN physical link. If the port has been shut down with Cause the shutdown command, this field displays Administratively.
Examples # Display detailed information about null interface Null 0. <Sysname> display interface null 0 NULL0 current state :UP Line protocol current state :UP (spoofing) Description : NULL0 Interface The Maximum Transmit Unit is 1500 Internet protocol processing : disabled Physical is NULL DEV Last clearing of counters: Never...
[Sysname-LoopBack0] interface null Syntax interface null 0 View System view Default level 2: System level Parameters 0: Specifies interface Null 0. The null interface number is fixed to 0. Description Use interface null to enter null interface view. A device has only one null interface, interface Null 0. Interface Null 0 is always up. You cannot remove or shut down it.
Once you specify the loopback keyword, this command clears statistics on loopback 0 because the • device supports only one loopback interface loopback 0. Examples # Clear statistics on loopback interface Loopback 0. <Sysname> reset counters interface loopback 0 reset counters interface null Syntax reset counters interface [ null [ 0 ] ] View...
Page 38
Use undo shutdown to bring up the current loopback interface. By default, a loopback interface is up. Examples # Shut down loopback interface loopback 0. <Sysname> system-view [Sysname] interface loopback 0 [Sysname-Loopback0] shutdown...
MAC address table configuration commands NOTE: The MAC address table can contain only Layer 2 Ethernet interfaces and WLAN-BSS interfaces. • This document covers only the configuration of unicast MAC address table entries, including static and • dynamic MAC address table entries. display mac-address Syntax display mac-address [ mac-address [ vlan vlan-id ] | [ [ dynamic | static ] [ interface interface-type...
Related commands: mac-address (system view), mac-address (interface view), and mac-address timer. 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(s) 000f-e201-0101 Learned GigabitEthernet1/0/1 AGING 1 mac address(es) found Table 8 Command output Field...
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. Description Use display mac-address aging-time to display the aging time of dynamic entries in the MAC address table.
Gigabitethernet1/0/1 enable WLAN-BSS1 enable Table 9 Command output Field Description Mac-address learning status of the switch Global MAC address learning status (enabled or disabled). PortName Port name. Learning Status MAC address learning status (enabled or disabled) for a port. mac-address (interface view) Syntax mac-address { dynamic | static } mac-address vlan vlan-id undo mac-address { dynamic | static } mac-address vlan vlan-id...
mac-address mac-learning disable Syntax mac-address mac-learning disable undo mac-address mac-learning disable View System view, Ethernet interface view, WLAN-BSS interface view Default level 2: System level Parameters None Description Use mac-address mac-learning disable to disable MAC address learning globally or on an interface. Use undo mac-address mac-learning disable to enable MAC address learning globally or on an interface.
Default level 2: System level Parameters count: Specifies the maximum number of MAC addresses that can be learned on a port, ranging from 0 to 256. When the argument takes 0, the port is not allowed to learn MAC addresses. disable-forwarding: Disables the device from forwarding frames with unknown source MAC addresses after the number of learned MAC addresses reaches the upper limit.
Page 46
no-aging: Sets dynamic MAC address entries not to age. Description Use mac-address timer to configure the aging timer for dynamic MAC address entries. Use undo mac-address timer to restore the default. By default, the aging timer for dynamic MAC address entries is 300 seconds. Follow these guidelines to set the aging timer appropriately: •...
H3C recommends you to 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.
VLAN-to-instance mapping entries in the MST region, and if they are connected via a physical link. H3C 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 49
Default level 1: Monitor level Parameters instance instance-id: Displays the status and statistics of a specific MSTI. The instance-id argument ranges from 0 to 15, where 0 represents the common internal spanning tree (CIST). interface interface-list: Displays the spanning tree status and statistics on the ports specified by a port list, format interface-list interface-type...
Page 50
Max age Forward delay Maximum hops Common root bridge of the CIST External path cost from the device to the CIST common root Regional root Internal path cost from the device to the regional root CIST root port of the device Status of the BPDU guard function (enabled or disabled) •...
Page 51
Designated bridge Designated port Remaining hops Status of rapid state transition (enabled or disabled) for designated ports The statistics in STP/RSTP/MSTP mode include the following items: The number of TCN BPDUs, configuration BPDUs, RST BPDUs, and MST BPDUs sent from each port •...
Page 52
<Sysname> display stp -------[CIST Global Info][Mode MSTP]------- CIST Bridge :32768.000f-e200-2200 Bridge Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20 CIST Root/ERPC :0.00e0-fc0e-6554 / 200200 CIST RegRoot/IRPC :32768.000f-e200-2200 / 0 CIST RootPortId :128.48 BPDU-Protection :disabled Bridge Config- Digest-Snooping :disabled TC or TCN received Time since last TC :0 days 0h:5m:42s ----[Port1(GigabitEthernet1/0/1)][FORWARDING]----...
Page 53
MAC address :000f-e200-8048 Max age(s) Forward delay(s) Hello time(s) Max hops Table 12 display stp command output description Field Description The CIST bridge ID, which comprises the device's priority in the CIST and its MAC address. For example, in output information "32768.000f-e200-2200", the CIST Bridge value preceding the dot is the device's priority in the CIST, and the value following the dot is the device's MAC address.
Page 54
Field Description Desg. Bridge/Port Designated bridge ID and port ID of the port. The port is an edge port or non-edge port. • Port Edged Config—Configured value. • Active—Actual value. The port is connected to a point-to-point link or not. •...
Field Description Forward delay(s) Port state transition delay (in seconds). Hello time(s) Interval (in seconds) for the root bridge to send BPDUs. Max hops Maximum hops in the MSTI. display stp abnormal-port Syntax display stp abnormal-port [ | { begin | exclude | include } regular-expression ] View Any view Default level...
display stp bpdu-statistics 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 specifies the port by its type and number.
Page 57
--------------------------- ---------- ----------------- Invalid BPDUs Looped-back BPDUs MAX-aged BPDUs TCN sent TCN received TCA sent TCA received 10:33:12 01/13/2010 Config sent Config received RST sent RST received MST sent 10:33:11 01/13/2010 MST received 10:37:43 01/13/2010 Instance 0: Type Count Last Updated --------------------------- ---------- ----------------- Timeout BPDUs MAX-hoped BPDUs...
Field Description Instance-independent Statistics not related to any particular MSTI. Type Statistical item. Looped-back BPDUs BPDUs sent and then received by the same port. Max-Aged BPDUs BPDUs whose max age was exceeded. TCN Sent TCN BPDUs sent. TCN Received TCN BPDUs received. TCA Sent TCA BPDUs sent.
Description Use display stp down-port to display information about ports shut down by spanning tree protection functions. Examples # Display information about ports shut down by spanning tree protection functions. <Sysname> display stp down-port Down Port Reason GigabitEthernet1/0/1 BPDU-Protected GigabitEthernet1/0/2 Formatfrequency-Protected Table 15 Command output Field...
If you do not specify any MSTI, this command displays the historical port role calculation • information of all MSTIs. The displayed information is sorted by MSTI ID and by port role calculation time in each MSTI. • If you specify an MSTI, this command displays the historical port role calculation information of the specified MSTI by the sequence of port role calculation time.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display stp region-configuration to display effective configuration information of the MST region, including the region name, revision level, and user-configured VLAN-to-instance mappings. Related commands: instance, region-name, revision-level, and vlan-mapping modulo. Examples # In MSTP mode, display effective MST region configuration information.
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. Description Use display stp root to display the root bridge information of all MSTIs. Examples # In MSTP mode, display the root bridge information of all spanning trees.
In MSTP mode, follow these guidelines: • If you do not specify any MSTI, this command displays the statistics of TC/TCN BPDUs received and sent by all ports in all MSTIs. The displayed information is sorted by instance ID and by port name in each MSTI.
After configuring this command, run the active region-configuration command to activate the VLAN-to-instance mapping. Related commands: display stp region-configuration, check region-configuration, and active region-configuration. Examples # Map VLAN 2 to MSTI 1. <Sysname> system-view [Sysname] stp region-configuration [Sysname-mst-region] instance 1 vlan 2 region-name Syntax region-name name...
View User view Default level 1: Monitor level Parameters interface interface-list: Clears the MSTP statistics of the ports specified in the format of interface-list = { interface-type interface-number [ to interface-type interface-number ] }&<1- 1 0>, where &<1- 1 0> indicates that you can specify up to 10 ports or port ranges.
After configuring this command, run the active region-configuration command to activate the configured MST region level. Related commands: instance, region-name, vlan-mapping modulo, display stp region-configuration, check region-configuration, and active region-configuration. Examples # Set the MSTP revision level of the MST region to 5. <Sysname>...
Parameters diameter: Specifies the switched network diameter, ranging from 2 to 7. Description Use stp bridge-diameter to specify the network diameter, the maximum possible number of stations between any two terminal devices on the switched network. Use undo stp bridge-diameter to restore the default. By default, the network diameter of the switched network is 7.
Default level 2: System level Parameters instance instance-id: Sets the path cost of the ports in a particular MSTI. The instance-id argument ranges from 0 to 15, where 0 represents the CIST. cost: Specifies the path cost of the port, with an effective range that depends on the path cost calculation standard used.
You can enable the port to transit to the forwarding state rapidly by configuring it as an edge port. H3C recommends you to configure ports directly connecting to user terminals as edge ports. Configuration BPDUs from other devices usually cannot reach an edge port, because the edge port does not connect to any other device.
By default, the spanning tree feature is globally disabled. When the spanning tree feature is globally enabled, it is enabled on all ports. To enable or disable the spanning tree feature globally (not for any VLANs), use this command without Configured in system view, the setting takes effect globally.
Examples # Enable the loop guard function on GigabitEthernet 1/0/1. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] stp loop-protection stp max-hops Syntax stp max-hops hops undo stp max-hops View System view Default level 2: System level Parameters hops: Sets the maximum hops, ranging from 1 to 40. Description Use stp max-hops to set the maximum hops of the MST region.
Description Use stp mcheck to perform the mCheck operation globally or on a port. If a port on a device running MSTP or RSTP mode connects to an STP device, this port automatically transits to the STP-compatible mode. However, under the following circumstances, it cannot automatically transit back to the original mode: The STP device is shut down or removed.
Examples # Configure the spanning tree device to work in STP-compatible mode. <Sysname> system-view [Sysname] stp mode stp stp no-agreement-check Syntax stp no-agreement-check undo stp no-agreement-check View Ethernet interface view, WLAN mesh interface view Default level 2: System level Parameters None Description Use stp no-agreement-check to enable No Agreement Check on the ports.
When connecting to a non-point-to-point link, a port is incapable of rapid state transition. You can configure the link type as point-to-point for a port that works in full duplex mode. H3C recommends that you use the default setting to let the device automatically detect the port link type.
If the physical link to which the port connects is not a point-to-point link but you set it to be one, your configuration may bring a temporary loop. Related commands: display stp. Examples # Configure the link connecting GigabitEthernet 1/0/1 as a point-to-point link. <Sysname>...
stp priority Syntax stp [ instance instance-id ] priority priority undo stp [ instance instance-id ] priority View System view Default level 2: System level Parameters instance instance-id: Sets the priority of the device in a MSTI. The instance-id argument ranges from 0 to 15, where 0 represents the CIST.
Use undo stp region-configuration to restore the default MST region configurations. These are the default settings for the MST region: The MST region name of the device is the MAC address of the device. • All VLANs are mapped to the CIST. •...
stp root secondary Syntax stp [ instance instance-id ] root secondary undo stp [ instance instance-id ] root View System view Default level 2: System level Parameters instance instance-id: Configures the device as a secondary root bridge in a particular MSTI. The instance-id argument ranges from 0 to 15, where 0 represents the CIST.
Use undo stp root-protection to restore the default. By default, the root guard function is disabled. Among loop guard, root guard and edge port settings, only the first configured function takes effect on a port. Related commands: stp edged-port and stp loop-protection. Examples # Enable the root guard function for GigabitEthernet 1/0/1.
H3C does not recommend you to 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.
H3C does not recommend you to 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.
MSTIs. H3C does not recommend you to 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.
In a stable network, this kind of spanning tree calculation may occur because the upstream device is busy. You can avoid such unwanted spanning tree calculations by lengthening the timeout time, saving the network resources. H3C recommends you to set the timeout factor to 5, 6, or 7 for a stable network. Related commands: stp timer hello.
vlan-mapping modulo Syntax vlan-mapping modulo modulo View MST region view Default level 2: System level Parameters modulo: Sets the modulo value, ranging from 1 to 15. Description Use vlan-mapping modulo to map VLANs in the MST region to MSTIs according to the specified modulo value, quickly creating a VLAN-to-instance mapping table.
Loopback detection configuration commands display 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 expression. For more information about regular expressions, see Fundamentals Configuration Guide.
Description Use loopback-detection enable to enable loopback detection. Use undo loopback-detection enable to disable loopback detection. By default, the loopback detection function is disabled. Related commands: display loopback-detection. Example # Enable loopback detection. <Sysname> system-view [Sysname] loopback-detection enable loopback-detection interval-time Syntax loopback-detection interval-time interval undo loopback-detection interval-time...
VLAN configuration commands default Syntax default View VLAN interface view Default level 2: System level Parameters None Description Use default 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.
Default level 2: System level Parameters text: Specifies a description for a VLAN or VLAN interface. The string can include case-sensitive letters, digits, special characters (including ~ ! @ # $ % ^ & * ( ) - _ + = { } [ ] | \ : ; " ' < > , . /), spaces, and other Unicode characters and symbols.
Page 90
View Any view Default level 1: Monitor level Parameters vlan-interface-id: Specifies a VLAN interface number. brief: Displays brief interface information. If you do not specify this keyword, the command displays detailed interface information. down: Displays information about interfaces in the DOWN state and the causes. If you do not specify this keyword, this command displays information about interfaces in all states.
Page 91
# Display brief information for VLAN interfaces in DOWN state. <Sysname> display interface vlan-interface brief down The brief information of interface(s) under route mode: Link: ADM - administratively down; Stby - standby Interface Link Cause Vlan2 DOWN Not connected Table 20 Command output Field Description The physical state of a VLAN interface:...
Field Description Interface The abbreviated interface name. The physical link state of the interface: • UP—The link is up. Link • ADM—The link has been administratively shut down. To recover its physical state, perform the undo shutdown command. Protocol connection state of the interface, which can be UP, DOWN, Protocol or UP(s).
Description Use display mac-vlan 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-VLAN entry containing the specified MAC address is displayed. Examples # Display all the MAC address-to-VLAN entries. <Sysname>...
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. Description Use display mac-vlan interface to display all the ports with MAC-based VLAN enabled.
Untagged:1, 10, 15, 18, 20-30, 44, 55, 67, 100, 150-160, 200, 255, 286, 300-302 Table 22 Command output Field Description Interface Port name. PVID Port VLAN ID. VLAN passing VLANs for which the port allows packets to pass through. Tagged VLANs for which the port sends packets without removing VLAN tags.
To configure an IP address for a VLAN interface that will perform IP routing, use the ip address command in VLAN interface view. Related commands: display interface vlan-interface. Examples # Create VLAN-interface 2. <Sysname> system-view [Sysname] vlan 2 [Sysname-vlan2] quit [Sysname] interface vlan-interface 2 [Sysname-Vlan-interface2] ip address...
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 argument 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).
Parameters size: Sets the maximum transmission unit (MTU), ranging from 46 to 1500 bytes. Description Use mtu to set the MTU for a VLAN interface. Use undo mtu to restore the default. By default, the MTU of a VLAN interface is 1500 bytes. Related commands: display interface vlan-interface.
port Syntax port interface-list undo port interface-list View VLAN view Default level 2: System level Parameters interface-list: Specifies an interface list, in the format of interface-list = { interface-type interface-number [ to interface-type interface-number ] }&<1- 1 0>, where interface-type interface-number specifies an interface by its type and number and &<1- 1 0>...
PVID on the port. H3C 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.
port link-type Syntax port link-type { access | hybrid | trunk } undo port link-type View Ethernet interface view, WLAN-BSS interface view Default level 2: System level Parameters access: Configures the link type of a port as access. hybrid: Configures the link type of a port as hybrid. trunk: Configures the link type of a port as trunk.
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 ranges from 1 to 4094 and &<1- 1 0> indicates that you can specify up to 10 VLAN IDs or VLAN ID ranges.
You can use a nonexistent VLAN as the PVID for a trunk port. If you remove the PVID of a trunk port with the undo vlan command, it does not affect the setting of the PVID on the port. You must use the port trunk permit vlan command to configure the trunk port to allow and forward packets from the PVID.
View VLAN interface view Default level 2: System level Parameters None Description Use shutdown to shut down a VLAN interface. Use undo shutdown to bring up a VLAN interface. By default, a VLAN interface is up unless all ports in the VLAN are down. You can use the undo shutdown command to bring up a VLAN interface after you have configured related parameters and protocols for the VLAN interface.
# Display forwarding statistics of GigabitEthernet 1/0/1. <Sysname> display mac-forwarding statistics interface GigabitEthernet 1/0/1 GigabitEthernet 1/0/1: Input frames:100 Input bytes:23 Output frames:100 Output bytes:23 Filtered:0 Invalid Tag:0 Table 24 Command output Field Description Total received Total number of received Ethernet frames. Filtered Number of frames filtered out by 802.1Q Tagged VLAN inbound filtering rules.
Page 111
Parameters None Description Use reset mac-forwarding statistics to clear all Layer 2 forwarding statistics. Examples # Clear all Layer 2 forwarding statistics. <Sysname> reset mac-forwarding statistics...
PPP configuration commands default Syntax default View Dialer interface view Default level 2: System level Parameters None Description Use default to restore the default setting of the VT or MP-group interface. Examples # Restore the default setting of interface Dialer 1. <Sysname>...
Description Use link-protocol ppp to enable PPP encapsulation on an interface. By default, PPP encapsulation is enabled on all the interfaces except the Ethernet interface. Examples # Enable PPP encapsulation on Dialer 1. <Sysname> system-view [Sysname] interface Dialer 1 [Sysname-Dialer1] link-protocol ppp Syntax mtu size undo mtu...
Parameters acl: Generates PPP accounting statistics for traffic that matches the configured ACL. If no ACL is configured, the device generates PPP accounting statistics for all traffic. acl-number: ACL number, in the range of 2000 to 3999, where: 2000 to 2999 are numbers for basic IPv4 ACLs. •...
If you run the ppp authentication-mode command with the domain keyword specified, you must configure an address pool in the corresponding domain. (You can use the display domain command to display the domain configuration.) If you configure the ppp authentication-mode command without specifying the domain name, the system checks the username for domain information.
Default level 2: System level Parameters cipher: Displays the password in cipher text. simple: Displays the password in plain text. password: Default password for CHAP authentication, a string of 1 to 48 characters. When the simple keyword is used, this password is in plain text. When the cipher keyword is used, this password can either be in cipher text or in plain text.
ppp pap local-user Syntax ppp pap local-user username password { cipher | simple } password undo ppp pap local-user View Dialer interface view Default level 2: System level Parameters username: Username of the local device for PAP authentication, a case-sensitive string of 1 to 80 characters.
View Dialer interface view Default level 2: System level Parameters seconds: Negotiation timeout time to be set, in the range of 1 to 10 (seconds. In PPP negotiation, if the local device receives no response from the peer during this period after it sends a packet, the local device sends the last packet again.
CAUTION: The IP address assigned to the peer device by the local device is not mandatory on the peer device, or • the peer device can still use a locally configured IP address even if the local device assigned one to it. To make the IP address assigned by the local device mandatory, you must configure the ppp ipcp remote-address forced command.
timer hold Syntax timer hold seconds undo timer hold View Dialer interface view Default level 2: System level Parameters seconds: Interval for sending keepalive packets, in the range of 0 to 32767. A value of 0 disables keepalive packet sending. Description Use timer hold to set the interval for sending keepalive packets.
Table 25 Command output Field Description PPPoE session ID. Bundle Dialer bundle a PPPoE session belongs to. Dialer Dialer interface corresponding to a PPPoE session. Intf VLAN interface where the PPPoE session is present. RemMAC Remote MAC address. LocMAC Local MAC address. PPPoE session state.
Page 125
View VLAN interface view Default level 2: System level Parameters dial-bundle-number number: Specifies the dialer bundle number corresponding to a PPPoE session, in the range of 1 to 255. A dialer bundle number uniquely identifies a PPPoE session, it can also be used as a PPPoE session ID.
PPPoE session. To use the PPPoE session again, you must establish it from scratch. About the H3C WA Series • Support for this command depends on the device model. For details, see...
DCC configuration commands dialer bundle Syntax dialer bundle number undo dialer bundle View Dialer interface view Default level 2: System level Parameters number: Dialer bundle number, in the range of 1 to 255. Description Use dialer bundle to associate a dialer bundle with a dialer interface in RS-DCC. Use undo dialer bundle to remove the association.
Parameters username: Remote username for PPP authentication, a string of 1 to 80 characters. Description Use dialer user to add a remote username for authenticating incoming calls. Use undo dialer user to remove the remote username. By default, no remote username is set. This command is only valid on dialer interfaces in RS-DCC.
NOTE: In the default configuration of the interface, the dialer-group command is not configured. You must configure this command for DCC to send packets. Related commands: dialer-rule. Examples # Add interface Dialer 1 to dialer access group 1. <Sysname> system-view [Sysname] dialer-rule 1 acl 3101 [Sysname] interface Dialer 1 [Sysname-Dialer1] dialer-group 1...
Packets that do not match any permit statements or that match a deny statement. When receiving • such a packet, DCC either sends it out without resetting the idle-timeout timer if a link is present, or drops it without originating calls for link setup if no link is present. For DCC to send packets normally, you must configure a dial ACL and associate it with the concerned dialup interface (dialer interface) by using the dialer-group command.
Page 131
The physical interfaces in C-DCC and Resource-Shared DCC do not use individual network addresses. Instead, they use the addresses of the corresponding dialer interfaces. In both C-DCC and RS-DCC, physical interfaces use the network addresses of their associated dialer interface rather than being assigned separate addresses. Examples # Create dialer interface Dialer 1.
Index A B C D F I L M N P R S T U V display stp down-port,50 display stp history,51 active region-configuration,39 display stp region-configuration,52 display stp root,53 display stp tc,54 broadcast-suppression,15 display vlan,87 duplex,10 check region-configuration,39 flow-control,1 1 default,104 flow-interval,16 default,80...
Page 133
mtu,91 speed,14 multicast-suppression,19 bpdu-protection,58 bridge-diameter,58 compliance,59 name,92 config-digest-snooping,60 cost,60 edged-port,61 port,93 enable,62 port access vlan,93 loop-protection,63 port hybrid pvid,94 max-hops,64 port hybrid vlan,95 mcheck,64 port link-type,96 mode,65 port trunk permit vlan,96 no-agreement-check,66 port trunk pvid,97 pathcost-standard,66 ppp account-statistics enable,106 point-to-point,67 authentication-mode,107 stp port priority,68...
Need help?
Do you have a question about the WA Series and is the answer not in the manual?
Questions and answers