Hello to all the community,
I have a Hyper-V server for my lab.
On this server, I have only one network card for the Hyper-V virtual switch, and for Internet access.
On my Hyper-V server, I installed a VYOS virtual machine with 4 network cards:
- eth0: No vlan
- eth1: vlan10
- eth2: vlan20
- eth3: vlan30
I have a VM in the three vlan.
eth0 is the source network of my Hyper-V server and the Vyos “eth0” network card.
I installed the system, and run the following commands:
set interfaces ethernet eth0 address dhcp
set interfaces ethernet eth0 description WAN
set service ssh port 22
set ethernet interfaces eth1 address ‘172.16.1.254/24’
set ethernet interfaces eth1 description ‘VLAN10’
set ethernet interfaces eth2 address ‘172.16.2.254/24’
set ethernet interfaces eth2 description ‘VLAN20’
set ethernet interfaces eth3 address ‘172.16.3.254/24’
set ethernet interfaces eth3 description ‘VLAN30’
set nat source rule 101 outbound-interface ‘eth0’
set nat source rule 101 source address ‘172.16.1.0/24’
set nat source rule 101 translation address masquerade
set nat source rule 201 outbound-interface ‘eth0’
set nat source rule 201 source address ‘172.16.2.0/24’
set nat source rule 201 translation address masquerade
set nat source rule 301 outbound-interface ‘eth0’
set nat source rule 301 source address ‘172.16.3.0/24’
set nat source rule 301 translation address masquerade
set service dns forwarding cache-size 0
set dns service forwarding listen-on eth1
set dns service forwarding listen-on eth2
set dns service forwarding listen-on eth3
set service dns forwarding name-server 172.16.15.254
set dns service forwarding name-server 18.104.22.168 (ISP DNS1)
set service dns forwarding 22.214.171.124 (ISP DNS2)
The ping works from Vyos, but does not work from my server, even though it’s the same network. Why… ?
I would like to do RDP from my Hyper-V server to my VMs that are on different VLANs. Can you help me do that?