[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ohh no, not another PPP question!!
> Subject: Ohh no, not another PPP question!!
AAAAAAAAHhhhhhhhhhhhhhhhhhhhhhhh!!!!! I'm getting sick of these.
> Okay here it is, my final question! What does everyone use to dial
> their isp, and how the heck did they get it to work! Heres what i need:
>
You use pppd to dial, nothing else. Just let pppd start when the machine boots
and dial whenever it needs to.
> 1. Every file they had to edit to dial! I know thats a lot, but all my
> tinkering didnt do squat!
/etc/ppp/options:
ipcp-accept-remote
ipcp-accept-local
/etc/ppp/peers/isp:
ttyC7 38400
#crtscts
connect '/usr/sbin/chat -v -f /etc/sysconfig/network-scripts/chat-ppp0'
:192.168.3.1
demand
idle 350
ipcp-accept-remote
ipcp-accept-local
holdoff 10
/etc/sysconfig/network-scripts/chat-ppp0:
'' 'ATZ'
'OK' 'ATDT9755800'
'CONNECT' ''
'ogin:' 'LoGiN'
'word:' 'PaSsWoRd'
/etc/sysconfig/network-scripts/ifcfg-ppp0:
DEVICE=ppp0
ONBOOT=no
#BROADCAST=192.168.3.255
#NETWORK=192.168.3.0
NETMASK=255.255.255.0
#IPADDR=
DEFROUTE=yes
MODEMPORT=/dev/ttyS2
LINESPEED=38400
HARDFLOWCTL=yes
BOOTPROTO=none
ESCAPECHARS=no
DEFABORT=no
INITSTRING=ATZ
PPPOPTIONS=
DEBUG=no
PAPNAME=
REMIP=
MTU=
MRU=
DISCONNECTTIMEOUT=
RETRYTIMEOUT=
USERCTL=no
PERSIST=no
/etc/rc.d/init.d/diald:
#!/bin/sh
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
[ -f /usr/sbin/diald ] || exit 0
[ -f /etc/diald/diald.conf ] || exit 0
# See how we were called.
case "$1" in
start)
# Start daemons for 2.2.x
echo -n "Starting kernel demand dialing: "
echo 1 > /proc/sys/net/ipv4/ip_dynaddr
daemon /usr/sbin/pppd call isp
sleep 3
/sbin/route del default
/sbin/route add default ppp0
;;
stop)
# Start daemons for 2.2.x
echo -n "Stopping kernel demand dialing: "
killall -15 pppd
rm /var/lock/subsys/diald
;;
restart)
$0 stop
$0 start
;;
status)
status diald
;;
*)
echo "Usage: diald {start|stop|restart|status}"
exit 1
esac
exit 0
And /etc/rc.d/init.d/diald is symlinked to from /etc/rc.d/init.d/rc5.d and
rc3.d so that it start when the machine enters those run levels.