This is an article that I am reprinted from the CCIINUX zone on how to properly configure ADSL services in the RADHAT system, introduced to those who learn Linux.
============================================================================================================================================================================================================= ============
This article uses the approach of the installation instance from the angle of the installation example to explain the detailed process of the ADSL dial-up Internet network in the Red Hat, I hope to help friends who encounter this difficult friend. First you should determine if you have a PPPoE application. If it is already already installed, you can start the ADSL configuration at the terminal with the ADSL-SETUP command, and the prompt process is in English. Approximately: [root @ localhost root] # adsl-setupWelcome to the ADSL client setup First, I will run some checks onyour system to make sure the PPPoE client is installed properly ... The following DSL config was found on your system.: Device: Name: ppp0 DSLppp0 Please enter the device if you want to configure the present DSL config (default ppp0) or enter 'n' if you want to create a new one: ppp0 // default ppp0 LOGIN NAMEEnter your Login Name (default SJ00411210A1): anthrax // here with your own user name instead of my anthrax :) INTERFACEEnter the Ethernet interface connected to the ADSL modemFor Solaris, this is likely to be something like /dev/hme0.For Linux, it will be ethX, WHERE 'X' Is A Number. (Default Eth0): Eth0 // Default NIC device Eth0 do you want the link to come up on demad, or stay up continuously? if you want it to come up on demad, enter the idle Time In Seconds After Which The Link Should 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): NO / / The default NO is used here, not automatically dialing after the disconnection. DNSPlease enter the IP address of your ISP's primary DNS server.If your ISP claims that 'the server will provide dynamic DNS addresses', enter 'server' here (all lower-case). If you just press enter, I will assume you know What you are doing and not modify your dns setup. Enter The DNS Information Here: 202.96.134.133 // Main DNS address settings, replaced according to your specific situation.
Please enter the ip address of Your ISP's Secondary DNS Server.if You Just Press Enter, I Will Assume The Secondary DNS Server Address Here: 202.96.134.133 // Second DNS Address Settings. PasswordPlease Enter Your Password: // Set the password here, like UNIX rules, passwords do not look back, so don't think your keyboard out of the problem:) please re-enter your password: // Confirm the password UserCtrlplease Enter 'Yes' Two letters, lower-case.) If you want to allow Normal User to Start or Stop DSL Connection (default yes): YES // Do not allow normal users to share ADSL. . FIREWALLINGPlease choose the firewall rules to use Note that these rules are very basic You are strongly encouraged to use a more sophisticated firewall setup;. However, these 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 ensuring 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 Workstation2 - Masquerade: Appropriate for a Machine Acting as an Internet Gateway for a Lanchoose A Type Of Firewall (0-2): 1 // Configure the firewall level, according to your needs.