Let's say I have three different hosts connected by a Layer 2 Switch:
A) IP 126.96.36.199, Subnet 255.255.255.0,
B) IP 188.8.131.52, Subnet 255.255.0.0,
C) IP 184.108.40.206, Subnet 255.255.255.0,
Who would a broadcast message (like an arp request) from each machine reach? I know that if the arp tables were pre-generated, you could send non-broadcast packets directly from A-> B, B->A, and B->C , while A->C, C->A, and C->B would be send to the default gateway and fail.
I know that connecting subnets like this is non-ideal, I was just wondering how communications work when it's done accidentally.
As a second question, let's say that they're now connected by a Layer 3 Switch (A Router?) Am I correct in thinking that a ping from B to C would go from B -> C, and the response would go from C -> R -> B?