Using ADSL under Linux

xiaoxiao2021-03-06  79

Article title Using ADSL under Linux --- Cheng Ji Poster: admin (Enthusiast) Post Date 04/06/02 02:12 AM Original article was posted on 2001.8.24 by Cheng Jie [Member] Beijing Telecom's ADSL use is PPPoE dialing method, so, use ADSL under Linux, you must install PPPoE

Client software. Here's how to install:

This article uses Redhat Linux 6.2 as an experimental platform, and other platform Linux installation methods can refer to the source code from source code.

Steps for installation.

First, the prerequisite for installation

1. Make sure the NIC is installed and normal work

Use command

#ifconfig eth0

View the network status

2. Do not set the default route (gateway) in the system, let ADSL dialing automatically

If the default route has been set, use the following method to delete:

Remove the Gateway = this line in the file / etc / sysconfig / network, then execute with root:

# / etc / rc.d / init.d / network restart

3. PPPD package has been installed

If there is file / usr / sbin / pppd, a PPPD has been installed;

If not installed, install the PPP-2.3.11-4.i386.rpm package from Redhatlinux 6.2 installation CD

Second, install the PPPoE client software

PPPoe client software under Linux is more, and most of the GNU License, we recommend RP-PPPoE

This package is available. From http://www.roaringpenguin.com/pppoe/, not only can plant not only

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

Target = "_blank"> http://www.roaringpenguin.com/pppoe/rp-pppoe-3.2-1.i386.rpm

B. Install

Execute under root:

#rpm -UVH rp-pppoe-3.2-1.i386.rpm

2. Install from the source code:

Installing from the source code is also suitable for Linux in other platforms, but must install the GCC compiler in the Linux system.

A. Lower source code package

Target = "_blank"> 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. Compile and install

Run the script

#. / go

The compilation and installation will be automatically compiled, finally, the / usr / sbin / ADSL-SETUP will be configured, and see three in the case.

Third, configure the PPPoE client software

After installing the package, you must configure PPPoE profile /etc/ppp/pppoE.conf to make ADSL dial

Use the usernames, passwords such as the configuration file. We don't have to manually change this file, you can use

ADSL-SETUP This tool is configured:

# / usr / sbin / adsl-setup

Appear

>>> Enter Your PPPoe User Name:

Enter the username of the ADSL account

Appear

>>> 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 the name of the NIC connected to the ADSL

>>> Enter the demand value (Default NO):

Enter no

Appear

>>> Enter the DNS Information Here:

Enter the server, which means the DNS server IP address that uses ADSL dial-up.

Appear

>>> please enter your pppoe password:

Enter the password of the ADSL account

Appear

>>> Choose a Type of FireWall (0-2):

Enter 0, do not use firewall

Appear

>>> ACCEPT THESE SETTINGS AND Adjust Configuration Files (Y / N)?

If the information entered correctly, enter Y, complete the configuration, otherwise, enter N re-entered.

Fourth, start the PPPoE client software

Use command

/ usr / sbin / adsl-start starts PPPoE client software, connect, if successful, will appear

CONNECTED;

If you are not successful, please check the network cable, ADSL MODEM and other physical devices, and view the letter in / var / log / messages.

interest

/ USR / SBIN / ADSL-STOP close and ISP connection

/ usr / sbin / adsl-status View the status of current connection

If you want to automatically start an ADSL connection while the Linux system is started, enter the following command

#CHKCONFIG --Add ADSL

Join the Self-started script of ADSL under the current run level

V. Test

Use the command when the connection is successful

#ifconfig -a

In the output, a bunch of information about PPP0 should be included, which is also bound to the IP address, which has been obtained from dialing.

I have IP address.

Use command

#NETSTAT -NR

Check the route table information, the default route at this time should be the IP address obtained above.

If there is no default route, we can add:

#Route Add Default GW The IP Address

Use 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.

6. Other instructions

Redhat Linux 7.1 has been integrated with RP-PPPoe, but the version is slightly low, if you are not in my own

At the low, the three steps can be performed directly.

Technology business expansion

2001.8.15

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

New Post(0)