A network engineer is configuring interface GigabitEthernet0/2 on a Cisco Catalyst switch to connect an office desktop computer. The host must be statically assigned to VLAN 25, and dynamic trunk negotiation protocols on the interface must be disabled. Which set of commands must the engineer enter in interface configuration mode to achieve this objective?
- switchport mode access
switchport access vlan 25Answer - Bswitchport access vlan 25
switchport trunk native vlan 25 - Cvlan 25
switchport mode access - Dswitchport mode trunk
switchport access vlan 25
Answer
The correct sequence consists of 'switchport mode access' followed by 'switchport access vlan 25' entered in interface configuration mode.
Configuring 'switchport mode access' forces the interface into static Layer 2 access mode and stops dynamic trunking protocol (DTP) negotiation. Following it with 'switchport access vlan 25' correctly places untagged host frames into broadcast domain VLAN 25.
Step-by-Step Solution
Key Concept
Access Port VLAN Assignment and Operational Mode Locking