|
|
关于pppoe上网的简单方法
a。内核不忘安装网卡的驱动和pppoe支持
b。安装 ppp (ftp://ftp.samba.org/pub/ppp/ppp-2.4.4.tar.gz)
./configure --prefix=/usr &&
make &&
make install &&
make install-etcppp
c。配置 pppoe 帐户
cat >/etc/ppp/peers/pppoe <<"EOF"
# there's no need to install rp-pppoe
plugin rp-pppoe.so
# Replace "eth0" with your network interface name
eth0
# Replace "你的帐户名" with your username at the ISP
user "你的帐户名"
# The settings below usually don't need to be changed
noauth
hide-password
updetach
debug
defaultroute
noipdefault
usepeerdns
remotename pppoe
EOF
d。配置密码
touch /etc/ppp/pap-secrets
chmod 600 /etc/ppp/pap-secrets
cat >/etc/ppp/pap-secrets <<"EOF"
# username remotename password IP for the peer
"你的帐户名" * "你的密码" *
EOF
e。拨号
pppd call pppoe
f。感慨
明文存储密码。。。 |
|