During a switch security audit on switch SW-1, a network engineer notices that interface FastEthernet0/10 is operating with default settings: its administrative mode is dynamic auto and it is assigned to default VLAN 1. The engineer needs to configure FastEthernet0/10 to statically connect an end-user workstation in VLAN 25 while explicitly disabling Dynamic Trunking Protocol (DTP) trunk negotiation on the interface.
Which combination of interface configuration commands correctly accomplishes this configuration?
- switchport mode access
switchport access vlan 25Answer - Bswitchport access vlan 25
switchport nonegotiate - Cswitchport mode trunk
switchport trunk native vlan 25 - Dencapsulation dot1q 25
switchport access vlan 25
Answer
The command sequence consisting of 'switchport mode access' followed by 'switchport access vlan 25' correctly provisions the interface as a static access port in VLAN 25.
Executing 'switchport mode access' explicitly defines the interface as a Layer 2 access port, which automatically disables DTP trunk negotiation. Following this with 'switchport access vlan 25' places the interface into VLAN 25.
Step-by-Step Solution
Key Concept
Configuring Layer 2 switch access ports and disabling DTP negotiation in Cisco IOS