This forum is intended for topics and discussions which were not covered so far.
Post Reply
User avatar
bjoern
Site Admin
Posts: 210
Joined: 20.03.2006, 15:01
Contact:

Alice/O2 WLAN with Ubuntu/Mint Linux

Post by bjoern » 25.07.2012, 19:28

Configure your Alice/O2 WLAN connection

Here some special topic for those who want to connect to Alice WLAN by using a typicel modem like the Siemens SL2- 141-I. Thie topic sounds quite easy, and the solution is also quite easy, but the way there was not. I read now many forum entries to find this solution.

The way is very easy, you do not have be a Linux expert to do the following steps! After this thread you will find the way how to do it in the future when starting your computer again, a work of less than a minute!

Preparations

First, I am using Mint 12, which is quite similar to Ubuntu 10.04 which I use in parallel on other computers.

So the usual DSL connection seems to be no problem in the forums, but the WLAN connection is indeed a problem.

Anyway, for the next steps make sure that 1) your WLAN card is activated and 2) your LAN port is empty - you should not be connected to the modem via LAN cable!


1. Connect to your router

First connect to your router by simply clicking the entry in the menu on the right top of your desktop as shown in the image. Don't become confused: The default name for "Who_the_X_is?" is - guess what - "ALICE_DSL". So you will usually click on "ALICE-DSL" and you are asked for the WEP key to connect to your router. Usually you find this key on the bottom of your modem, if you did not change it. (This is NOT your password used in combination with your user name). On my modem it is a 13 digit combination of numbers and letters.
MINT_connection_Alice.png
MINT: connection to Alice
MINT_connection_Alice.png (38.9 KiB) Viewed 38762 times
Now you should be connected and your Wireless menu entry should look like the screenshot above.


2. Create the PPP connection

Now there is a nice tool which is standard in my Ubuntu and Mint distributions: pppoeconf. This tool we will use now to configure the Point-to-Point-Protocol (PPP) connection.

Open the console (yeah, you have to, there is no GUI for this step, sorry!).

Now type in:

Code: Select all

sudo su
Type your user-password, now you have administrator access to your Linux, so please do not play around ;-) Start the process:

Code: Select all

pppoeconf
Now a nice process is invoked and you just follow the instructions. This tool will configure the protocol now for you. It first scans the network connections and it will find your active WLAN connection from Step 1.
MINT_pppoeconf.png
MINT: pppoeconf
MINT_pppoeconf.png (27.74 KiB) Viewed 38761 times
(Note the name of the file dsl-provider. This will be used later for the commands pon or poff.)

Now always just confirm the steps of this tool, until you come to the stage where you have to state your user name and your password. This is now the data you once got from Alice/O2 together with you modem.

My user name is like:
012301230123@alice-dsl.de
My password is like:
XXXXXXXX

So enter this data. At one of the final stages pppoeconf asks you, if you want to start up the service at boot time. I selected "No" (because I think this will not work, because the usual connection from Step 1. might not be triggered during the booting process). Everything else I confirmed.

Now you configured PPP, here a short info how to start PPP in the console without going through the whole process again in the future:

This switches the connection on:

Code: Select all

pon dsl-provider
This switches the connection off:

Code: Select all

poff dsl-provider
This shows the actual state of the connection:

Code: Select all

plog

3. The Final Workaround

So far it was easy. This step took me some time. For the solution you will need the last mentioned command: plog

The output in my console looks like this:

Code: Select all

WB2011 bsommer # plog
Jul 25 21:09:16 WB2011 pppd[2680]: PAP authentication succeeded
Jul 25 21:09:16 WB2011 pppd[2680]: peer from calling number 00:30:88:14:12:E8 authorized
Jul 25 21:09:16 WB2011 pppd[2680]: not replacing existing default route via 192.168.1.1
Jul 25 21:09:16 WB2011 pppd[2680]: local  IP address 77.8.47.191
Jul 25 21:09:16 WB2011 pppd[2680]: remote IP address 213.20.59.13
Jul 25 21:09:16 WB2011 pppd[2680]: primary   DNS address 62.109.123.7
Jul 25 21:09:16 WB2011 pppd[2680]: secondary DNS address 213.191.92.86
If you use now your browser like Firefox and you want to crawl the Internet, you will see - nothing (if you wait long enough: an error message). It will not work, because the browser does not find the correct route.

Do the following: delete the default route by typing:

Code: Select all

route del default
And now, use the data from plog find your local IP address. This address will change each time you connect to the Internet! And now do the following:

Code: Select all

route add default gw 77.8.47.191
Now go again to your browser and re-check your web page. It's magic!


My major sources:

http://ubuntuforums.org/showthread.php?t=1561579

http://www.kubuntuforums.net/showthread ... SL-problem

Hint: Network (WLAN or LAN) unmanaged? Often occurs on Ubuntu/Mint. Look here:

http://forums.linuxmint.com/viewtopic.php?f=150&t=59010

User avatar
bjoern
Site Admin
Posts: 210
Joined: 20.03.2006, 15:01
Contact:

Re: Alice/O2 WLAN with Ubuntu/Mint Linux

Post by bjoern » 25.07.2012, 20:11

Start your Alice/O2 WLAN connection

Now the short way you will connect in the future to Alice:


1. Connect to your router

Connect to your Alice modem. Usually this is done automatically in the future, because Mint/Ubuntu saved the connection. Otherwise go to the menu on the right top of your desktop and choose "ALICE-DSL" or however your name looks like.


2. Create the PPP connection

Open a console, type in:

Code: Select all

sudo pon dsl-provider

3. The Final Workaround

Delete the default route by typing:

Code: Select all

sudo route del default
Again, in your console:

Code: Select all

sudo plog
Locate your local IP address in the output, like this:

Code: Select all

WB2011 bsommer # plog
Jul 25 21:09:16 WB2011 pppd[2680]: PAP authentication succeeded
Jul 25 21:09:16 WB2011 pppd[2680]: peer from calling number 00:30:88:14:12:E8 authorized
Jul 25 21:09:16 WB2011 pppd[2680]: not replacing existing default route via 192.168.1.1
Jul 25 21:09:16 WB2011 pppd[2680]: local  IP address 77.8.47.191
Jul 25 21:09:16 WB2011 pppd[2680]: remote IP address 213.20.59.13
Jul 25 21:09:16 WB2011 pppd[2680]: primary   DNS address 62.109.123.7
Jul 25 21:09:16 WB2011 pppd[2680]: secondary DNS address 213.191.92.86
Use it in the final command:

Code: Select all

sudo route add default gw 77.8.47.191
Done!


Protocol for your daily use

Code: Select all

sudo su
pon dsl-provider
plog
route del default
route add default gw X.X.X.X

Post Reply