so if the router needs to send a packet to 192.168.1.1, it knows that that subnet is on the router's first interface, as an example.
The router may be connected to more than one switch, but it each switch will be on a different router port and VLAN.
so if the router needs to send a packet to 192.168.1.1, it knows that that subnet is on the router's first interface, as an example.
The router may be connected to more than one switch, but it each switch will be on a different router port and VLAN.