I have a basic doubt understanding vlan communication.
Scenario: Let's say a single switch and has been configured with 2 vlans (vlan 100 and vlan 200). Vlan 100 connects to lets say 192.168.100.0 network. And I have a host 1 connected to it with IP address(192.168.100.2).
Question: Now for other vlan 200,if I again connect 192.168.100.0 network and connect a host 2 to it with IP address(192.168.100.3). Will I be able to ping between host 1 and host 2.
I do understand that we don't need to have two vlan if its the same subnet, but I am curious to know how this would work. Also, to communicate between two vlan we can have router, for example in this case the router(let's say the gateway 192.168.100.1). Will this setup work?