Configuring the Default VLAN for a Port
Because an access port can belong to only one VLAN, its default VLAN is the VLAN it resides in and
cannot be configured.
This section describes how to configure a default VLAN for a trunk or hybrid port.
Follow these steps to configure the default VLAN for a port:
To do...
Enter system view
Enter Ethernet port view
Configure
the default
VLAN for the
current port
The local and remote trunk (or hybrid) ports must use the same default VLAN ID for the traffic of the
default VLAN to be transmitted properly.
Displaying and Maintaining Port-Based VLAN
To do...
Display the hybrid or trunk ports
Port-Based VLAN Configuration Example
Network requirements
As shown in
by different departments.
To isolate data between different departments, PC 1 and Server 1 are assigned to VLAN 100 with
the descriptive string being Dept1; PC 2 and Server 2 are assigned to VLAN 200 with the
descriptive string being Dept2.
system-view
interface interface-type
interface-number
Trunk port
port trunk pvid vlan vlan-id
Hybrid port
port hybrid pvid vlan vlan-id
display port { hybrid | trunk }
Figure
2-1, Switch A and Switch B connect to PC 1/PC 2 and Server 1/Server 2 used
Use the command...
Use the command...
2-5
Remarks
—
—
Optional
The link type of a port
is access by default.
Remarks
Available in any view.