Establish an ADSL connection with centos

Source: Internet
Author: User
Root @ sample ~] # Adsl-setup configure to establish ADSL connection WelcometotheADSLclientsetup. First, IwillrunsomechecksonyoursystemtomakesurethePPPoEclientisinstalledproperly... LOGINNAMEEnteryourLoginN

Root @ sample ~] # Adsl-setup timeout

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 username of the ADSL connection in "Login ".
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): indicates the network access device of the Eni. the default value is 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
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.
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: Enter the information of the DNS server here. If you do not know, press enter to skip.
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' (two letters, lower-case.) if you want to allow
Normal user to start or stop DSL connection (default yes): no second is set to no. generally, PPPoE connections cannot be controlled.
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
** Summary of what you entered **
Ethernet Interface: eth0
User name:
Activate-on-demand: No
DNS: Do not adjust
Firewalling: NONE
User Control: no
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
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.
Then, start the ADSL connection.

[Root @ sample ~] # Adsl-start transaction start the ADSL connection

[Root @ sample ~] # Wait a moment. if a prompt appears after the startup is successful (if there is no prompt, the connection is successful)
In this case, the "ifconfig" command can be used to view the information of each network interface (IP address, etc ).

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.