07-17-2021 05:26 AM
Why Layer-2 switch has a single broadcast domain? It will be better for me if anyone explain it briefly.
Thanks
07-17-2021 07:49 AM
Let's clarify here, Layer 2 means - It can be many VLAN in Layer 2, per VLAN yes single broadcast domain.
It good to start from here :
https://www.networkstraining.com/collision-domain-vs-broadcast-domain/
https://www.cbtnuggets.com/blog/technology/networking/networking-basics-what-are-broadcast-domains
07-17-2021 10:07 AM
Hello @Md Rabiul Islam ,
a L2 switch can have multiple VLANs each of them is a separated broadcast domain.
What a L2 switch cannot do is inter VLAN routing, that is possible when using a L3 switch or also called multilayer switch.
Clearly, an unmanaged switch with no configuration options will act as a brand new managed switch and it is able to support a single VLAN.
All Cisco switches can be configured so creating VLANs and assigning ports to different VLANs is possible,
You can also have trunk links carryiing all known VLANs to other switches or to a router that will act as a Router on a Stick with VLAN based subinterfaces to provide inte VLAN routing.
Hope to help
Giuseppe
07-17-2021 01:14 PM - edited 07-18-2021 09:39 AM
You're asking about L2 broadcast domains, not L3 broadcast domains, correct?
As the other posters have noted, if the L2 switch supports VLANs, it's possible a L2 switch has multiple L2 broadcast domain because each VLAN has a broadcast domain.
But what might make this easier to understand is if we go back to Ethernet before there were switches, all L2 frames transversed the same "wire" (see 10Base2 and 10Base5).
Having all frames on the same "wire" can fill the capacity of a wire, even from just two hosts, often fairly easily. To provide additional capacity, without getting into L3 (very slow and expensive in ye olden times), something called a "bridge" came into existence. This supported two "wires", transmitting frames from one "wire" to another, but not if the bridge "knew" the source and destination were already on the same "wire". L2 broadcast, though, have a destination to all devices on the same "wire", which also included "wires" connected by bridges. So, all hosts logically reachable by a L2 broadcast are in the same L2 domain.
A L2 switch is actually also known as a multi-port bridge. It keeps track of all host MACs, seen as source MACs, on all its connected ports. If a host is sending to a MAC on the same port it does not forward it (like the earlier bridges). If a host is sending to a MAC known to be on a different port, it transmits the frame on just that port. If the switch doesn't know where the destination is for the destination MAC it's a L2 broadcast, it transmits to all the ports except the port that received the frame. For L2 broadcasts, again, they are sent and seen on the whole L2 broadcast domain.
If a L2 switch does not support VLANs, there will only be one L2 broadcast domain, but other switches can connect to each other, just like it, so the same broadcast domain, again even for not VLAN switches, can include multiple switches.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide