A network engineer is configuring interface GigabitEthernet0/8 on a Cisco Catalyst switch to connect a security IP camera. The requirements specify creating a new VLAN named CAMERAS with VLAN ID 65 and configuring the interface as a static access port assigned to this VLAN. Which sequence of Cisco IOS commands correctly completes this configuration from global configuration mode?
- vlan 65
name CAMERAS
exit
interface gigabitethernet0/8
switchport mode access
switchport access vlan 65Answer - Bvlan 65
name CAMERAS
interface gigabitethernet0/8
switchport access vlan 65 - Cinterface gigabitethernet0/8
switchport mode access
switchport trunk native vlan 65
name CAMERAS - Dvlan CAMERAS
id 65
exit
interface gigabitethernet0/8
switchport mode dynamic desirable
Answer
The correct command sequence creates VLAN 65, assigns it the name CAMERAS, and provisions interface GigabitEthernet0/8 using 'switchport mode access' and 'switchport access vlan 65'.
Proper Cisco IOS VLAN and access port configuration requires instantiating the VLAN with 'vlan <vlan-id>' in global configuration mode, naming it with 'name <name>', returning to global configuration mode, entering the target interface configuration context, explicitly defining static access mode with 'switchport mode access', and binding the port to the specified VLAN using 'switchport access vlan <vlan-id>'.
Step-by-Step Solution
Key Concept
VLAN Creation and Access Port Assignment Syntax