Layer 2 Switching Commands
807
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 interface to use the default VLAN, use the
no
form of this command.
Syntax
switchport access vlan
vlan-id
no switchport access vlan
• vlan-id — The identifier of the VLAN associated with the access port.
Default Configuration
This command has no default values.
Command Mode
Interface Configuration (Ethernet and port channel) mode
User Guidelines
This command configures the interface access mode VLAN membership. The
no
form of the command sets the access mode VLAN membership to VLAN
1. It is possible to configure the access mode VLAN identifier when the port is
in general or trunk mode. Doing so does not change the VLAN membership
of the interface until the interface is configured into access mode.
If the VLAN identified in the command has not been previously created, the
system creates the VLAN, issues a message, and associates the VLAN with the
interface.
Examples
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.
console(config)#interface gigabitethernet 1/0/8
console(config-if-Gi1/0/8)#switchport access vlan 23
The following example sets the PVID for interface Gi1/0/12 to VLAN ID 33.
Since VLAN 33 does not exist, it is automatically created.
Содержание N1100-ON
Страница 2: ......
Страница 4: ......
Страница 258: ...Using the CLI 258 ...
Страница 488: ...Layer 2 Switching Commands 488 Operational State Querier Operational version 1 ...
Страница 656: ...Layer 2 Switching Commands 656 10 ...
Страница 1128: ...Audio Visual Bridging Commands 1128 ...
Страница 1186: ...Data Center Technology Commands 1186 ...
Страница 1414: ...Layer 3 Routing Commands 1414 Command History Introduced in version 6 2 0 1 firmware Example console route map set metric 6432 ...
Страница 1435: ...Layer 3 Routing Commands 1435 Number of Joins 7 Number of Groups 1 ...
Страница 1598: ...Layer 3 Routing Commands 1598 Vl10 Rx 0 0 0 0 0 0 0 Tx 2 0 0 0 0 0 0 Invalid Packets Received 0 ...
Страница 1621: ...Layer 3 Routing Commands 1621 Vl10 Rx 0 0 0 0 0 0 0 Tx 2 0 0 0 0 0 0 Invalid Packets Received 0 ...
Страница 2330: ......
Страница 2331: ...www dell com support dell com Printed in the U S A ...
Страница 2332: ......