beautypg.com

Switchport access vlan, Switchport access vlan

Page 441

background image

VLAN Commands

Software Reference for x310 Series Switches

C613-50046-01 REV A

AlliedWare Plus

TM

Operating System - Version 5.4.4C

17.13

switchport access vlan

Use this command to change the port-based VLAN of the current port.

Use the no variant of this command to change the port-based VLAN of this port to the
default VLAN, vlan1.

Syntax

switchport access vlan <vlan-id>

no switchport access vlan

Default

Reset the default VLAN 1 to specified switchports using the negated form of this
command.

Mode

Interface Configuration

Usage

Any untagged frame received on this port will be associated with the specified VLAN.

Examples

To change the port-based VLAN to VLAN 3 for port1.0.2, use the commands:

To reset the port-based VLAN to the default VLAN 1 for port1.0.2, use the commands:

Validation
Command

show interface switchport

Related Commands

show vlan

Parameter

Description

<vlan-id>

<1-4094> The port-based VLAN ID for the port.

awplus#

configure terminal

awplus(config)#

interface port1.0.2

awplus(config-if)#

switchport access vlan 3

awplus#

configure terminal

awplus(config)#

interface port1.0.2

awplus(config-if)#

no switchport access vlan