Scenario

The cabling contractor patched the closet in a hurry. The plan says SW1 Gi0/1 runs to floor 2 (SW2, VLAN 10) and Gi0/2 to floor 3 (SW3, VLAN 20), and both trunks were set up that way. But the sales PCs on both floors cannot talk, and neither can the engineers. The switch cannot move a cable, so you read what CDP hears, then set each trunk for the switch that is really on the other end.

Topology

SW1SW2SW3

Requirements

  1. 1The uplink SW1 Gi0/1 carries only VLAN 20, because the switch on its other end is SW3
  2. 2The uplink SW1 Gi0/2 carries only VLAN 10, because the switch on its other end is SW2
  3. 3PC-S1 reaches PC-S2 (VLAN 10, floor 2)
  4. 4PC-E1 reaches PC-E3 (VLAN 20, floor 3)
  5. 5CDP is still running on SW1 (do not switch the evidence off)

The drawing shows the plan, not the real cables. On SW1 type show cdp neighbors to see who is really on each uplink, then start with: enable

R1> show running-config

CCNA lab · about 15 min

Find the wrong cable with CDP

The plan says Gi0/1 goes to floor 2 and Gi0/2 to floor 3. Two VLANs do not cross. Read show cdp neighbors, see where the cables really go, and fix the trunks.

This lab is included in the CCNA plans and in the free trial.

Start the free trial Try the free VLAN lab Today's free lab

All labs

About this lab

The cabling contractor patched the closet in a hurry. The plan says SW1 Gi0/1 runs to floor 2 (SW2, VLAN 10) and Gi0/2 to floor 3 (SW3, VLAN 20), and both trunks were set up that way. But the sales PCs on both floors cannot talk, and neither can the engineers. The switch cannot move a cable, so you read what CDP hears, then set each trunk for the switch that is really on the other end.

About 15 minutes. Included in the CCNA plans and the free trial.

Questions about this lab

Why does the plan not match the cables?

Two patch cords were swapped in the patch panel, so the cable from Gi0/1 ends on the switch where Gi0/2 should have gone. It happens often, and the switch cannot see it: the link light is green either way.

What does show cdp neighbors tell me?

For each port it lists the neighbour device, its platform and the port at its end. Compare it with the plan: a different device name or port ID is a mis-patched cable.

Should I call the cabling team, or fix it in the config?

In a real network you would get the cord moved. When that takes days, setting the trunks to match the real cables restores service now, and you note the difference in your ticket.

CertAce is not affiliated with or endorsed by Cisco Systems. CCNA and Cisco are trademarks of Cisco Systems, Inc. The simulator and every command output here were written by CertAce.