Ian Cottrell wrote:
> I don't have ppp (using cable modem), so my routing table is not quite the
> same, but here it is anyway:
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 192.168.53.254 0.0.0.0 255.255.255.255 UH 0 0 0 eth1
> 192.168.53.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
> 24.156.70.0 0.0.0.0 255.255.254.0 U 0 0 0
>eth0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
> lo
> 0.0.0.0 24.156.70.1 0.0.0.0 UG 0 0 0
>eth0
> In detail:
> 192.168.53.254 is the host ip of the 'inside' (secure) network. Both the
> netmask (255.255.255.255) and the flags (U = route is up, H = target is a
> host) are correct for this device. It is reached through eth1.
> 192.168.53.0 is the sucure network. Again the netmask and flags are
> correct. This is also reached through eth1.
> 24.156.70.0 is the outside (unsecure) network and again, netmask and
> flags are fine. This network is, however, reached via eth0.
> 0.0.0.0 is the 'default route' or the 'gateway of last resort'. When no
> other route is appropriate, data are sent here. This is the only entry that
> has (or needs) a gateway address and that address is supplied by @home
> via dhcp. Its netmask is correct for 'the universe' (everything) and the flags
> indicate that it is up and that it is a gateway.
> Now notice that I have defined 1 host, 1 gateway and 1 local host and 2
> networks while you have defined 2 hosts, 1 gateway and 1 local host and 1
> network. Forgetting localhost, I have 1 network defined for each interface,
> one host and one default route. Damn, this seems to be going on and on!
> Anyway, I believe that your ifcfg-* files are still incorrect and that you do
I'd like to know. ;-)
> not need the the ifconfig statements in rc.local. I could be totally wrong
> here; I'm the first to admit that I know NOTHING about ppp. It could also
> be a function of the version that you are running. All of my Linux
> experience is the RH 6.x and MDK 8.0 (although I have been networking
> with various Unices since the early 80's).
As it turns out, I forgot I upped this box to RHL 6.2 over a year ago. I
use this one to focus on command line stuff, but like the default MDK
GUI much better than Gnome. Even mc works better on MDK.
> You did not post your ifcfg-ppp file (I believe that there should be one). I
I don't see one. Did you mean this?:
/etc/sysconfig/network-scripts/ifup-ppp
#!/bin/sh
PATH=/sbin:/usr/sbin:/bin:/usr/bin
# ifup-post for PPP is handled through /etc/ppp/ip-up
if [ "$1" != daemon ] ; then
# just in case a full path to the configuration file is passed in
ifcfg=$(basename $1)
shift
# let ppp-watch do the right thing
exec /sbin/ppp-watch "$ifcfg" "$@"
fi
shift
cd /etc/sysconfig/network-scripts
. network-functions
CONFIG=$1
[ -f "$CONFIG" ] || CONFIG=ifcfg-$1
source_config
if [ -z "$DISCONNECTTIMEOUT" ]; then
DISCONNECTTIMEOUT=2
DISCONNECTTIMEOUT=2
fi
if [ -z "$RETRYTIMEOUT" ]; then
RETRYTIMEOUT=30
fi
if [ "$2" = "boot" -a "${ONBOOT}" = "no" ]; then
exit
fi
[ -x /usr/sbin/pppd ] || {
echo "/usr/sbin/pppd does not exist or is not executable"
echo "ifup-ppp for $DEVICE exiting"
logger -p daemon.info -t ifup-ppp \
"/usr/sbin/pppd does not exist or is not executable for $DEVICE"
exit 1
}
[ -n "$WVDIALSECT" -o -f /etc/sysconfig/network-scripts/chat-$DEVICE ]
|| {
echo "/etc/sysconfig/network-scripts/chat-$DEVICE does not exist"
echo "ifup-ppp for $DEVICE exiting"
logger -p daemon.info -t ifup-ppp \
"/etc/sysconfig/network-scripts/chat-$DEVICE does not exist for
$DEVICE"
"/etc/sysconfig/network-scripts/chat-$DEVICE does not exist for
$DEVICE"
exit 1
}
opts="lock"
if [ "${HARDFLOWCTL}" != no ] ; then
opts="$opts modem crtscts"
fi
if [ "${ESCAPECHARS}" != yes ] ; then
opts="$opts asyncmap 00000000"
fi
if [ "${DEFROUTE}" != no ] ; then
# pppd will no longer delete an existing default route
# so we have to help it out a little here.
route del default >/dev/null 2>&1
opts="$opts defaultroute"
fi
if [ "${PEERDNS}" != no ] ; then
opts="$opts usepeerdns"
fi
if [ -n "${MRU}" ] ; then
opts="$opts mru ${MRU}"
fi
if [ -n "${MTU}" ] ; then
if [ -n "${MTU}" ] ; then
opts="$opts mtu ${MTU}"
fi
if [ -n "${IPADDR}${REMIP}" ] ; then
# if either IP address is set, the following will work.
opts="$opts ${IPADDR}:${REMIP}"
fi
if [ -n "${PAPNAME}" ] ; then
opts="$opts user ${PAPNAME} remotename ${DEVNAME}"
fi
if [ "${DEBUG}" = yes ] ; then
opts="$opts debug"
chatdbg="-v"
fi
if [ -z "$WVDIALSECT" ] ; then
CHATSCRIPT=/etc/sysconfig/network-scripts/chat-$DEVNAME
[ -f $CHATSCRIPT ] || {
CHATSCRIPT=/etc/sysconfig/network-scripts/chat-$PARENTDEVNAME
}
else
CHATSCRIPT=
fi
(logger -p daemon.info -t ifup-ppp \
"pppd started for $DEVICE on $MODEMPORT at $LINESPEED" &)&
if [ -n "$WVDIALSECT" ] ; then
exec /usr/sbin/pppd -detach $opts $MODEMPORT $LINESPEED \
ipparam $DEVICE linkname $DEVICE \
noauth \
${PPPOPTIONS} \
connect "/usr/bin/wvdial --remotename $DEVICE --chat $WVDIALSECT"
else
exec /usr/sbin/pppd -detach $opts $MODEMPORT $LINESPEED \
ipparam $DEVICE linkname $DEVICE \
noauth \
${PPPOPTIONS} \
connect "/usr/sbin/chat $chatdbg -f $CHATSCRIPT"
fi
> really don't know what it SHOULD look like, since it has to deal with all
> that modem initialisation and dialing stuff. You can also look of
> /etc/ppp/options (if it's there) and post that too.
The only thing in it is the work "lock".
--
A fool gives full vent to his anger, but a wise man keeps himself under
control. Proverbs 29:11 NKJV
Written on OS/2, but routed to you via Linux
Felix Miata *** http://mrmazda.members.atlantic.net/