200-301 · Question #823
Which command can you enter to assign an interface to the default VLAN?
The correct answer is A. Switch(config-if)# switchport access vlan 1. To assign a switch interface to the default VLAN (VLAN 1), the interface must be configured as an access port for that specific VLAN.
Question
Options
- ASwitch(config-if)# switchport access vlan 1
- BSwitch(config-if)# switchport trunk native vlan 1
- CSwitch(config-if)# vlan 1
- DSwitch(config)# int vlan 1
How the community answered
(60 responses)- A88% (53)
- B3% (2)
- C7% (4)
- D2% (1)
Why each option
To assign a switch interface to the default VLAN (VLAN 1), the interface must be configured as an access port for that specific VLAN.
The `switchport access vlan 1` command, entered in interface configuration mode, explicitly configures a switch port as an access port and assigns it to VLAN 1, which is the default VLAN on Cisco switches. This command is the correct way to connect an end device to VLAN 1.
The `switchport trunk native vlan 1` command configures VLAN 1 as the native VLAN on a trunk port, meaning untagged traffic on that trunk belongs to VLAN 1; it does not assign an access port to the default VLAN.
The `vlan 1` command is used in global configuration mode to create or enter VLAN configuration mode for VLAN 1, not to assign a physical interface to it.
The `int vlan 1` (short for `interface vlan 1`) command is used to configure the Switch Virtual Interface (SVI) associated with VLAN 1, which is a Layer 3 interface, not to assign a physical access port to VLAN 1.
Concept tested: Assigning Switch Ports to VLANs
Source: https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3750/software/release/12-2_55_se/configuration/guide/scg/swvlan.html#wp1027178
Topics
Community Discussion
No community discussion yet for this question.