1.download following pakages:
PPPD-2.4.5(Latest)
Ro-PPPoe
2.Configure & Make & Make install
....
....
3.Config PPPoe-server
1)For MS, Can not support encypt-password protocol (PAP), but only chap ! Change this in the config file (/etc/ppp/options) as following:
# Don't agree to authenticate using PAP.
-pap
# Require the peer to authenticate itself using CHAP [Cryptographic
# Handshake Authentication Protocol] authentication.
+chap
Or like this :
(/etc/ppp/pppoe-server-options)
#require-pap
require-chap
2)Create account .
/etc/ppp/chap-secrects for CHAP , /etc/ppp/pap-secrects for PAP
4.Startup PPPoe-server
./pppoe-server -I eth0 -L 172.18.10.11 -R 172.118.20.11 -N 20
Help :
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.
-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.
-h -- Print usage information.
PPPoE-Server Version 3.10, Copyright (C) 2001-2006 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.
阅读(2414) | 评论(0) | 转发(0) |