如何编辑配置openwrt,来实现pppoe拨号上网

2026年09月25日 17:58
有1个网友回答
网友(1):

首先进入字符界面,然后输入 cd /etc/config 进入 /etc/config 目录
2.输入vi network,进行network文件配置
3.输入如下字符
config 'interface' 'wan'
option 'ifname' 'eth1'
option 'proto' 'pppoe'
option 'username' 'xxxxxxxxxx' (xxxxxxx表示是你的pppoe帐号)
option 'password' 'xxxxxxxxxx' (xxxxxx表示是你的密码)
option 'peerdns' '1'
option 'defaultroute' '1'
4.按:,再按w保存文件
5.输入 cd / 退回根目录
6.输入 /etc/init.d/network start
这样可以上网了。