beautypg.com

Switchport access vlan – Allied Telesis AT-S100 User Manual

Page 187

background image

AT-S100 Management Software User’s Guide

Section I: Command Modes

187

SWITCHPORT ACCESS VLAN

Syntax

switchport access vlan VLANID <2-4094>

no switchport access vlan VLANID <2-4094>

Parameters

VLANID

Specifies a VLAN ID. Enter a value from 2 to 4094.

Description

Use the SWITCHPORT ACCESS VLAN command to change the default
VLAN for an interface. By default, all ports are assigned to VLAN 1. Use
the no form of this command to remove a previously created VLAN with
the specified VLAN ID.

Caution

Before you enter the SWITCHPORT ACCESS VLAN command, you
must configure a VLAN using the VLAN command.

Note

The default VLAN ID is 1. Do not use a VLAN ID of 1 due to
interoperability issues.

Command Mode

Interface Configuration mode

Example

The following commands set the default VLAN to 3 on port 6:

switch#configure terminal

switch(config)#interface ge6

switch(config-if)#switchport access vlan 3

Related Commands

“SHOW VLAN ALL” on page 258