Ubuntu 12.04 recovery mode root shell has no internet connection

Solution 1:

Plug it in to the router with an Ethernet cable and run the dhclient eth0 command.