A network administrator needs to assign interface GigabitEthernet0/4 on a Cisco Catalyst switch to VLAN 25. Which Cisco IOS command must be executed in interface configuration mode to set the active VLAN assignment for this access port?
- switchport access vlan 25Answer
- Bvlan 25 access
- Cswitchport trunk native vlan 25
- Dswitchport default vlan 25
Answer
The command switchport access vlan 25 correctly assigns an access port interface to VLAN 25 in Cisco IOS.
Executing switchport access vlan 25 in interface configuration mode directly sets the VLAN associated with an operational access port. If the specified VLAN does not already exist in the switch VLAN database, Cisco IOS automatically creates it upon executing this command.
Step-by-Step Solution
Key Concept
VLAN Configuration and Access Port Setup