I set up an Ubuntu VM with static IP address but it cannot connect to the internet or ping the DNS server ( ifconfig output:

enter image description here

How can I fix this? The network adapters are: 1: NAT 2: Host-only Adapter

  • please accept your answer. – SuB Jan 11 '18 at 5:48

Found out the solution, the router I was connected to used a different format of IP addresses (10.x.x.x), so the static IP I entered was invalid. Changing the IP address to this format solved the problem.

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.