R3204P16-HP Load Balancing Module Network Management Command Reference-6PW101
53
Description
Use the port command to assign the specified access ports to the VLAN.
Use the undo port command to remove the specified access ports from the VLAN.
By default, all ports are in VLAN 1.
This command is only applicable on access ports.
All ports are access ports by default, but you can manually configure the port type. For more information,
see “port link-type.”
Related commands: display vlan.
Examples
# Assign Ten-GigabitEthernet 0/0.1 through Ten-GigabitEthernet 0/0.2 to VLAN 2.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] port Ten-GigabitEthernet 0/0.1 to Ten-GigabitEthernet 0/0.2
port access vlan
Syntax
port access vlan vlan-id
undo port access vlan
View
Ethernet interface view, Ethernet subinterface view
Default level
2: System level
Parameters
vlan-id: Specifies a VLAN ID, ranging from 1 to 4094. Be sure that the VLAN specified by the VLAN ID
already exists.
Description
Use the port access vlan command to assign the access ports to the specified VLAN.
Use the undo port access vlan command to restore the default.
By default, all access ports belong to VLAN 1.
Examples
# Assign Ten-GigabitEthernet 0/0 to VLAN 3.
<Sysname> system-view
[Sysname] vlan 3
[Sysname-vlan3] quit
[Sysname] interface Ten-GigabitEthernet 0/0
[Sysname-Ten-GigabitEthernet0/0] port access vlan 3