A router is a networking device that connects two or more computer networks. It can also be used to create separate networks within a single physical network. This can be useful for a variety of reasons, such as isolating guest networks from the main network or creating a separate network for gaming.
There are a few different ways to create two networks on a router. One way is to use a virtual LAN (VLAN). A VLAN is a logical network that is created within a physical network. This allows you to create multiple networks on a single physical network, each with its own set of rules and permissions.