Drag steps to the numbered slots on the right, or tap a step then tap a slot.
CCNA Network Infrastructure and Connectivity Practice Question
Drag and drop the following steps into the correct order to configure a Cisco switch with an IPv4 management address 192.168.1.10/24, an IPv6 address 2001:db8:1::1/64, and a default gateway 192.168.1.1.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
Enter global configuration mode using the configure terminal command.
Correct order: 1. Enter global configuration mode – all subsequent configuration commands require this mode. 2. Enter interface configuration mode for VLAN 1 – the management SVI must be selected to apply IP settings. 3. Assign the IPv4 address 192.168.1.10 255.255.255.0 – sets the switch's management IPv4 address and subnet mask. 4. Enable the interface with the no shutdown command – activates the SVI so it can send and receive traffic. 5. Assign the IPv6 address 2001:db8:1::1/64 – enables IPv6 processing and statically configures a global unicast address. 6. Exit interface configuration mode to return to global configuration mode – required because the default gateway command is a global configuration command, not an interface subcommand. 7. Set the default gateway to 192.168.1.1 using the ip default-gateway command – provides the next-hop router for IPv4 traffic leaving the local subnet.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Enter global configuration mode using the configure terminal command.
Why this is correct
Entering global configuration mode with the configure terminal command is the mandatory first step for any switch management interface setup. This mode allows you to execute privileged-level configuration commands such as interface, ip address, and ip default-gateway, none of which are valid in user or privileged EXEC mode.
- ✓
Enter interface configuration mode for VLAN 1.
Why this is correct
The interface vlan 1 command places you into the interface configuration mode for the switch's built-in virtual interface for VLAN 1. This is the logical Layer 3 interface that represents the switch itself for management traffic, and it is the only place where you can assign an IP address for remote management on a Layer 2 switch.
- ✓
Assign the IPv4 address 192.168.1.10 255.255.255.0.
Why this is correct
The ip address 192.168.1.10 255.255.255.0 command assigns a static IPv4 address and subnet mask to the management interface. This address becomes the switch's source IP for management protocols like SSH, Telnet, and SNMP, and it must be reachable from the network segment of the administrator's host.
- ✓
Enable the interface with the no shutdown command.
Why this is correct
The no shutdown command is essential because all VLAN interfaces are administratively down by default on Cisco switches. Without this command, the management interface will remain in a down/down state, making the configured IP address completely unusable for remote management traffic, even if the physical switch ports are active.
- ✓
Assign the IPv6 address 2001:db8:1::1/64.
Why this is correct
Assigning the IPv6 address 2001:db8:1::1/64 configures a global unicast address on the same management interface. This is necessary for managing the switch over IPv6, and the /64 prefix length is the standard for a single subnet, allowing stateless address autoconfiguration and neighbor discovery to function correctly.
- ✓
Exit interface configuration mode to return to global configuration mode.
Why this is correct
The exit command is used to leave interface configuration mode and return to global configuration mode. This step is required because the subsequent ip default-gateway command is a global configuration command that is not valid inside the interface context, and attempting to run it there would generate a '% Invalid input' error.
- ✓
Set the default gateway to 192.168.1.1 using the ip default-gateway command.
Why this is correct
The ip default-gateway 192.168.1.1 command configures the switch's default route for IPv4 management traffic. On a Layer 2 switch, this is the only way to reach a remote subnet's management station, as the switch does not run a routing protocol and relies on this static default gateway to forward all out-of-subnet traffic.
Visual reference
Go deeper
Related to this question
Learn chapter
IPv4 Addressing and Address Classes
Key term
Default gateway
A default gateway is a network device, typically a router, that acts as the exit point for traffic from a local network to other networks, including the internet.
Key term
Switch
A switch is a networking device that connects devices on a local area network and uses MAC addresses to forward data only to the intended recipient.
About these practice questions
Courseiva writes every 200-301 question from scratch — 1,389 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 200-301 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 200-301 exam.