To do...
Assign the specified
access port or ports to
the current VLAN
Configuring the Default VLAN for a Port
Because an access port can belong to its default VLAN only, there is no need for you to configure the
default VLAN for an access port.
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
port
After configuring the default VLAN for a trunk or hybrid port, you need to use the port trunk permit
command or the port hybrid vlan command to configure the port to allow traffic of the default
VLAN to pass through. Otherwise, the port cannot forward traffic of the default VLAN, nor can it
receive VLAN untagged packets.
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
For data security concerns, the two servers are assigned to VLAN 101 with the descriptive string
being "DMZ", and the PCs are assigned to VLAN 201.
Use the
command...
port interface-list
system-view
interface interface-type
interface-number
Trunk port
port trunk pvid vlan vlan-id
Hybrid port
port hybrid pvid vlan vlan-id
Use the command...
display port { hybrid | trunk }
Figure
2-1, Switch A and Switch B each connect to a server and a workstation (PC).
Required
By default, all ports belong to VLAN 1.
Use the command...
2-5
Remarks
Remarks
—
—
Optional
VLAN 1 is the default
VLAN by default.
Remarks
Available in any view.