Wednesday, September 9, 2009

Configuring Reliance Netconnect internet on Fedora 10

After a lot of help from other blogs and links on the web, I come up with a simple "how to configure reliance netconnect on fedora10 for dummies "

1. Check that your usb device has been detected by the kernel. For this on the command line
execute the following

[athatte@localhost ~]$: dmesg | grep usb

The output is something like this

[athatte@localhost ~]$ dmesg | grep usb
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
usb usb1: configuration #1 chosen from 1 choice
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.27.30-170.2.82.fc10.i686 ehci_hcd
usb usb1: SerialNumber: 0000:00:0b.1
usb usb2: configuration #1 chosen from 1 choice
usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: OHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.27.30-170.2.82.fc10.i686 ohci_hcd
usb usb2: SerialNumber: 0000:00:0b.0
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
SELinux: initialized (dev usbfs, type usbfs), uses genfs_contexts
usb 2-3: new full speed USB device using ohci_hcd and address 2
usb 2-3: configuration #1 chosen from 1 choice
usb 2-3: New USB device found, idVendor=12d1, idProduct=1412
usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=4
usb 2-3: Product: HUAWEI Mobile
usb 2-3: Manufacturer: HUA�WEI TECHNOLOGIES
usb 2-3: SerialNumber: �������������������
usb 2-3: USB disconnect, address 2
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
usbcore: registered new interface driver usb-storage
usb 2-3: new full speed USB device using ohci_hcd and address 3
usb 2-3: configuration #1 chosen from 1 choice
usb-storage: probe of 2-3:1.0 failed with error -5
usb-storage: probe of 2-3:1.1 failed with error -5
usb-storage: probe of 2-3:1.2 failed with error -5
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
usb-storage: probe of 2-3:1.4 failed with error -5
usb 2-3: New USB device found, idVendor=12d1, idProduct=1412
usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=4
usb 2-3: Product: HUAWEI Mobile
usb 2-3: Manufacturer: HUA�WEI TECHNOLOGIES
usb 2-3: SerialNumber: �������������������
usbcore: registered new interface driver usbserial
usbserial: USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
usbserial: USB Serial support registered for GSM modem (1-port)
usb 2-3: GSM modem (1-port) converter now attached to ttyUSB0
usb 2-3: GSM modem (1-port) converter now attached to ttyUSB1
usb 2-3: GSM modem (1-port) converter now attached to ttyUSB2
usb 2-3: GSM modem (1-port) converter now attached to ttyUSB3
usbcore: registered new interface driver option
usb-storage: device scan complete

The "usb 2-3 : Manufacturer: HUA�WEI TECHNOLOGIES" - is the usb device for reliance netconnect.
It means the device has been detected.

2. Next up, execute the following

[athatte@localhost ~]$ sudo emacs /etc/wvdial.conf
This commands opens the wvdial.conf file which is initially a read-only file. You need to have root permissions to access and edit this file. Paste the following in the file

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Baud = 9600
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0

[Dialer netconnect]
Username = ( The number assigned to you - something like 9371XXXXXX)
Password = ( The number assigned to you - something like 9371XXXXXX)
Phone = #777
Stupid Mode = 1
Inherits = Modem0

3. You can try connecting using the following command - " sudo wvdial netconnect" and see the connecting procedure being executed on the shell, but may not be able to access any pages via
the browser. During this procedure you will come across the following details

primary DNS address 202.137.97.193
--> pppd: ��\[08]��\[08]��\[08]
--> secondary DNS address 202.137.96.2

Disconnect, after this since you wont be able to access web pages.


4. After this, the last step is to modify the /etc/resolv.conf file. Execute the command [athatte@localhost ~]$ sudo emacs /etc/resolv.conf
Add the following entries to the resolve.conf file. Use the data from the previous step (3)

nameserver 202.137.97.193

nameserver 202.137.96.2

5. Connect once again by executing the command in step 3 and try accessing a webpage via the browser. You should be good by now.


References :

http://linuxondesktop.blogspot.com/2009/07/configuring-reliance-netconnect-on.html
http://www.hasanen.com/?p=25
http://peeths-workspace.blogspot.com/2009/04/reliance-netconnect-usb-card-on-linux.html
http://anshprat.wordpress.com/2008/12/16/reliance-datacardusb-modem-ec-121-on-linux-fedora-10/