As written in the title my first question is, what's the difference between Layer 2 and Layer 3 broadcasts?
If a host sends a layer 2 broadcast, the switch sends it to all of his ports, but not to other switches that are connected (uplinks), that's correct isn't it? But why?
How does it recognise, that there is a switch connected?
| |||
|
feedback
|
|
1) Layer 2 broadcasts are sent to the broadcast mac address ffff:ffff:ffff if ethernet and so can be received by any device. Layer 3 broadcasts are sent to the broadcast network address, which for an ip network of 10.1.1.0/24 would be 10.1.1.255. If the IP network was over ethernet, a layer 3 broadcast would also result in a layer 2 broadcast. 2) A switch sends a layer 2 broadcast to all the ports that are in the same broadcast domain, ie the same vlan (which can be all ports). Some of those ports may have other switches connected, which will receive the broadcast on a port, and issue it out to all other ports on the same broadcast domain as the incoming port. So no, that isn't correct. 3) It doesn't - see 2. Note that this answer does not discuss trunking, which adds a bit of complexity to the answer but doesn't really alter the premise. | |||||||||
feedback
|
