Hello,
Can someone please help me convert my /etc/confit/network from OpenWRT 19.07 to the new syntax in OpenWRT 21.02 for my Linksys WRT32X?
I was using my WRT32X as a “dumb ap” prior to updating it. I can’t seem to figure out how to convert my network config to the new syntax…
Old OpenWRT 19.07 /etc/config/network
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 'fdd7:ef82:7871::/48'
config interface 'lan'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option gateway '192.168.0.1'
option ipaddr '192.168.0.176'
option ifname 'eth0.1'
list dns '192.168.0.118'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 1 2 3 5t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '4 6t'
Current (broken) OpenWRT 21.02 /etc/config/network
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 'fdec:8612:60dd::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
Every time I change
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
It never sticks to wlan0. I have another router that manages dhcp. I want this router to accept wireless connections but not hand out IPs. I also want to use the other lan ports to connect devices and have the main router give the wired devices the IP addresses.
Can anyone help me? I feel so stupid. I wish the syntax never changed but I’m okay if I can manage to learn how to replicate the settings for a dumb AP.
The original guide I followed was here:
Thank you