ADSL configuration in centos

Source: Internet
Author: User
To use pppoe authentication in Linux, you must install the 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 II. Install pppoe client software in Linux. There are many pppoe client software, and most of them 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 the pppoe client software is installed, the 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 in Formation 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 pppoe client software and use the command/usr/sbin/ADSL-start to start the 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.
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.