Operation Manual – VLAN
H3C S3610&S5510 Series Ethernet Switches
Chapter 1 VLAN Configuration
1-9
To do…
Use the command…
Remarks
Add the current Access
port to a specified VLAN
port access vlan vlan-id
Optional
By default, all Access
ports belong to VLAN 1.
Note:
To add an Access port to a VLAN, make sure the VLAN already exists.
1.4.3 Configuring a Trunk-Port-Based VLAN
A Trunk port may belong to multiple VLANs, and you can only perform this configuration
in Ethernet port view or port group view.
Follow these steps to configure the Trunk-port-based VLAN:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter
Ethernet
port view
interface interface-type
interface-number
Enter
Ethernet
port view
or port
group view
Enter port
group view
port-group
{
manual
port-group-name
|
aggregation agg-id
}
Use either command
In Ethernet port view, the
subsequent configurations
only apply to the current
port; in port group view, the
subsequent configurations
apply to all ports in the port
group.
Configure the port link
type as Trunk
port link-type
trunk
Required
Allow the specified
VLANs to pass through
the current Trunk port
port trunk permit vlan
{
vlan-id-list
|
all
}
Required
By default, all Trunk ports
only allow packets of VLAN
1 to pass.
Configure the default
VLAN for the Trunk port
port trunk pvid vlan
vlan-id
Optional
VLAN 1 is the default by
default.