Description of ADSL dial-up Internet access in Linux

Source: Internet
Author: User

In LINUX, there are two ways to access the Internet through ADSL dial-up: one is to create a new dial-up connection in the network using the graphic interface provided by the system, similar to Windows) and the other is to use command lines. Next, I will introduce how to configure Internet access in the command line environment.

I. Decompress

# Tar xvfz rp-pppoe-3.2.tar.gz
# Cd rp-pppoe-3.2

2. Compile and install

Run scripts

#./Go

Compile and install the SDK automatically. Finally, call/usr/sbin/adsl-setup for configuration. For details, see section 3.

3. Configure PPPOE client software

After installing the software package, you must configure the pppoe configuration file/etc/ppp/pppoe. conf so that the user name, password, and other parameters in the configuration file can be used during ADSL dialing. We do not need to manually modify this file. You can use the adsl-setup tool for configuration:

#/Usr/sbin/adsl-setup

When

>>> Enter your PPPoE user name:

Enter the username of the ADSL account

When

>>> 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 ethn, where 'n' is a number.
(Default eth0 ):

Enter eth0, which is the name of the network card connected to ADSL.

When

>>> Enter the demand value (default no ):

Enter no

When

>>> Enter the DNS information here:

Enter the server, which indicates the IP address of the DNS server automatically obtained through ADSL dialing.

When

>>> Please enter your PPPoE password:

Enter the password of the ADSL account

When

>>> Choose a type of firewall (0-2 ):

Enter 0, no firewall

When

>>> Accept these settings and adjust configuration files (y/n )?

If the entered information is correct, enter y to complete the configuration. Otherwise, enter n to enter again.

4. Start the PPPOE client software

Run the following command:

#/Usr/sbin/adsl-start

Start the PPPOE client software for connection. If the connection succeeds, Connected will appear. If the connection fails, check the network cable, adsl modem, and other physical devices and view the information in/var/log/messages.

/Usr/sbin/adsl-stop disconnect from ISP
/Usr/sbin/adsl-status to view the current connection status

If you want to automatically start the ADSL connection when Linux is started, enter the following command:

# Chkconfig-add adsl

The self-starting script of ADSL will be added to the current running level.

V. Test

After the connection is successful, run the following command:

# Ifconfig-

The output should contain a bunch of information about ppp0, and an IP address is bound to it, indicating that the IP address has been obtained from dialing.

Use commands

# Netstat-nr

View the route table information. The default route is the IP address obtained above. If there is no default route, we can manually add:

# Route add default gw the IP address obtained above

Use commands

# Nslookup www.sina.com.cn if the IP address of Sina is resolved, it indicates that the DNS server has been correctly obtained from dialing. Finally, run the command to ping a domain name or IP address. If a response is returned, it means you have done it.

Related Articles]

  • Describes in detail how to access the Internet through ADSL in Linux.
  • Use of ADSL dialing and dynamic domain names in Debian Linux
  • Install ADSL in SuSe Linux

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.