CentOS ADSL Dial-up Internet settings

Source: Internet
Author: User

Here's a look at how to configure the ADSL network in the CentOS command line environment:

1, to ensure that the network card installed and normal operation, use the command to check the status of the network card: [[email protected] simon]#/sbin/ifconfig eth02, do not set the default route (Gateway) in the system, so that ADSL dial-up automatically obtained. 3. Check if the PPPoE package is installed. [[email protected] simon]# Rpm-qa|grep ppp0e not shown, instructions are not installed, the system CD will have this installation package, or to download a RPM package, install it OK. Install as shown:4, after installing the package, you can start to configure the ppp0e client software, we do not have to manually change the configuration file, you can use the Adsl-setup this tool to configure: [[email protected] simon]# Adsl-setupwelcome to the ADSL client setup.  first, I'll run some checks onyour system to make sure the PPPoE clien T is installed properly ... Login NameEnter your login name (default root): *****      //(Enter the user name of the ADSL account, Here is the user name you applied for when you went to the broadband application. Interfaceenter the Ethernet interface connected to the ADSL modemfor Solaris, this is the likely-be someth ing LIKE/DEV/HME0. For Linux, it'll be EthX, where ' X ' is a number. (default eth0):     //(select Network device, hit enter, the system will be selected by default) do you want the link to come up in demand, or stay up Contin Uously? If you want it to come up on demand, enter the idle time in Secondsafter which the link should is dropped.  If you WA NT the link Tostay up permanently, enter ' no ' (both letters, lower-case.) Note:demand-activated links do not interact the well with the dynamic ipaddresses.  you are some problems with demand-a ctivated Links. Enter the demand value (default NO): no    //(ask if you want to dial on demand or continue to connect to the network, I choose No) dnsplease enter the IP address of your ISP ' s primary DNS server. If your ISP claims that ' the server would provide dynamic DNS addresses ', enter ' server ' (all lower-case) here. If you just press ENTER, I'll assume you know what's aredoing and not modify your DNS setup. Enter the DNS Information here:server  //(select DNS, which means that using  ADSL dial will automatically get the  DNS  server IP address, automatically get on the input Server bar) Passwordplease Enter your password:     //(enter the password you set when applying for   ADSL account) Please re-enter Your password: sorry, the passwords do not match.  Try again? (y/n) y   //(I have password input mismatch, prompt re-enter) Passwordplease Enter your password:     // (Enter the password that you set when applying for   ADSL account, be sure to enter the correct yo) re-enter your password: userctrlplease enter ' Yes ' (three letters, lower-case.) If you want to allownormal user to start or stop DSL connection (default Yes): No    //(allow normal user to start, close) Firewallingplease Choose the firewall rules to use.  Note that these rules Arev Ery basic.  You is strongly encouraged to use a more sophisticatedfirewall setup; However, these would provide basic security.  If Youare running any servers on your machine, you must choose ' NONE ' an Dset up firewalling yourself.  Otherwise, the firewall rules would denyaccess to all standard servers like Web, e-mail , FTP, etc.  If youare using SSH, the rules would block outgoing SSH connections whichallocate a privileged source por t.the firewall Choices are:0-none:this script would not set any firewall rules.  is responsiblefor ensuring th E Security of your machine.  you is stronglyrecommended to use some kind of firewall Rules.1-standalone:appropria Te for a basic stand-alone web-surfing workstation2-masquerade:appropriate for a machine acting as an Internet GATEWAYF Or a lanchoose a type of firewall (0-2): 0   //(Choose the firewall rule, I choose 0, do not use the firewall) Start this connection at the boot Timedo you want to Start this connection at boot time? Please enter no or Yes (default NO): yes    //(ask if you choose to start randomly) * * Summary of what you entered **ethernet in Terface:eth0user name:          Adsladminactivate-on-demand:nodns addresses:      supplied by ISP ' s serverfirewalling:         Noneuser control:       noaccept These settings and adjust configuration files (y/n )? y   //(Confirm whether to accept the settings, if the information entered correctly, of course, Y is selected) adjusting/etc/sysconfig/network-scripts/ifcfg-ppp0adjusting/ Etc/ppp/chap-secrets And/etc/ppp/pap-secrets (but first backing it up To/etc/ppp/chap-secrets.bak) (but first backing it u P To/etc/ppp/pap-secrets.bak) Congratulations, it should is all set up! Type '/sbin/ifup ppp0 ' to bring-your xDSL link and '/sbin/ifdown ppp0 ' to bring it down. Type '/sbin/aDsl-status/etc/sysconfig/network-scripts/ifcfg-ppp0 ' to see the link status.  [[email protected] simon]# adsl-start  //There's no need to explain it.

CentOS ADSL Dial-up Internet settings

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.