InterviewStack.io LogoInterviewStack.io

Switching, VLANs, and Layer 2 Segmentation Questions

Layer 2 network design and operation: switching, VLANs and trunking, spanning tree, and segmentation for isolation and performance. Covers configuring and verifying switched networks, VLAN design for security and broadcast control, and the interaction between layer 2 segmentation and layer 3 routing. The switching half of the access and distribution layers.

HardTechnical
64 practiced

A host in VLAN 100 can successfully ping its default gateway SVI on the switch, but cannot reach hosts in VLAN 200. Provide a prioritized troubleshooting checklist with exact commands you would run at each step (L2 and L3) and the likely root causes (ACLs on SVI, missing routes, SVI admin down, trunk misconfiguration, VRF mismatch).

MediumTechnical
54 practiced

Explain how DHCP snooping and Dynamic ARP Inspection (DAI) work together to protect VLANs from DHCP spoofing and ARP poisoning. Provide example Cisco commands to enable DHCP snooping for VLANs 10 and 20, to mark trunk uplink ports as trusted, and to enable DAI to use the DHCP snooping binding database.

EasyTechnical
64 practiced

Given a small company with 50 employees, propose a simple VLAN segmentation plan including VLAN IDs, purpose, and mapping to subnets for staff, guests, servers, and management. Explain the security and operational rationale behind your VLAN choices and what immediate ACLs or firewalling you'd recommend.

HardTechnical
71 practiced

In an environment with frequent VM migrations and containers, MAC address tables flap and cause instability. Propose a combined technical strategy to improve MAC-table stability: discuss tuning aging timers, using DHCP snooping and DAI, applying sticky MACs carefully, leveraging distributed virtual switch features, and integrating orchestration to update network state. Discuss trade-offs for each approach.

HardTechnical
55 practiced

Explain how a CAM table overflow (MAC flooding) attack works, how it causes unknown-unicast flooding, how to detect such an attack in the network, and mitigation techniques including port-security, DHCP snooping, dynamic ARP inspection (DAI), static MACs, and network design hardening.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.