DIP - Dynamic IP address- Dail up problem

DIP - Dynamic IP address- Dail up problem

Post by Stefan Waldher » Thu, 18 Jan 1996 04:00:00



Quote:>----------------------------------mydip.dip--------
>get $mtu 1500   #also tried 1005

     try the default value (i think 296)

Quote:>default

     the default command starts the slip-connection, i.e.
     it should be the last command (after login).

Quote:>port cua1
>speed 28800         #also tried 38400
>reset
>send AT&FE1Q0V1X1&K3\r
>wait OK 2
>if $errlvl != 0  goto error
>dial 5365500

   isn't there an timeout, like
   dial 76575757 8
   as a command parameter??

Quote:>if $errlvl != 0  goto error           #FAILS at this point
>wait CONNECT 60

ciao
stefan
 
 
 

DIP - Dynamic IP address- Dail up problem

Post by Kalyan Munagala (cntr-TWe » Thu, 18 Jan 1996 04:00:00


 I have a Hayes Compatible 28.8 kbs modem.  Linux recognizes my modem
 at port /dev/cua1.  However, when I run,

 $ dip -t mydip

I get an error immediatly after the "dial 5365500" statement.
I have NETCOM online service which has a SLIP server/dynamic IP. I am using
the same 'AT...' modem command used by netcom in Win95.
program mydip follows.
thanks for any help.


----------------------------------mydip.dip--------
get $mtu 1500   #also tried 1005
default
port cua1
speed 28800     #also tried 38400
reset
send AT&FE1Q0V1X1&K3\r
wait OK 2
if $errlvl != 0  goto error
dial 5365500
if $errlvl != 0  goto error           #FAILS at this point
wait CONNECT 60
....
....
---------------------------------------------------

 
 
 

DIP - Dynamic IP address- Dail up problem

Post by Andreas Mu » Fri, 26 Jan 1996 04:00:00


: >----------------------------------mydip.dip--------
: >get $mtu 1500   #also tried 1005
:      try the default value (i think 296)

I am using 1024, it should work with any value i think, never tried smaller
values.

:
: >default
:      the default command starts the slip-connection, i.e.
:      it should be the last command (after login).

Yeah, I think this is true...

:
: >port cua1
: >speed 28800          #also tried 38400
: >reset
: >send AT&FE1Q0V1X1&K3\r
: >wait OK 2
: >if $errlvl != 0  goto error
: >dial 5365500
:    isn't there an timeout, like
:    dial 76575757 8
:    as a command parameter??

No, I have set the timeout to 45 only in the modem (internal) and don't use
the timeout value in the dial command.

: >if $errlvl != 0  goto error           #FAILS at this point
: >wait CONNECT 60

Here we have the problem: dial returns $errlvl 1 on connecting. What you
have to do is:

(1) remove the wait line
(2) use something like:
      if $errlvl != 1 goto error
                  ^^^^^
Hope that helps
Andi

ps.: I missed the original posting, that's why I quoted Stefan Waldherr.

pps.: Why don't you RTFM!

[...]
       dial phonenumber [timeout]
              Dials the indicated number.  The default timeout is
              60  sec.   dip  parses  the  string returned by the
              modem, and sets $errlvl accordingly.  The  standard
              codes are as follows:
                   0    OK
-------------->    1    CONNECT
                   2    ERROR
                   3    BUSY
                   4    NO CARRIER
                   5    NO DIALTONE
[...]

 
 
 

1. dip script for slip/ppp connection with dynamic IP address

I'm having trouble writing a dip script and works for a dynamically
allocated IP address. The major thing giving me trouble is
intercepting the IP address and then figuring out what to do with
it. Could someone point me to relevant documentation for doing this?
Also, sample dip scripts that deal with dynamically allocated IP
addresses would also be helpful. Thanks much.

--
Chuck Irvine
--------------------------------------------------------------------------
Serior Member of Technical Staff
Systems & Networks, Inc.                                FAX (913) 841-1345
1310 Wakarusa Dr., Suite A                              (913) 841-1283

2. CMD-649 support? (in a hurry - please help)

3. DIP script for Dynamic IP address

4. Need script to find root of filename

5. HELP: dip with dynamic IP address over modem

6. Help me with a Sun-3/50?

7. dip and dynamic IP addresses?

8. User Accounts: LOCKED OUT!

9. Dynamic IP address for DIP

10. dynamic ip address - how to get to know my ip address?

11. dip can not get dynamic IP address assigned by annex server

12. Getting the right dynamic IP address with dip

13. DIP patch (dynamic IP address trapping, route 'default' option)