It seems that other people use ADSL-setup or something to do the client. I will do the server, hey...
However, there is no understanding of the pppoe protocol. You need to understand it first...
Basically, if I didn't do anything, I could use the pppoe dial-up tool to dial it...
Platform: RedHat as3
Software:
[Root @ Jintao PPP] # rpm-Qa | grep-I "pppoe"
Rp-pppoe-3.5-4
It's 3.5-4, but it's similar...
After installation, You need to modify it in several files under/etc/PPP...
The main method is to change the authentication method, and Other Default methods will be available... so we usually select the authentication method in pppoe-server-options...
For example, chap or pap.
You need to specify the user name and password in the corresponding file, such as chap-secrets and pap-secrets...
Sadly, when I use pap, even if the user name and password are specified, it still cannot pass the authentication...
When chap is used, the system calls it...
Format:
"Jintao" * "Jintao "*
The username, server, and password respectively. I forgot them... Haha...
Pppoe-server...
Pppoe-server-l 10.0.0.1-r 10.0.0.2-N 64-K-u
-L: IP address of the pppoe Server
-R: Specifies the IP address range allocated to the client by the pppoe dial-in server.
-N: Number of allowed clients to dial in simultaneously (the default value is 64, and the maximum value is 65534)
-K: Kernel Mode (but it seems that it cannot be used)
This is 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.
-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.
-K -- use kernel-mode pppoe.
-U -- pass 'unit 'option to pppd.
-R -- randomize session numbers.
-D -- debug session creation.
-P -- check pool file for correctness and exit.
-H -- print usage information.