#time emerge rp-pppoe
#pppoe-setup
#ln -s /etc/init.d/net.lo /etc/init.d/net.eth1
#ln -s /etc/init.d/net.lo /etc/init.d/net.ppp0
#vim /etc/conf.d/rc
RC_NET_STARICT=yes
#vim /etc/conf.d/net 添加下面内容
5 config_eth0="192.168.1.102" netmask 255.255.255.0
6 config_eth1="null"
7 config_ppp0=("ppp")
8 link_ppp0="eth1"
9 plugins_ppp0="pppoe"
10 username_ppp0="宽带帐号"
11 password_ppp0="密码"
12 pppd_ppp0=(
13 "noauth"
14 "defaultroute"
15 "usepeerdns"
16 "holdoff 3"
17 "child_timeout 60"
18 "lcp-eth0-interval 15"
19 noaccomp noccp nobsdcomp nodeflate nopcomp novj novjccomp
20 )
21 depend_ppp0(){
22 need net.eth1
23 }
阅读(419) | 评论(0) | 转发(0) |