View Issue Details

IDProjectCategoryView StatusLast Update
0004363Networks[All Projects] Generalpublic2024-10-01 18:00
ReporterDigitalMy 
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Summary0004363: Set OpenWrt dual gateway switch
DescriptionUse two external internet providers in one router
1) default USB modem with LTE mobile internet
2) additional WiFi client to 802.11n AP -> public Wi-Fi service or private smartphone

Tp-link T2UH use antenna D-Link ANT24-1400 14dBi
TagsNo tags attached.

Relationships

related to 0000294 resolvedDigitalMy Set OpenWrt router as gateway to remote network 

Activities

DigitalMy

2021-07-27 22:48

administrator   ~0007059

Last edited: 2024-09-05 20:46

View 7 revisions

Found https://openwrt.org/ru/doc/howto/mwan3
opkg update
opkg install luci-app-mwan3

After that new web menu inside network "Load balancing"
/cgi-bin/luci/admin/status/mwan

edit /etc/config/mwan3


Removed this mwan3 - and reinstalled under OpenWrt 21.02.5 - after configuration works fine

DigitalMy

2021-11-20 20:17

administrator   ~0007105

1) change default one to USB wireless adapter with 8dBi antenna
had tested Tp-Link WN-722 v2 Atheros AR9271

cat /etc/config/wireless
dmesg | grep usb
opkg update
opkg install kmod-ath9k-htc

DigitalMy

2021-11-29 01:55

administrator   ~0007110

Last edited: 2021-11-29 01:57

View 2 revisions

3) most modern adapters like
Asus USB-AX56 and D-Link DWA-X1850 rev A1 (Realtek RTL8832AU)
are made on RTL88....U chips
need to implement driver for OpenWRT

DigitalMy

2022-07-31 18:30

administrator   ~0008175

Last edited: 2023-08-28 23:42

View 4 revisions

5) WN722 damaged by rain - raplace with T2UH v1

lsusb
Ralink Technology, Corp. MT7610U "Archer T2U" 2.4G+5G WLAN Adapter
driver kmod-mt76x0u_5.4.188+2021-12-03-678071ef-4_powerpc_464fp required OpenWrt update to version 21
openwrt-21.02.3-apm821xx-nand-netgear_wndr4700-squashfs-sysupgrade
opkg install kmod-mt76x0u

DigitalMy

2024-09-05 19:17

administrator   ~0014365

Last edited: 2024-09-06 00:03

View 2 revisions

First approach is to make both default routes be present in main table.
For this, each interafce should have some static metric, different from another.
Set in /cgi-bin/luci/admin/network/network

Hereby set interface metric in OpenWRT:
for LTE USB modem: 12
for wireless AP client: 11

DigitalMy

2024-09-06 18:20

administrator   ~0014366

Last edited: 2024-09-06 18:30

View 3 revisions

Second approach is to set static device names (override random):
In Wireless menu for each Wireless Adapter set "Edit" in tab "Advanced" Interface name
/cgi-bin/luci/admin/network/wireless

Device:
wlan0 - for 2.4GHz internal adapter Master AP (Channel: 10) = radio0
wlan1 - for 5.2GHz internal adapter Master AP (Channel: 44) = radio1
wlan6 - for external modem adapter "LTE" = radio2
wlan7 - for smartphone AP client adapter "WWW" = radio3