Incompatibility changes caused by OpenWrt 21.02 RC2
OpenWrt developers made a lot of easier to configure VLANs, ports brinding in OpenWrt 21.02 RC2 and some options were renamed and so on. Once you go to LuCI it asked you to do Network bridge configuration migration
and Network ifname configuration migration
. Once, I did that then reForis is somehow confused about it especially Network Interfaces, where it says that I don't have any WAN or LAN as all of them are unassigned.
Related to:
- https://github.com/openwrt/openwrt/commit/16ccf888ee70c65aa4943641e4b8e74e52dc1930
- https://github.com/openwrt/openwrt/commit/892fc7caa9eee9f5ef9e172677f871c02841bae8
Copy&pasted from the commit message:
Before:
config interface 'lan'
option type 'bridge'
option ifname 'lan1 lan2 lan3 lan4'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
After:
config device
option name 'lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
config interface 'lan'
option ifname 'lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
And indeed it is like above after migration:
root@turris:~# cat /etc/config/network
config interface 'loopback'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
option device 'lo'
config globals 'globals'
option ula_prefix 'fdc6:a480:209f::/48'
config interface 'wan'
option proto 'dhcp'
option ipv6 '1'
option device 'eth0'
config interface 'lan'
option proto 'static'
option netmask '255.255.255.0'
option _turris_mode 'managed'
option ip6assign '60'
option ipaddr '192.168.5.1'
list alternative_ip '192.168.1.1/24'
list alternative_ip '172.16.1.1/24'
list alternative_ip '172.16.11.1/24'
option device 'br-lan'
config interface 'wan6'
option proto 'dhcpv6'
option device '@wan'
config interface 'vpn_turris'
option enabled '1'
option proto 'none'
option auto '1'
option device 'tun_turris'
config device
option type 'bridge'
option name 'br-lan'
option macaddr 'nuked'
list ports 'lan1'
list ports 'lan4'
list ports 'lan2'
list ports 'lan3'
option vlan_filtering '1'
config device