This method may not apply to all situations. I have installed Ubuntu10.10 on VMware. The network connection adopts the NAT method and the Internet access has been okay. After kernel restart was upgraded yesterday, I suddenly couldn't access the internet. I searched for some information. After each restart, I entered sudodhclient to obtain the ip address again, but in this case, I had to manually enter sudodhclient after each restart, you can configure the network as dhcp to dynamically obtain the ip address. The specific method is as follows:
This method may not apply to all situations. I have installed Ubuntu 10.10 On VMware. The network connection adopts the NAT method and the Internet access has been okay.
After kernel restart was upgraded yesterday, I suddenly failed to access the Internet. I searched for some information. After each restart, I entered sudo dhclient and re-obtained the ip address to access the Internet, in this case, you need to manually enter sudo dhclient after each system restart, and then find the corresponding setting method. You can configure the network to dynamically obtain ip addresses for dhcp. The specific method is as follows:
Modify the/etc/network/interfaces file as follows:
# The loopback network interface
Auto lo
Iface lo inet loopback
# The primary network interface
Auto eth0
Iface eth0 inet dhcp
Restart the system after modification. To avoid errors, back up the interface file before modification.