0

I am running vmware on my centos 7 server, this server connect to a LAN without internet access, I installed a windows 7 with vmware, in the guest windows 7 I have connected to a WIFI with internet access, then how can I make the host centos can access LAN and internet at the same time?

Currently I have done these steps:

  1. make the WIFI connection on guest can be shared.
  2. configure the to-host connection with static IP 192.168.137.1
  3. set guest to host virtual network to host-only
  4. configure VMNet1(the host-only one) on host with static IP 192.168.137.2, 192.168.137.1 as the getway and first DNS.

I can ping each other (ping 192.168.137.1 on host and ping 192.168.137.2 on guest) now, but can't access internet on host.

please help me.

  • Could you explain a bit more about your setup? I think you want to change your network adapter setting to NAT and use DHCP instead of setting a static IP. Is a static IP a requirement? Is this the setup: Centos7 running VMWare (vmware what?) You also setup a Windows7 VM in vmware, now we're two levels deep of virtualization? In Windows 7 you have connected to wifi and now you want your Centos7 host to share that internet. It seems a bit backwards if that is what you're doing. Am I close? Why can't the Centos7 server have Internet and then inherit on down to VMWare and Windows 7? – calorie712 Apr 21 '17 at 5:00
  • Is there a reason why you can't give the server internet access directly and make the VM use NAT instead? If you must make the host share the guest's network, then you probably would need to set up the guest as a proxy server. – jamesdlin Apr 23 '17 at 16:42
  • hi, the host server is in a LAN for development work only, our security policy does not allow accessing internet from that LAN, I had found the solution, I need to add some routine rules for the LAN network on host. – WestFarmer Apr 24 '17 at 3:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.