Linux setup for Alice ADSL
Here how I setup the ADSL connection with Alice; the first steps are
necessary only if you still have to register to the service.
Not very smart maybe, but it works.
- Connect the ADSL modem via the ethernet interface (here eth0).
- You must have the program pppoe. In this example it was located in
/usr/sbin/pppoe
- Edit the file /etc/ppp/pap-secrets and add the following line:
aliceadsl * aliceadsl
- Edit the file /etc/hosts and add the following lines:
81.74.238.6
www.rossoalice.it
81.74.238.6 www.lacasadialice.it
- Create the connection script, for example /usr/local/bin/pppalice,
with these commands:
xterm -T "pppd" -n
"log pppd" -e tail -f /var/log/ppp.log &
pppd logfile /var/log/ppp.log pty
'/usr/sbin/pppoe -I eth0' noipdefault default route hide-password
passive persist name aliceadsl user 'aliceadsl' noauth
(the first line is only to have
a look to the log messages, it's not stricty necessary).
Set execute permission to the script file (chmod 755 /usr/local/bin/pppalice) and run it as root.
If the connection succeed, in the file /var/log/ppp.log
you should see something like this:
pppoe: read
(asyncReadFromPPP): Session 9980: Input/output error
Using interface ppp0
Connect: ppp0 <-->
/dev/pts/1
PAP authentication
succeeded
Cannot determine ethernet
address for proxy ARP
local IP address
82.52.20.133
remote IP address
192.168.100.1
- Now, open a web browser and connect to www.rossoalice.it. It's not
easy to find, but if you click here and there you will end up in a
registration form. Fill it with your information and define your
username (for instance edoardo.martelli@aliceposta.it) and your
password (in this example: MyPassWord).
- Stop the connection (kill -INT `cat /var/run/ppp0.pid`)
- Edit again the file /etc/ppp/pap-secrets, delete the line
aliceadsl * aliceadsl
and add the line:
edoardo.martelli@aliceposta.it
* MyPassWord
You can also remove the lines previously added to /etc/hosts.
- Edit /etc/resolv.conf and add the lines:
nameserver
212.216.112.112
nameserver 212.216.172.62
- Edit the connection scripts
(/usr/local/bin/pppalice) and change the user from aliceadsl to
edoardo.martelli@aliceposta.it:
pppd logfile
/var/log/ppp.log pty '/usr/sbin/pppoe -I eth0' noipdefault default
route hide-password passive persist name aliceadsl user
'edoardo.martelli@aliceposta.it' noauth
Run the script again, and you should be online.
The files mentioned are that of a Debian distribution. Other Linux
distributions can have them located in different directories.
last update: 20041201
back to the home page