1. 程式人生 > >openwrt重啟後,修復dns

openwrt重啟後,修復dns

openwrt每次關機後,在開機,就不能上網。

ping baidu.com也直接失敗。
初步判斷是dns問題,在/etc/config/network中新增以下兩行:
option gateway '192.168.1.1'
option dns '192.168.1.1'
問題解決