Lessons · Network switches · where a desk gets its address
The switch does not hand out addresses
A PC asks, and the request travels out of the VLAN its port is in to a server somewhere else. The switch's whole contribution is which VLAN that is.
Hone is a place to practise programming. This is one of its lessons, written out in full and free to read without an account.
What it is for
So when nobody in one department has an address, the question is not what the server is doing. It is which VLAN those ports ended up in.
How to think about it
Read the Vlan column for the ports that are failing. A department failing together is a VLAN-shaped fault.
Worked example
enableIn.
configure terminalConfiguring.
interface gi0/7A desk in the department that is complaining.
switchport mode accessAccess.
switchport access vlan 50This is the line that decides where its request goes.
spanning-tree portfastWithout it the port spends half a minute deciding, and the PC has already given up.
endDone.
show interfaces statusGi0/7 sits in 50. If that should say 40, you have found it.
show vlan briefAnd here is whether 50 is a VLAN anybody meant to create.
Your turn
Let this port start forwarding immediately for the PC plugged into it.
spanning-tree
Console into a switch
The trap
Blaming the DHCP server when a whole department fails at once. One department is usually one VLAN, and a VLAN is on the switch in front of you.