# Config Static IP uci set network.wan.proto=static uci set network.wan.ipaddr=10.10.10.5 uci set network.wan.netmask=255.255.255.0 uci set network.wan.gateway=10.10.10.1
# Review Config uci export network
# Commit UCI Config, need restart network to working. uci commit
LAN
Use edit config files way.
1 2 3 4 5 6 7 8 9 10
vi /etc/config/network
config interface 'lan' option type 'bridge' option ifname 'eth0' option proto 'static' option ipaddr '192.168.1.1' option netmask '255.255.255.0' option dns '10.10.10.1' option ip6assign '60'
WLAN
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# Enable Wireless Device uci set wireless.@wifi-device[0].disabled=0
# Config Wireless uci set wireless.@wifi-iface[0].mode=ap uci set wireless.@wifi-iface[0].ssid=TSFuShui uci set wireless.@wifi-iface[0].encryption=psk2 uci set wireless.@wifi-iface[0].key=88888888 uci set wireless.@wifi-iface[0].network=lan
# Review Config uci export wireless
# Commit UCI Config, need restart network to working. uci commit
TEST
1 2 3 4 5
# Restart network to apply config /etc/init.d/network restart