Question

Difficulty: EasyVLAN Configuration and Access Port Setup

A switch port (FastEthernet0/12) needs to be assigned to the newly created Sales department VLAN (VLAN 45). Which Cisco IOS command must be executed within interface configuration mode to assign the port to VLAN 45?

  1. switchport access vlan 45Answer
  2. B
    switchport trunk native vlan 45
  3. C
    vlan 45
  4. D
    switchport mode access vlan 45

Answer

The correct command to assign the interface to VLAN 45 is 'switchport access vlan 45'.
To assign an interface to a specific VLAN in Cisco IOS, the command 'switchport access vlan <vlan-id>' is executed under interface configuration mode.

Step-by-Step Solution

1
Enter interface configuration mode for FastEthernet0/12.
The CLI prompt changes to Switch(config-if)#.
Interface-specific configurations must be applied directly under the target interface context.
2
Execute the command 'switchport access vlan 45'.
Interface FastEthernet0/12 is statically assigned to VLAN 45.
The 'switchport access vlan <vlan-id>' command defines the access VLAN membership for the port.

Key Concept

Static Access Port VLAN Membership Assignment
Estimated Time:45s
Rate this question