Router – connect 2 switches to a router, what’s the difference between creating 2 subnets and creating 2 “normal networks” with their own net ip

ipnetworkingroutersubnet

I'm really confused about subnets right now, basically I have two separate networks that I need to connect to the same router and I need to explain how they are connected together, IPs, et cetera but then I got a doubt:

network diagram

In this image I represented a router connected to two networks. What's the difference of giving them one of the 192.168.0.0 to 192.168.128.0 network ip each and using the main router IP to create two subnets?

Best Answer

The top network in your image is incorrect because you have the same network on both sides of the router. You cannot configure overlapping networks on a router. Routers route between networks, not from a network back to the same network.

Both networks on the right side of the router are part of the network on the left side of the router. A host in the 192.168.5.0/24 network could not send anything to either of the other two networks. The host will compare the destination address to its own address and mask, and it will decide that the destination is on its own network, so it will not send the packets to the router. It will try to find the layer-2 address of the destination, and it will be unable to do so, then drop the traffic.