當前位置:編程學習大全網 - 編程軟體 - 如何編輯配置openwrt,來實現pppoe撥號上網

如何編輯配置openwrt,來實現pppoe撥號上網

愛應用問仁間為您解答:

首先進入字符界面,然後輸入 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

這樣可以上網了。

望采納。如有問題請追問。

  • 上一篇:C語言素數怎麽表示
  • 下一篇:C語言 練習
  • copyright 2024編程學習大全網