Command Manual – Port Basic Configuration
Quidway S3900 Series Ethernet Switches-Release 1510
Chapter 1 Port Basic Configuration
Commands
Huawei Technologies Proprietary
1-24
1.1.24 port access vlan
Syntax
port access vlan vlan-id
undo
port
access vlan
View
Ethernet port view
Parameter
vlan-id
: VLAN ID defined in IEEE802.1Q, in the range of 1 to 4094.
Caution:
All access ports belong to VLAN 1, which is the default VLAN of the system, so you are
not allowed to add an access port to VLAN 1 or remove an access port from VLAN 1.
Otherwise, the system will prompt: “Can't delete ports from or add ports to the default
VLAN!”.
Description
Use the
port access vlan
command to add the access port into the specified VLAN.
Use the
undo port access vlan
command to remove the access port from the
specified VLAN.
You must specify the ID of an existing VLAN in the command.
Example
# Add Ethernet1/0/1 into VLAN 3.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] vlan 3
[Quidway-vlan3] quit
[Quidway] interface ethernet 1/0/1
[Quidway-Ethernet1/0/1] port access vlan 3
[Quidway-Ethernet1/0/1]