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