Construct WIFI connection between two OpenWrt devices

The setup is two routers with OpenWRT installed on them, router A (192.168.1.1) and router B (192.168.1.2) with static IP addresses.

I am trying to construct WIFI connection between them and to be able to send data between them directly.

Router A is set as AP and enabled wifi following this guide.
Router B operates in client mode and client B to client A network following this guide.

Router B is connected to router A's network, but when trying to send a ping from router A to router B (or vice versa), I get a "network unreachable" error.
The gateway for both router A and router B is 192.168.1.1.

What am I doing wrong? How can I construct the desired connection?

Use WDS If possible.

Otherwise

More advanced setup

2 Likes

Thanks.

I followed this and I get the same thing.... The device connects to the wifi yet an IP is not given and the connection is dropped.

Wireless network bridge (wireless repeater)

Wireless network bridge (wireless repeater) This configuration includes an access point and a repeater. The repeater connects to the access point as a station. It can also serve as an access point or provide connectivity to a wired network, so we...

Here is a cat of /etc/config/wireless

root@TheGreeneFarm:~# cat /etc/config/wireless 

config wifi-device 'radio0'
	option type 'mac80211'
	option macaddr '84:D8:1B:E9:9B:12'
	option path 'pci0000:00/0000:00:00.0'
	option band '5g'
	option country 'US'
	option cell_density '3'
	option htmode 'HT40'
	option channel 'auto'

config wifi-device 'radio1'
	option type 'mac80211'
	option path 'platform/ahb/18100000.wmac'
	option band '2g'
	option country 'US'
	option cell_density '3'
	option channel '11'
	option htmode 'HT40'
	option txpower '24'
	option legacy_rates '1'

config wifi-iface 'wifinet0'
	option device 'radio0'
	option network 'lan'
	option ssid 'my-wireless-ssid'
	option encryption 'psk2'
	option key 'gopoundsand'
	option mode 'ap'
	option wds '1'

Ok, I got it to work... The only thing that worked was to re-flash it back to stock firmware and then re-flash the openwrt firmware.

At that point, the wifi started to work.

Now onto adding VPN so the router puts all traffic going to and from the world through an external VPN service.