Monday, December 03, 2007

How to create a DSL connection on ubuntu

If your router/modem is set in bridge mode and you need to dial to make a connection you must use pppoE (Point to Point Protocol Over Ethernet) it's similar to the usual modem dial-up connection, but the difference is that you use the network an not the land line to connect.

In ubuntu you can run a little script called:


# pppoeconf




Just accept the defaults an make sure you give the right username/password.

it will edit this file:


# cat /etc/ppp/peers/dsl-provider

# Minimalistic default options file for DSL/PPPoE connections

noipdefault
defaultroute
replacedefaultroute
hide-password
#lcp-echo-interval 30
#lcp-echo-failure 4
noauth
persist
#mtu 1492
usepeerdns
plugin rp-pppoe.so
nic-ath0
user "xxxxxxxxxxx"



Now to create a connection use:

# pon dsl-provider

Plugin rp-pppoe.so loaded.


"dsl-provider" is name I chose for the connection which is the default

And to stop a connection use:

# poff



To stop all processes:

# poff -a




You can check the log using this commmand:

# plog
pppd[3928] : pppd 2.4.4 started by root, uid 0