CentOS6 how to set up ADSL Internet

  

First install CentOS6 to install rp-pppoe this software, the previous version of centos is installed in the adsl-setup command, to centos6 changed.

Requires CentOS installation disk in CD-ROM drive

Mounting CD

#mount /dev/cdrom /media

Find file path

# find /media -name 'rp-pppoe*'

This file has no dependencies and can be installed directly

#rpm -ivh /media/CentOS_6.0_Final/Packages/rp -pppoe-3.10-8.el6.i686.rpm


ADSL and DNS information can be set after installation.

#pppoe-setup

Welcome to the PPPoE 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 DSLppp0Please 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: ppp0LOGIN NAMEEnter your Login Name (default root): China Telecom or China Netcom gives you the ADSL username, pay attention to the telecommunications INTERFACEEnter the Ethernet interface connected to the PPPoE modemFor Solaris, this is likely to be something like /dev/hme0.For Linu x, it will be ethX, where 'X' is a number. (default eth0): eth0← Specify network access device, in the case of a network card, generally default eth0Do you want the link to come up on demand, or stay Up continuously?If you want it to come up on demand, enter the idle time in secondsafter which the link should be dropped. If you want the link tostay up permanently, enter 'no' (two letters, lower-case.) NOTE: Demand-activated links do not interact well with dynamic IPaddresses. You may have some problems with demand-activated links. Enter the demand value (default no): ← directly press Enter, accept the default settings, the query is, after the adsl connection Whether to keep the connection. Or automatic disconnection, within the specified time (in seconds). In most cases, we want to manually open and close the connection. So here is the default no. 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' (all lower-case) here.If you just press enter, I will assume you know Enter your DNS setup. Enter the DNS information here: 202.96.209.5 The first DNS is recommended to be set manually, otherwise you may not be able to connect to your IP address of your ISP's secondary DNS server. If you just press enter, I will assume there is only one DNS server. Enter the secondary DNS server address here: 202.96.209.133 The second DNS is recommended to be manually set, otherwise it may not be connected to PASSWORDPlease enter your Password: Enter the ADSL connection password Please re-enter your Password : ← Reconfirm the connection password for entering ADSL USERCTRLPlease enter 'yes' (three letters, lower-case.) if you want to allow normal user to start or stop DSL connection (default yes): yes← User control PPPoE connection FIREWALLINGPlease choose the firewall rules to use. N If 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 denyaccess to all standard servers like Web, e-mail, ftp, etc. If youare using SSH, the rules will block outgoing SSH connections whichallocate 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): 0← Enter 0, do not use the firewall here. this connection at boot timeDo you want to start this con Nection at boot time?Please enter no or yes (default no):yes← Fill in yes, automatically connect ADSL at system startup

Accept these settings and adjust configuration files (y/n)? y← After the information is confirmed, type y to agree to the setting** Summary of what you entered **

Ethernet Interface:eth0

User name:


[ ,null,null,3],Root@localhost ~]# pppoe-start← Start ADSL pppoe connection

[root@localhost ~]# pppoe-status After setting, we take a look at adsl status




Copyright © Windows knowledge All Rights Reserved