1

Update: I have configured NAT as adapter 1 and Host Only as adapter 2. However, ping default gateway (192.168.56.1) returns "Destination Host Unreachable".

Any advice thanks!

I am stuck for 1 week now. Couldn't find any solution. Appreciate your help.

I manually configure to static IP but encounter below errors:

Error Screen: (ping 192.168.56.1)

enter image description here

Default Gateway: (route -n) enter image description here

ifcfg file (ifcfg-enp0s3)

enter image description here

ifcfg file (ifcfg-lo) enter image description here

Adapter Setting: (ifconfig) enter image description here

Network Setting: (less /etc/sysconfig/network)

enter image description here

Oracle VM Box Network Setting

enter image description here

enter image description here

  • In my setup, i have first interface set to NAT and second as host only. This way i have access to internet and can putty into static ip on the VMs too. Try adding it that way if you need to access Internet too – Atul Jun 25 at 13:49
2

You have a host-only adapter, which only allows communication within the subnet it is attached to.

Host only adapters don't have a gateway, so you won't be able to ping it.

If you are looking to communicate with the rest of the internet from that VM, you will need to connect an additional network adapter and choose "NAT" or "Bridged" mode.

Good luck, you're on the right track!

References:

  • Great thanks! yes I am new to Linux. Still long way ahead – tchen003 Jun 25 at 13:05
  • This is really not a Linux problem, but a VirtualBox networking problem. You would have had the same problem with a Windows vm running on a Windows hosted VirtualBox. – Johan Myréen Jun 25 at 15:05

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.