I have a server with an external provider that is running Ubuntu 12.04. The server is having a static IP. I have installed VMware workstation and I am running some virtual machines, one of them is for example a Windows Server 2008.
My host has provided me with a subnet of static IPs and I am trying to setup the virtual machine to have access to the internet. I have it in bridge mode in the settings of VMware.
In the IPV4 settings of the ethernet adapter of windows I am having one of the static IPs that is given to me and I have tried to setup the gateway with the gateway of the server, the static IP of the server and another ip that is mentioned as a gateway to the information of the server.
But the windows machine cannot access the internet.
I suspect there is something with the routing options of Ubuntu that I need to, but I have no idea what.
Can anyone help me with the problem. Please feel free to ask any additional information.
My provider cannot support as they do not recommend to run VMs on their servers.
The ip forwarding was deactivated so I activated it, but the problem still exists. Here is the output of the ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1c:42:e9:a2:7a inet adde:x.x.x.x Bcast:0.0.0.0 Mask:255.255.255.255 inet6 addr: xxxxxx Scope:Global inet6 addr: xxxxxx Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:140463 errors:0 dropped:0 overruns:0 frame:0 TX packets:193209 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:48302672 (48.3 MB) TX bytes:60546508 (60.5 MB) Interrupt:23 Base address:0x8200 eth0:1 Link encap:Ethernet HWaddr 00:1c:42:e9:a2:7a inet adde:y.y.252.240 Bcast:0.0.0.0 Mask:255.255.255.255 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Interrupt:23 Base address:0x8200'
There are more aliases for the rest IPs of the subnet.
The output of route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 x.x.30.1 0.0.0.0 UG 0 0 0 eth0 x.x.252.0 x.x.30.1 255.255.255.0 UG 0 0 0 eth0 x.x.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0 x.x.30.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0