The existing releases of Ubuntu Linux do not provide the graphical interface of the ADSL pppoe dial-up tool, which undoubtedly brings some difficulties for new users. However, through the introduction in this article, you will find that it is really convenient to set up ADSL by using text commands, as long as you follow the following steps to complete the coffee to access the Internet!
1. First open your terminal and type the following command: sudo pppoeconf
If it is not executed by the root user, enter the administrator password;
2. The system will list the network device interfaces you can use. If there is no problem, you can answer "yes", or if you want to manually set the network card, press "no 』
Then the system starts to check your ADSL device (CAT, IP address sharer, and so on) and selects "yes 』
3. Enter the Internet account that the ISP gives you (such as: xxx@xxx.xxx), then enter the password;
4. Then, the system automatically adds the dns ip address to the file/etc/resolv. conf ;;
Note:If you cannot automatically obtain the dns ip address after selecting "yes", you can run the following command to add the IP address from the line:
Sudo gedit/etc/resolv. conf
Enter the following code in the pop-up Text Editor:
Nameserver XXX. XXX
XXX. XXX is the dns ip address. If you are not clear, you can call your network provider to ask about the dns ip address.
5. In this step, MTU is generally set to 1500. However, due to the relationship between headers at various levels of the communication protocol, the actual packet size is only 1452. Therefore, you must answer "yes 』.
6. In the last step, will the network be automatically connected when the computer enters the system? Follow you
Congratulations ~ You have learned how to access the Internet. In addition, you will find that basically all the settings are the default value "yes". Unless you have special considerations, do not try other options.
Appendix ---- several commands:
To learn about the PPP device, type the command ifconfig ppp0
Want to know the current pppoe status available plog
You can use sudo Pon DSL-provider to access the Internet through manual ADSL dial-up.
To manually disconnect ADSL, you can use sudo poff