Let's Get Started

Reliance LG LSP 340 Series WLL Modem Setup HOWTO
Prev |  | Next

# 7. Let's Get Started

For testing purposes log in as root and open two different shells.

In one shell issue the command

tail `-f` `/var/log/messages`

Start the PPP connection in the other shell using the command

ppp-on

In the first shell you will see various messages indicating that the modem is initialized and that the connection is being established. My `/var/log/messages` looks like this:

    May 29 06:14:06 dhiraj pppd[2341]: pppd 2.4.2 started by root, uid 0
    May 29 06:14:07 dhiraj chat[2343]: timeout set to 60 seconds
    May 29 06:14:07 dhiraj chat[2343]: abort on (ERROR)
    May 29 06:14:07 dhiraj chat[2343]: abort on (BUSY)
    May 29 06:14:07 dhiraj chat[2343]: abort on (NO CARRIER)
    May 29 06:14:07 dhiraj chat[2343]: abort on (NO DIALTONE)
    May 29 06:14:07 dhiraj chat[2343]: send (ATZ^M)
    May 29 06:14:07 dhiraj chat[2343]: expect (OK)
    May 29 06:14:07 dhiraj chat[2343]: ATZ^M^M
    May 29 06:14:07 dhiraj chat[2343]: OK
    May 29 06:14:07 dhiraj chat[2343]:  -- got it
    May 29 06:14:07 dhiraj chat[2343]: send (at+crm=1^M)
    May 29 06:14:07 dhiraj chat[2343]: expect (OK)
    May 29 06:14:07 dhiraj chat[2343]: ^M
    May 29 06:14:07 dhiraj chat[2343]: at+crm=1^M^M
    May 29 06:14:07 dhiraj chat[2343]: OK
    May 29 06:14:07 dhiraj chat[2343]:  -- got it
    May 29 06:14:07 dhiraj chat[2343]: send (atdt#777^M)
    May 29 06:14:07 dhiraj chat[2343]: timeout set to 75 seconds
    May 29 06:14:07 dhiraj chat[2343]: expect (CONNECT)
    May 29 06:14:07 dhiraj chat[2343]: ^M
    May 29 06:14:07 dhiraj chat[2343]: atdt#777^M^M
    May 29 06:14:07 dhiraj chat[2343]: CONNECT
    May 29 06:14:07 dhiraj chat[2343]:  -- got it
    May 29 06:14:07 dhiraj pppd[2341]: Serial connection established.
    May 29 06:14:07 dhiraj pppd[2341]: Using interface ppp0
    May 29 06:14:07 dhiraj pppd[2341]: Connect: ppp0 <--> /dev/ttyS1
    May 29 06:14:13 dhiraj pppd[2341]: PAP authentication succeeded
    May 29 06:14:13 dhiraj kernel: PPP BSD Compression module registered
    May 29 06:14:13 dhiraj kernel: PPP Deflate Compression module registered
    May 29 06:14:14 dhiraj pppd[2341]: local  IP address 220.224.45.140
    May 29 06:14:14 dhiraj pppd[2341]: remote IP address 97.235.2.5

Now open your browser and get started.

In case the browser gives the error that the server name is not being resolved, open the file `/etc/resolve.conf` and add the entry

    	namesserver 202.41.97.9
    	nameserver 202.41.97.132

These are two valid DNS servers of Ernet India Labs, located in New Delhi. Your Internet Service Provider probably provides its own name service, use the IP addresses of the servers they recommend.

When you are finished surfing the net you may stop the connection using

ppp-off

in the second shell. In the other shell window you will get something like this :

    May 29 06:16:15 dhiraj pppd[2341]: Terminating on signal 2.
    May 29 06:16:15 dhiraj pppd[2341]: Connection terminated.
    May 29 06:16:15 dhiraj pppd[2341]: Connect time 2.2 minutes.
    May 29 06:16:15 dhiraj pppd[2341]: Sent 3401 bytes, received 1563 bytes.
    May 29 06:16:16 dhiraj pppd[2341]: Connect time 2.2 minutes.
    May 29 06:16:16 dhiraj pppd[2341]: Sent 3401 bytes, received 1563 bytes.
    May 29 06:16:16 dhiraj pppd[2341]: Exit.

Stop the messages output using Ctrl+C.

Prev | Home | Next
PPP Configuration |  | References