3Com Switch 7750 Series
Command Reference Guide — Basic Port Commands
Chapter 1 Port Basic Configuration Commands
1-24
Example
# Add the hybrid port Ethernet1/0/1 to VLAN 2, VLAN 4 and VLAN 50 through VLAN
100, with tags assigned to their packets.
<3Com> system-view
System View: return to User View with Ctrl+Z.
[3Com] interface Ethernet1/0/1
[3Com-Ethernet1/0/1] port hybrid vlan 2 4 50 to 100 tagged
1.1.25 port link-type
Syntax
port link-type
{
access
|
hybrid
|
trunk
}
undo port link-type
View
Ethernet port view
Parameter
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.
Example
# Set Ethernet1/0/1 as a trunk port.
<3Com> system-view
System View: return to User View with Ctrl+Z.
[3Com] interface Ethernet1/0/1
[3Com-Ethernet1/0/1] port link-type trunk