Switchport access vlan, Switchport trunk allowed vlan – Allied Telesis AT-S94 CLI (AT-8000S Series) User Manual
Page 349

VLAN Commands
Page 348
switchport access vlan
The switchport access vlan Interface Configuration mode command configures the VLAN ID when the interface
is in access mode. Use the no form of this command to return to the default configuration.
Syntax
switchport access vlan {vlan-id }
no switchport access vlan
Parameters
•
vlan-id — Specifies the ID of the VLAN to which the port is configured.
Default Configuration
All ports belong to VLAN 1.
Command Mode
Interface configuration (Ethernet, port-channel) mode
User Guidelines
The command automatically removes the port from the previous VLAN and adds it to the new VLAN.
Example
The following example configures a VLAN ID of 23 to the untagged layer 2 VLAN Ethernet port 1/e16.
switchport trunk allowed vlan
The switchport trunk allowed vlan Interface Configuration mode command adds or removes VLANs to or from a
trunk port.
Syntax
switchport trunk allowed vlan {add vlan-list | remove vlan-list }
Parameters
•
add vlan-list — List of VLAN IDs to be added. Separate nonconsecutive VLAN IDs with a comma and no
spaces. A hyphen designates a range of IDs.
•
remove vlan-list — List of VLAN IDs to be removed. Separate nonconsecutive VLAN IDs with a comma and
no spaces. A hyphen designates a range of IDs.
Default Configuration
This command has no default configuration.
console(config)# interface ethernet 1/e16
console(config-if)# switchport access vlan 23