Linux Down Dial Internet __linux

Source: Internet
Author: User
Tags system log

recently, the home installed a Linux, because the router does not dial function. So you need to build your own connection. Using a PPPoE here is also very easy to use.

1. ADSL Introduction

Although networking with routers is common, we sometimes need to use PPPoE directly to connect to ADSL (sometimes called DSL) modem.

Of course, first of all you have to pay a good money to netcom or telecommunications network operators, the line to connect well. Modem on the "DSL" light, generally indicates that your line is smooth.

You need to have the username and password for your account. The modem and Ethernet card also have to connect with the appropriate network cable.

2. Configure PPPoE with the command line

Set modem to use Terminal. Open with the following menu: Applications > Accessories > Terminals.

The package used to configure is called PPPoE. This package is installed by default, but there are times when configuration changes may not be available in the system. If the following command does not work, you will have to install the package (see PPPoE Package Installation section).

In the terminal, type:

$sudo pppoeconf

A text-mode selector will guide you through the following steps:

Confirm the detected Ethernet card.

Enter the user name.

Enter a password.

If you already have a PPPoE connection, ask if you want to modify it.

Common option: Use the ' noauth ' and ' defaultroute ' option to remove ' Nodetach ' at the same time-choose Yes.

DNS-Select "Yes".

MSS-Select "Yes".

Ask if you want to start the connection at boot time, most of the time to choose "Yes". But if your network is often broken so that you can reconnect often, choose No, and then write a script to connect. Because the automatic connection with the power-on is high permissions, "Poff" command to use sudo, inconvenient. )

The final question is whether you want to establish a network connection immediately. (Watch it.) )

When the settings are complete, the general network can be used.

3. Manual control of Network Connections

To connect to your set up ADSL connection, enter in the terminal:

$sudo Pon Dsl-provider

To disconnect the ADSL connection, enter in the terminal:

$sudo Poff Dsl-provider

4. The question

If you are not connected, try connecting manually (see the previous section).

4.1. PPPoE Package Installation

Check that the PPPoE package is not installed and can be entered in the terminal:

$dpkg-S pppoeconf

If installed, you should be able to see the following two lines of words:

Package:pppoeconfStatus:install OK installed

If it is not installed, enter:

$sudo Apt-get Install pppoeconf

If you want to install with a CD and the system cannot find the package, you may need to add a CD source. To add a CD to do the source, put the CD into the optical drive and enter at the end:

$sudo apt-cdrom Add

When there is no way, can go to http://packages.ubuntu.com/download. But this time you will get the other machines to download, and then copy over. Double-click the package icon in GNOME to install it.

4.2. Issues relating to start-up

If you want to rerun pppoeconf after each reboot, try the following two options:

Edit/etc/network/interfaces so that ' PPPoE maintained ' a few lines in front of the ' Auto Dsl-provider ' line:

# added by Pppoeconfauto eth0iface eth0 inet manualpre-up/sbin/ifconfig eth0 Up # line maintained by Pppoeconfauto DSL-PR Ovideriface Dsl-provider inet Pppprovider dsl-provider

If not, edit/etc/init. D/bootmisc.sh, before the last line ("Exit 0"), plus:

$ifconfig eth0 up Pon Dsl-provider

4.3. Error log

If there is a problem with the connection, you may be able to find useful information in the system log. You can view the system log files using a terminal or graphical interface.

* To use the graphical interface, you can choose from the menu: System > System Management > System Log System Log in/var/log/messages.

* To use the terminal, then enter:

$sudo DMESG

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.