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

pppoe(4) problems under OpenBSD 3.7



I'm having problems getting pppoe(4) to work correctly under 3.7.  Here is
my /etc/hostname.pppoe0:
pppoedev hme1
!/sbin/ifconfig hme1 up
!/usr/sbin/spppcontrol \$if myauthproto=pap 'myauthname=secret' \
  'myauthkey=secret' hisauthproto=none
!/sbin/ifconfig \$if inet 0.0.0.0 0.0.0.1 netmask 0xffffffff
!/sbin/route add default 0.0.0.1
up

pppoe0 does successfully authenticate, but then it just stops working a
second later, and gets stuck in an infinite loop trying to to establish a
session.  Here's the relevant output from my /var/log/messages:
May  6 11:17:45 leech /bsd: pppoe0: phase establish
May  6 11:17:45 leech /bsd: pppoe0: phase authenticate
May  6 11:17:45 leech /bsd: pppoe0: phase network
May  6 11:17:45 leech /bsd: hme1: DAD detected duplicate IPv6 address
fe80:0002::0a00:20ff:fe88:ebd5: NS in/out=1/1, NA in=0
May  6 11:17:46 leech /bsd: hme1: DAD complete for
fe80:0002::0a00:20ff:fe88:ebd5 - duplicate found
May  6 11:17:46 leech /bsd: hme1: manual intervention required
May  6 11:17:50 leech /bsd: pppoe0: phase terminate
May  6 11:18:00 leech /bsd: pppoe0: phase dead
May  6 11:18:00 leech /bsd: pppoe0: phase establish
May  6 11:18:00 leech /bsd: pppoe0: phase authenticate
May  6 11:18:00 leech /bsd: pppoe0: phase network
May  6 11:18:10 leech /bsd: pppoe0: phase terminate
May  6 11:18:20 leech /bsd: pppoe0: phase dead
May  6 11:18:20 leech /bsd: pppoe0: phase establish
May  6 11:18:20 leech /bsd: pppoe0: phase authenticate
May  6 11:18:20 leech /bsd: pppoe0: phase network
May  6 11:18:30 leech /bsd: pppoe0: phase terminate
etc.

I am sure that the session worked for at least a second, because
successfully received a reply to one ping to an external IP address.
Unfortunately a working connection does not last any longer than that,
subsequent pings received no reply.

Previously I used Frank Denis's in-kernel pppoe patch against OpenBSD 3.6.
That worked perfectly.  However the way I set it up was slightly
different: one difference was that I used pppoectl instead of
spppcontrol, and another was that I used the additional option
"lcp-timeout=5000", so the relevant line looked like this:
!pppoectl pppoe0 myauthproto=pap 'myauthname=secret' 'myauthsecret=secret' \
  hisauthproto=none lcp-timeout=5000
Is there an equivalent option to "lcp-timeout" under 3.7, or is it not
necessary?

Anyone have any hints as to how I can get in-kernel pppoe working under 3.7?

thanks for any help,
Jim Faulkner



Visit your host, monkey.org