VLAN Commands
Page 411
switchport access vlan
The
switchport access vlan
Interface Configuration mode command configures the VLAN ID when the interface
is in access mode. To return to the default configuration, use the
no
form of this command.
Syntax
switchport access vlan {vlan-id
|
dynamic
}
no switchport access vlan
Parameters
•
vlan-id
— Specifies the ID of the VLAN to which the port is configured.
•
dynamic
—Indicates that the port is assigned to a VLAN based on the source MAC address of the host
connected to the port.
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/16.
Console(config)#
interface ethernet
1/16
Console(config-if)#
switchport access vlan
23
Summary of Contents for DXS-3227 - xStack Switch - Stackable
Page 12: ...Page 11 ...
Page 46: ...ACL Commands Page 45 ...
Page 68: ...Address Table Commands Page 67 ...
Page 124: ...Ethernet Configuration Commands Page 123 ...
Page 134: ...GVRP Commands Page 133 ...
Page 144: ...IGMP Snooping Commands Page 143 ...
Page 158: ...IP Addressing Commands Page 157 Console config ip helper address 172 16 9 9 49 53 ...
Page 166: ...IP Addressing Commands Page 165 ...
Page 186: ...Line Commands Page 185 ...
Page 194: ...Management ACL Commands Page 193 ...
Page 200: ...PHY Diagnostics Commands Page 199 ...
Page 208: ...Port Monitor Commands Page 207 ...
Page 216: ...Power over Ethernet Commands Page 215 ...
Page 272: ...RMON Commands Page 271 ...
Page 334: ...Spanning Tree Commands Page 333 ...
Page 428: ...VLAN Commands Page 427 ...
Page 466: ...802 1x Commands Page 465 ...