Your Linux Data Center Experts

CDPD DIP Script Instructions

The "locip" line should list the IP address you were given. The "rmtip" line should list the IP address at your provider (they should be able to give that to you).

DIP Script

get $locip 123.456.789.123
get $rmtip 987.654.321.987
port ttyS0
speed 38400
default

send ATZ\r
wait OK
send AT+WS46=4\r
wait OK
send ATD\r
wait CONNECT

mode slip

DIP Command

dip -v dipscript

Automatic Start up

Below is a modified serial.opts file to allow the CDPD interface to be brought up automatically when the card is inserted. The dip script must be stored in "/root/dipscript" or the script below must be modified.

/etc/pcmcia/serial.opts

# Serial device configuration
#
# The address format is "scheme,socket,instance".
#

################
#  Start up CDPD
isCDPD=`cardctl ident "$SOCKET" 2>&1 | grep CDPD`
if [ -n "$isCDPD" -a "$ACTION" = "start" ]
then
   echo "Starting DIP"
   ( sleep 3; date; dip /root/dipscript ) >/tmp/dipstart.out 2>&1 &
fi
if [ -n "$isCDPD" -a "$ACTION" = "stop" ]
then
   /sbin/ifconfig sl0 down
   /sbin/route del default gw 199.88.234.61
fi

case "$ADDRESS" in
*,*,*)
    # Symbolic link to dialout device
    LINK="/dev/modem"
    # Options for 'setserial'
    SERIAL_OPTS=""
    # Should we create an inittab entry for this port?
    #INITTAB="/sbin/mgetty"
    ;;
esac