Use the radio config from your default /etc/config/wireless after factory reset, most options are generic (like country code). But the path to the WiFi device may vary with different models.
- Can you connect (associate) to the SSID / Wireless Network (Can be checked at the status overview in the OpenWRT web gui)
- Do you receive an IP address (Check the DHCP Service Log @ OPNsense if request are received)
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 'REDACTED'config device option name 'br-lan' option type 'bridge' list ports 'eth0.1'config interface 'lan' option device 'br-lan' option proto 'static' option ip6assign '60' list ipaddr '10.0.7.2/24' list ipaddr '192.168.1.1/24' option gateway '10.0.7.1'config device option name 'eth0.2' option macaddr 'REDACTED'config switch option name 'switch0' option reset '1' option enable_vlan '1'config switch_vlan option device 'switch0' option vlan '1' option ports '2 3 4 5 0t'config switch_vlan option device 'switch0' option vlan '2' option ports '1 0t'config interface 'WiFi_MGMT' option device 'phy0-ap3' option type 'bridge' option proto 'static' option ipaddr '192.168.2.1' option netmask '255.255.255.0' option defaultroute '0' option delegate '0'
config wifi-device 'radio0' option type 'mac80211' option path 'pci0000:00/0000:00:00.0' option channel '36' option band '5g' option htmode 'VHT80'config wifi-device 'radio1' option type 'mac80211' option path 'pci0000:00/0000:00:00.0' option band '5g' option country 'US' option channel 'auto' option htmode 'HT20' option cell_density '0'config wifi-iface 'wifinet0' option device 'radio0' option mode 'ap' option ssid 'WiFi 1' option encryption 'sae' option key 'Very Secret' option network 'vlan4'config wifi-iface 'wifinet1' option device 'radio0' option mode 'ap' option ssid 'WiFi 2' option encryption 'sae' option key 'Very Secret' option network 'vlan5'config wifi-iface 'wifinet2' option device 'radio0' option mode 'ap' option ssid 'WiFi 3' option encryption 'sae' option key 'Very Secret' option network 'vlan6'config wifi-iface 'wifinet3' option device 'radio0' option mode 'ap' option ssid 'WiFi-MGMT' option encryption 'sae' option key 'Very Secret'config wifi-iface 'wifinet4' option device 'radio1' option mode 'ap' option ssid 'WiFi 1' option encryption 'sae' option key 'Very Secret' option network 'vlan4'config wifi-iface 'wifinet5' option device 'radio1' option mode 'ap' option ssid 'WiFi 2' option encryption 'sae' option key 'Very Secret' option network 'vlan5'config wifi-iface 'wifinet6' option device 'radio1' option mode 'ap' option ssid 'WiFi 3' option encryption 'sae' option key 'Very Secret' option network 'vlan6'config wifi-device 'radio2' option type 'mac80211' option path 'platform/ahb/18100000.wmac' option channel '1' option band '2g' option htmode 'HT20' option disabled '1'config wifi-iface 'default_radio2' option device 'radio2' option network 'lan' option mode 'ap' option ssid 'OpenWrt' option encryption 'none'
config wifi-device 'radio0' option type 'mac80211' option path 'pci0000:00/0000:00:00.0' option channel '36' option band '5g' option htmode 'VHT80' option disabled '1'config wifi-iface 'default_radio0' option device 'radio0' option network 'lan' option mode 'ap' option ssid 'OpenWrt' option encryption 'none'config wifi-device 'radio1' option type 'mac80211' option path 'platform/ahb/18100000.wmac' option channel '1' option band '2g' option htmode 'HT20' option disabled '1'config wifi-iface 'default_radio1' option device 'radio1' option network 'lan' option mode 'ap' option ssid 'OpenWrt' option encryption 'none'
#### Management Interface (Wired)###config device option name 'br-vlan1' option type 'bridge' list ports 'eth0.1'config interface 'vlan1' option device 'br-vlan1' option proto 'static' option ipaddr '10.0.7.2' option netmask '255.255.255.0' option gateway '10.0.7.1' option ip6assign '0'
This is with all config files same as last time I showed them.
I understand everything you said there. With my laptop connected to WiFi-MGMT, I will connect over SSH and copy/paste the exact changes you just gave to /etc/config/network for the WIRED interface, reboot, then connect VIA WIRED and try pinging WIRED from OPNsense and vice versa, then report back.
root@OpenWRT:~# brctl showbridge name bridge id STP enabled interfacesbr-vlan1 7fff.ffffffffffff no eth0.1br-vlan6 7fff.ffffffffffff no eth0.6 phy0-ap2 phy1-ap2br-vlan4 7fff.ffffffffffff no eth0.4 phy0-ap0 phy1-ap0br-vlan5 7fff.ffffffffffff no eth0.5 phy0-ap1 phy1-ap1
Your probably still default to DHCP which explains previous errors you posted
After reboot connect via WIRELESS, that's the whole point, you can do everything from here now (if you fix your client wifi), so also checking if the WIRED is working. Only THEN we switch back from WIRELESS to WIRED, first the validation...
Can you also post the output of your bridges after boot, something like this:
root@OpenWrt:~# brctl showbridge name bridge id STP enabled interfacesbr-lan 7fff.c0c9e35dcfca no eth0.1
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 'REDACTED'config device option name 'br-lan' option type 'bridge' list ports 'eth0.1'config interface 'lan' option device 'br-lan' option proto 'static' option ip6assign '60' list ipaddr '10.0.7.2/24' list ipaddr '192.168.1.1/24' option gateway '10.0.7.1'config device option name 'eth0.2' option macaddr 'REDACTED'config switch option name 'switch0' option reset '1' option enable_vlan '1'config switch_vlan option device 'switch0' option vlan '1' option ports '2 3 4 5 0t'config switch_vlan option device 'switch0' option vlan '2' option ports '1 0t'config interface 'WiFi_MGMT' option device 'phy0-ap3' option type 'bridge' option proto 'static' option ipaddr '192.168.2.1' option netmask '255.255.255.0' option defaultroute '0' option delegate '0'
I managed to get it working!I figured I should mention this so you don't return after holiday then put in more time when it's been resolved. I can explain what the issues were, if that's of interest, was a problem with the guest network and with my switch, not with your code. The help in this thread was very awesome and gave me a lot of insight without which I'd probably not have resolved it. Thank you so much for all the time and effort, really appreciated.
Essentially... Everything you sent was correct but that old switch was not passing all the VLANs in the trunk to the AP. It has this default behaviour of only passing VLANs that meet both the following conditions:1) There is a physical switch port, other than trunk, associated with the VLAN in question.2) A device has already been successfully connected to this port.Before 1, wireless connection to the VLAN fails, after 1 wireless connection to the VLAN succeeds but with not internet access, after 2 everything works.
Yeah when I graduate to big boy hardware I want to get away from Cisco, a lot of smart people seem to complain about it, this is just a cheapo used switch for learning purposes.
Thanks for putting up with my insane levels of confusion here. Hugely appreciated.