Change wifi dhcp client get ip from router ip pool to static ip:
Login web control panel after setup wifi
Yun network setting:
wlan (WIFI)
mode:sta for managed (client) mode
dhcp client get ip from router ip pool
(192.168.0.X)
eth1 (ethernet)
dhcp client get ip from router ip pool
(192.168.0.X)
nano /root/sta2.sh
#!/bin/ash uci set network.lan._orig_ifname=wlan0 uci set network.lan._orig_bridge=false uci set network.lan.proto=static uci set network.lan.ipaddr=192.168.0.3 uci set network.lan.netmask=255.255.255.0 uci set network.lan.gateway=192.168.0.1 uci set network.lan.dns=192.168.0.1 /sbin/uci commit network /etc/init.d/network restart
chmod 755 /root/sta2.sh
/root/sta2.sh
Comments powered by CComment