VLAN Commands
317
switchport access vlan
The
switchport access vlan
Interface Configuration mode command configures the VLAN ID
when the interface is in access mode. To reconfigure to default, use the
no
form of this command.
Syntax
switchport access vlan
vlan-id
no switchport access vlan
•
vlan-id
— VID 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 interface
number g16.
switchport customer vlan
Use the
switchport customer vlan
interface configuration command to set the port's VLAN when
the interface is in customer mode. Use the
no
form of this command to revert to default.
Syntax
switchport customer vlan
vlan-id
no switchport customer vlan
•
vlan-id
— V
LAN ID of the customer
Default Configuration
No VLAN is configured.
Command Modes
Interface configuration (Ethernet, port-channel)
console(config)#
interface ethernet
g16
console(config-if)#
switchport access vlan
23
Summary of Contents for PowerConnect 5316M
Page 1: ...w w w d e l l c o m s u p p o r t d e l l c o m Dell PowerConnect 5316M CLI Reference Guide ...
Page 19: ...Contents 19 show dot1x advanced 356 ...
Page 20: ...20 Contents ...
Page 44: ...24 Command Groups ...
Page 56: ...36 Command Modes ...
Page 66: ...46 Using the CLI ...
Page 92: ...72 Address Table Commands ...
Page 108: ...88 Clock ...
Page 140: ...120 Ethernet Configuration Commands ...
Page 156: ...136 IGMP Snooping Commands ...
Page 178: ...158 Line Commands ...
Page 188: ...168 LLDP Commands ...
Page 198: ...178 PHY Diagnostics Commands ...
Page 206: ...186 Port Monitor Commands ...
Page 216: ...196 QoS Commands ...
Page 238: ...218 RMON Commands ...
Page 258: ...238 SNMP Commands ...
Page 284: ...264 Spanning Tree Commands ...
Page 294: ...274 SSH Commands ...
Page 304: ...284 Syslog Commands ...
Page 332: ...312 User Interface ...
Page 348: ...328 VLAN Commands ...
Page 360: ...340 Web Server ...