I've tried to migrate my Archer C7v2 network config by pressing the "migrate" button that was offered by LUCI after upgrading from 21.02.0-rc.1 to 21.02.0-rc.2. After that, my device went unreachable (no web UI, no ping).
My original network config I copied off the device before starting the migration was:
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd63:8f35:a549::/48'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option vid '1'
config switch_vlan
option device 'switch0'
option vlan '2'
option vid '10'
option ports '0t 1t'
config switch_vlan
option device 'switch0'
option vlan '3'
option vid '50'
option ports '0t 6t 1t'
config switch_vlan
option device 'switch0'
option vlan '4'
option vid '30'
option ports '0t 6t 1t'
config switch_vlan
option device 'switch0'
option vlan '5'
option vid '40'
option ports '0t 6t 1t'
config switch_vlan
option device 'switch0'
option vlan '6'
option vid '134'
option ports '0t 6t 1t'
config switch_vlan
option device 'switch0'
option vlan '7'
option ports '0t 6t 1t'
option vid '133'
config interface 'VL10'
option proto 'static'
option delegate '0'
option igmp_snooping '1'
option igmp_v3 '1'
option multicast_querier '0'
option ipaddr 'x.y.z.61'
option netmask '255.255.254.0'
option gateway 'x.y.z.1'
option broadcast 'x.y.z.255'
list dns 'IP_ADDR_DNS1'
list dns 'IP_ADDR_DNS2'
option type 'bridge'
option ifname 'bat0.10 eth1.10'
config interface 'VL30'
option type 'bridge'
option proto 'static'
option delegate '0'
option igmp_snooping '1'
option igmp_v3 '1'
option multicast_querier '0'
option ifname 'bat0.30 eth0.30'
config interface 'VL40'
option type 'bridge'
option proto 'static'
option delegate '0'
option igmp_snooping '1'
option igmp_v3 '1'
option multicast_querier '0'
option ifname 'bat0.40 eth1.40'
config interface 'VL50'
option proto 'static'
option delegate '0'
option igmp_snooping '1'
option igmp_v3 '1'
option multicast_querier '0'
option type 'bridge'
option ifname 'bat0.50 eth0.50'
config interface 'VL133'
option type 'bridge'
option proto 'static'
option delegate '0'
option igmp_snooping '1'
option igmp_v3 '1'
option multicast_querier '0'
option ifname 'eth0.133'
config interface 'VL134'
option type 'bridge'
option proto 'static'
option delegate '0'
option igmp_snooping '1'
option igmp_v3 '1'
option multicast_querier '0'
option ifname 'bat0.134 eth1.134'
config interface 'bat0'
option proto 'batadv'
option routing_algo 'BATMAN_IV'
option aggregation '1'
option ap_isolation '0'
option bonding '0'
option fragmentation '1'
option gw_mode 'off'
option log_level '0'
option orig_interval '10000'
option bridge_loop_avoidance '1'
option distributed_arp_table '1'
option multicast_mode '1'
option network_coding '0'
option hop_penalty '30'
option isolation_mark '0x00000000/0x00000000'
config interface 'nwi_mesh0'
option mtu '1532'
option proto 'batadv_hardif'
option master 'bat0'
Will now try to pull off the config LUCI created automatically out of this...
UPDATE: I can no longer access fail safe mode (ssh, telnet do NOT work) - connected as usual with a direct connection PC<->AP and coming from 192.168.1.2/24 to 192.168.1.1. The device's system led flashes fast which indicates it successfully entered failsafe mode but I cannot access it.
UPDATE 2: I've restored 21.02.0-rc.1 including my settings, then upgraded to 21.02.0-rc.2 again and manually edited my "/etc/config/network" as follows:
- Replaced "ifname" by "device"
- I've removed "bat0.10" from my mgmt interface where OpenWrt Web UI runs.
I can now successfully reach my device's web UI and SSH after reboot on 21.02.0-rc.2.
SUMMARY: It looks like automatic network config migration needs to remove "bat0.XX" from bridge interfaces. I will now have a look into why that is required or if another manual config edit solves the problem.
SOLUTION is to edit /etc/config/network manually to get "DSA conform".
config device
option name 'br-vl10'
option type 'bridge'
list ports 'bat0.10'
list ports 'eth1.10'
option igmp_snooping '1'
option igmp_v3 '1'
config interface 'VL10'
option proto 'static'
option delegate '0'
option ipaddr 'IP_ADDR'
option netmask '255.255.254.0'
option gateway 'GW_IP_ADDR'
option broadcast 'BROADCAST_IP_ADDR'
list dns 'DNS_IP1'
list dns 'DNS_IP2'
option device 'br-vl10'