ubuntu server 之拨号软件ADSL(rp-pppoe 工具)

以ubuntu16.04为例

下载官方包

https://dianne.skoll.ca/projects/rp-pppoe/

目前下载这样

https://dianne.skoll.ca/projects/rp-pppoe/download/rp-pppoe-3.15.tar.gz

先把网卡配置成DHCP

netconfig

解压

tar -zxf rp-pppoe-3.15.tar.gz

cd rp-pppoe-3.15

运行脚本 go:

./go

自动进行编译和安装

调用 /usr/sbin/adsl-setup 进行设置

Enter your PPPoE user name :
输入ADSL帐号

Enter the Ethernet interface connected to the ADSL modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethn, where ’n’ is a number.
(default eth0):
输入eth0 ,网卡的名字

Enter the demand values (default no):
输入 no

Enter the DNS inFORMation here:
输入DNS服务器 IP 地址

Please enter your PPPoE password:
输入ADSL密码

Choose a type of firewall (0-2):
输入 0 或 1

Accept these settings and adjust configuration files (y/n)?
输入 y

拨号上网
pppoe-start

成功出现 Connected;

pppoe-stop 断开和ISP的连接

pppoe-status 查看当前连接的状态

点赞

发表评论

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