我一直在尝试使用以太网电缆将我的 Ubuntu 15.10 连接到互联网。我已使用该命令sudo pppoeconf
配置 ADSL。该文件/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
nic-enp7s0
usepeerdns
user "username"
我已经验证了用户名和密码,/etc/ppp/chap-secrets
并且它们是正确的。使用这些凭据,Windows 可以正确连接 Internet。但是,当我尝试pon dsl-provider
时plog
,我收到以下消息。
pppd[2231]: CHAP authentication failed: bad username or password
pppd[2231]: CHAP authentication failed
pppd[2231]: Connection terminated.
pppd[2231]: Failed to disconnect PPPoE socket: 114 Operation already in progress
我不确定哪里出了问题,如果能得到帮助我将非常感激。仅供参考,以下是sudo ifconfig
docker0 Link encap:Ethernet HWaddr 02:42:e9:17:64:fc
inet addr:172.17.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
enp7s0 Link encap:Ethernet HWaddr 20:47:47:bd:fd:dc
inet6 addr: fe80::2247:47ff:febd:fddc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:280 errors:0 dropped:0 overruns:0 frame:0
TX packets:55 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:26954 (26.9 KB) TX bytes:5714 (5.7 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:231 errors:0 dropped:0 overruns:0 frame:0
TX packets:231 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:20731 (20.7 KB) TX bytes:20731 (20.7 KB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:172.172.46.241 P-t-P:103.207.8.34 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:316 (316.0 B) TX bytes:178 (178.0 B)