Hello,
For Openwrt system that has not been assigned dynamic IP (no DHCP server available), this is the result of ubus call:
ubus -v call network.interface.lan status
{
"up": false,
"pending": true,
"available": true,
"autostart": true,
"dynamic": false,
"proto": "dhcp",
"device": "eth0",
"data": {
}
}
When I manually assigned IP address so it is reachable on the network, eg:
ip addr add 192.168.1.123/24 dev eth0
The status of ubus -v call network.interface.lan status
call is the same. Meaning somehow netifd is not aware of the current ip configuration. How can I set ip address using ifconfig/ip
temporarily (not saved in system config) in such a way that ubus call will returns up-to-date configration ?