Hi,
I just installed OpenWRT on a TP EAP245 v1 a few days ago, but got some trouble configuring it.
Traffic is routed on a OPNSense and my Network is mainly segmented using VLANs tagged by a HP v1910 switch. The TP EAP245 is also connected to the switch and has VLANs 100,300,301 tagged on the port.
The goal:
- The TP should just act as an WIFI AP
- it is connected via it's only Ethernet port to the switch
- it offers two SSIDs, one tagged with 300, one tagged with 301
- other traffic should be tagged with 100 (management)
What I got:
- 2 SSIDs, but cannot reach WAN / DHCP
- AP is accessible and I can get the default traffic working (100)
What I did:
- I disabled DHCP+Firewall
- Set LAN Bridge (br-lan) interface Prot = Unmanaged
- Added VLAN devices with respective VLAN IDs (br-lan300, br-lan301, br-lan100)
- Created interfaces: WAN300 ->br-lan300, WAN301->br-lan301, WAN->br-lan100. Each interface uses DHCP and gets a correct IP assigned
- I can reach them using that IP from the respective subnets
- I setup 2 WIFI SSIDs, assigned them the interfaces (one WAN300, one WAN301)
- If I want to connect to the WIFI, it cannot reach the DHCP. If I set a static IP, it can reach the AP but not the LAN (routed by the OPNSense)
- If I set the WIFI network=lan, it receives a (false) IP that is not part of any VLAN and cannot reach my LAN
On my Proxmox instances, I just need to setup my trunk (vmbr+vmbr.XXX) - that works without any issues. Tagged VMs are routed as expected.
My Config:
/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 'fd5e:5245:94ea::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
option acceptlocal '1'
config interface 'lan'
option device 'br-lan'
option proto 'none'
config interface 'wan'
option proto 'dhcp'
option device 'br-lan.100'
config device
option type '8021q'
option ifname 'br-lan'
option vid '301'
option name 'br-lan.301'
config interface 'WAN300'
option proto 'dhcp'
option device 'br-lan.300'
config device
option name 'wlan0'
config device
option name 'wlan1'
config device
option name 'wlan0-1'
config device
option name 'wlan1-1'
config device
option name 'eth0'
config device
option type '8021q'
option ifname 'br-lan'
option vid '100'
option name 'br-lan.100'
config device
option type '8021q'
option ifname 'br-lan'
option vid '300'
option name 'br-lan.300'
config interface 'WAN301'
option device 'br-lan.301'
option proto 'dhcp'
/etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option path 'pci0000:00/0000:00:00.0'
option band '5g'
option htmode 'VHT80'
option channel 'auto'
option cell_density '0'
config wifi-iface 'default_radio0'
option device 'radio0'
option mode 'ap'
option ssid 'WRT'
option encryption 'psk2'
option key 'oiafio29IaOS09'
option network 'WAN300'
config wifi-device 'radio1'
option type 'mac80211'
option path 'platform/ahb/18100000.wmac'
option channel '1'
option band '2g'
option htmode 'HT20'
option cell_density '0'
config wifi-iface 'default_radio1'
option device 'radio1'
option mode 'ap'
option ssid 'WRT'
option encryption 'psk2'
option key 'oiafio29IaOS09'
option network 'WAN300'
config wifi-iface 'wifinet2'
option device 'radio0'
option mode 'ap'
option ssid 'WRT-IOT'
option encryption 'psk2'
option key '2j98fahfsd8ahf8ASI'
option network 'WAN301'
config wifi-iface 'wifinet3'
option device 'radio1'
option mode 'ap'
option ssid 'WRT-IOT'
option encryption 'psk2'
option key '2j98fahfsd8ahf8ASI'
option network 'WAN301'
Any ideas? Thank you