Networking Forums

Networking Forums > Computer Networking > Linux Networking > Well I managed to connect to the internet!

Reply
Thread Tools Display Modes

Well I managed to connect to the internet!

 
 
Iguanaman
Guest
Posts: n/a

 
      01-10-2004, 03:40 AM
Many thanks, I managed to connect to the internet using a pppd line
like this:
/usr/sbin/pppd /dev/ttyS1 115200 debug user dwlee connect
"/usr/sbin/chat -v '' ATDT5472107 CONNECT''"

The only problem is that it does not set the default route
automatically, so I have to enter this line to make the internet
scautly work:

route add default ppp0

That does not bother me too much, but I want it to do it
automatically. Thanks for all your help!

Iguanaman
 
Reply With Quote
 
 
 
 
Alan Connor
Guest
Posts: n/a

 
      01-10-2004, 04:28 AM
On Fri, 09 Jan 2004 23:40:42 -0500, Iguanaman <(E-Mail Removed)> wrote:
>
>
> Many thanks, I managed to connect to the internet using a pppd line
> like this:
> /usr/sbin/pppd /dev/ttyS1 115200 debug user dwlee connect
> "/usr/sbin/chat -v '' ATDT5472107 CONNECT''"
>
> The only problem is that it does not set the default route
> automatically, so I have to enter this line to make the internet
> scautly work:
>
> route add default ppp0
>
> That does not bother me too much, but I want it to do it
> automatically. Thanks for all your help!
>
> Iguanaman


Good work!

Why don't you just put all that in a script?

#!/bin/sh

/usr/sbin.....

while true do;

if /sbin/ifconfig | grep 'ppp0' &> /dev/null ; then

# check and see if your ppp interface is up, and if it is:

route add......

exit 0

else continue; fi; done

# if it isn't, check again until it is


(may need some tweaking, but I use one almost identical to it for the
same purpose)


Call it ppu (or my_nifty_internet_connection_script :-), run chmod +rx on it
and put it in /usr/local/bin.

Then you can just enter ppu at the prompt and it's done.

$type ppu

will tell you whether the string is taken for a function, script, application,
variable or alias...

AC

 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      01-10-2004, 08:24 AM
In comp.os.linux.misc Alan Connor <(E-Mail Removed)> wrote:
> On Fri, 09 Jan 2004 23:40:42 -0500, Iguanaman <(E-Mail Removed)> wrote:
> >
> > Many thanks, I managed to connect to the internet using a pppd line
> > like this:
> > /usr/sbin/pppd /dev/ttyS1 115200 debug user dwlee connect
> > "/usr/sbin/chat -v '' ATDT5472107 CONNECT''"
> >
> > The only problem is that it does not set the default route
> > automatically, so I have to enter this line to make the internet
> > scautly work:
> >
> > route add default ppp0

[..]

> Why don't you just put all that in a script?


While this should of course work, why not just read the fine
manual 'man pppd' and add 'defaultroute' to your options file?

--
Michael Heiming

Remove +SIGNS and www. if you expect an answer, sorry for
inconvenience, but I get tons of SPAM
 
Reply With Quote
 
Alan Connor
Guest
Posts: n/a

 
      01-10-2004, 08:58 AM
On Sat, 10 Jan 2004 10:24:53 +0100, Michael Heiming <michael+(E-Mail Removed)> wrote:
>
>
> In comp.os.linux.misc Alan Connor <(E-Mail Removed)> wrote:
>> On Fri, 09 Jan 2004 23:40:42 -0500, Iguanaman <(E-Mail Removed)> wrote:
>> >
>> > Many thanks, I managed to connect to the internet using a pppd line
>> > like this:
>> > /usr/sbin/pppd /dev/ttyS1 115200 debug user dwlee connect
>> > "/usr/sbin/chat -v '' ATDT5472107 CONNECT''"
>> >
>> > The only problem is that it does not set the default route
>> > automatically, so I have to enter this line to make the internet
>> > scautly work:
>> >
>> > route add default ppp0

> [..]
>
>> Why don't you just put all that in a script?

