📄 kernel-mode-pppoe
字号:
# LIC: GPLRP-PPPoE now supports kernel-mode PPPoE on Linux kernels 2.4.x. However,the default "./go" build procedure does not make kernel-mode support.Here's what you need to do:0) Make sure you are running kernel 2.4.x on the machine you will buildrp-pppoe on. You must have the following kernel configuration settings: CONFIG_PPP=m or CONFIG_PPP=y CONFIG_PPP_ASYNC=m or CONFIG_PPP_ASYNC=y CONFIG_PPP_SYNC_TTY=m or CONFIG_PPP_SYNC_TTY=y CONFIG_PPP_DEFLATE=m or CONFIG_PPP_DEFLATE=y CONFIG_PPP_BSDCOMP=m or CONFIG_PPP_BSDCOMP=y CONFIG_PPPOE=m or CONFIG_PPPOE=y CONFIG_N_HDLC=m or CONFIG_N_HDLC=y CONFIG_UNIX98_PTYS=yYou also need a /dev/ppp file: mknod --mode=664 /dev/ppp c 108 0You might want to add these lines to /etc/modules.conf: alias char-major-108 ppp_generic alias tty-ldisc-3 ppp_async alias tty-ldisc-13 n_hdlc alias tty-ldisc-14 ppp_synctty alias net-pf-24 pppoe1) If you are running pppd older than 2.4.0, check out the latestversion of the PPP software from the CVS repository at cvs.samba.org.Here's how to do this: cvs -d :pserver:cvs@pserver.samba.org:/cvsroot login # When prompted for a password, type "cvs" # Change to the directory in which you want to store the PPP source # code. cd /path/to/checked/out/sources # Check out the source cvs -z5 -d :pserver:cvs@pserver.samba.org:/cvsroot co pppIf you are running pppd 2.4.0 or newer, and have the pppd developmentheaders installed, you can skip steps 1 and 2.2) The source gets checked out into a subdirectory called ppp. Ifthe source ends up in /path/to/checked/out/sources/ppp, then callthat path $PPPDIR.Build and install the checked-out ppp code according to its instructions.3) Unpack rp-pppoe.4) In the rp-pppoe directory, change to src/ and type: ./configure --enable-plugin=$PPPDIRwhere $PPPDIR, of course, refers to the checked-out "ppp" directoryfrom cvs.samba.org.If you didn't check out the PPP software from cvs.samba.org, use: ./configure --enable-plugin4) Type make; make install5) Edit /etc/ppp/pppoe.conf to include this line: LINUX_PLUGIN=/etc/ppp/plugins/rp-pppoe.soAfter that, pppoe-start should use kernel-mode PPPoE.The rp-pppoe.so plugin adds the following command-line options to pppd:ethXXX -- Use interface ethXXX as Ethernet interfacebrXXX -- Use interface brXXX as Ethernet interfacenic-XXXX -- Use interface XXXX as the Ethernet interfacerp_pppoe_service SERVICE_NAME -- Specify desired service namerp_pppoe_ac NAME -- Specify desired access concentrator namerp_pppoe_verbose 0|1 -- Print names of access concentratorsrp_pppoe_sess nnnn:aa:bb:cc:dd:ee:ff -- Attach to existing session 'nnnn' on AC with Ethernet address aa:bb:cc:dd:ee:ff This skips the discovery phase.--David F. Skoll <dfs@roaringpenguin.com>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -