A network engineer is configuring a Cisco Catalyst switch to connect end-user workstations. The workstations must belong to VLAN 25, which should be named HR. Which two CLI commands or command sequences must be performed on the switch to complete this setup correctly?
- In global configuration mode, execute `vlan 25` followed by `name HR`.Answer
- In interface configuration mode for GigabitEthernet0/1, execute `switchport access vlan 25`.Answer
- CIn interface configuration mode for GigabitEthernet0/1, execute `switchport trunk native vlan 25`.
- DIn interface configuration mode for GigabitEthernet0/1, execute `ip address 192.168.25.1 255.255.255.0`.
Answer
To properly set up an access port in VLAN 25, VLAN 25 must be created in global configuration mode (`vlan 25` / `name HR`), and the interface must be assigned to that VLAN using `switchport access vlan 25` in interface configuration mode.
Configuring an access port requires defining the VLAN in global configuration mode (`vlan 25` and `name HR`) and assigning the physical interface to that VLAN using `switchport access vlan 25`.
Step-by-Step Solution
Key Concept
VLAN Creation and Access Port Assignment
Estimated Time:1m 15s