Using ADSL under Linux

xiaoxiao2021-03-06  14

Using ADSL under Linux

Telecom's ADSL uses PPPoE dialing, so you must use ADSL under Linux, you must install PPPoE client software. The following explains how to install: This article is based on Redhat Linux 6.2 as an experimental platform, and the Linux installation method of other platforms can refer to the step of installing from the source code.

First, the prerequisite for installation 1. Make sure the NIC is installed and working properly: #ifconfig eth0 View the NIC status. 2. Do not set the default route (gateway) in the system, let ADSL dials are automatically obtained. If the default route has been set, remove the following method: Delete the Gateway = this line in the file / etc / sysconfig / network, then execute with root: # / etc / rc.d / init.d / network restart 3. Already installed PPPD package. If there is file / usr / sbin / pppd, the PPPD has been installed; if not installed, install the PPP-2.3.11-4.i386.rpm on the Redhatlinux 6.2 installation CD.

Second, installing the PPPoE client software under the PPPoE client software, and most of the GNU License, we recommend using the RP-PPPoe package. From http://www.roaringpenguin.com/pppoe/, you can not only be planted. The binary package of RP-PPPoE under the Redhat 62 platform, and can be planted in the source code package.

1. Installation of binary packages:

A. Add binary package http://www.roaringpenguin.com/pppoe/rp-pppoe-3.2-1.i386.rpm

B. Make installation with root execution: #RPM -UVH RP-PPPOE-3.2-1.i386.rpm

2. Install from the source code: Install from the source code is also suitable for Linux in other platforms, but must install the GCC compiler in the Linux system. A. Lower planting source code package http://www.roaringpenguin.com/pppoe/rp-pppoe-3.2.tar.gz

B. Unzip #TAR XVFZ RP-PPPOE-3.2.TAR.GZ #CD RP-PPPOE-3.2

C. Confreading and installing running script #. / GO will automatically compile and install, finally, call / usr / sbin / adsl-setup for configuration, see three.

Third, after configuring the PPPoE client software After installing the package, you must configure the PPPoE profile /etc/ppp/pppoE.conf to make the username, password, etc. in the configuration file when the ADSL dial is allowed. We don't have to manually change this file, you can use the ADSL-SETUP tool to configure: # / usr / sbin / adsl-setup When the appearance >>> Enter Your PPPoE User Name: Enter the user name of the ADSL account appears >>> Enter The Ethernet Interface Connected to the ADSL MODEM for Solaris, this Is Likey to Be Something Like / dev / hme0. For Linux, IT Will Be Ethn, WHERE 'N' IS A Number. (Default Eth0): Enter eth0, this is connected to ADSL Net card name. When the appearance >>> Enter: Enter no when the appearance >>> Enter the DNS Information Here: Enter the Server, this means that the DNS server IP address that is automatically obtained using the ADSL dial-up is >>> please enter your PPPOE Password: Enter the password of the ADSL account When you appear >>> Choose a type of firewall (0-2): Enter 0 The information is correct, enter y, complete the configuration, otherwise, enter N re-enter. Fourth, start the PPPoE client software Use the command: / usr / sbin / adsl-start launch PPPoE client software, connect, if successful, will appear; if it is not successful, please check the network cable, ADSL MODEM and other physical devices, and view Information / USR / SBIN / ADSL-STOP Off and ISP Connection / USR / SBIN / ADSL-STATUS View the status of the current connection If you want to automatically start the ADSL connection while the Linux system is started, enter the following command #CHKCONFIG --ADD ADSL will join the Self-started script of ADSL under the current run level.

5. Test When the connection is successful, use the command: #ifconfig -a should contain a bunch of information about PPP0 in the output, which is also bound to the IP address from the dial. Use the command #NetStat -nr to view routing table information, the default route should be the IP address obtained above. If there is no default route, we can manually increase: #ROUTE Add Default GW The IP address acquired above Use the command #nslookup www.sina.com.cn

If the IP of Sina is parsed, the DNS server has been properly obtained from the dial. Finally, use the command ping a domain name or IP, if there is a response, indicating that you have already gone.

Sixth, other description Redhat Linux 7.1 has integrated RP-PPPoe package, only the version is slightly low, if you don't have a high version, you can directly carry out the three steps.

转载请注明原文地址:https://www.9cbs.com/read-50342.html

New Post(0)