CCNA • CLI Questions — 30 Questions
30 CCNA CLI Questions questions with answers and detailed explanations. Command-line and scenario-based questions. Free, no signup.
You are connected to SW1 via the console. SW1 is a Layer 2 switch. Port GigabitEthernet0/1 connects to a PC in VLAN 10, and port GigabitEthernet0/2 connects to a server in VLAN 20. Both ports are currently in VLAN 1. Configure SW1 to assign GigabitEthernet0/1 to VLAN 10 and GigabitEthernet0/2 to VLAN 20, and verify the configuration.
hostname SW1 ! vlan 10 name Sales vlan 20 name Engineering ! interface GigabitEthernet0/1 no shutdown ! interface GigabitEthernet0/2 no shutdown !