A network engineer is configuring a newly installed Cisco Catalyst switch interface connected to a workstation. VLAN 40 does not currently exist in the switch VLAN database. The engineer enters the following CLI commands:
text
Switch(config)# interface GigabitEthernet1/0/4
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 40
Which two outcomes occur immediately upon applying this configuration sequence? (Select two.)
- VLAN 40 is automatically created and added to the switch VLAN database.Answer
- Interface GigabitEthernet1/0/4 is statically assigned to VLAN 40 and transmits untagged frames toward the connected workstation.Answer
- CInterface GigabitEthernet1/0/4 transitions to an inactive operational status until the command 'vlan 40' is manually executed in global configuration mode.
- DThe switch begins inserting 802.1Q VLAN headers into all outgoing frames on GigabitEthernet1/0/4 to identify traffic for VLAN 40.
Answer
The switch automatically creates VLAN 40 in the VLAN database, and interface GigabitEthernet1/0/4 is configured as an access port that transmits untagged Ethernet frames to the workstation.
Executing 'switchport access vlan 40' when VLAN 40 does not exist causes Cisco IOS to automatically create VLAN 40 in the VLAN database. Furthermore, configuring the interface with 'switchport mode access' assigns GigabitEthernet1/0/4 to VLAN 40 as a standard access port, which forwards untagged Ethernet frames to connected end-user hosts.
Step-by-Step Solution
Key Concept
Cisco IOS dynamic VLAN creation and access port framing mechanics