>
> While this should of course work, why not just read the fine
> manual 'man pppd' and add 'defaultroute' to your options file?
>


Certainly a better idea, Michael.


AC
 
Reply With Quote
 
Baho Utot
Guest
Posts: n/a

 
      01-10-2004, 10:00 AM
Michael Heiming wrote:

> In comp.os.linux.misc Alan Connor <(E-Mail Removed)> wrote:
>> On Fri, 09 Jan 2004 23:40:42 -0500, Iguanaman <(E-Mail Removed)>
>> wrote:
>> >
>> > Many thanks, I managed to connect to the internet using a pppd line
>> > like this:
>> > /usr/sbin/pppd /dev/ttyS1 115200 debug user dwlee connect
>> > "/usr/sbin/chat -v '' ATDT5472107 CONNECT''"
>> >
>> > The only problem is that it does not set the default route
>> > automatically, so I have to enter this line to make the internet
>> > scautly work:
>> >
>> > route add default ppp0

> [..]
>
>> Why don't you just put all that in a script?

>
> While this should of course work, why not just read the fine
> manual 'man pppd' and add 'defaultroute' to your options file?
>


That would clearly be too easy, and besides this gives him an excuse to
write another script :P

 
Reply With Quote
 
James Knott
Guest
Posts: n/a

 
      01-10-2004, 08:11 PM
Iguanaman wrote:

> I managed to connect to the internet


We noticed. ;-)

--

Fundamentalism is fundamentally wrong.

To reply to this message, replace everything to the left of "@" with
james.knott.
 
Reply With Quote
 
Raj Rijhwani
Guest
Posts: n/a

 
      01-12-2004, 04:18 AM
On Friday, in article
<(E-Mail Removed)>
(E-Mail Removed) "Iguanaman" wrote:

> Many thanks, I managed to connect to the internet using a pppd line
> like this:
> /usr/sbin/pppd /dev/ttyS1 115200 debug user dwlee connect
> "/usr/sbin/chat -v '' ATDT5472107 CONNECT''"


> The only problem is that it does not set the default route
> automatically, so I have to enter this line to make the internet
> scautly work:


> route add default ppp0


If you use the keyword "defaultroute" pppd will assume the default route
if one doesn't already exist. (If one does, you will still have to
manually add the ppp route, and optionally delete the original.)
--
Raj Rijhwani | This is the voice of the Mysterons...
(E-Mail Removed) | ... We know that you can hear us Earthmen
http://www.rijhwani.org/raj/ | "Lieutenant Green: Launch all Angels!"
 
Reply With Quote
 
Bill Unruh
Guest
Posts: n/a

 
      01-12-2004, 07:10 PM
Iguanaman <(E-Mail Removed)> writes:

]Many thanks, I managed to connect to the internet using a pppd line
]like this:
]/usr/sbin/pppd /dev/ttyS1 115200 debug user dwlee connect
]"/usr/sbin/chat -v '' ATDT5472107 CONNECT''"

]The only problem is that it does not set the default route
]automatically, so I have to enter this line to make the internet
]scautly work:

a) make sure that there is no default route when ppp starts up. Most
distros set up a default route on any ethernet card on the system.
Eitehr remove it (eg put route del default at the end of rc.local) or
set up the ethernet so that the default route is not set up.
b) make sure you have
defaultroute
in /etc/ppp/options.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PC connect to internet but routers will not connect goldtech Windows Networking 2 12-23-2008 12:28 AM
Unable to connect to internet but can connect to Skype mail@robinwhite.fsnet.co.uk Wireless Internet 2 01-25-2008 06:40 AM
Managed connection David G Broadband 11 09-15-2004 09:41 PM
RE: Client can't connect to internet but can connect to SBS2003 =?Utf-8?B?QmVuIEZpbmtsZWE=?= Windows Networking 0 07-29-2004 08:21 PM
unable to connect to internet, can connect to other PC through router doug mccausland Windows Networking 2 01-25-2004 02:26 PM



1 2 3 4 5 6 7 8 9 10 11