Connect a wireless LAN to a WAN wirelessly

4

The Goal: Connect an existing wireless LAN to an existing wireless WAN without an ethernet drop.

In the past when I had this portable wireless subnet setup, I had an ethernet drop I could plug into my router thereby serving its original purpose as a router.

In the current configuration, I have no ethernet drop but only access to the wireless WAN. (Before you suggest it, it is not desired to configure each of the devices in the subnet to use the wireless credentials.)

This gives you an idea what I'm trying to do:

Router and subnet configuration

Here are the ingredients:

  • several wireless devices configured with the credentials for the wireless LAN served by my router (192.168.0.1/24)
  • Router A: A wireless router that connects those devices in their little subnet
  • Router B: A wireless router that connects to router A via ethernet and to the WAN wirelessly flashed with DD-WRT
  • Access to the wireless WAN

Router A is already doing its job and works perfectly when plugged into ethernet.

The question is, how should Router B be configured? It has to connect to the WAN, but also has to pass everything via ethernet to Router A. Ideally, Router B would act just like a wired ethernet drop from the point of view of Router A.

I tried DD-WRT Client Bridged tutorial and DD-WRT Repeater Bridge tuorial, but neither seemed to be exactly what I'm looking for. But perhaps I just didn't know how to adapt the configuration.

Does this configuration have a name? Do you have any suggestions or specific instructions?

EDIT: Yes, it has a name. I was looking to configure Router B in a "client bridge" configuration. See answer below.

And if you are curious, this is for this project.

enter image description here

Wes Modes

Posted 2017-04-03T01:04:55.050

Reputation: 161

1tbh, for something like this I'd just grab a repeater with an ethernet port and be done with it. Its about 20 dollars or so and pretty painless. – Journeyman Geek – 2017-04-03T04:01:16.317

@JourneymanGeek, is this the same as a WiFi extender? Would the repeater pass through DHCP to the device plugged into its ethernet? – Wes Modes – 2017-04-03T20:03:01.593

WDS would be my first choice if both routers support it. Failing that, you could set up a tunnel between the two routers and bridge that tunnel to B's wireless clients. (It won't work the easy, obvious way because A will only put packets on the air if they're address to one of its clients, which they won't be.) – David Schwartz – 2017-04-03T21:46:07.397

In the past, I've plugged Router A into an ethernet drop and its clients were able to access email. Is there not some config of Router B that allows me to plug it into Router A via ethernet and router A would become a client of the main wireless router (much as it does when it is plugged in)? – Wes Modes – 2017-04-03T21:51:11.523

So far the closest thing I've found is this http://stackoverflow.com/a/14905806/2386836

– Wes Modes – 2017-04-04T01:14:42.330

Answers

2

Thanks to https://stackoverflow.com/questions/9841125/setting-up-a-repeater-with-dd-wrt for the sage advice. The recommendation was to use "client bridge" mode, first setting up client mode to test connection.

Note that at this moment I am currently connected to Router B through Router A which is connected wireless to the WAN.

Yes, it may be much easier to use a dedicated WiFi extender to do this, but if you have a couple wireless routers lying around or want to connect an existing wireless subnet to a WAN wirelessly, this may be just the thing.

So here it is, in only five simple(!) steps:

Step 1: Configure LAN-side router (Router A) as WAP

This router gets configured exactly asif it were a wired WAP. In fact, if you later find an ethernet WAN drop, you can plug in.

We assume this router has any old factory firmware.

  1. Under WAN settings
    1. Set router in dynamic or DHCP mode
    2. Configure DNS to automatically be assigned by WAN router
  2. Under wireless settings
    1. Wireless channel: Auto
    2. SSID: mysubnet
    3. Broadcast SSID: yes
    4. Security: WPA2 Personal (WPA2-PSK)
    5. Encryption: AES
    6. Wireless key (PSK):
    7. Wireless bridging: No
    8. Use as access point (WAP): No
  3. Connect it to an ethernet WAN drop
  4. Test WAN access by connecting to the mysubnet SSID

Step 2: If WAP-side router (Router B) is in an unknown or inaccessible state

This router we assume is flashed with DD-WRT firmware.

  1. Do a 30-30-30 factory reset
  2. Set your computer's static IP to 192.168.1.6 (255.255.255.0 mask, 192.168.1.1 gateway)
  3. Connect to router at 19.168.1.1
  4. Set the admin password

Step 3: Set WAP-side router (Router B) to client mode and connect to WAP

ref: https://www.dd-wrt.com/wiki/index.php/Client_Mode

Again, we assume this router is flashed with DD-WRT firmware.

  1. Set your computer to static IP in same subnet as router (last 192.168.3.7)
  2. Turn wireless off on your computer
  3. Connect Router B to your computer in port 3
  4. Login to WAP-side router running DD-WRT
  5. Go to Wireless > Wireless Security
    1. Security Mode: (likely WPA2 Personal)
    2. WPA Algorithms: (likely AES)
    3. WPA Shared Key:
    4. SAVE (not APPLY)
  6. Go to Wireless > Basic Settings
    1. Wireless Mode: Client
    2. Wireless Network Mode: (or try Mixed)
    3. Wireless Network Name (SSID):
    4. Network Configuration: Bridged
    5. SAVE
  7. Go to Setup -> Basic Setup
    1. Connection Type: Automatic Configuration - DHCP
    2. Local IP Address: 192.168.3.1 (your local subnet)
    3. Gateway: 192.168.3.1 (same as this router)
    4. SAVE
  8. Go to Security -> Firewall
    1. SPI Firewall: Disable
    2. APPLY
    3. Note that at this point Router B wll be re-IP'ed and you will lose connection to it
  9. Reset your computer to DHCP (it should assign you an IP in the 192.168.3.0/24 subnet
  10. Connect to the router at 192.168.3.1 and confirm wireless connection

Step 4: Set WAP-side router (Router B) to client bridge mode

ref: https://www.dd-wrt.com/wiki/index.php/Client_Bridge

  1. Connect to Router B at its new address at 192.168.3.1
  2. Go to Wireless > Basic Settings
    1. Wireless Mode: Client Bridge (from Client)
    2. SAVE
  3. Go to Security > Firewall
    1. Under Block Wan Requests, uncheck everything (Block Anon WAN, Filter Multicast, and Filter IDENT are checked)
    2. Filter Multicast: checked
    3. SAVE
    4. APPLY
  4. Go to Setup > Advanced Routing
    1. Operating Mode: Router
    2. APPLY
    3. Note that at this point you will lose connection to Router B

Step 5: Connect Router A and Router B together

  1. Connect ethernet to port 3 of Router A
  2. Connect other end of ethernet to port 3 of Router B
  3. Turn wireless on your computer back on
  4. Connect to SSID mysubnet (from Router A) with your chosen key
  5. You should now be connected to Router A THROUGH Router B to the WAN
  6. Test connection to internet

Wes Modes

Posted 2017-04-03T01:04:55.050

Reputation: 161

2

Using a router for this is somewhat overcomplicated. Just throw a wifi extender/repeater with an ethernet port into the mix. This will connect to and reshare the connection with no additional work, and you can connect an ethernet device to it. It will pass through DHCP.

Technically what you're looking for is a wireless bridge - but extenders are far more common.

Journeyman Geek

Posted 2017-04-03T01:04:55.050

Reputation: 119 122