How to setting up ADSL under Ubuntu

 

 

This guide is for setting up an ADSL Internet connection using an ethernet PPPoE modem under Ubuntu 6.06 LTS (Dapper Drake) but newer versions of Ubuntu will be similar. Warning: This guide is quite old now! Newer versions of Ubuntu use Network Manager (nice GUI) to manage DSL connections.

 

Introduction

 

Although it may be very common to use a router to connect to the Internet, often it is needed to directly connect to an ADSL (frequently referred to as 'DSL') modem using PPPoE.

This is useful when you have a modem that don't have internal PPPoE dial up facility or When your modem is configured for "Bridge" connection. In both these cases, You need to do the PPPoE dial-up from your machine. this documentation shows how that can be achived

Of course, you will need to have subscribed to an Internet Service Provider (ISP), and that your Internet connection be installed and functional. A "DSL" light on your modem usually shows that the line is synchronized.

You will need your username and password provided by your ISP for your DSL account . You must also have an Ethernet card connected to your PPPoE modem with the correct type of cable.

 

Configuring PPPoE with the command line

 

To set up the modem, we will use a terminal. To open a terminal, use the menu bar : Applications > Accessories > Terminal.

You need the PPPoE package to be installed in order for the following command to work. This package is installed by default, but can be missing if the configuration has been changed. If the following command does not work, you will need to install this package (see the PPPoE package installation section).

In the terminal type:

 

sudo pppoeconf

 

A text-based menu program will guide you through the next steps, which are:

  1. Confirm that your Ethernet card is detected.
  2. Enter your username(provided by your ISP).
  3. Enter your password(provided by your ISP).
  4. If you already have a PPPoE Connection configured, you will be asked if it may be modified.
  5. Popular options: you are asked if you want the 'noauth' and 'defaultroute' options and to remove 'nodetach' - choose "Yes".
  6. Use peer DNS - choose "Yes".
  7. Limited MSS problem - choose "Yes".
  8. When you are asked if you want to connect at start up, you will probably want to say yes.
  9. Finally you are asked if you want to establish the connection immediately.

Once you have finished these steps, your connection should be working.

 

Manual connection control

 

To start your ADSL connection on demand, in a terminal type:

 

pon dsl-provider

 

To stop your ADSL connection, in a terminal type:

 

poff dsl-provider

 

in most cases, you can just type "poff" to stop the ADSL connection and unload the module.

 

Problems

 

If your connection does not seem to work, try turning your previously configured ADSL connection on manually (see previous section). To see log, in terminal type:

 

plog

 

 

PPPoE package installation

 

To check if the PPPoE package is installed, in a terminal type:

 

dpkg -s pppoeconf

 

If it is installed you should see the output on the package where two lines show this:

 

Package: pppoeconf
Status: install ok installed

 

If the package is not installed, insert your Ubuntu CD and in a terminal type:

 

sudo apt-get install pppoeconf

 

If the package cannot be found, you may have to add your Ubuntu CD to the list of software repositories. To add your CD, make sure it is inserted in your CD drive and in a terminal type:

 

sudo apt-cdrom add

 

If all else fails, you can download the pppoeconf package from http://packages.ubuntu.com/ . Of course you will need a working Internet connection, and then to transfer the package via a CDR or USB stick for example. Double click on the package in GNOME to install it.

 

Boot issues

 

If you find that you have to run pppoeconf each time you boot, you can try two things:

  • Edit /etc/network/interfaces as described here , so that that 'pppoe maintained' lines are before 'auto dsl-provider':

 

# added by pppoeconf
auto eth0
iface eth0 inet manual
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf

auto dsl-provider
iface dsl-provider inet ppp
provider dsl-provider

 

  • Failing that, edit /etc/rc.local, and before the last line ("exit 0"), add:

 

ifconfig eth0 up
pon dsl-provider

 

 

Error logs

 

If you are having problems with your connection, you may find valuable information in the system message logs. You may acces system logs either in a terminal, or with a graphical interface.

  • To use the grapical log viewer, in the menu bar, go to : System > Administration > System Log. You will find the system messages in /var/log/messages.

  • To use the terminal, type:

 

sudo dmesg

 


CategoryNetworking

Ubuntu Kylin是一个基于Ubuntu的中文操作系统,旨在为中国用户提供更好的本地化体验。要构建Ubuntu Kylin的ISO映像,请按照以下步骤进行操作: 1. 下载Ubuntu Kylin的ISO映像和Ubuntu Kylin的源代码。 2. 安装Ubuntu Kylin的编译环境和必要的依赖项。在终端中输入以下命令来安装这些软件包: ``` sudo apt-get update sudo apt-get install git ubuntu-dev-tools build-essential dh-make debhelper devscripts ``` 3. 解压缩Ubuntu Kylin的源代码,并切换到源代码目录中。在终端中输入以下命令: ``` tar -xzvf ubuntukylin.tar.gz cd ubuntukylin ``` 4. 在源代码目录中构建软件包。在终端中输入以下命令: ``` debuild -b -uc -us ``` 这将构建所有源代码中的软件包,并在构建完成后生成deb二进制文件。 5. 创建一个新目录,将生成的deb二进制文件和ISO映像复制到该目录中。 6. 创建一个新的ISO映像。在终端中输入以下命令: ``` sudo mkisofs -o /path/to/new/image.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -V "Ubuntu Kylin" . ``` 这将创建一个新的ISO映像,并在指定的路径下保存。请注意,您需要将“/path/to/new/image.iso”替换为您要保存ISO映像的实际路径。 7. 等待ISO映像创建完成,并验证它是否可以正常启动。 以上是构建Ubuntu Kylin ISO映像的简要步骤。请注意,这只是一个简单的示例,实际的构建过程可能会更加复杂,具体取决于您的系统配置和软件包需求。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值