beautypg.com

Switchport access vlan – Allied Telesis AT-DC2552XS User Manual

Page 318

background image

Chapter 13: VLAN Commands

318

Section II: Layer 2 Switching

SWITCHPORT ACCESS VLAN

Syntax

switchport access vlan

vid

Parameter

vid

Specifies the ID number of the VLAN to which you want to assign
to the untagged ports. The range is 1 to 4094. You can specify only
one VID. The specified VLAN must already exist.

Mode

Port Interface mode

Description

Use this command to assign a VLAN to untagged ports. A port can be an
untagged member of only one VLAN at a time. For example, if the
untagged port 1.0.5 belongs to VLAN 10 and you assign VLAN 20 to port
1.0.5 using this command, the switch removes the VLAN 10 and assigns
VLAN 20 to port 1.0.5.

When an untagged port receives frames without VLAN tags, the frames
are considered to belong to the VLAN that the untagged port belongs to,
unless the host connected to the port matches a MAC address based-
VLAN.

To assign a VLAN to untagged ports, the ports must be in the access
mode.

Confirmation Command

“SHOW VLAN” on page 314

Example

This example adds ports 1.0.5 and 1.0.7 as untagged ports to a VLAN with
the VID 12:

awplus> enable
awplus# configure terminal
awplus(config)# interface port1.0.5,port1.0.7
awplus(config-if)# switchport access vlan 12