首先安装ppp
sudo pacman -S ppp
使用ifconfig
查看网卡network interfaces.
找到网卡名称,一般可能是eth0
,我的笔记本网卡是enp7s0
此时要把相应的网卡先turn down
ifconfig your_interface down
使用pppoe-setup
配置相关信息
Ethernet Interface: enp7s0
User name: 填写宽带用户名
Activate-on-demand: No
DNS addresses: Supplied by ISP’s server
Firewalling: NONE启动pppoe
pppoe-start
关闭
pppoe-stop
除了使用pppoe配置,还可以使用archwiki给出的pppd
配制,由于一开始遇到问题(没有turn down network interface),后来未使用,直接改用了pppoe-setup配置。
参考:
1. /services/pppoe_iptables.html
2. /index.php/Ppp
3. https://www.cyberciti.biz/faq/linux-list-network-interfaces-names-command/
4. /questions/linux-newbie-8/how-to-configure-pppoe-connection-943534/
5. /hongse_zxl/article/details/50733602