Quiz: Cisco CLI¶
4 questions
L0 (1 questions)¶
1. What do the two parts of 'show interface' status mean: 'is up, line protocol is down' vs 'is up, line protocol is up'?
Show answer
The first part is Layer 1 (physical): is the link electrically/optically active? The second part is Layer 2 (data link): is the protocol negotiation successful? 'Up/down' means the physical link is good but L2 failed — usually a speed/duplex mismatch or encapsulation mismatch. 'Up/up' means both layers are working. 'Administratively down' means someone shut the port.L1 (1 questions)¶
1. A server gets DHCP from the wrong subnet after being moved to a new rack. What Cisco command sequence diagnoses this?
Show answer
1. 'show vlan brief' — verify which VLAN the server's port is assigned to.2. 'show interface
3. 'show interface trunk' — if it is a trunk, check which VLANs are allowed. The server port is likely still in the old VLAN. Fix: 'interface Gi0/1; switchport access vlan
L2 (1 questions)¶
1. What is PortFast and BPDU Guard, and why do server-facing ports need both?
Show answer
PortFast skips the STP Listening->Learning stages (30 seconds on classic STP), moving the port directly to Forwarding. Without it, servers time out on DHCP or PXE boot. BPDU Guard protects PortFast ports — if a BPDU is received (someone plugged in a switch), the port goes err-disabled immediately, preventing an accidental loop. Both should be enabled on every server-facing access port.L3 (1 questions)¶
1. Explain how an unexpected root bridge election can cause a network-wide outage and how to prevent it.