Soru

Zorluk: OrtaVLAN Configuration and Access Port Setup

A network administrator needs to create VLAN 85 named GUESTS on a Cisco Catalyst switch and configure interface GigabitEthernet0/2 as a static access port assigned to this VLAN, starting from Privileged EXEC mode (`Switch#`). In what sequence should the administrator execute the required Cisco IOS commands?

  1. 1configure terminal
  2. 2vlan 85
  3. 3name GUESTS
  4. 4interface GigabitEthernet0/2
  5. 5switchport mode access
  6. 6switchport access vlan 85

Cevap

The correct configuration order starts in Privileged EXEC mode with 'configure terminal', followed by 'vlan 85', 'name GUESTS', 'interface GigabitEthernet0/2', 'switchport mode access', and finally 'switchport access vlan 85'.
To successfully create a VLAN and configure an access port in Cisco IOS, commands must be executed in a specific hierarchical sequence. Starting at Privileged EXEC mode (`Switch#`), the user enters Global Configuration mode (`Switch(config)#`) using `configure terminal`. Next, VLAN 85 is instantiated with `vlan 85` into VLAN configuration mode (`Switch(config-vlan)#`), where `name GUESTS` sets the label. Moving back to Global Configuration mode context to select the target interface via `interface GigabitEthernet0/2` places the user in Interface Configuration mode (`Switch(config-if)#`). Here, `switchport mode access` disables dynamic trunk negotiation, and `switchport access vlan 85` assigns the port to the intended broadcast domain.

Adım Adım Çözüm

1
Enter Global Configuration mode from Privileged EXEC mode.
Prompt changes to `Switch(config)#` after running `configure terminal`.
Global configuration mode is required to initiate VLAN creation and interface selection commands.
2
Create VLAN 85.
Prompt changes to `Switch(config-vlan)#` after issuing `vlan 85`.
Creates the VLAN ID in the Layer 2 database and opens VLAN configuration submode.
3
Assign the name GUESTS to the VLAN.
VLAN 85 is labeled with the name GUESTS upon executing `name GUESTS`.
Name configuration must take place inside the VLAN configuration submode.
4
Select interface GigabitEthernet0/2 for editing.
Prompt changes to `Switch(config-if)#` after issuing `interface GigabitEthernet0/2`.
Moves the CLI context into interface configuration mode for the specified target interface.
5
Set the administrative mode of the port to static access mode.
The port mode changes from dynamic negotiation to explicit access mode via `switchport mode access`.
Statically defining access mode ensures DTP negotiation does not form a trunk link unintentionally.
6
Assign the interface to VLAN 85.
Traffic on GigabitEthernet0/2 is tagged internally for VLAN 85 using `switchport access vlan 85`.
Associates untagged frames received on this access port with VLAN 85.

Anahtar Kavram

Cisco IOS CLI hierarchy for VLAN definition and static access port assignment
Tahmini Süre:1m 30s
Bu soruyu puanla