[Help] Route WAN and WWAN with differents SSID?

Greetings, I'm new to OpenWrt, been using it for a couple of months. so I have this doubt, I currently have my internet service that's 1MB with my Cable ISP, so my friend is sharing me his wifi password (He have 4MB) .

Due the fact that his signal is weak, my PC doesn't reach it, I have to use my router as a Client+AP to extend his signal so I can connect.

But I've been wondering and searching with no luck, if there's a way to configure the router with OpenWRT to create two SSID (or 2 Wifi) that will distribute both internet?

Explanation: I want the first SSID(or WIFI-1 ) tohave internet coming from the Wan interface or Ethernet cable (My ISP with 1MB), and the the second SSID (or WIFI-2) will have internet coming from the WWAN interface or my friend's connection via Client Mode.

Is there any way to configure it?

Thanks in advance.

Router: TPlink MR-3420V2
Firmware: OpenWRT 17.01.6
CPU: Atheros AR9341
Target: Ar71xx

You can setup WWAN by hitting the Scan button:


Please be advised, your client WWAN connection has to establish before you can [re]use the AP SSID. This is because the WiFi channel needs to be determined by the WWAN connection. So you'll likely want to set this up with a wired Ethernet connection to LAN.

1 Like

Greetings, I already know how-to configure Client+AP as my post state, I've done it so I can access to the second Internet (My friend's router), what I want to do is to know if there's a way to create 2 wifi signals, where Wifi-1 will provide internet from ethernet(wan interface), and wifi-2 will provide the wwan or client+ap. Thanks for the reply.

  • Again, yes, as long as they're all on the same channel.
  • Each SSID will be configured to the network for each specified purpose


1 Like

If that doesn't work smoothly, other way to take the solution would be to get an external USB adapter fort your PC that you can connect with a USB cable and fix on your window to pick the other network.

By the way, you should consider updating your OpbWrt

1 Like

I think he is asking how to route it in OpenWrt so that

I know, once WWAN is created, any other SSID is locked to the same channel, thing is both SSID will still provide internet from just one interface, either WWAN or either WAN whichever boot first it seems, as I tried it early.

^ That's correct. Also I guess there's no other update for this Router than 17 due the fact it's 4mb flash. Update to your first reply mhegab: That's actually why I'm using it as Client+Ap mode, distance it's too far to buy an usb adapter and an usb cable to fix it on the living room window

I understand that; but it wasn't what you asked. You would use policy-based routing:

config route                
        option interface 'wan2'
        option target ''
        option netmask ''      
        option gateway '192.168.x.x'
        option table '2'

config rule                          
        option in 'lan2'         
        option dest ''       
        option priority '2'          
        option lookup '2'

Replace wan2 and lan2 with your correct Interface names.

More info: Use WireGuard interface for specific devices only

1 Like

I tried to explain it in the last part of the post, but basicly is what mhegab said, I want wan provide internet into AP1, and wwan provide internet into AP2, With routes policy should work or it have to have any other config in the interfaces or lan?

Again, I posted the answer above.

Are you having an issue understanding my post?

In the example above:

  • AP2 is lan2
  • WWAN is wan2


I saw it, but as I said i'm new to this, where the routes policy goes? I have to do it manually throught ssh?

1 Like

Ahhh! My apologies. Yes, on command line.

Add to: /etc/config/network

You must also permit forward from LAN2 to WWAN.

Ok thanks i'll try it, quick question as reading the parameters for route, the gateway for "wan" will be a problem if my ISP is DHCHP? as I know for "wwan" I suppose the gateway will be my friend's router. But for "wan" what should I place?

I never gave you instructions for wan, only wan2 (WWAN).

Keep wan setup as normal.

1 Like

There are actually some long range USB WiFi adapters with power and antennas comparable to routers (though not very cheap, so if you don't get a good connection at the end it's not nice). Therefore if you get the configuration you were asking for to work smoothly then best.

Ok these are the interfaces done I guess, they have both different subnet, i'm going to place your route config. the "option target" and option "dest" are the subnet IP or is the device i'm going to connect? due the Lan1 and lan2 have dhcp server on.

Something like this?


No money for it, too expensive in this country.

1 Like

Subnet and destination are as I stated:

  • (the Internet)

You only edit wan2 and lan2 for wwan and lan2 - and add the correct gateway. LAN and WAN should use the normal setting.