2-3
The operation of enabling/disabling a VLAN’s VLAN interface does not influence the physical
status of the Ethernet ports belonging to this VLAN.

Displaying VLAN Configuration

To do... Use the command... Remarks
Display the VLAN interface
information
display interface
Vlan-interface [ vlan-id ]
Display the VLAN information display vlan [ vlan-id [ to
vlan-id ] | all | dynamic | static ]
Available in any view.
Configuring a Port-Based VLAN

Port-Based VLAN Configuration Task List

Complete these tasks to configure port-based VLAN:
Task Remarks
Configuring the Link Type of an Ethernet Port Optional
Assigning an Ethernet Port to a VLAN Required
Configuring the Default VLAN for a Port Optional
Displaying and Maintaining Port-Based VLAN Optional

Configuring the Link Type of an Ethernet Port

Follow these steps to configure the link type of an Ethernet port:
To do… Use the command… Remarks
Enter system view system-view
Enter Ethernet port view interface interface-type
interface-number
Configure the port link type port link-type { access |
hybrid | trunk }
Required
The link type of an Ethernet
port is access by default.
To change the link type of a port from trunk to hybrid or vice versa, you must set the link type to access
first.