I need to connect my Raspberry Pi 3B to two local area networks:
1) First is a closed (secured) network that does not have an internet access (it has a web server that is accessible from that network)
2) Second is a public network with internet access Both networks do not have Wi-Fi so the only way to connect to them is through two ethernet cables.
Now what I want is to have my Raspberry Pi connected to two of these networks, and be able to access the web server from the first LAN and internet from the second LAN.
Since Raspberry Pi 3B has only one ethernet port, the solution that comes to my head to my head is to use a USB-Ethernet adapter to be able to connect to two networks. Provided the adapter is set up and working, will Raspberry be able to distinguish between webserverhost and google.com and know through which network to access each host? Or will I need to do any additional configurations, like for example network routing?