H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – VLAN
H3C S7500 Series Ethernet Switches Chapter 1
VLAN Configuration Commands
1-12
The VLAN specified by the vlan-id argument must be existing. Otherwise, this
command is invalid.
Related commands: port link-type.
Examples
# Add the hybrid port Ethernet 2/0/1 to VLAN 2, VLAN 4 and VLAN 50 through VLAN
100, and configure the port to keep the VLAN tags of packets of these VLANs when it
sends the packets.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] interface Ethernet2/0/1
[H3C-Ethernet2/0/1] port hybrid vlan 2 4 50 to 100 tagged
1.2.5 port link-type
Syntax
port link-type { access | hybrid | trunk }
undo port link-type
View
Ethernet port view
Parameters
access: Sets the port as an access port.
hybrid: Sets the port as a hybrid port.
trunk: Sets the port as a trunk port.
Description
Use the port link-type command to set the link type of the current Ethernet port.
Use the undo port link-type command to restore the default link type.
The three types of ports can co-exist on the same Ethernet switch. However, a trunk
port cannot be directly switched to a hybrid port, and vice versa. To set a trunk/hybrid
port to another type (different from access), you must first set the port to an access port
and then set the access port to the required type. For example, a trunk port cannot be
directly set to a hybrid port. You must set the trunk port to an access port and then set it
to a hybrid port.
By default, the link type of any port is access.
Examples
# Set Ethernet 2/0/1 as a trunk port.