LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   pppoe server bug in Slackware 14.2 (https://www.linuxquestions.org/questions/linux-newbie-8/pppoe-server-bug-in-slackware-14-2-a-4175584313/)

oake10 07-11-2016 04:34 AM

pppoe server bug in Slackware 14.2
 
I have a fresh install of slackware 14.2 and I found something strange when I give the following command:

root@darkstar:~# pppoe-server -k
pppoe-server: invalid option -- 'k'

I tried everything, to install older version of ppp and rp-pppoe, I tried to recompile by hand all packages, installed other kernel, but still the same error.

More interesting:

root@darkstar:~# pppoe-server -h
Usage: pppoe-server [options]
Options:
-I if_name -- Specify interface (default eth0.)
-T timeout -- Specify inactivity timeout in seconds.
-C name -- Set access concentrator name.
-m MSS -- Clamp incoming and outgoing MSS options.
-L ip -- Set local IP address.
-l -- Increment local IP address for each session.
-R ip -- Set start address of remote IP pool.
-S name -- Advertise specified service-name.
-O fname -- Use PPPD options from specified file
(default /etc/ppp/pppoe-server-options).
-p fname -- Optain IP address pool from specified file.
-N num -- Allow 'num' concurrent sessions.
-o offset -- Assign session numbers starting at offset+1.
-f disc:sess -- Set Ethernet frame types (hex).
-s -- Use synchronous PPP mode.
-X pidfile -- Write PID and lock pidfile.
-q /path/pppd -- Specify full path to pppd.
-Q /path/pppoe -- Specify full path to pppoe.
-u -- Pass 'unit' option to pppd.
-r -- Randomize session numbers.
-d -- Debug session creation.
-x n -- Limit to 'n' sessions/MAC address.
-P -- Check pool file for correctness and exit.
-i -- Ignore PADI if no free sessions.
-h -- Print usage information.

PPPoE-Server Version 3.12, Copyright (C) 2001-2009 Roaring Penguin Software Inc.
PPPoE-Server comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under the terms of the GNU General Public License, version 2
or (at your option) any later version.
http://www.roaringpenguin.com
root@darkstar:~#

something is wrong, is missing, :

-k -- Use kernel-mode PPPoE.

Any ideas!

oake10 07-12-2016 01:44 AM

I found a solution, I recompiled rp-pppoe-3.12 on other slackware machine with Slackware 14.0, make the package rp-pppoe-3.12-x86_64-1.txz, transfer this package on my new Slackware 14.2 machine, installed, and voila:

root@darkstar:~# pppoe-server -h
Usage: pppoe-server [options]
Options:
-I if_name -- Specify interface (default eth0.)
-T timeout -- Specify inactivity timeout in seconds.
-C name -- Set access concentrator name.
-m MSS -- Clamp incoming and outgoing MSS options.
-L ip -- Set local IP address.
-l -- Increment local IP address for each session.
-R ip -- Set start address of remote IP pool.
-S name -- Advertise specified service-name.
-O fname -- Use PPPD options from specified file
(default /etc/ppp/pppoe-server-options).
-p fname -- Optain IP address pool from specified file.
-N num -- Allow 'num' concurrent sessions.
-o offset -- Assign session numbers starting at offset+1.
-f disc:sess -- Set Ethernet frame types (hex).
-s -- Use synchronous PPP mode.
-X pidfile -- Write PID and lock pidfile.
-q /path/pppd -- Specify full path to pppd.
-Q /path/pppoe -- Specify full path to pppoe.
-k -- Use kernel-mode PPPoE.
-u -- Pass 'unit' option to pppd.
-r -- Randomize session numbers.
-d -- Debug session creation.
-x n -- Limit to 'n' sessions/MAC address.
-P -- Check pool file for correctness and exit.
-i -- Ignore PADI if no free sessions.
-h -- Print usage information.

PPPoE-Server Version 3.12, Copyright (C) 2001-2009 Roaring Penguin Software Inc.
PPPoE-Server comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under the terms of the GNU General Public License, version 2
or (at your option) any later version.
http://www.roaringpenguin.com
root@darkstar:~#


There is something wrong with the compiler in slackware 14.2 ?
Something is missing?


All times are GMT -5. The time now is 11:59 AM.