H3C S7500E Series Ethernet Switches Operation Manual

Operation Manual – VLAN
H3C S7500E Series Ethernet Switches Chapter 1 VLAN Configuration
1-8
To do… Use the command… Remarks
Add access ports to the
current VLAN
port interface-list
Required
By default, all the ports
belong to VLAN 1
Follow these steps to configure an Access-port-based VLAN in Ethernet port view/port
group view:
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
Under Ethernet port view,
the subsequent
configurations only apply
to the current port; under
port group view, the
subsequent
configurations apply to all
the ports in the port group
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 the Access
ports belong to VLAN 1
Note:
Before adding 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 a Trunk-port-based VLAN: