2-5To do… Use thecommand… RemarksAssign the specifiedaccess port or ports tothe current VLANport interface-list RequiredBy default, all ports belong to VLAN 1.Configuring the Default VLAN for a PortBecause an access port can belong to its default VLAN only, there is no need for you to configure thedefault 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… Use the command… RemarksEnter system view system-view —Enter Ethernet port view interface interface-typeinterface-number —Trunk port port trunk pvid vlan vlan-idConfigurethe defaultVLAN for theport Hybrid port port hybrid pvid vlan vlan-idOptionalVLAN 1 is the defaultVLAN by default.z After configuring the default VLAN for a trunk or hybrid port, you need to use the port trunk permitcommand or the port hybrid vlan command to configure the port to allow traffic of the defaultVLAN to pass through. Otherwise, the port cannot forward traffic of the default VLAN, nor can itreceive VLAN untagged packets.z The local and remote trunk (or hybrid) ports must use the same default VLAN ID for the traffic of thedefault VLAN to be transmitted properly.Displaying and Maintaining Port-Based VLANTo do… Use the command… RemarksDisplay the hybrid or trunk ports display port { hybrid | trunk } Available in any view.Port-Based VLAN Configuration ExampleNetwork requirementsz As shown in Figure 2-1, Switch A and Switch B each connect to a server and a workstation (PC).z For data security concerns, the two servers are assigned to VLAN 101 with the descriptive stringbeing “DMZ”, and the PCs are assigned to VLAN 201.