Open your computer and go to Ubuntu7.10 and find that you cannot access the Internet. In fact, I first thought of this problem. I used to use Netcom, and there was a modem, and the system would automatically obtain the IP address. However, I switched to the campus network a few days ago, and the school gave a fixed ip address, which was bound to the NIC physical address (mac address. After a while, I finally solved the problem. The method is as follows: 1. Open the terminal and execute the command: sudogedit/etc/network/interfaces
Open your computer and go to Ubuntu7.10 and find that you cannot access the Internet. In fact, I first thought of this problem. I used to use Netcom, and there was a modem, and the system would automatically obtain the IP address. However, I switched to the campus network a few days ago, and the school gave a fixed ip address, which was bound to the NIC physical address (mac address. After a while, I finally solved the problem. The method is as follows:
1. Open the terminal and execute the command: sudo gedit/etc/network/interfaces
2. comment out the first two lines with "#". You can also delete them, but it is best not to delete them. Then add the following lines of code below: iface eth0 inet static
Address ***. *** (here is your IP address)
Netmask 255.255.255.0
Gateway ***. *** (here is your gateway)
Save the settings.
3. Run sudo gedit/etc/resolv. conf on the terminal.
Change the nameserver to your DNS. If there are two DNS servers, add another one.
4. Run the following command: sudo/etc/init. d/networking restart.
Then everything is done.