I'm trying to understand how this works.. I have 2 hosts with these IP addresses:
m1: 192.168.0.1/24
m2: 192.168.1.1/24
As you can see, they are on different network.. And in my case, they are connected to a single switch s1. My question is: why am I able to do the command
arping 192.168.1.1
from m1 to reach m2 and get a reply from m2?
As far as I know, since these hosts are on different network, they shouldn't communicate..
Another similar case I tried is to connect another switch s2 directly to s1 and connect
m3: 192.168.2.1/24
m4: 192.168.3.1/24
to this new s2. Again I can do the arping command from m1 to say m3 or m4 and get a reply..
I'm not using any router in this configuration..
Can someone explain what is going on? Thank you