ubuntu下pppoe上网

1、sudo vi /etc/ppp/peers/dsl-provider

noipdefault
defaultroute
replacedefaultroute
hide-password
#lcp-echo-interval 30
#lcp-echo-failure 4
noauth
persist
#mtu 1492
#persist
#maxfail 0
#holdoff 20
plugin rp-pppoe.so eth0
user "gzDSLxxxx"
usepeerdns

2、sudo vi /etc/network/interfaces

sudo ifconfig eth0 up

auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth0 up
provider dsl-provider

auto eth0
iface eth0 inet manual

3、sudo /etc/ppp/pap-secrets增加adsl的用户名和密码

"gzDSLxxxx" * "ADSLPASSWOD"

4、sudo pon dsl-provider

5、sudo plog

1)拨号成功显示如下

Jun 23 09:40:12 wangliang pppd[11564]: Using interface ppp0
Jun 23 09:40:12 wangliang pppd[11564]: Connect: ppp0 <–> eth0
Jun 23 09:40:12 wangliang pppd[11564]: PAP authentication succeeded
Jun 23 09:40:12 wangliang pppd[11564]: peer from calling number 00:30:88:12:34:98 authorized
Jun 23 09:40:12 wangliang pppd[11564]: local  IP address 113.67.0.174
Jun 23 09:40:12 wangliang pppd[11564]: remote IP address 113.67.0.1
Jun 23 09:40:12 wangliang pppd[11564]: primary   DNS address 202.96.134.33
Jun 23 09:40:12 wangliang pppd[11564]: secondary DNS address 202.96.128.86

2)拨号失败

sudo plog
Jun 23 20:42:57 wangliang pppd[26170]: Plugin rp-pppoe.so loaded.
Jun 23 20:42:57 wangliang pppd[26172]: pppd 2.4.5 started by root, uid 0
Jun 23 20:43:32 wangliang pppd[26172]: Timeout waiting for PADO packets
Jun 23 20:43:32 wangliang pppd[26172]: Unable to complete PPPoE Discovery

参考资料

https://help.ubuntu.com/community/ADSLPPPoE

原创文章,转载请注明: 转载自海波无痕

本文链接地址: ubuntu下pppoe上网

文章的脚注信息由WordPress的wp-posturl插件自动生成

此条目发表在server分类目录,贴了, , 标签。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已用*标注

评论链接可以 移除 nofollow.