Hi all,
We have a TP-Link TL-WR1043N/ND v4 based OpenWRT network running well (TL-WR1043ND v4, OpenWRT 18.06.1) but am running into WiFi signal strength issues after changes in our living arrangements.
I'm trying to create a WiFi extender using OpenWRT on a Pi4 that was modded to have an SMA-jack antenna on its built-in WiFi. When running other OSes, it connects to the network just fine so I wanted that connection to be the bridge and strategically place it at a window. I have a 2nd USB dongle WiFi based on an RT3070 that I wanted to use for our remote AP in our new living area - but I haven't quite gotten it working trying both 21.02.0 rc4 and 21.02.1.
Does anyone know if this is even possible - or are there tests I can do to check? I understand WDS is preferable to relayd and also permits IPv6.
These settings seemed to get me the closest - I can connect via crossover cable and ssh into the device and get from there to the local network and internet (over wlan0 client WDS connection). At this point wlan1 isn't fully configured, but in general as soon as I try to bridge devices things break down (I can connect to wlan1 but can't get a DHCP lease or connect to internet):
root@OpenWrt:~# cat /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option channel '36'
option hwmode '11a'
option path 'platform/soc/fe300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
option htmode 'VHT80'
option cell_density '0'
config wifi-device 'radio1'
option type 'mac80211'
option hwmode '11g'
option path 'scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.0'
option channel '8'
option cell_density '0'
option htmode 'HT40'
config wifi-iface 'wifinet1'
option device 'radio1'
option mode 'ap'
option ssid 'MnM-Remote'
option encryption 'none'
config wifi-iface 'wifinet2'
option device 'radio0'
option mode 'sta'
option ssid 'MnM'
option encryption 'psk2'
option key 'XXXXXXX'
option wds '1'
option network 'wwan'
root@OpenWrt:~# cat /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 'fda9:83c1:b08f::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'wlan0'
config interface 'XoverEth'
option proto 'static'
option device 'eth0'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
config interface 'LAN'
option proto 'static'
option ipaddr '192.168.11.7'
option netmask '255.255.255.0'
option gateway '192.168.11.1'
option broadcast '192.168.11.255'
option device 'br-lan'
option type 'bridge'
config interface 'wwan'
option proto 'dhcp'
I originally tried following these instructions. With this configuration I can't connect from the Pi to the LAN or internet (no pings work), although my laptop connected via a crossover cable can connect to Luci on the Pi. This is that configuration:
root@OpenWrt:/# cat /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option channel '36'
option hwmode '11a'
option path 'platform/soc/fe300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
option htmode 'VHT80'
option cell_density '0'
config wifi-device 'radio1'
option type 'mac80211'
option hwmode '11g'
option path 'scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.0'
option channel '8'
option cell_density '0'
option htmode 'HT40'
config wifi-iface 'wifinet0'
option device 'radio0'
option ssid 'MnM'
option encryption 'psk2'
option key 'XXXXX'
option wds '1'
option network 'lan'
option mode 'sta'
root@OpenWrt:/# cat /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 'fda9:83c1:b08f::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
list ports 'wlan0'
list ports 'wlan1'
config interface 'lan'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option device 'br-lan'
option ipaddr '192.168.11.7'
option gateway '192.168.11.1'
config interface 'wwan'
option proto 'dhcp'
Any pointers would be welcome. I'm happy to provide any details I missed. Thank you all!
Markus