[Help] Route WAN and WWAN with differents SSID?

  • Ip route show.
default via 190.xxx.xxx.1 dev eth0  src 190.xxx.xxx.xxx
190.xxx.xxx.0/22 dev eth0 scope link  src 190.xxx.xxx.xxx
190.xxx.xxx.1 dev eth0 scope link  src 190.xxx.xxx.xxx
192.168.0.0/24 dev wlan0 scope link  src 192.168.0.253
192.168.1.0/24 dev br-lan scope link  src 192.168.1.1
192.168.2.0/24 dev br-LAN2 scope link  src 192.168.2.1

  • ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr E8:94:F6:94:B4:B8
          inet addr:192.168.0.253  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::ea94:f6ff:fe94:b4b8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1812 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1711 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1078045 (1.0 MiB)  TX bytes:457464 (446.7 KiB)
  • ip route show table 2
default via 192.168.0.1 dev wlan0

There you have, I used xxx just to mark down the WAN IP

  • Please stop wasting posts - we can all read and refer above! Use one post to respond to questions.

  • I don't see source IP on the route table 2
  • I don't see a route to 192.168.0.0/24 on table 2
config route
	option interface 'wwan'
	option target '0.0.0.0'
	option netmask '0.0.0.0'
	option gateway '192.168.0.1'
	option source '192.168.0.253'
	option table '2'

config route
	option interface 'wwan'
	option target '192.168.0.0'
	option netmask '255.255.255.0'
	option source '192.168.0.253'
	option table '2'
  • Also, why is there no LAN2 bridge??? (might be your issue)
1 Like

Ok added the second config route, and the option source to the first config route as the rest was the same on it.

Where do I look this? because in config/network LAN2 option type is 'bridge'

  • ip route show table 2
default via 192.168.0.1 dev wlan0  src 192.168.0.253
192.168.0.0/24 dev wlan0 scope link  src 192.168.0.253 (didn't copy before)


  • ip route show and ifconfig wlan0 show the same results as above

Odd...not sure why there's an IP listed on the wireless card then...

Screenshot%20from%202019-02-19%2011-45-16

Yeah i checked up in pshysical settings of the interface and it's marked

ifconfig br-LAN2


br-LAN2   Link encap:Ethernet  HWaddr E8:94:F6:94:B4:B8
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::ea94:f6ff:fe94:b4b8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:37662 errors:0 dropped:0 overruns:0 frame:0
          TX packets:42535 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:13198602 (12.5 MiB)  TX bytes:39880710 (38.0 MiB)

1 Like

Can you ping 192.168.0.1 from a device connected to LAN2?

Yes I can, i'm actually connected to the LAN2 via WIFI.

Response from 192.168.0.1: bytes=32 time=4ms TTL=63
Response from 192.168.0.1: bytes=32 time=2ms TTL=63
Response from 192.168.0.1: bytes=32 time=3ms TTL=63
Response from 192.168.0.1: bytes=32 time=3ms TTL=63
Response from 192.168.0.1: bytes=32 time=3ms TTL=63
Response from 192.168.0.1: bytes=32 time=3ms TTL=63

I have internet access in both wifi, each are working from SSID1 to WAN and SSID2 to WWAN, I can do speedtest it does ping and download speed phase, but for upload it either fail with the message I posted yesterday, or just stuck in 0.00, sometimes randomly goes tup 0.10 (The Upload speed of the wwan should be around 0.70 ), tried opening a game or something and nothing, all said that can't reach their servers

Do you think the upload speed might be colliding with something?

Also the wwan was created by using the JOIN in LuCI, if it's relevant for you to know it

  • default OpenWrt device
  • setup WWAN by using JOIN in LuCI
  • edit the WWAN so I could change the protocol to static (assigned the IP of 192.168.0.253)
  • created two SSID and assign SSID1 to LAN
  • created LAN2 and assign it to SSID2
  • setup Wired WAN as normal (i.e. plugging it in)
  • configured a 0.0.0.0/0 route and rule on table 2 for lan2 to use WWAN and the second route you mentioned 192.168.0.0 to WWAN
  • You permitted forwarding from lan2 to WWAN
  • WWAN is actually associated and being in use with my PC

this is basiclly what I've done so far

So everything's OK?

You may need to ensure that your DNS servers are reachable over WWAN.

  • Can you assign 8.8.8.8 as a DNS server on a LAN2 client - hen see if you can reach the website?

As I stated, both SSID have connection but not upload speed as it keeps failing.

I already have cloudfire DNS
1.1.1.1/1.0.0.1

Was checking everything again, and decide to reset by default the router and re-configure everything step by step, I had in the LuCI switch section, two VLANS (eth1.1 and eth1.2) and came across to check what would happen if I let LAN in the main eth1 and LAN2 in eth1.1 erasing eth1.2.

With that done it seems that it's working, I'm testing both connection and both are uploading and connecting to games etc, the speedtest in the WWAN is ok, the speedtest in WAN is not so good but it's still connecting me to game and other things so I guess it's just ISP problem (for 1MB download and like 0.20 upload speeds I don't spect too much).

  • So I guess the reason was the VLANS maybe?.

I readed in OpenWRT site and it says that the CPU VLAN ID controls the Upstream of HW switch

So you think the problem was because of the VLANS? or just needed to be reconfigured all over again? Just for future records.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.