H3C S7500 Series Ethernet Switches Operation Manual

Operation Manual – VLAN
H3C S7500 Series Ethernet Switches Chapter 2
VLAN Configuration
2-4
Follow these steps to configure the Access-port-based VLAN in Ethernet port view:
To do… Use the command… Remarks
Enter system view
system-view
Enter Ethernet port view
interface interface-type
interface-number
Configure the port link
type as Access
port link-type access
Optional
The link type of a port is
Access by default.
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.
2.2.2 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.
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
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.