Soru

Zorluk: Çok zorVLAN Configuration and Access Port Setup

A network administrator needs to create a new VLAN named 'VOICE' with ID 20 on a fresh Cisco Catalyst switch and manually assign interface FastEthernet 0/1 as an active access port belonging to this VLAN. Place the Cisco IOS CLI commands in the exact correct sequence required to perform this complete configuration from privileged EXEC mode.

  1. 1configure terminal
  2. 2vlan 20
  3. 3name VOICE
  4. 4interface fastethernet 0/1
  5. 5switchport mode access
  6. 6switchport access vlan 20

Cevap

The correct operational order begins by entering global configuration mode (configure terminal), creating the VLAN (vlan 20), naming the VLAN (name VOICE), entering interface mode (interface fastethernet 0/1), explicitly setting the link to access mode (switchport mode access), and finally binding the port to the VLAN (switchport access vlan 20).
Cisco IOS configuration follows a strict modal hierarchy. The administrator must first enter global configuration mode (`configure terminal`), instantiate VLAN 20 (`vlan 20`), name it while in `config-vlan` sub-mode (`name VOICE`), navigate to the desired interface (`interface fastethernet 0/1`), set the operational mode (`switchport mode access`), and assign the access VLAN (`switchport access vlan 20`).

Adım Adım Çözüm

1
Enter Global Configuration mode
Switch prompt changes to Switch(config)#
CLI context must be in global configuration mode to create network-wide objects such as VLANs or navigate to specific interfaces.
2
Create VLAN 20
Switch prompt changes to Switch(config-vlan)#
Executing 'vlan 20' creates the L2 broadcast domain in the VLAN database and shifts context to VLAN configuration mode.
3
Assign the VLAN Name
VLAN 20 is named 'VOICE'
Sub-commands like 'name' must be issued while in Config-VLAN mode directly following VLAN creation.
4
Navigate to target switchport interface
Switch prompt changes to Switch(config-if)#
Interface commands require entering interface configuration mode for FastEthernet 0/1.
5
Set port operational mode to access
DTP dynamic negotiation is disabled or overridden to static access mode
Best security and operational practice requires explicitly defining 'switchport mode access' before or alongside VLAN assignment.
6
Assign interface to VLAN 20
Interface FastEthernet 0/1 actively forwards untagged traffic for VLAN 20
Executing 'switchport access vlan 20' under interface configuration mode completes the access port assignment.

Anahtar Kavram

Cisco IOS CLI Configuration Hierarchy for VLAN Creation and Access Port Binding
Bu soruyu puanla