/etc/config/network (JUCI webinterface)

I use JUCI.

If I change from DHCP to static IP in WAN or WAN6 then in /etc/config/network , the configuration for LAN gets modified somewhere .

Wrongly instead of writing option ifname "eth0", wrongly gets written as option ifname "br-lan"

After $scope.$apply(), the configurations gets saved in router's /etc/config/network

Where it is getting changed?

Need “steps to replicate” to answer

In JUCI based UI,
in network-> connections, if I change from DHCP to static IP then LAN configuration also gets modified in /etc/config/network.

The following working LAN configuration,
config interface 'lan'
option type 'bridge'
option ip6assign '60'
option proto 'dhcp'
option ifname 'eth0 eth1'

gets modified as below
config interface 'lan'
option type 'bridge'
option ip6assign '60'
option proto 'dhcp'
option up '1'
option ifname 'br-lan'

if ( option ifname 'br-lan' ) then I can't access my router via web UI.
It should be option ifname 'eth0 eth1'

Where in source code, /etc/config/network gets written before calling backend(.lua) ?

JUCI is a webinterface project maintained by Inteno. You need to raise a bug report there.

1 Like