再インストールして、コマンドにて設定してみた。
ネットワーク設定(固定IP)
ブロードバンドルーター 192.168.#.a
FON のIPアドレス 192.168.#.b
とします。
root@OpenWrt:~# uci set network.lan.proto=static
root@OpenWrt:~# uci set network.lan.ipaddr=192.168.#.b
root@OpenWrt:~# uci set network.lan.netmask=255.255.255.0
root@OpenWrt:~# uci set network.lan.gateway=192.168.#.a
root@OpenWrt:~# uci set network.lan.dns=192.168.#.a
root@OpenWrt:~# uci commit network
root@OpenWrt:~# ifdown lan && ifup lan
root@OpenWrt:~# uci set wireless.wifi0.disabled=0
root@OpenWrt:~# uci set wireless.wifi0.txpower=10
root@OpenWrt:~# uci set wireless.@wifi-iface[0].encryption=psk2
root@OpenWrt:~# uci set wireless.@wifi-iface[0].key=**********
root@OpenWrt:~# uci commit
root@OpenWrt:~# wifi
sh: auto: bad number
Configuration file: /var/run/hostapd-ath0.conf
Using interface ath0 with hwaddr 00:xx:xx:xx:xx:xx and ssid 'AP-SSID'
root@OpenWrt:~#
Hostname と Timezone の設定
root@OpenWrt:~# uci set system.@system[0].hostname=AP-SSID
root@OpenWrt:~# uci set system.@system[0].timezone=JST-9
root@OpenWrt:~# uci commit system
root@OpenWrt:~# reboot
LuCI で確認してみると、Local Time が変だ。
Telnet(SSH) と LuCI を両方駆使して何とか設定した。
Telnet(SSH) から以下の様に操作・設定。
root@OpenWrt:~# uci show ntpclient
ntpclient.@ntpserver[0]=ntpserver
ntpclient.@ntpserver[0].port=123
ntpclient.@ntpserver[0].hostname=0.openwrt.pool.ntp.org
ntpclient.@ntpserver[1]=ntpserver
ntpclient.@ntpserver[1].hostname=1.openwrt.pool.ntp.org
ntpclient.@ntpserver[1].port=123
ntpclient.@ntpserver[2]=ntpserver
ntpclient.@ntpserver[2].hostname=2.openwrt.pool.ntp.org
ntpclient.@ntpserver[2].port=123
ntpclient.@ntpserver[3]=ntpserver
ntpclient.@ntpserver[3].hostname=3.openwrt.pool.ntp.org
ntpclient.@ntpserver[3].port=123
ntpclient.@ntpdrift[0]=ntpdrift
ntpclient.@ntpdrift[0].freq=0
ntpclient.@ntpclient[0]=ntpclient
ntpclient.@ntpclient[0].interval=60
ブロードバンドルーターのアドレスが 192.168.#.a とした場合
root@OpenWrt:~# uci set ntpclient.@ntpserver[0].hostname=192.168.#.a
又はNICT公開NTPサービス
root@OpenWrt:~# uci set ntpclient.@ntpserver[0].hostname=ntp.nict.jp
root@OpenWrt:~# uci changes ntpclient.@ntpserver[0].hostname=192.168.#.a
root@OpenWrt:~# uci commit ntpclient.@ntpserver[0].hostname
ntpclient が入っていない場合は、LuCI から、Administration タブを選択して、
System → Software を見る。そこに無い時は、Update package lists をクリックする。
LuCI の System → System で確認、OK




ランダムな画像
Now loading...