Ubuntu ADSL Internet access

Source: Internet
Author: User

Use the pppoeconf command to dial

Enable Wired connection:

 
Sudo ifconfig eth0 up

Enter:

 
Sudo pppoeconf

A text menu-basedProgramWill guide you through the following steps:

1. confirm that the ethernet card has been detected.

2. Enter your user name (provided by the ISP). Note: when entering the user name, clear "username" in the input box. Otherwise, verification errors may occur ).

3. enter your password (provided by the ISP ).

4. If you have configured a pppoe connection, you will be notified that the connection will be modified.

5. A pop-up option is displayed: Whether you need the 'noauth' and 'defaultrotu' options and remove 'nodetach '. Here, select "yes ".

6. Use peer DNS-select "yes ".

7. Limited MSS problem-select "yes ".

8. When you are asked whether to automatically connect to the system when you enter the system, you can select "yes ".

9. Finally, you will be asked whether to establish a connection immediately.

Start the ADSL connection as needed. You can enter the following in the terminal:

 
Sudo Pon DSL-provider

Disconnect the ADSL connection. You can enter the following in the terminal:

Sudo poff

If you find that the connection works properly, try to manually adjust the configuration of your ADSL connection (refer to the previous section ).

To view logs, enter:

 
Plog

Obtain the interface information. You can enter the following information in the terminal:

 
Ifconfig ppp0

After using pppoeconf for dialing, network manager displays the solution that the device is not hosted:

Enter the following command in the terminal to configure the network connection management file:

After sudo gedit/etc/NetworkManager/nm-system-settings.conf is turned on, find [ifupdown] managed = false to: [ifupdown] managed = true

The terminal runs sudo gedit/etc/Network/interfaces and only keeps

Auto lo iface lo Inet loopback

Delete DNS settings sudo mV/etc/resolv. CONF/etc/resolv. conf_backup

Restart the network-Manager Service: sudo service network-manager restart.

Certificate ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I used the above method to enable Ubuntu to access the Internet at home, but I didn't need to go back to school. I used a router directly.

I want to modify the auto start option, so I will modify the following sh:

 
#! /Bin/shpath =/usr/local/sbin:/usr/local/bin:/usr/bin: /binexport path # modprobe-Q pppoe # exec pppd call DSL-provider

The last two lines are commented out.

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.