Switchport Access Vlan - Dell Networking 2024 Reference Manual

Hide thumbs Also See for Networking 2024:
Table of Contents

Advertisement

Example
The following example shows the case if no IP Subnet to VLAN association
exists.
console#show vlan association subnet
IP Address
IP Mask
VLAN ID
---------------- ---------------- -------
The IP Subnet to VLAN association does not exist.

switchport access vlan

Use the switchport access vlan command in Interface Configuration mode to
configure the VLAN ID when the interface is in access mode. To reconfigure
the default, use the no form of this command.
Syntax
vlan-id
switchport access vlan
no switchport access vlan
vlan-id — A valid VLAN ID of the VLAN to which the port is configured.
Default Configuration
vlan-id
The default value for the
parameter is 1.
Command Mode
Interface Configuration (gigabitethernet, port-channel, tengigabitethernet,
fortygigabitethernet) mode
User Guidelines
This command removes the port from the previous VLAN membership and
adds it to the specified VLAN. The no form of the command sets the port
VLAN membership to VLAN 1.
Example
The following example configures interface gi1/0/8 to operate in access mode
with a VLAN membership of 23. Received untagged packets are processed on
VLAN 23. Received packets tagged with VLAN 23 are also accepted. Other
received tagged packets are discarded.
815
VLAN Commands

Advertisement

Table of Contents
loading

Table of Contents