ADSL (RP-PPPoE Tool) Installation, Usage (this article is based on Linuxcn's original articles) )
"Configuring NIC"
First run NetConfig and select DHCP, save, and exit.
"Install RP-PPPoe"
Then download the latest RP-PPPoE source file (search in Google) and install it under root, Magic Linux is already installed.
For example: Enter Linux, unzip RP-PPPOE-3.5.tar.gz:
#TAR -ZXF RP-PPPOE-3.5.TAR.GZ
Enter the generated directory:
#CD RP-PPPOE-3.5
Run the script GO within the directory:
#. / go
Compile and install automatically.
"Configuring Dial"
Call / usr / sbin / ADSL-SETUP for configuration
# 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
Appear
>>> Enter The demand value (Default NO):
Enter no
Appear
>>> Enter the DNS Information Here:
Enter the corresponding DNS server IP address (generally 2), usually need to enter Server under Magic Linux, that is, automatically assign the IP address.
Appear
>>> please enter your pppoe password:
Enter your password for your ADSL account
Appear
>>> Choose a Type of FireWall (0-2):
Enter 0 or 1
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.
"online"
Use the command after completion:
ADSL-START launches PPPoE client software, connect, if successful, will appear
CONNECTED;
ADSL-STOP disconnected and ISP connection
ADSL-Status View the status of current connection
"Skill Tips"
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
If you don't want to run automatically, you will be able to run ADSL-STAR at the terminal every time you go online!
If you don't know the IP address of the corresponding DNS server, you can dial in Windows, running ipconfig / all to view the IP address of DNS Server in the MS-DOS window (generally two). If there is no Windows on this unit, you can operate on other WINDOWS in the local domain. E.g:
I:> ipconfig / all
Windows 2000 IP Configuration
Host Name..............: Star
............:
............: Broadcast
IP routing enabled..........: No
Wins proxy enabled........: No
Ethernet Adapter Local connection:
Connection-Specific DNS SUFFIX.:
.................: Realtek RTL8139 (a) PCI Fast Etherne
Adapter
............................................................
.............: YES
AutoConfiguration enabled.....: YES
AutoConfiguration IP address. .: 169.222.23.123
................: 255.255.0.0
................
.............:
PPP Adapter Connection Equipment Realtek RTL8139 (a) PCI Fast Ethernet Adapter:
Connection-Specific DNS SUFFIX.:
....................: WAN (PPP / SLIP) Interface
..............: 00-53-45-00-00-00
DHCP enabled............: No
...................: 221.206.209.250
Subnet mask........................
..........................................: 221.206.209.250
............................................, 0000-00
202.106.87.65
NetBIOS over tcpip............: Disabled
As can be seen:
............................................, 0000-00
202.106.87.65 '