Sorry for my late response.
I am not sure how to help here, the OpenWISP Monitoring package relies on
the system to get the interface information from OpenWrt, so the key is to
make sure ubus returns this.
More info:
- https://openwrt.org/docs/techref/ubus
-
I tried defining the interface in the /etc/config/network file with both
proto to 'none' and 'static' but openwisp still doesn't recognize it.
As you can see in the attached screen, the interface is recognized using
the 'ifconfig' command.[image: image.png]
Is there anything else I can try or
Hi Daniele,
OpenWrt doesn't "see" interfaces which are not defined in its network
configuration.
Try defining a new interface called "bond0" and set it to "proto" none.
That may help OpenWrt to see this interface and allow openwisp to report
its address to the controller.
I hope it helps.
We created a bond interface formed by the eth1 and eth2 interfaces, set
with an IP.
We defined the bond interface (named "*bond0*") as follow:
"
ip link set eth1 down
ip link set eth2 down
echo "+bond0" > /sys/class/net/bonding_masters
echo active-backup > /sys/class/net/bond0/bonding/mode
echo
Hi Daniele,
Could you share the OpenWrt UCI configuration sample for your use case so
we can better understand what you're trying to do?
What do you mean by "main ip address"? Is this the management interface
address? Or what exactly?
The library which deals with configurations is here: