2-5Configuring the Default VLAN for a PortBecause an access port can belong to only one VLAN, its default VLAN is the VLAN it resides in andcannot 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… 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 thecurrent port Hybrid port port hybrid pvid vlan vlan-idOptionalThe link type of a portis access by default.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 connect to PC 1/PC 2 and Server 1/Server 2 usedby different departments.z To isolate data between different departments, PC 1 and Server 1 are assigned to VLAN 100 withthe descriptive string being Dept1; PC 2 and Server 2 are assigned to VLAN 200 with thedescriptive string being Dept2.