How to setting up ADSL under Ubuntu
来源:互联网 发布:mac invalid argument 编辑:程序博客网 时间:2024/04/19 07:17
- ADSLPPPoE
目录
- Introduction
- Configuring PPPoE with the command line
- Manual connection control
- Problems
- PPPoE package installation
- Boot issues
- Error logs
Thisguide is for setting up an ADSL Internet connection using an ethernetPPPoE modem under Ubuntu 6.06 LTS (Dapper Drake) but newer versions ofUbuntu 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 itmay be very common to use a router to connect to the Internet, often itis needed to directly connect to an ADSL (frequently referred to as'DSL') modem using PPPoE.
Thisis useful when you have a modem that don't have internal PPPoE dial upfacility or When your modem is configured for "Bridge" connection. Inboth 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.
Youwill need your username and password provided by your ISP for your DSLaccount . You must also have an Ethernet card connected to your PPPoEmodem with the correct type of cable.
Configuring PPPoE with the command line
To set upthe modem, we will use a terminal. To open a terminal, use the menu bar: Applications > Accessories > Terminal.
Youneed the PPPoE package to be installed in order for the followingcommand to work. This package is installed by default, but can bemissing if the configuration has been changed. If the following commanddoes not work, you will need to install this package (see the PPPoEpackage installation section).
In the terminal type:
sudo pppoeconf
A text-based menu program will guide you through the next steps, which are:
- Confirm that your Ethernet card is detected.
- Enter your username(provided by your ISP).
- Enter your password(provided by your ISP).
- If you already have a PPPoE Connection configured, you will be asked if it may be modified.
- Popular options: you are asked if you want the 'noauth' and 'defaultroute' options and to remove 'nodetach' - choose "Yes".
- Use peer DNS - choose "Yes".
- Limited MSS problem - choose "Yes".
- When you are asked if you want to connect at start up, you will probably want to say yes.
- 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 yourconnection does not seem to work, try turning your previouslyconfigured ADSL connection on manually (see previous section). To seelog, 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
Ifthe package cannot be found, you may have to add your Ubuntu CD to thelist of software repositories. To add your CD, make sure it is insertedin 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 totransfer the package via a CDR or USB stick for example. Double clickon 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 arehaving problems with your connection, you may find valuable informationin the system message logs. You may acces system logs either in aterminal, or with a graphical interface.
Touse 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
- How to setting up ADSL under Ubuntu
- Setting up tinyproxy under Linux/Debian/Ubuntu/etc
- How to Redial ADSL Dial-up Connection by CSharp
- Setting up Ubuntu (currently 12.04.2) to compile FreeWRL
- How to use opencv in Qt under Ubuntu[z]
- How to root an Android device under Ubuntu
- How to configure the network under the Ubuntu
- how to use BaiduMap in android studio under ubuntu
- how to add external library in qt under ubuntu
- how to build a cgal program in qt under ubuntu
- How to install install gcc 4.8 under ubuntu operating system
- How To Solve The Problem : Unstable Ubuntu ADSL Connection
- Setting up Minicom in Ubuntu
- environment variable setting under ubuntu raring 13.04
- Setting up a CD/DVD burner under FreeBSD
- How To Set Up Database Replication In MySQL On Ubuntu
- How-To: Set up SVN with Apache2 in Linux (Ubuntu)
- How to set up IceScrum on Ubuntu 12.04
- Exchange 2007 打开POP3 及 IMAP4端口
- 重发《提高C#编程水平的50个要点》----此贴非原创 NO.0
- 仿校内回复 c# .net
- 向百度搜索提交utf-8代码乱码解决方法,百度搜索url乱码
- 真正的图片居中box
- How to setting up ADSL under Ubuntu
- VC多线程编程之一
- 男人的责任,你能做到吗?
- c#控制Excel样式
- eclipse 和c#快捷键以及dos命令
- 浅谈Oracle索引
- How to Backup Your System in linux
- 影响世界的十位算法大师
- jsp servlet中的过滤器Filter配置总结