The port link-type command sets the type of a Layer 2 port.
The undo port link-type command restores the port type to the default.
port link-type { access | hybrid | trunk }
undo port link-type
access
Specifies the access port.
-
hybrid
Specifies the hybrid port.
trunk
Specifies the trunk port.
Layer 2 Ethernet interface view, Layer 2 Eth-Trunk interface view
2: Configuration level
By default, the link-type of a Layer 2 port is hybrid.
# Set the GigabitEthernet 0/0/1 to a trunk port.
<sysname> system-view [sysname] interface GigabitEthernet 0/0/1 [sysname-GigabitEthernet0/0/1] port link-type trunk