Link to home
Start Free TrialLog in
Avatar of collages
collagesFlag for United States of America

asked on

IPv4 Static Route Issue

I currently have a windows 2k8 R2 box with 1 network card and 3 IP addresses assigned to it.  That box has 2 installed roles, RRAS (for NAT) and Hyper-V.  Within hyper-V i've created a virtual switch and all is well within the private network world (192.168.1.x) for communication from the host to the guest machine and from the guest machine to the internet etc...

The problem comes in when I want to route all traffic to a specific external IP address through to the private IP address of let's say 192.168.1.2 which belongs to one of my guest machines.

I set up an IPv4 static route for the external ip address, however, as I use wireshark to sniff ICMP packets on both the host and the guest machines, the packets never make it to the guest machine and the host machine handles the packets as if ignoring the route I've set up.

I assume I'm missing something here, any help would be appreciated.
Avatar of Ernie Beek
Ernie Beek
Flag of Netherlands image

So if I understand correclty you want route incoming traffic to a specific public address to be forwarded to the ip of the guest machine?
Where did you set up the route?
Avatar of collages

ASKER

I tried setting up the route in IPv4 static routes table in RRAS.  No luck.  The ICMP packets never make it past the host machine.
To be sure: that public address you want to forward to the guest is on the host's nic?
Yes

Public NIC -> Virtual Switch -> Virtual Guest NIC
Internet <-> Public NIC on Host Machine (public ip x.x.x.x) <-> Virtual Switch on Host Machine (192.168.x.x) <-> Virtual NIC on Guest
Machine (192.168.x.x)


Traffic originating from the guest machine can have traffic returned to it via the NAT on the host machine no problem of course.  However, a request originating from an external network, e.g. the internet, cannot get to the guest machine.  Thus, the specific external IP that I'm trying to have routed to the guest machine to essentially give that guest machine a public IP.
ASKER CERTIFIED SOLUTION
Avatar of Ernie Beek
Ernie Beek
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial