Hi all.
I have a home Hyper-V lab where the VMs are running on an internal network, so they dont have any external access. To add the external access, Ive added a virtual router using VyOS.
On my actual config, I have the following IPs/Configuration:
Router
WAN connection
Internal IP: 192.168.1.1
DHCP server running here
Management PC
External IP: 192.168.1.102
Hyper-V
External IP: 192.168.1.100
Internal IP: 192.168.10.2
DHCP server for the internal IP
Virtual Router
External IP: 192.168.1.101
Internal IP: 192.168.10.1
NAT running
VMs
Internal IP: 192.168.10.0/24
My idea with this configuration was to allow the management PC to RDP to any of the VMs running on my Hyper-V and for that Ive added a static route for the 192.168.10.0/24 network that points to the 192.168.1.101 IP of the virtual router, but that doesnt work as I have the default route 192.168.1.0/24 pointing to 192.168.1.1 on the physical router.
I was thinking about creating a virtual IP on my management PC on the 192.168.20.0/24 network and add a third NIC to the virtual router on that same network and add then add the static route for the 192.168.10.0/24 network to the 192.168.20.x IP on the virtual router.
Will that work, or do you have a better idea?
Thanks,
Mike
I have a home Hyper-V lab where the VMs are running on an internal network, so they dont have any external access. To add the external access, Ive added a virtual router using VyOS.
On my actual config, I have the following IPs/Configuration:
Router
WAN connection
Internal IP: 192.168.1.1
DHCP server running here
Management PC
External IP: 192.168.1.102
Hyper-V
External IP: 192.168.1.100
Internal IP: 192.168.10.2
DHCP server for the internal IP
Virtual Router
External IP: 192.168.1.101
Internal IP: 192.168.10.1
NAT running
VMs
Internal IP: 192.168.10.0/24
My idea with this configuration was to allow the management PC to RDP to any of the VMs running on my Hyper-V and for that Ive added a static route for the 192.168.10.0/24 network that points to the 192.168.1.101 IP of the virtual router, but that doesnt work as I have the default route 192.168.1.0/24 pointing to 192.168.1.1 on the physical router.
I was thinking about creating a virtual IP on my management PC on the 192.168.20.0/24 network and add a third NIC to the virtual router on that same network and add then add the static route for the 192.168.10.0/24 network to the 192.168.20.x IP on the virtual router.
Will that work, or do you have a better idea?
Thanks,
Mike