Custom Search

Monday, October 12, 2009

Setting dial up connection using pppconfig

*************** SETTING DIAL UP CONNECTION START *****************

Setting dial up connection using pppconfig

-----------------------------1
#apt-get install ppp pppconfig

-----------------------------2
root@priyar:~# pppconfig

***Main Menu***
Select "Create" with the arrow keys, then press Enter key.

***Provider Name***
Type provider (Eg:bsnl) and press Enter key.

***Configure Nameservers (DNS)***
select the "Dynamic" option and press Enter key.

***Authentication Method for provider***
Select "Chat" with the arrow keys, then press Enter key.

***Login Prompt***
Change "ogin:" to "Username:",then press Enter key. <---- Important in the case of BSNL connection.

***Password Prompt***
Use default or Change "ssword:" to "Password:",then press Enter key.

***User Name***
Enter the username given to you by your ISP.

***Password***
Enter the password your ISP gave you.

***Speed***
Enter your modem port speed (e.g. 9600, 19200, 38400, 57600, 115200).I suggest that you leave it at 115200.

***Pulse or Tone***
Select method of dialing.

***Phone Number***
Enter the number to dial.(Eg:172222)

***Choose Modem Config Method***
Select "yes" and press Enter key.

***Select Modem Port ***
Select "Manual Enter the port by hand." and press Enter key.

***Manually Select Modem Port***
Type /dev/ttySHSF0 and press Enter key.

***Properties of provider***
Select "Finished Write files and return to main menu" and press Enter key.

Finished configuring connection and writing changed files.The chat strings for
connecting to the ISP are in /etc/chatscripts/bsnl, while the options for pppd
are in /etc/ppp/peers/bsnl.You may edit these files by hand if you wish.

***Main Menu***
Select "Quit Exit this utility" and press Enter key.

-----------------------------3
To establish a connection.
root@priyar:~# pon bsnl

-----------------------------4
To view the progress of the connection.

root@priyar:~# tail -f /var/log/messages

Oct 7 19:07:04 priyar pppd[4453]: pppd 2.4.4 started by root, uid 0
Oct 7 19:07:05 priyar chat[4455]: abort on (BUSY)
Oct 7 19:07:05 priyar chat[4455]: abort on (NO CARRIER)
Oct 7 19:07:05 priyar chat[4455]: abort on (VOICE)
Oct 7 19:07:05 priyar chat[4455]: abort on (NO DIALTONE)
Oct 7 19:07:05 priyar chat[4455]: abort on (NO DIAL TONE)
Oct 7 19:07:05 priyar chat[4455]: abort on (NO ANSWER)
Oct 7 19:07:05 priyar chat[4455]: abort on (DELAYED)
Oct 7 19:07:05 priyar chat[4455]: send (ATZ^M)
Oct 7 19:07:05 priyar chat[4455]: expect (OK)
Oct 7 19:07:05 priyar chat[4455]: ATZ^M^M
Oct 7 19:07:05 priyar chat[4455]: OK
Oct 7 19:07:05 priyar chat[4455]: -- got it
Oct 7 19:07:05 priyar chat[4455]: send (ATDT172222^M)
Oct 7 19:07:05 priyar chat[4455]: expect (CONNECT)
Oct 7 19:07:05 priyar chat[4455]: ^M
Oct 7 19:07:31 priyar chat[4455]: ATDT172222^M^M
Oct 7 19:07:31 priyar chat[4455]: CONNECT
Oct 7 19:07:31 priyar chat[4455]: -- got it
Oct 7 19:07:31 priyar chat[4455]: send (^M)
Oct 7 19:07:31 priyar chat[4455]: expect (Username:)
Oct 7 19:07:31 priyar chat[4455]: 115200 ^M
Oct 7 19:07:32 priyar chat[4455]: C^M
Oct 7 19:07:32 priyar chat[4455]: ^M
Oct 7 19:07:32 priyar chat[4455]: *******************************************^M
Oct 7 19:07:32 priyar chat[4455]: * *^M
Oct 7 19:07:32 priyar chat[4455]: * WELCOME TO NIB C1 NODE, DOT, KOLLAM *^M
Oct 7 19:07:32 priyar chat[4455]: * *^M
Oct 7 19:07:32 priyar chat[4455]: * !!!!! WISH YOU HAPPY SURFING !!!!! *^M
Oct 7 19:07:32 priyar chat[4455]: * *^M
Oct 7 19:07:32 priyar chat[4455]: *******************************************^M
Oct 7 19:07:32 priyar chat[4455]: ^M
Oct 7 19:07:32 priyar chat[4455]: ^M
Oct 7 19:07:32 priyar chat[4455]: User Access Verification^M
Oct 7 19:07:32 priyar chat[4455]: ^M
Oct 7 19:07:32 priyar chat[4455]: Username:
Oct 7 19:07:32 priyar chat[4455]: -- got it
Oct 7 19:07:32 priyar chat[4455]: send (4752333333^M)
Oct 7 19:07:32 priyar chat[4455]: expect (ssword:)
Oct 7 19:07:32 priyar chat[4455]: 4752333333^M
Oct 7 19:07:32 priyar chat[4455]: Password:
Oct 7 19:07:32 priyar chat[4455]: -- got it
Oct 7 19:07:32 priyar chat[4455]: send (??????)
Oct 7 19:07:32 priyar chat[4455]: send (\d)
Oct 7 19:07:33 priyar pppd[4453]: Serial connection established.
Oct 7 19:07:33 priyar pppd[4453]: Using interface ppp0
Oct 7 19:07:33 priyar pppd[4453]: Connect: ppp0 <--> /dev/ttySHSF0
Oct 7 19:07:40 priyar pppd[4453]: PAP authentication succeeded
Oct 7 19:07:40 priyar pppd[4453]: local IP address 61.1.233.144
Oct 7 19:07:40 priyar pppd[4453]: remote IP address 61.1.232.5

-----------------------------5
To check connection.
root@priyar:~#ping www.google.com
or
root@priyar:~# nslookup www.google.com
Server: 127.0.0.1
Address: 127.0.0.1#53

Non-authoritative answer:
www.google.com canonical name = www.l.google.com.
Name: www.l.google.com
Address: 66.102.7.99
Name: www.l.google.com
Address: 66.102.7.103
Name: www.l.google.com
Address: 66.102.7.104
Name: www.l.google.com
Address: 66.102.7.105
Name: www.l.google.com
Address: 66.102.7.106
Name: www.l.google.com
Address: 66.102.7.147

-----------------------------6
Connection termination.
root@priyar:~# poff bsnl

-----------------------------
*************** SETTING DIAL UP CONNECTION END *****************

No comments:

Post a Comment