CentOS 6.4 China Telecom ADSL dial-up connection Configuration

Source: Internet
Author: User

CentOS 6.4 China Telecom ADSL dial-up connection Configuration

1. Download rp-pppoe-3.8.tar.gz

Http://down1.chinaunix.net/distfiles/rp-pppoe-3.8.tar.gz

2. Install rp-pppoe (right-click the folder where the file is located and open it on the terminal)

Unzip the rp-pppoe-3.8.tar.gz:


# Tar-zxf rp-pppoe-3.8.tar.gz


Enter the generated directory:


# Cd rp-pppoe-3.8


Run the script go in the directory:


#./Go


Will be automatically compiled and installed

3. network configuration (red indicates input, and blue indicates annotation)

[Root @ Cheng liaojch3] # pppoe-setup (enter pppoe-setup)



Welcome to the Roaring Penguin PPPoE client setup.
First, I will runsome checks on your system to make sure the PPPoE client is installedproperly...


Looks good!


Now, please enter some information:


USER NAME
>>> Enter your PPPoE user name (default cz743720): cz743720 (Enter the Internet account)

INTERFACE
>>> Enter the Ethernet interface connected to the DSL modem
For Solaris, this is likely to be something like/dev/hme0.
For Linux, it will be ethn, where 'n' is a number.
(Default eth0): eth0 (select your Nic, default value: eth0)


Do 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 shoshould 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 IP
Addresses. You may have some problems with demand-activated links.

>>> Enter the demand value (default no): no (Enter no here or press Enter directly)


DNS

Please enter the IP address of your ISP's primary DNS server.
If your ISP claims that 'the server will provide DNS address', enter 'server' (all lower-case) here.
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.128.86,

Later, I checked my own city's DNS address, which is the preferred DNS address for "other regions" in Guangdong. I suggest Baidu's own DNS address)



Please enter the 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.128.143 (check the backup DNS address as well)



PASSWORD


>>> Please enter your PPPoE password: (enter the password)


>>> Please re-enter your PPPoE password: (enter the password again)



FIREWALLING


Please choose the firewall rules to use.
Note that these rules arevery basic.
You are stronugly encouraged to use a more sophisticatedfirewall setup; however, these will provide basic security.
If youare running any servers on your machine, you must choose 'none' andset 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 responsiblefor ensuring the security of your machine.
You are STRONGLYrecommended 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 Internet gateway
For a LAN

>>> Choose a type of firewall (0-2): 0 (select firewall, 0 indicates that firewall is not enabled)


** Summary of what you entered **
Ethernet
Interface: eth0

User name: cz743720

Activate-on-demand: No

Primary DNS: 202.96.128.86

Secondary DNS: 202.96.128.143

Firewalling: NONE

>>> Accept these settings and adjust configuration files (y/n )? Y (fill in y for confirmation)




Adjusting/etc/ppp/pppoe. conf
Adjusting/etc/resolv. conf (But first backing it up to/etc/resolv. conf-bak)
Adjusting/etc/ppp/pap-secrets and/etc/ppp/chap-secrets (But first backing it up to/etc/ppp/pap-secrets-bak) (But first backing it up to/etc/ppp/chap-secrets-bak)


Congratulations, it shocould be all set up!


Type 'pppoe-start' to bring up your pppoe link and 'pppoe-stop' to bring
It down. Type 'pppoe-status' to see the link status.


[Root @ Cheng liaojch3] # pppoe-start (use pppoe-start for connection)

. Connected! (The connection is successful. You can ping www.mongoud.com to test the connection)

4. Internet command (root permission)

Dial-up Internet access pppoe-start
Disconnect from the Internet pppoe-stop
View pppoe-status

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.