2012年9月9日 星期日

rp-pppoe & ppp

download rp-pppoe-3.11.tar.gz & ppp-2.4.5.tar.gz
編譯
rp-pppoe:
sudo ./go

ppp-2.4.5
./configure
CC=gcc make
sudo make install
sudo make install-etcppp

拷貝到目的地
rp-pppoe:
copy /usr/sbin
pppoe pppoe-server pppoe-sniff pppoe-relay pppoe-setup pppoe-start pppoe-stop pppoe-status pppoe-connect
to target /usr/sbin

pppd:
copy /usr/local/sbin
pppd chat pppdump pppstats pppoe-discovery
to target /usr/sbin

copy etc.ppp/
options chap-secrets pap-secrets
to target /etc/ppp/

using ppp:
create
/etc/ppp/peers/neo
/etc/ppp/peers/neo-connect-chat

$:sudo pppd call neo


using pppoe client:
$: sudo pppoe-setup
$: sudo pppoe-start

sudo route add default gw 61.59.238.1 irtt ppp0

沒有留言:

張貼留言