Switching 100 Interview Questions and Answers
Switching 100 Interview Questions and Answers
2. Q: Which layer of the OSI model does a switch operate on?
A: Layer 2 (Data Link Layer), though multilayer switches can operate at Layer 3.
12.Q: How many broadcast domains exist in a 24-port switch with all ports in
different VLANs?
A: 24 broadcast domains.
switchport port-security
switchport port-security maximum 1
switchport port-security violation restrict
31.Q: What is Rapid Spanning Tree Protocol (RSTP) and how does it improve
convergence time?
A: RSTP (IEEE 802.1w) is a faster version of STP that provides sub-second
convergence.
34.Q: How does MSTP (Multiple Spanning Tree Protocol) improve scalability?
A: It maps multiple VLANs into a single STP instance, reducing CPU/memory usage.
49.Q: What is MAC address flapping and how can you troubleshoot it?
A: It occurs when a MAC address keeps changing its associated port—usually due to
loops or misconfigurations.
52.Q: What does the command switchport mode dynamic desirable do?
A: It initiates trunk negotiation using DTP.
53.Q: Can two switches form a trunk if both ports are set to access mode?
A: No, both ports must support and negotiate trunking.
54.Q: What is the maximum number of secure MAC addresses you can configure per
port by default?
A: One.
56.Q: How can you manually recover a port from an err-disabled state?
A: Shut and then no shut the interface.
57.Q: Which command shows STP topology information for all VLANs?
A: show spanning-tree.
67.Q: What’s the use of the command switchport trunk allowed vlan?
A: It specifies which VLANs are permitted on a trunk.
81.Q: What happens if two switches are connected with mismatched trunk settings?
A: Trunk may not form, or VLAN leakage may occur.
83.Q: Which port security mode sends logs but doesn't shut the port?
A: Restrict.
87.Q: What feature limits the rate of ARP messages per port?
A: ARP rate limiting.
92.Q: How does a switch forward multicast traffic without IGMP snooping?
A: It floods multicast traffic like broadcast.
100. Q: How do you clear a MAC address from the MAC table?
A: clear mac address-table dynamic.