Soru

Zorluk: OrtaVLAN Configuration and Access Port Setup

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?

  1. vlan 65
    name CAMERAS
    exit
    interface gigabitethernet0/8
    switchport mode access
    switchport access vlan 65
    Cevap
  2. B
    vlan 65
    name CAMERAS
    interface gigabitethernet0/8
    switchport access vlan 65
  3. C
    interface gigabitethernet0/8
    switchport mode access
    switchport trunk native vlan 65
    name CAMERAS
  4. D
    vlan CAMERAS
    id 65
    exit
    interface gigabitethernet0/8
    switchport mode dynamic desirable

Cevap

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>'.

Adım Adım Çözüm

1
Create and name the VLAN in global configuration mode
VLAN 65 is instantiated with the name CAMERAS using 'vlan 65' followed by 'name CAMERAS'.
VLANs must be instantiated in the VLAN database to segment broadcast domains.
2
Enter interface configuration mode for GigabitEthernet0/8
The CLI prompt changes to switch(config-if)#.
Port assignment commands must be executed under the specific interface configuration context.
3
Set static access mode and assign the port to VLAN 65
Executing 'switchport mode access' disallows dynamic trunking, and 'switchport access vlan 65' places the interface in VLAN 65.
Explicitly setting access mode disables Dynamic Trunking Protocol (DTP) negotiation and locks the port into access operation.

Anahtar Kavram

VLAN Creation and Access Port Assignment Syntax
Bu soruyu puanla