Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 17058  / 3 Years ago, sat, october 2, 2021, 8:03:30

I've the following configuration:



A. Physical machine: Windows 7 64bit with VMWare workstation 8 with a physical network adapter with this ip configuration:



IP 192.168.1.101
Subetnet Mask 255.255.255.0
Gateway 192.168.1.254


and a virtual network adapter (VMNet8) with this configuration:



IP 10.10.0.18
Subnet IP: 10.10.0.0
Subnet mask: 255.255.255.0


B. Virtual machine: Ubuntu 12.04 server (running in VMWare workstation 8) with the following ip configuration (in /etc/network/interfaces):



auto eth0
iface eth0 inet static
address 10.10.0.1
netmask 255.255.255.0
gateway 10.10.0.18


with this routing table (route -n):



Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0 10.10.0.18 0.0.0.0 UG 100 0 0 eth0
10.10.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 10.10.0.18 255.255.255.0 UG 0 0 0 eth0


The problem is that the virtual machine is not accessing the internet nor pinging the physical machine, in particular:



(from the physical machine)




  • internet is accessible

  • ping 10.10.0.18 is working

  • ping 10.10.0.1 is working



(from the virtual machine)




  • internet is not accessible

  • ping 10.10.0.1 is working (it's itself)

  • ping 10.10.0.18 is working

  • ping 192.168.1.101 is NOT working

  • ping 192.168.1.254 is NOT working



I've tried the answer here: Configuring Ubuntu vmware guest NAT but it's not working.



Any suggestion will be greatly appreciated.


More From » networking

 Answers
4

The gateway in your route table is set to the IP address of the host's VMNet8 interface whereas it should be set to the gateway address of the NAT interface. If you run the Virtual Network Editor and look at the NAT settings for the VMnet8 interface, you should find the gateway IP. Try setting the gateway to that address in the virtual machine.



Hope that helps.


[#29621] Saturday, October 2, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
humbire

Total Points: 55
Total Questions: 93
Total Answers: 113

Location: Oman
Member since Fri, Dec 23, 2022
1 Year ago
humbire questions
Thu, May 13, 21, 02:28, 3 Years ago
Sun, Oct 24, 21, 14:23, 3 Years ago
Wed, May 17, 23, 22:16, 1 Year ago
;