The PPPoE client software must be installed to set the PPPOE broadband connection in Linux. The following describes how to install: This article uses RedHat Linux 6.2 as the experimental platform. For installation methods of Linux on other platforms, refer to the following steps to install 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 GATEWAY = in the/etc/sysconfig/network file and run the following command as root: #/etc/rc. d/init. d/network restart3. the pppd package has been installed. If the file/usr/sbin/pppd exists, pppd has been installed. If not, install the ppp-2.3.11-4.i386.rpm package from the RedHatLinux 6.2 installation CD 2. Install PPPOE client software Linux PPPOE client software is more, and most of the use of GNU License, we recommend using rp-pppoe software package. On the http://www.roaringpenguin.com/pppoe/site, you can download the rp-pppoe Binary Package on the RedHat 62 platform, and download the source code package. 1. binary Package installation:. download the Binary Package http://www.roaringpenguin.com/pppoe/?pppoe-3.2-1.i386.rpmb.to install a rootexecute: # rpm-Uvh rp-pppoe-3.2-1.i386.rpm2. install from source code: installation from source code is also applicable to Linux on other platforms, but the gcc compiler must be installed in Linux. A. download source code package http://www.roaringpenguin.com/pppoe/?pppoe-3.2.tar.gzb.uncompressed unzip tar xvfz rp-pppoe-3.2.tar.gz # cd rp-pppoe-3.2 C. compile and install the running script #. /go will be automatically compiled and installed. Finally, you can call/usr/sbin/adsl-setup for configuration. For details, see 3. 3. After installing the software package, you must configure the PPPOE configuration file/etc/ppp/pppoe. 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 adapter connected to ADSL. When >>> Enter the demand value (default no): Enter no when it appears >>> Enter the DNS settings Ion 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 in/var/log/messages/usr/sbin/adsl-stop close and ISP connection/usr/sbin/adsl-status to view the current connection status in Linux the system automatically starts the ADSL connection at startup, 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. 6. Other Instructions: RedHat Linux 7.1 has integrated the rp-pppoe software package, but the version is a little low. If you don't care about the version, you can directly perform the following three steps.