Re: Kernel-mode PPPoE problem in OpenBSD 4.1 Sparc64
- From: Raphael Mazelier <raph@xxxxxxxxxxxx>
- Date: Sun, 13 May 2007 21:22:07 +0200
Nigel a écrit :
Hi,
I have some problems setting up kernel-mode PPPoE in OpenBSD 4.1
Sparc64... I haven't worked much with Unix... I tried userland pppoe
and it worked but I had huge performance problems in Azureus and
Newsleecher when I use both at the same time, I read that using
kernel-mode pppoe might solve my problem... I set up everything like
they say in the man page (man 4 pppoe) but things still don't work...
Here is the output of ifconfig:
hme0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST>
mtu 1500
lladdr 08:00:20:c2:fe:e4
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::a00:20ff:fec2:fee4%hme0 prefixlen 64 scopeid 0x1
pflog0: flags=0<> mtu 33192
enc0: flags=0<> mtu 1536
pppoe0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1492
dev: hme0 state: session
sid: 0x1913 PADI retries: 0 PADR retries: 0 time: 00:36:31
sppp: phase network authproto pap authname "xxxxxxxxx"
groups: pppoe
inet6 fe80::a00:20ff:fec2:fee4%pppoe0 -> prefixlen 64 scopeid
0x6
inet 70.55.121.239 --> 0.0.0.1 netmask 0xffffffff
As you can see there is an IP address in the pppoe0: section so I
guess a connection is made, but when I try to ping the nameserver of
my ISP or open a website in Lynx it don't work... A thing I noticed is
that the pppoe0 IP address seem to change regularly, sometimes every
45 seconds sometimes every hours...
Here are my configuration files:
# cat sysctl.conf
# $OpenBSD: sysctl.conf,v 1.42 2007/02/15 20:43:33 reyk Exp $
#
# This file contains a list of sysctl options the user wants set at
# boot time. See sysctl(3) and sysctl(8) for more information on
# the many available variables.
#
net.inet.ip.forwarding=1 # 1=Permit forwarding (routing) of
IPv4 packets
# cat hostname.pppoe0
inet 0.0.0.0 255.255.255.255 NONE \
pppoedev hme0 authproto pap \
authname 'xxxxxxxx' authkey 'xxxxxxxx' up
dest 0.0.0.1
!/sbin/route add default -ifp pppoe0 0.0.0.1
#
# cat hostname.hme0
up
#
There is nothing about pppoe: in /var/log/messages ...
My machine is a Sun Ultra 10 440Mhz with 640Mo RAM.
There isn't much documentation on the internet about OpenBSD
kernel-mode pppoe so any help would be appreciated...
Hello,
First of all I post my hostname.pppoe0 (which had working very well for years) :
inet 0.0.0.0 255.255.255.255 0.0.0.1 pppoedev ep1 authproto pap authname toto@xxxxxxxxx authkey XxXxXx up
!/sbin/route add default 0.0.0.1
There is some little difference so try with this one.
Another thing, I see in your ifconfig output :
dev: hme0 state: session
I don't think this was the good state, but I'm not sure because I'm not using pppoe anymore.
You could also try to activate debugging with the debug flag on the ifconfig line (man ifconfig) and post your dmesg output.
Btw, In kernel pppoe improve a lot my net perf; I reminder when I use my connection at max (8mbit) I have 100% cpu use with user-mode pppoe.
With in kernel pppoe It dropped to 20%. My box was a poor old PC at 200Mhz.
--
raf
.
- Follow-Ups:
- Re: Kernel-mode PPPoE problem in OpenBSD 4.1 Sparc64
- From: Clever Monkey
- Re: Kernel-mode PPPoE problem in OpenBSD 4.1 Sparc64
- From: Nigel
- Re: Kernel-mode PPPoE problem in OpenBSD 4.1 Sparc64
- References:
- Kernel-mode PPPoE problem in OpenBSD 4.1 Sparc64
- From: Nigel
- Kernel-mode PPPoE problem in OpenBSD 4.1 Sparc64
- Prev by Date: Kernel-mode PPPoE problem in OpenBSD 4.1 Sparc64
- Next by Date: Re: syslog server (sorry, wrong os)
- Previous by thread: Kernel-mode PPPoE problem in OpenBSD 4.1 Sparc64
- Next by thread: Re: Kernel-mode PPPoE problem in OpenBSD 4.1 Sparc64
- Index(es):
Relevant Pages
|
|