Configure ADSL dial-up Internet access in CentOS

Source: Internet
Author: User

The following describes how to configureADSL networking:

1. Make sure that the NIC is installed and runs properly. Run the following command to check the NIC status:

[Root @ localhost simon] #/sbin/ifconfig eth0

2. Do not set the default route (GATEWAY) in the system to allowIt is automatically obtained after ADSL dial-up.

3. Check whether the pppoe software package is installed.

[Root @ localhost simon] # rpm-qa | grep ppp0e

The installation package is not displayed, indicating that it is not installed. The installation package will be available on the system disk, or you can download an rpm package and install it.

Install the SDK as shown in:



4. After installing the software package, you can start to configure the ppp0e client software. You do not have to manually modify the configuration file. You can use the adsl-setup tool for configuration:

[Root @ localhost simon] # adsl-setup

Welcome to the ADSL client setup. First, I will run some checks on
Your system to make sure the PPPoE client is installed properly...


LOGIN NAME

Enter your Login Name (default root ):*****// (Enter the User Name of the ADSL account. Here is the user name you applied for when going through the bandwidth)

INTERFACE

Enter the Ethernet interface connected to the ADSL 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 ):// (Select the network device and press Enter. The system selects the network device by default)

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): no// (If you want to dial on demand or continue to connect to the network, I will choose no)

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: server// (Select DNS, which indicates thatADSL dialing will automatically obtainEnter the IP address of the DNS server)

PASSWORD

Please enter your Password:// (Enter the password set when applying for an ADSL account)
Please re-enter your Password:
Sorry, the passwords do not match. Try again? (Y/n) y// (If the password does not match, the system prompts you to enter the password again)

PASSWORD

Please enter your Password:// (You must enter the correct password when applying for an ADSL account)
Please re-enter your Password:

USERCTRL

Please enter 'yes' (three letters, lower-case.) if you want to allow
Normal user to start or stop DSL connection (default yes): no// (Whether normal users are allowed to start or close the Service)

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// (Select the firewall rule. I select 0 and do not use the firewall)

Start this connection at boot time

Do you want to start this connection at boot time?
Please enter no or yes (default no): yes// (Ask if you choose to start at random)

** Summary of what you entered **

Ethernet Interface: eth0
User name: adsladmin
Activate-on-demand: No
DNS addresses: Supplied by ISP's server
Firewalling: NONE
User Control: no
Accept these settings and adjust configuration files (y/n )? Y// (Check whether settings are accepted. If the entered information is correct, select y)

Adjusting/etc/sysconfig/network-scripts/ifcfg-ppp0
Adjusting/etc/ppp/chap-secrets and/etc/ppp/pap-secrets
(But first backing it up to/etc/ppp/chap-secrets.bak)
(But first backing it up to/etc/ppp/pap-secrets.bak)


Congratulations, it shocould be all set up!

Type '/sbin/ifup ppp0' to bring up your xDSL link and '/sbin/ifdown ppp0'
To bring it down.
Type '/sbin/adsl-status/etc/sysconfig/network-scripts/TS'
To see the link status.

[Root @ localhost simon] # adsl-start// You don't need to explain it here

It's done. I started surfing the Internet.

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.