Friday, November 6, 2009

BSNL broadband on Karmic Koala

I just installed the ubuntu (studio) 9.10 (karmic koala) on my brother's laptop. Installation went beautifully - including partition resizing (though the progress bar during partition resizing does not increase for a long time ~ 5mins ; it just suddenly is complete).

I've a BSNL broadband (dataone) connection with a UT300R2U modem supporting 1 Ethernet connection at IP: 192.168.1.1 and one USB to Ethernet connection at IP: 192.168.1.2 Couple of things though,

First had to move the ethernet cable from PC to laptop. So used the USB connection with the driver from: http://renirajnr.googlepages.com/downloads or alternatively from: http://rapidshare.com/files/65525451/UT-300R2U-USB_Driver.rar

The configuration for windows XP after installing the USB modem were as follows:

IP: 192.168.1.5 (actually can be any number above 2)
netmask: 255.255.255.0
gateway: 192.168.1.2

DNS Servers:
primary: 192.168.1.2
alternate: 208.67.222.222 (open DNS servers)
alternate2: 208.67.220.220

The modem settings for the USB connection to UT300R2u can be checked at http://192.168.1.2/ with the username "admin" and password "admin". The connection type most commonly is pppoe and one has to give the username (often the phone number) and password provided by bsnl.

Now that there was a working desktop internet connection through usb, I focussed on the laptop and got a pleasant surprise. The ethernet connection (dhcp) worked out of the box after a restart.
The settings for the static ip case were as follows:


IP: 192.168.1.4
netmask: 255.255.255.0
gateway: 192.168.1.1

The following code can set it up for the static case:

sudo ifconfig eth1 192.168.1.4 netmask 255.255.255.0 up
sudo route add default gw 192.168.1.1 eth1


(Ubuntu karmic names the ethernet connection as eth1 instead of eth0)

Anyway, now that I 've a working connection, I'll be spending most of today to get the system up to date.