OpenWrt Forum Archive

Topic: Using WWAN devices for a routed network?

The content of this topic has been archived on 8 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I was wondering if anyone has done or setup the following in OpenWrt?  I'm assuming it's entirely possible but wanted to know if anyone has a similar setup before I attempt to build it out.

Hopefully the information on the picture is detailed enough but basically I wanted to use the wireless side of the WRT54GL's to be a routed link between two different local subnets which each WRT54GL has their own Internet connection for each WAN port.

http://www.xdtalk.com/images/wrt54gl_routed_wireless.png

Thanks in advance!

Cheers,
Kermee

Didn't do that way, only with one WAN, but it's doable.
In /etc/config/network and wireless,
- Remove bridging from ethernet and wl ports on both
- Configure one wrt as AP, the other one as client, static IPs (the WWAN interfaces)
- Setup routing between them: left wrt: route add -net 192.168.20.0 netmask 255.255.255.0 gw 10.0.0.2
right wrt:  route add -net 192.168.10.0 netmask 255.255.255.0 gw 10.0.0.1
- Make sure firewalling is setup properly. I used shorewall, a bit slow on wrts

If you're very cool, use quagga/ospf for routing: If one of the WANs goes down, everybody uses the other one still up.

The discussion might have continued from here.