Centos6.5 broadband dial-up Internet access

Source: Internet
Author: User
The rp-pppoe software will be installed in CentOS6 and earlier centos versions will be the adsl-setup command. (1) check whether or not to install # rpm-qa | gregp-pppoe is not installed if there is no content output. if it can be used online # yuminstallrp-pppoe cannot be connected to the Internet, then: the CentOS installation disk is attached to the optical drive attached disc.

The rp-pppoe software will be installed in CentOS6 and earlier centos versions will be the adsl-setup command.

(1) Check for installation

# Rpm-qa | grep rp-pppoe

If no content output is available, it is not installed. if you can use it online, # yum install rp-pppoe

If the network cannot be connected, place the CentOS installation disk into the optical drive.

 

Attach a CD

# Mount/dev/cdrom/media

Find the file path

# Find/media-name 'RP-pppoe *'

This file has no dependencies and can be directly installed.

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

(2) set dialing

# Whereis pppoe-setup

#/Sbin/pppoe-setup

Or # pppoe-setup

 

Start configuring ADSL and DNS information:

 

Welcome to the PPPoE client setup. First, I will run some checks on
Your 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

LOGIN NAME

Enter your Login Name (default root): the ADSL user Name that China Telecom or China Netcom gives you. Note that China Telecom gives ad headers.

INTERFACE

Enter the Ethernet interface connected to the PPPoE modem
For Solaris, this is likely to be something like/dev/hme0.
For Linux, it will be ethX, where 'X' is a number.
(Default eth0): eth0 Eni specifies the network access device. when a network card is used, the default eth0 is usually used.

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
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): Press Enter directly to accept the default settings. ask if the connection is continuously maintained after the adsl connection. Or automatic disconnection within the specified time (in seconds. In most cases, we want to manually open and close the connection. So select the default no here.

DNS

Please enter the IP address of your ISP's primary DNS server.
If your ISP claims that 'the server will provide dynamic 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.209.5 the first DNS is recommended to be set manually, otherwise it may not be connected (or Enter the DNS information here: server // PPPOE dial-up input server, dynamically obtain DNS)
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.209.20.the second DNS is recommended to be set manually. Otherwise, the server may not be connected.

PASSWORD

Please enter your Password: enter the ADSL connection Password
Please re-enter your Password: confirm again enter the ADSL connection Password

USERCTRL

Please enter 'yes' (three letters, lower-case.) if you want to allow
Normal user to start or stop DSL connection (default yes): yes fill in no, general users are not allowed to control the PPPoE connection

FIREWALLING

Please 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 workstation
2-MASQUERADE: Appropriate for a machine acting as an Internet gateway
For a LAN
Choose a type of firewall (0-2): 0 worker input 0. firewall is not used here

Start this connection at boot time

Do you want to start this connection at boot time?
Please enter no or yes (default no): yes fill in yes, automatically connect to ADSL at system startup
 

Accept these settings and adjust configuration files (y/n )? After confirming that the configuration information of y branch is correct, type y agree to set
** Summary of what you entered **

Ethernet Interface: eth0

User name:


[Root @ localhost ~] # Pppoe-start connector start the ADSL pppoe connection (or # ifup ppp0 // start the ppp0 interface)

[Root @ localhost ~] # Check the adsl status after setting 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.