Subject:  PPPD defaultroute???? [EMAIL PROTECTED]:  PPPD
defaultroute???? [EMAIL PROTECTED]
       




Why does my dialup ppp connection die when I place defaultroute in my
pppd command on the ppp-on script?

I am using ppp2.2.0 and kernel 2.0.30.
My modem hangs up when I use defaultroute.  When I take the defaultroute

out, it dials in and connects.  I can ping the remote HOST, but any
thing
else returns
"NETWORK IS UNREACHABLE".


-----------------------------------------------------------------------
----------

When I try to telnet to the remote host it works!  When I try to telenet

to ANY other site.  I get an error hostname lookup or network
unreachable.

I have the resolv.conf file like...

domain surf-master.net
nameserver 205.152.95.2


The ppp-on script is...

#!/bin/sh
#
# Script to initiate a ppp connection. This is the first part of the
# pair of scripts. This is not a secure pair of scripts as the codes
# are visible with the 'ps' command.  However, it is simple.
#
# These are the parameters. Change as needed.
TELEPHONE=886-8559 # The telephone number for the connection
ACCOUNT=sbrown  # The account name for logon (as in 'George Burns')
PASSWORD=*****  # The password for this account (and 'Gracie Allen')
LOCAL_IP=0.0.0.0 # Local IP address if known. Dynamic = 0.0.0.0
REMOTE_IP=0.0.0.0 # Remote IP address if desired. Normally 0.0.0.0
NETMASK=255.255.255.0 # The proper netmask if needed
#
# Export them so that they will be available at 'ppp-on-dialer' time.
export TELEPHONE ACCOUNT PASSWORD
#
# This is the location of the script which dials the phone and logs
# in.  Please use the absolute file name as the $PATH variable is not
# used on the connect option.  (To do so on a 'root' account would be
# a security hole so don't ask.)
#
DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
#
# Initiate the connection
#
# I put most of the common options on this command. Please, don't
# forget the 'lock' option or some programs such as mgetty will not
# work. The asyncmap and escape will permit the PPP link to work with
# a telnet or rlogin connection. You are welcome to make any changes
# as desired. Don't use the 'defaultroute' option if you currently
# have a default route to an ethernet gateway.
#

exec /usr/lib/ppp/pppd debug -detach lock modem crtscts /dev/ttyS1 38400
\
 $LOCAL_IP:$REMOTE_IP \
 noipdefault netmask $NETMASK connect $DIALER_SCRIPT



*******************ppp-on-dialer script*********************************




#!/bin/sh
#
# This is part 2 of the ppp-on script. It will perform the connection
# protocol for the desired connection.
#
exec chat -v      \

 TIMEOUT  3    \#!/bin/sh

 ABORT  '\nBUSY\r'   \
 ABORT  '\nNO ANSWER\r'   \
 ABORT  '\nRINGING\r\n\r\nRINGING\r' \
 ''  AT    \
 'OK-+++\c-OK' ATH0    \
 TIMEOUT  30    \
 OK  ATDT$TELEPHONE   \
 CONNECT  ''    \
 ogin:--ogin: $ACCOUNT   \
 assword: $PASSWORD



*************************rc.inet1**************************************
*****






#
# rc.inet1 This shell script boots up the base INET system.
#
# Version: @(#)/etc/rc.d/rc.inet1 1.01 05/27/93
#               Modified by Milan Kerslager <[EMAIL PROTECTED]>

HOSTNAME=`hostname`

# Attach the loopback device.
/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0

#     RFC1597 has specifically reserved some IP addresses for private
#     networks.  You should use these as they prevent anything nasty
#     happening if you accidentally get connected to the Internet. The
#     addresses reserved are:
#
#       10.0.0.0        -   10.255.255.255
#       172.16.0.0      -   172.31.255.255
#       192.168.0.0     -   192.168.255.255

# IF YOU HAVE AN ETHERNET CONNECTION, use these lines below to configure
the
# eth0 interface. If you're only using loopback or SLIP, don't include
the
# rest of the lines in this file.

# if [ -r /etc/rc.d/ip-cfg.dos ] && [ "`fromdos < /etc/rc.d/ip-cfg.dos |
grep "^CONFIGURE" | cut -d\  -f2`" = "YES" ]; then
# You may configure IP address from DOS via /etc/rc.d/ip-cfg.dos
# If you dislike this, be sure /etc/rc.d/ip-cfg.dos contain CONFIGURE NO

#  MODULE="`fromdos    < /etc/rc.d/ip-cfg.dos | grep ^MODULE    | cut
-b8-`"
#  IPADDR="`fromdos    < /etc/rc.d/ip-cfg.dos | grep ^IPADDR    | cut
-d\  -f2`"
#  NETMASK="`fromdos   < /etc/rc.d/ip-cfg.dos | grep ^NETMASK   | cut
-d\  -f2`"
#  NETWORK="`fromdos   < /etc/rc.d/ip-cfg.dos | grep ^NETWORK   | cut
-d\  -f2`"
#  BROADCAST="`fromdos < /etc/rc.d/ip-cfg.dos | grep ^BROADCAST | cut
-d\  -f2`"
#  GATEWAY="`fromdos   < /etc/rc.d/ip-cfg.dos | grep ^GATEWAY   | cut
-d\  -f2`"
#  NAME="`fromdos      < /etc/rc.d/ip-cfg.dos | grep ^NAME      | cut
-d\  -f2`"
#  DOMAIN="`fromdos    < /etc/rc.d/ip-cfg.dos | grep ^DOMAIN    | cut
-d\  -f2`"
#  DNSSERVER="`fromdos < /etc/rc.d/ip-cfg.dos | grep ^DNSSERVER | cut
-d\  -f2`"
# else
#  # To manually configure IP address, uncoment line below and double
check them.
#  # Contact your network administrator for proper values.
#  # Read the documentation to be sure, that everything is good.
#  IPADDR="192.168.1.1"
#  NETMASK="255.255.255.0"
#  NETWORK="192.168.1.0"
#  BROADCAST="192.168.1.255"
#  GATEWAY="192.168.1.250"
# fi
#
# We must change our name now...
# if [ ! -z ${NAME} ] && [ ! -z ${DOMAIN} ]; then
#  echo ${NAME}.${DOMAIN} > /etc/HOSTNAME
#  /bin/hostname `cat /etc/HOSTNAME | cut -f1 -d .`
#  HOSTNAME=`hostname`
# fi

# Set up the rest of network configuration via file ip-cfg.dos
# if [ ! -z ${DOMAIN} ] && [ ! -z ${DNSSERVER} ]; then
#  echo nameserver $DNSSERVER > /etc/resolv.conf
#  echo domain $DOMAIN >> /etc/resolv.conf
#  echo order hosts, bind > /etc/host.conf
#  echo multi on >> /etc/host.conf
#  fi

# if [ ! -z "${MODULE}" ]; then
#  # this fix a small bug in syslogd :-(
#  /usr/sbin/syslogd
#  /sbin/modprobe ${MODULE}
# fi
#
# if [ ! -z ${IPADDR} ]; then
#  /sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask
${NETMASK}
#  /sbin/route add -net ${NETWORK} netmask ${NETMASK}
#  /sbin/route add default gw ${GATEWAY} metric 1
# fi

# End of rc.inet1

When I do a route -n, I see the loopback and the ppp interface for the
remote host but I
don't see the ppp interface as the defaultroute.  There are no
defautroutes established
anywhere that I can tell.

Please help me fix this problem!

What am I doing wrong?











-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to