Question

Difficulty: EasyVLAN Configuration and Access Port Setup

A network administrator needs to explicitly configure switch interface GigabitEthernet0/3 as a static access port belonging to VLAN 30. Which set of commands must be executed in interface configuration mode to achieve this configuration?

  1. switchport mode access
    switchport access vlan 30
    Answer
  2. B
    switchport mode trunk
    switchport trunk native vlan 30
  3. C
    vlan 30
    switchport access vlan 30
  4. D
    spanning-tree portfast
    switchport trunk allowed vlan 30

Answer

The correct command set to execute in interface configuration mode is 'switchport mode access' followed by 'switchport access vlan 30'.
To configure an access port for an end-user host in VLAN 30, an administrator enters interface configuration mode and issues 'switchport mode access' to define the operational mode, followed by 'switchport access vlan 30' to bind the port to that specific broadcast domain.

Step-by-Step Solution

1
Set interface mode
The interface mode is configured for access using 'switchport mode access'.
This disables trunk negotiation and ensures the interface functions strictly as a host access port.
2
Assign access VLAN
The port is assigned to VLAN 30 using 'switchport access vlan 30'.
Associates untagged traffic from the connected host with broadcast domain VLAN 30.

Key Concept

Layer 2 Access Port Configuration
Rate this question