Download rp-pppoe
http://www.roaringpenguin.com/penguin/open_source_rp-pppoe.php
Setting and use of ADSL Coulftion Procedure RP-PPPoE in RedHat
Why / want to use rp-pppoe, sometimes the RP-PPPoE's package appears in the redhat release, so we need to download it yourself to install RP-PPPoe.
This software also applies to other releases
In Redhat, we can use the following commands to formulate the IP and DNS, etc. of the NIC.
# redHat-config-network
Set the IP and DNS as follows.
IP address: 192.168.0.1
Mask:
255.255.255.0
DNS
202.96.134.133
202.96.168.68
Don't set a gateway
Then we set up RP-PPPOE
http://www.roaringpenguin.com/pppoe/rp-pppoe-3.5.tar.gz
Remove the old version of RP-PPPoE, if any words:
#rpm -e rp-pppoe
Unzip and install:
#TAR ZXVF RP-PPPOE-3.5.TAR.GZ
Enter the unzip directory
#SH. /GO
Then set up ADSL. This place, we want to use the command.
# ADSL-SETUP
Welcome to the Roaring Penguin Adsl Client Setup. First, I Will Run
Some Checks on Your System To Make Sure The PPPOE Client Is Installed
Properly ...
Looks Good! Now, please Enter Some INFORMATION:
User name
>>> Enter Your PPPoE User Name (Default XXX): Enter ADSL's username here
Interface
>>> 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): If a network card is set to write Eth0
Do you want the link to com up on demad, or stay up continuously?
If you want it to come up on demand, Enter the iDle time in seconds
After Which the link shop be dropped. if you want the link to
Stay Up Permanently, ENTER / 'NO /' (Two letters, Lower-case.)
Note: Demand-Activated Links Do Not Interact Well with Dynamic IP
Addresses. You May Have Some Problems with demand-activated links.
>>> Enter the demand value (default no): Don't write /
DNS
Please Enter The IP Address of Your ISP / 'S Primary DNS Server.
If Your ISP CLAIMS That / 'The Server Will Provide DNS Addresses /', Enter / 'Server /' (All Lower-Case) Here.
If you just press, i will associum you know what you are?
Doing and not modify your dns setup.
>>> Enter the DNS Information Here: Write on 202.96.134.133
The next DNS is 202.96.168.68
Password
>>> please enter your pppoe password: Enter a password
>>> PLEASE RE-ENTER YOUR PPPOE Password: Enter again
FireWalling
Please Choose The FireWall Rules To Use. Note That Sse Rules Are
Very Basic. You are strongly encouraged to use a more songhistated
FireWall Setup; However, Thase Will Provide Basic Security. if you
Are Running Any Servers on Your Machine, You Must Choose / 'None /' and
Set up firewalling yourself. Otherwise, The FireWall Rules Will Deny
Access to All Standard Servers Like Web, E-mail, FTP, etc. if you
Are Using SSH, The Rules Will Block Outgoing SSH Connections Which
Allocate a privileged source port.
The FireWall Choices Are:
0 - None: This Script Will Not set Any Firewall Rules. You are responsible
For Enssuring the security of your machine. You are strongly
Recommended to Use Some Kind of FireWall Rules.
1 - Standalone: Appropriate for a Basic Stand-Alone Web-Surfing Workstation
2 - Masquerade: Appropriate for a Machine Acting as an in Internet Gateway
For a lan
>>> Choose a type of firewall (0-2): This is added to 2
** Summary of what you entered **
Ethernet Interface: Eth0
User name: xxx
Activate-on-demand: no
DNS: Do Not Adjust
FireWalling: Masquerade
>>> ACCEPT THESE SETTINGS AND Adjust Configuration Files (Y / N)?
After finishing, press a Y key.
Start ADSL with ADSL-START. If you are not successful / restart your computer.
ADSL-related commands:
# ADSL-START Trick ADSL
# ADSL-STOP stop
# ADSL-STATUS status