Considering that subnets are smaller networks, remember that we use routers to achieve communications between two networks. This example of my home network is no exception to this rule.
We need a router which will route packets from one network to the other. Let’s have a look at one way we can solve this problem:
Using a server with two network cards
or a new Server which has at least two network cards installed. By connecting each network card to one of our networks and configuring the network cards so that each one belongs to one subnet/network we can route packets between them: The second network card has been installed and it’s been assigned an IP address that falls within our network 1 range and therefore can communicate with my workstation. On the other hand server now acts as a gateway for network 1, so my workstation is reconfigured to use it as its gateway. Any packets from network 1 to network 2 or the Internet will pass through the server
Another solution is to use a router which you should use only if you have a large network.