I would like to know why we do not (and should not I guess) use 2 different networks on the same LAN/vLAN. From what I tried and understood :
- Host in network A (ex: 10.1.1.0/24) can talk to each other
- And host in network B (ex: 10.2.2.0/24) cant talk to each other
- Host and network A cannot talk to host in network B which is normal since inter-LAN communications need a L3 device with routing function.
The idea/principle of a LAN/vLAN is, in the course I've followed, described as a broadcast domain. But I am confused since I can configure 2 working networks within the same LAN.
I also tried the same configuration but with a second switch and a different vlan number (SW1 with vlan 10 and SW2 with vlan 20). All ports of each switch are in access mode with vlan 10 and 20 respectively. I had the same result.
Note : each side of the topology has a host from network A and B
Now, nobody does that and I supposed it is for some goods reasons, but I did not find what are those reasons and that is what I am asking you ?
I found this topic which seems similar, but the purpose is not the same.