[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Demand PPP



I know that this question has been asked recently, but I obviously must be
missing something because I cannot get PPP to work on demand.

Currently I use pon/poff to dial into my ISP and get my dynamic IP address.
I want to automate the process so that ppp dials out automatically.

Here is my current /etc/ppp/options:
# /etc/ppp/options
# 

asyncmap 0

auth

crtscts

lock

hide-password

modem

lcp-echo-interval 30

lcp-echo-failure 4

noipx

persist

maxfail 3

holdoff 3

# ---<End of File>---

Here is my /etc/ppp/peers/provider file:

noauth

connect "/usr/sbin/chat -v -f /etc/chatscripts/provider"

defaultroute

/dev/ttyS1

38400

# -- end of file --


Here is my /etc/network/interfaces file:

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
	address 192.168.1.3
	netmask 255.255.255.0
	network 192.168.1.0
	broadcast 192.168.1.255

# -- End of file --

Here is what ifconfig reports with ppp0 down.

eth0      Link encap:Ethernet  HWaddr 00:50:BA:43:8D:B3  
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
          EtherTalk Phase 2 addr:65280/48
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3111 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 
          RX bytes:0 (0.0 b)  TX bytes:193226 (188.6 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          EtherTalk Phase 2 addr:0/0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1087 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1087 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 
          RX bytes:62240 (60.7 KiB)  TX bytes:62240 (60.7 KiB)


If I add "demand" to /etc/ppp/options and start pon, then I get the
following from ifconfig:

eth0      Link encap:Ethernet  HWaddr 00:50:BA:43:8D:B3  
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
          EtherTalk Phase 2 addr:65280/48
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3111 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 
          RX bytes:0 (0.0 b)  TX bytes:193226 (188.6 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          EtherTalk Phase 2 addr:0/0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1087 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1087 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 
          RX bytes:62240 (60.7 KiB)  TX bytes:62240 (60.7 KiB)

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:10.64.64.64  P-t-P:10.112.112.112  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

Although I think ppp is is demand mode, the modem does not dial out. If I
now try to ping an external site, I get an "unknown host" error message. In
addition, I get the following in my
/var/log/messages log:

Feb  4 11:37:31 claire kernel: IN= OUT=ppp0 SRC=10.64.64.64
DST=199.224.86.15 LEN=54 TOS=0x00 PREC=0x00 TTL=64 ID=45908 DF PROTO=UDP
SPT=32786 DPT=53 LEN=34
Feb  4 11:37:31 claire kernel: IN= OUT=ppp0 SRC=10.64.64.64
DST=199.224.86.16 LEN=54 TOS=0x00 PREC=0x00 TTL=64 ID=45908 DF PROTO=UDP
SPT=32786 DPT=53 LEN=34
Feb  4 11:37:31 claire kernel: IN= OUT=ppp0 SRC=10.64.64.64
DST=199.224.86.15 LEN=64 TOS=0x00 PREC=0x00 TTL=64 ID=45908 DF PROTO=UDP
SPT=32786 DPT=53 LEN=44
Feb  4 11:37:31 claire kernel: IN= OUT=ppp0 SRC=10.64.64.64
DST=199.224.86.16 LEN=64 TOS=0x00 PREC=0x00 TTL=64 ID=45908 DF PROTO=UDP
SPT=32786 DPT=53 LEN=44
Feb  4 11:37:31 claire kernel: IN= OUT=ppp0 SRC=10.64.64.64
DST=199.224.86.15 LEN=64 TOS=0x00 PREC=0x00 TTL=64 ID=45908 DF PROTO=UDP
SPT=32786 DPT=53 LEN=44
Feb  4 11:37:31 claire kernel: IN= OUT=ppp0 SRC=10.64.64.64
DST=199.224.86.16 LEN=64 TOS=0x00 PREC=0x00 TTL=64 ID=45908 DF PROTO=UDP
SPT=32786 DPT=53 LEN=44
Feb  4 11:38:01 claire kernel: IN= OUT=ppp0 SRC=10.64.64.64
DST=199.224.86.15 LEN=62 TOS=0x00 PREC=0x00 TTL=64 ID=48840 DF PROTO=UDP
SPT=32786 DPT=53 LEN=42
Feb  4 11:38:01 claire kernel: IN= OUT=ppp0 SRC=10.64.64.64
DST=199.224.86.16 LEN=62 TOS=0x00 PREC=0x00 TTL=64 ID=48840 DF PROTO=UDP
SPT=32786 DPT=53 LEN=42
Feb  4 11:38:01 claire kernel: IN= OUT=ppp0 SRC=10.64.64.64
DST=199.224.86.15 LEN=62 TOS=0x00 PREC=0x00 TTL=64 ID=48840 DF PROTO=UDP
SPT=32786 DPT=53 LEN=42
Feb  4 11:38:01 claire kernel: IN= OUT=ppp0 SRC=10.64.64.64
DST=199.224.86.16 LEN=62 TOS=0x00 PREC=0x00 TTL=64 ID=48840 DF PROTO=UDP
SPT=32786 DPT=53 LEN=42

What have I missed? 

Thanks for any assistance.


-- 
David Raeker-Jordan
mailto:david@raeker-jordan.net
GnuPG key: 1024D/CD956608

Attachment: pgpjOR5eKpZPJ.pgp
Description: PGP signature


Reply to: