Question

Difficulty: MediumVLAN Configuration and Access Port Setup

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?

  1. In global configuration mode, execute `vlan 25` followed by `name HR`.Answer
  2. In interface configuration mode for GigabitEthernet0/1, execute `switchport access vlan 25`.Answer
  3. C
    In interface configuration mode for GigabitEthernet0/1, execute `switchport trunk native vlan 25`.
  4. D
    In 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

1
Enter global configuration mode and define VLAN 25 with its name.
VLAN 25 is created and stored in the switch VLAN database.
Creating the VLAN ensures the broadcast domain exists before or upon assigning ports to it.
2
Enter interface configuration mode and assign the interface to VLAN 25.
Interface GigabitEthernet0/1 is placed into access mode for VLAN 25.
The `switchport access vlan 25` command specifies which VLAN untagged frames received on the port belong to.

Key Concept

VLAN Creation and Access Port Assignment
Estimated Time:1m 15s
Rate this question