A network administrator is inspecting a Cisco Catalyst switch interface that connects to a user PC. Running the command `show interfaces FastEthernet 0/4 switchport` displays the following output:
text
Name: Fa0/4
Administrative Mode: dynamic auto
Operational Mode: static access
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: native
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
The administrator needs to permanently configure this interface as a static access port assigned to VLAN 30 and disable DTP negotiation. Which set of commands must be executed under interface configuration mode to achieve this objective?
- switchport mode access
switchport access vlan 30
switchport nonegotiateAnswer - Bswitchport trunk native vlan 30
switchport mode trunk - Cvlan 30
switchport mode dynamic desirable - Dip address 192.168.30.1 255.255.255.0
no shutdown
Answer
The command sequence consisting of `switchport mode access`, `switchport access vlan 30`, and `switchport nonegotiate` correctly assigns the port statically to VLAN 30 and disables DTP negotiation.
The correct command sequence explicitly configures the interface as a static access port (`switchport mode access`), assigns it to the designated access VLAN (`switchport access vlan 30`), and prevents the port from sending Dynamic Trunking Protocol frames (`switchport nonegotiate`).
Step-by-Step Solution
Key Concept
Configuring Layer 2 Static Access Ports and Disabling DTP Negotiation
Estimated Time:1m 30s