![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/1/8b/18b1e1e7-4363-4706-bb94-6eba3a993996/18b1e1e7-4363-4706-bb94-6eba3a993996-bg27f.png)
40
PORT-BASED VLAN CONFIGURATION
COMMANDS
port
Syntax port interface-list
undo port interface-list
View VLAN interface view
Parameter interface interface-list: Ethernet interface list, in the format of { interface-type
interface-number [ to interface-type interface-number ] }&<1-10>, where
&<1-10> means that you can specify up to 10 port ranges.
Description Use the
port command to add one Access port or a group of Access ports to a
VLAN. Use the undo port command to remove one Access port or a group of
Access ports from a VLAN.
Note:
■ This command is only applicable to Access ports.
■ All ports have their default link type configured as Access, however, users can
manually configure the port type. For more information, refer to “port
link-type” on page 642.
Related command: display vlan.
Example # Add the ports from Ethernet 1/1 to Ethernet 1/3 to VLAN 2.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] port ethernet 1/1 to ethernet 1/3
port access vlan
Syntax port access vlan vlan-id
undo port access vlan
View Ethernet interface view, port group view
Parameter vlan-id : VLAN ID, in the range 1 to 4094.