Where is the error in network?

there is an error in my network file that prevents me from upgrading to 25.12.0. I had to reset my router after luci app sysupgrade to 25.12.0 coming from 25.10.5 as it froze MT-6000 Flint2. I have installed the sysupgrade package which i downloaded before pressing upgrade and by uploading my last saved 25.10.5 backup I have narrowed it down to the config/network which causes the freeze. all other items in the backup load fine in25.12.0. So if i remove the network config fro the backup tar it loads fine. with the network in there the router freezes. Here is my network file, does anyone know what in this file is making my router freeze if i upload it? THANK YOU SO MUCH in advance

config interface 'loopback'
	option device 'lo'
	option proto 'static'
	option ipaddr '127.0.0.1'
	option netmask '255.0.0.0'

config globals 'globals'
	option ula_prefix 'fd56:2b5:6dcf::/48'
	option packet_steering '1'

config device
	option name 'br-lan'
	option type 'bridge'
	list ports 'lan1'
	list ports 'lan3'
	list ports 'lan4'
	list ports 'lan5'

config interface 'lan'
	option device 'br-lan'
	option proto 'static'
	option ipaddr '192.168.50.1'
	option netmask '255.255.255.0'
	option delegate '0'
	option dns_metric '5'
	list dns '192.168.50.169'
	option peerdns '0'

config interface 'wan'
	option device 'eth1.10'
	option proto 'pppoe'
	option username '*******'
	option password '****'
	option ipv6 '0'
	option keepalive '20 6'
	option metric '40'
	option peerdns '0'
	list dns '192.168.50.169'

config device
	option type '8021q'
	option ifname 'eth1'
	option vid '10'
	option name 'eth1.10'
	option ipv6 '0'

config interface 'pro'
	option proto 'none'
	option device 'tun1'
	option metric '10'
	option dns_metric '5'
	list dns '192.168.50.169'

config interface 'wgserver'
	option proto 'wireguard'
	option private_key '*********'
	option listen_port '51820'
	list dns '192.168.50.189'
	option delegate '0'
	option nohostroute '1'
	list addresses '10.0.8.1/24'

config wireguard_wgserver
	option description 'wghome'
	option public_key '*******'
	option private_key '*******'
	option preshared_key '********'
	option persistent_keepalive '25'
	list allowed_ips '10.0.8.2/32'
	option route_allowed_ips '1'

config device
	option name 'phy1-ap1'
	option macaddr '94:*******'
	option ipv6 '0'

config device
	option type 'bridge'
	option name 'br-guest'
	option bridge_empty '1'
	option ipv6 '0'

config interface 'guest'
	option proto 'static'
	option device 'br-guest'
	option ipaddr '192.168.60.1'
	option netmask '255.255.255.0'
	list dns '*****'

config device
	option name 'br-pro'
	option type 'bridge'
	list ports '@pro'

config device
	option type 'bridge'
	option name 'br-iot'
	option bridge_empty '1'
	option ipv6 '0'

config interface 'IOT'
	option proto 'static'
	option device 'br-iot'
	option ipaddr '192.168.70.1'
	option netmask '255.255.255.0'
	list dns '192.168.50.169'

config interface 'WgM'
	option proto 'wireguard'
	option private_key '*******'
	list addresses '******/32'
	list addresses '******/128'
	list dns '******'
	option auto '0'
	option metric '20'
	option disabled '1'

config wireguard_WgM
	option description 'Imported peer configuration'
	option public_key '********'
	list allowed_ips '0.0.0.0/0'
	list allowed_ips '::0/0'
	option endpoint_host '******'
	option endpoint_port '51820'

config device
	option type 'bridge'
	option name 'br-aux'
	list ports 'lan2'
	option bridge_empty '1'
	option ipv6 '0'

config interface 'aux'
	option proto 'static'
	option device 'br-aux'
	option ipaddr '192.168.40.1'
	option netmask '255.255.255.0'
	list dns '192.168.50.169'

config device
	option type 'bridge'
	option name 'br-IOTw'
	option bridge_empty '1'

config interface 'IOTw'
	option proto 'static'
	option ipaddr '192.168.30.1'
	option netmask '255.255.255.0'
	option device 'br-IOTwork'

ipaddr and netmask are now using CIDR notation
So

should be written as

option ipaddr '192.168.50.1/24'

and then deleting option netmask. Do this for all interfaces

You probably can remove the following although I do not think this is the showstopper

I have serious doubts about this:

did you mean ''br-IOTw"?

yes, I am now rebuilding the network from scratch and that seems to working so I think the issue is resolved. thank you guys!

1 Like

Is it mandatory for the 25.12.0 release? I mean, can old /etc/config/network configuration file that contains option netmask '255.255.255.0' cause issues when restoring the config in 25.12.0?

Or can it be restored with the old config and updated later to option ipaddr '192.168.50.1/24'?

Just try it and we will know :slight_smile:

1 Like

On master/snapshot you can use either (but not a mixture).
Unless 25.12 has a bug, I would expect it to be the same.
I guess I will have to try!

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.