I'm running Ubuntu Server in VirtualBox. When I select the internal network option for the network adapter and start up the VM, I only get IPv6 address. I need an IPv4 address as well. My host (running Windows 7) gets has both an IPv4 and IPv6 address listed when I run ipconfig. When I run ifconfig on the guest (running Ubuntu Server), it only lists IPv6. How can I fix this?

link|improve this question

68% accept rate
feedback

1 Answer

Unlike IPv6, IPv4 does not have auto-configuration built-in; most of the time, DHCP is used. Try running dhclient eth0 or dhcpcd eth0 (depending on which Ubuntu comes with).

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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