Linux PPPOE client uses commands to start the connection

Source: Internet
Author: User

The Linux PPPOE client uses commands to start the connection. We recommend a very good Linux PPPOE client with great learning value. Here I will mainly explain the application of the Linux PPPOE client, this section describes the Linux PPPOE client knowledge. To use PPPOE authentication in Linux, you must install the Linux PPPOE client software. The following describes how to install the tool: This article uses centos as the experimental platform. For installation methods of Linux on other platforms, refer to the following steps to install the tool from the source code. I. Prerequisites for installation 1. make sure that the NIC is installed and running properly. Run the command # ifconfig eth0 to view the NIC status 2. do not set the default route (GATEWAY) in the system. If you have set the default route after dialing ADSL, use the following method to delete it: delete the GATEWAY = line in the/etc/sysconfig/network/ifconfig-eth0 file and run the following command as root: # service network restart 3. if the pppd package has been installed and the file/usr/sbin/pppd exists, pppd is installed. If not, download and install this software package 2. Install the Linux PPPOE client software, and mostly use GNU License. We recommend using the rp-pppoe software package. On the http://www.roaringpenguin.com/pppoe/site, you can download the rp-pppoe Binary Package under each release package, and download the source code package. We use the yum installation method under centos to install the rp-pppoe package # yum install rp-pppoe 3. After configuring the Linux PPPOE client software to install the package, the Linux pppoe configuration file/etc/ppp/pppoe must be configured. in the configuration file. You do not have to manually modify this file. You can use the adsl-setup tool to configure the file: #/usr/sbin/adsl-setup. When the file appears >>> Enter your PPPoE user name: enter the username of the ADSL account. If you see >>> Enter the Ethernet interface connected to the ADSL modem For Solaris, this is likely to be something like/dev/hme0. For Linux, it will be ethn, where 'n' is a number. (default eth0): Enter eth0, which is the name of the network card connected to ADSL. When >>> Enter the demand value (default no): Enter no when it appears >>> Enter the DNS inf Ormation here: enter the server, which indicates the IP address of the DNS server automatically obtained through ADSL dialing. When >>> Please enter your PPPoE password: enter the password of the ADSL account. When >>> Choose a type of firewall (0-2): enter 0, if you do not use the firewall, >>> Accept these settings and adjust configuration files (y/n )? If the entered information is correct, enter y to complete the configuration. Otherwise, enter n to enter again. 4. start the Linux PPPOE client software and use the command/usr/sbin/adsl-start to start the Linux PPPOE client software for connection. If the connection succeeds, Connected will appear. If the connection fails, check the network cable, adsl modem, and other physical devices, and view the information/usr/sbin/adsl-stop in/var/log/messages to close the connection with the ISP/usr/sbin/adsl-status to view the status of the current connection. the ADSL connection is automatically started when the Linux system is started, enter the following command # chkconfig -- add adsl to add the self-start script of ADSL at the current running level. 5. test if the connection is successful, use the command # ifconfig-a in the output should contain a bunch of information about ppp0, and an IP address is bound to it, indicating that the IP address has been obtained from dialing. Run the command # netstat-nr to view the route table information. The default route should be the IP address obtained above. If there is no default route, we can manually add: # route add default gw the IP address obtained above the command # nslookup www.sina.com.cn if Sina's IP address is resolved, it indicates that the DNS server has been correctly obtained from the dial-up. Finally, ping a domain name or IP address using the command. If a response is received, it means that you have achieved success.

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.