Hello. I have a question for networking specialists. Because it's about a perhaps typical Hyper-V scenario i posted it here. Here we go:
I have a host with one nic. To this one nic the provider routes two external IPs IP1 and IP2. Hyper-V and Routing and Remote Access is installed on the host. I instantiated one Hyper-V virtual ethernet adapter "vEthernet (External)" with the external IP1 and IP2, external gateway and external DNS-servers and one Hyper-V virtual ethernet adapter "vEthernet (Internal)" with just the internal network gateway-address 192.168.0.1. The installed virtual machine has the fixed ip 192.168.0.10 and default gateway 192.168.0.1. Accessing the internet from the virtual machine is possible. Until now, no traffic is routed to the VM.
What do I need to do, to route all traffic coming in via IP2 over 192.168.0.1 to the vm with 192.168.0.10?
Each time I try to configure NAT, accessing the internet from the vm is not possible any more. Actual routing is:
C:\Users\Administrator>route print
===========================================================================
Interface List
22...00 25 90 47 3a b2 ......Hyper-V Virtual Ethernet Adapter #3
19...00 15 5d c5 99 01 ......Hyper-V Virtual Ethernet Adapter #2
1...........................Software Loopback Interface 1
16...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter
20...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
23...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 [Gateway IP] [IP2] 261
[IP2] 255.255.255.255 On-link [IP2] 261
[IP1] 255.255.255.255 On-link [IP2] 261
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.0.0 255.255.255.0 On-link 192.168.0.1 261
192.168.0.1 255.255.255.255 On-link 192.168.0.1 261
192.168.0.255 255.255.255.255 On-link 192.168.0.1 261
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link [IP2]
261
224.0.0.0 240.0.0.0 On-link 192.168.0.1 261
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link [IP2] 261
255.255.255.255 255.255.255.255 On-link 192.168.0.1 261
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
0.0.0.0 0.0.0.0 85.214.192.1 Default
===========================================================================
Persistent Routes:
None
Greeting Peter