If I am not mistaken, gateway should be same on host os and guest os. In my case it is x.x.x.249 and is set on host os and guest os
–
jM2.meJan 14 '12 at 4:56

You can create an virtual network interface using the first static ip in the host os and Use that created virtual interface ip as the gateway in the guest os. It will surely works.
–
MughilJan 14 '12 at 5:03