Thursday, 12 April 2012

how to connect reliance net-connect in rhel 6

connect your reliance net-connect to your pc.
open terminal and do the following steps

[root@station1 ~]# yum install -y wvdial
[root@station1 ~]# vim /etc/wvdial.conf

[Dialer reliance]
Auto DNS = on
Auto Reconnect = on
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Baud = 9600
Init1 = ATZ
Phone = #777
Modem = /dev/ttyUSB0
Username = --------------->enter your number
Abort on Busy = off
Password = -----------------> enter the password here obviously it your number itself
Abort on No Dialtone = off
Carrier Check = on
Stupid Mode = on

[root@station1 ~]# service network stop

then click on the reliance icon on the desktop and eject it otherwise device busy error will occur.

[root@station1 Desktop]# wvdial reliance
--> WvDial: Internet dialer version 1.60
--> Warning: inherited section [Modem0] does not exist in wvdial.conf
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
CONNECT 3100000
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Thu Apr 12 13:55:15 2012
--> Pid of pppd: 3177
--> Using interface ppp0
--> local  IP address *****************
--> remote IP address ***************
--> primary   DNS address ****************
--> secondary DNS address ****************

now open your browser and check

if its not working then do these steps

[root@station1 ~]# vim /var/run/ppp/resolv.conf
nameserver ***********
nameserver ************
copy these two lines from your terminal and paste in
[root@station1 ~]# vim /etc/resolv.conf

nameserver ***********
nameserver ************

[root@station1 ~]# service named restart

don't close this terminal. now open your web browser and start browsing it should work, to close your internet press ctrl+c in the terminal.

To avoid these steps i just made a simple script one for connection and another one for reverting back to your localnetwork.

For connection script - click here
For localnetwork script (if you have dns configured) -  click here

mv the scripts to /root and change the permission to 777

Note : Open the reliance.sh file and change the nameserver if its is difference for you. ll'y open localnetwork.sh file and change the search and nameserver ip according to your domain. Once done then no need to do the above steps..

Just in terminal run sh /root/reliance.sh for connecting and press ctrl+c to disconnect. Run sh /root/localnetwork.sh to get back your localnetwork.

2 comments:

  1. Reliance Netconnect Tariff provides great value of money, facilitates simply plug and play option. Reliance connect 24.000 towns. 6 lakhs villages, 3G Data Card Reliance get high-speed wireless internet access at an unrestricted speed of 21 Mbps.

    ReplyDelete
  2. use sakis3g.. its working for me in RHEL 6 with out any issues

    ReplyDelete