Switching, VLANs, and Layer 2 Segmentation Questions

Layer 2 switching and segmentation: MAC learning, aging and forwarding (including unknown-unicast flooding and cut-through versus store-and-forward), VLAN design and 802.1Q trunking (tag format, native VLAN, DTP trunk negotiation, VTP, voice VLAN, private VLANs, Q-in-Q), spanning tree (STP, RSTP, MST and edge protection such as PortFast, BPDU guard and root guard), EtherChannel/LACP and MLAG, multicast handling with IGMP snooping, and the hand-off between layer 2 and layer 3 (SVIs, router-on-a-stick, routed ports). Covers access and trunk port configuration and verification, switch-level fault diagnosis (trunk and native VLAN mismatches, MAC flapping, broadcast storms, bundles that will not form), campus, small-office and data-centre VLAN plans, and migrating or renumbering VLANs with minimal downtime. Boundary: attack and defense mechanics (MAC flooding, DHCP snooping, ARP inspection, VLAN hopping), routing protocol configuration, VXLAN/EVPN overlays, fabric and whole-campus topology choice, device automation, and the generic layered troubleshooting method are covered elsewhere.

MediumTechnical
89 practiced

You are building the access layer for a new data centre pod and the team's default is spanning tree with redundant uplinks. Where does spanning tree hurt you at that scale, what would you put in its place so every uplink carries traffic, and in what situation would you still keep it?

MediumTechnical
59 practiced

Compare the ways a network can route between VLANs, covering the router-on-a-stick, the SVI on a multilayer switch and a routed port. Start with how a layer 2 switch differs from a layer 3 switch when forwarding.

EasyTechnical
64 practiced

Why does a switched network with redundant links need a loop-prevention protocol at all? Describe what actually happens on the wire without one, and how the protocol keeps the redundancy usable.

EasyTechnical
65 practiced

Explain how an Ethernet switch learns MAC addresses and decides where to send a frame. Cover what happens when the destination is unknown, and what that flooding means for a large broadcast domain.

EasyTechnical
53 practiced

A new colleague from the server team asks what a VLAN actually is and why the network team keeps asking to use them. Explain it in plain terms and say what changes for broadcasts, security boundaries and day-to-day operations once a network is split into VLANs.

Unlock Full Question Bank

Get access to all 9 Switching, VLANs, and Layer 2 Segmentation interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.