title: Two machines on diff subnets connected through a L2 switch - Connection possible?
body: <p>Can we connect two subnets to the same switch.</p>
  
  <p>Say, if i have 2 PCs connected to a L2 switch</p>
  
  <p>Pc1 - 10.232.167.10
  Pc2 - 192.168.3.1</p>
  
  <p>Is it possible to ping pc1 from pc2 and vice-versa ?</p>
  
  <p>Theoretically, it must be possible - because switch operated only at L2. If i send a ping packet from Pc1, the switch (since the mapping table is not updated) sends broadcast on all its connected ports.</p>
  
  <p>When the Pc2 received the packet, sees that it is for its own IP address and should accept the packet, and hence forth a mapping gets created in switch (source MAC + port -> Destination port). From there after, I can ping Pc2 from Pc1.</p>
  
  <p>However it did not work practically. I would like to know the reason ?</p>