Connecting to internet from a differnt subnet

Associate
Joined
8 May 2021
Posts
3
Location
UK
Evening all I'm after some help,
I'm testing connectivity prior to install of devices that all have static IP addresses, problem is to intially setup the device it needs to be able to communicate with its cloud system. I have the software running on a virtual machine and assigned the virtual machine up 192.168.38.181 sn 255.255.255.240 gw 192.168.38.190. These are the setting for when the device is in its final destination. The PC that hosts the VM ip 192.168.38.180.

The PC that hosts the VM I have also added my normal IP address to the physical ethernet port 192.168.1.22 sn 255.255.255.0 gw 192.168.1.1. This is the route out to the internet as well.

I've gone to a totally different device on my network and added the 192.168.38.185....and I can ping the devices etc.

Is there a way I can pass an internet connection / routing / proxy to 192.168.38.xx range? The software has an option to setup proxy server but i wasn't sure if this is the answer?

Anyone can help? It wouId be much appreciated
 
Some more details would help. It's all a bit vague... 'A device', 'cloud system', 'added the 192.168.38.185 (to what?)'... Just repost in plain English, and better yet with a network diagram. If I understood you correctly:

You have a home LAN of 192.168.1.0/24 (I assume /24, but alas). One of the machines (192.168.1.22) hosts a VM on a virtual network of 192.168.38.180/28. You have inter-LAN connectivity from .1.0/24 to the virtual .38, but want the .38 virtual network/machines to be able to reach WAN, presumably via the physical Ethernet at 1.22/24 (the host) and out through your router?

What's the host OS and routing table? What's the VM device, OS and routing table? What virtualisation software? What type of virtual network is it (host-only NAT?). Sounds like your best bet would be to make the virtual network bridged, or if the current LAN setup is mandatory (you say it's replicating the phsyical net at the eventual destination), to set it so that its gateway is the host IP/router IP and just treat them as the first hop on the VM's 'Internet' routing table. You could even go silly and set up a second VM running anything from Linux to OpenBSD to OPNSense as a router, with two virtual adapters - one bridged to your real LAN (and thus WAN), and one acting as 'LAN' server for the VM in question. Instant Internet. Unless I misunderstood you...
 
Back
Top Bottom