martin f krafft a écrit :
also sprach Mathieu Lemaitre <mathieu.lemai...@xilan.net> [2009.09.08.1452
+0200]:
pppoe-server kernel mode is still unavailable in debian lenny (pppoe
3.8-3). the only way to do it is to include a line "#define
HAVE_LINUX_KERNEL_PPPOE 1" in pppoe-server.c, then "pppoe-server -k"
works. with this, my cpu load decreased from 100 to 5%
is there an easier way to get it work in debian lenny ? any fix since
2005 ?
I think you want to use rp-pppoe.so (a userspace driver), like so in
the /etc/ppp/peers/dsl-provider file:
plugin rp-pppoe.so eth1
That plugin is in the pppoe package. Alternatively, you can use
/usr/sbin/pppoe as described in the /etc/ppp/peers/dsl-provider
example shipped by the pppoe package.
You can then use a stanza in /etc/network/interfaces to configure it:
auto dsl
iface dsl inet ppp
pppoe-iface eth1
provider dsl-provider
pre-up ip link set $IF_PPPOE_IFACE up
pre-up ip addr flush dev $IF_PPPOE_IFACE
down ip link set $IF_PPPOE_IFACE down
and finally run 'ifup dsl' as root.
what I want to do is a pppoe server, not a client
without the "plugin rp-pppoe" option and without the pppoe-server "-k"
option, pppd runs like this:
pppd pty /usr/sbin/pppoe -n -I ethX -e XX:XX:XX:XX:XX:XX:XX -S '' file
/etc/ppp/pppoe-server-options a.b.c.d:a.b.c.y nodetach noaccomp
nobsdcomp nodeflate nopcomp novj novjccomp default-asyncmap
for ~100 clients, my cpu load is 100%, and the pppoe kernel module isn't
loaded
I tried with the "plugin rp-pppoe ethX" option, but a got an error: "
pppd[30590]: unrecognized option 'pty' "
I recompiled the pppoe package to enable the pppoe-server "-k" option,
then pppd runs like this:
pppd plugin /etc/ppp/plugins/rp-pppoe.so nic-ethX rp_pppoe_sess
XX:XX:XX:XX:XX:XX:XX rp_pppoe_service file
/etc/ppp/pppoe-server-options a.b.c.d:a.b.c.y nodetach noaccomp
nobsdcomp nodeflate nopcomp novj novjccomp default-asyncmap
for ~100 clients, the cpu load is only 10%, pppoe kernel is loaded and
the file "/proc/net/pppoe" exists
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org