CentOS 6.4 China Telecom ADSL dial-up Internet Network Configuration

Source: Internet
Author: User

CentOS 6.4 China Telecom ADSL dial-up Internet Network Configuration

Use a USB flash drive to install CentOS 6.4 + Windows 7 dual system (CentOs 6.4 is installed under Windows 7) (for installation, see the connection below). But how can I disable the network with the system? It's so painful!

This article is about the configuration of CentOS 6.4 Telecom ADSL dial-up connection.

Refer to: CentOS 6.4 Telecom broadband connection network configuration

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

------------------------------------------ Split line ------------------------------------------

Free in http://linux.bkjia.com/

The username and password are both www.bkjia.com

The specific download directory is available in/July 6, 6.4,/July 11,/CentOS, China Telecom ADSL dial-up Internet Network Configuration

For the download method, see

------------------------------------------ Split line ------------------------------------------

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 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 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 seconds after which the link shoshould 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 (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 are very basic.
You are stronugly 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 stronugly 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 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.bkjia.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

Install CentOS7.0 on a vmwarevm

64-bit CentOS 6.5 Installation Method

64-bit CentOS 6.4 dual-system installation in Win7

Precautions for installing CentOS and Windows systems

Install Windows 8 and CentOS on UEFI + GPT

Windows 8.1 and CentOS6.5 dual-system installation

Basic Optimization after CentOS 5.6 Linux is installed

Related Article

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.