Solutions to ubantu's inability to access the Internet

Source: Internet
Author: User
Ubantu cannot access the internet. Solution: network configuration: first, if it is the first time that the network can be accessed, it will not be able to be accessed after being disconnected. you just need to restart the network, there are no other major problems. Don't worry, because I have encountered this problem: Command: sudoservicen... ubantu cannot access the internet. Solution: network configuration: first, if it is the first time that the network can be accessed, it will not be able to be accessed after being disconnected. you just need to restart the network, there are no other major problems. Don't worry, because I have encountered this problem: sudo service network-manager restart broadband user: open the terminal (default hot key Ctrl + Alt + T) enter sudo pppoeconf and set all the settings below the account and password. remember to set IPV6 to ignore. ignore this !!!! Method 1: If you use a vro to connect to the Internet, the default Ubuntu can automatically obtain the IP address, you can directly access the Internet without other settings; Method 2. if you need to configure a static IP address, click "system"> "preferences"> "network connection". in the displayed window, select "wired"> "Auto etho" and click "edit, A new window is displayed, "Editing Auto etho", check "automatic connection", select "manual" in "IPv4 settings"-> "method", and click "add, in the text box in the middle, enter your "IP address, subnet mask, Gateway address, DNS server" parameter and click "application ". Method 3: If you must use ADSL for dial-up Internet access, click "system"> "preferences"> "network connection". in the displayed window, select "DSL ", click "Add". a new window is displayed, "edit DSL connection 1". in the DSL text box, enter the "user name, service, and password" of your dial-up Internet access ", select "available to all users" at the bottom and click "application ". Now you can open the FireFox browser to test whether the webpage can be opened. Method 4: If you cannot use the GUI desktop, press Ctrl Alt F1 to enter the character terminal, log on, and run the following command to edit the network configuration file code: sudo vim. tiny/etc/network/interfaces press the up/down key to move the cursor to the bottom line and press "I" to switch to the editing status. if you want to use the IP address dynamically allocated by the router, enter the code: auto eth0 iface eth0 inet dhcp if you set a static IP address, enter the code: auto eth0 iface eth0 inet static address 192.168.1.3 gateway 192.168.1.1 netmask 255.255.255.0 # network 192.168.1.0 # broadcast 192.168.1.255 then press Esc to create the transfer command status, and press ": wq" to save and exit. If the input is incorrect, press ": q !" Do not save and exit. Run the following command to edit the DNS configuration file: sudo vim. tiny/etc/resolv. in conf, press the up/down key to move the cursor to the bottom line, press "I" to switch to the editing status, enter your DNS address, for example, nameserver 211.97.64.129, press Esc to switch to the command status, and press ": wq "save and exit. If the input is incorrect, press ": q !" Do not save and exit. Finally, run the command to make the network settings take effect immediately. Code: sudo/etc/init. d/networking restart can be used to test the network connection under the character Terminal. run the command code: open the terminal (default hot key: Ctrl + Alt + T) enter sudo pppoeconf, and ping your account and password. Now you should be able to play proudly in the Internet world .....
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.