![H3C S5120-SI Series Command Reference Manual Download Page 140](http://html2.mh-extra.com/html/h3c/s5120-si-series/s5120-si-series_command-reference-manual_3713315140.webp)
129
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] quit
[Sysname] port-group manual 2
[Sysname-port-group-manual-2] group-member gigabitethernet 1/0/1 to gigabitethernet
1/0/6
[Sysname-port-group-manual-2] port link-type hybrid
[Sysname-port-group-manual-2] port hybrid vlan 2 untagged
Configuring GigabitEthernet1/0/1... Done.
Configuring GigabitEthernet1/0/2... Done.
Configuring GigabitEthernet1/0/3... Done.
Configuring GigabitEthernet1/0/4... Done.
Configuring GigabitEthernet1/0/5... Done.
Configuring GigabitEthernet1/0/6... Done.
# Assign the hybrid Layer 2 aggregate interface
Bridge-aggregation 1
and its member ports to VLAN 2,
and configure them to send packets of VLAN 2 with tags removed.
<Sysname> system-view
[Sysname] interface bridge-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 GigabitEthernet1/0/3... Done.
The output shows that GigabitEthernet 1/0/2 and GigabitEthernet 1/0/3 are the member ports of the
aggregation group corresponding to Bridge-aggregation 1.
port link-type
Syntax
port link-type
{
access
|
hybrid
|
trunk
}
undo port link-type
View
Ethernet interface view, port group view, Layer 2 aggregate 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.
Description
Use the
port link-type
command to configure the link type of a port.
Use the
undo port link-type
command to restore the default link type of a port.
By default, any port is an access port.