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:
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.
Answer
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.
- Under WAN settings
- Set router in dynamic or DHCP mode
- Configure DNS to automatically be assigned by WAN router
- Under wireless settings
- Wireless channel: Auto
- SSID: mysubnet
- Broadcast SSID: yes
- Security: WPA2 Personal (WPA2-PSK)
- Encryption: AES
- Wireless key (PSK):
- Wireless bridging: No
- Use as access point (WAP): No
- Connect it to an ethernet WAN drop
- 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.
- Do a 30-30-30 factory reset
- Set your computer's static IP to 192.168.1.6 (255.255.255.0 mask, 192.168.1.1 gateway)
- Connect to router at 19.168.1.1
- 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.
- Set your computer to static IP in same subnet as router (last 192.168.3.7)
- Turn wireless off on your computer
- Connect Router B to your computer in port 3
- Login to WAP-side router running DD-WRT
- Go to Wireless > Wireless Security
- Security Mode: (likely WPA2 Personal)
- WPA Algorithms: (likely AES)
- WPA Shared Key:
- SAVE (not APPLY)
- Go to Wireless > Basic Settings
- Wireless Mode: Client
- Wireless Network Mode: (or try Mixed)
- Wireless Network Name (SSID):
- Network Configuration: Bridged
- SAVE
- Go to Setup -> Basic Setup
- Connection Type: Automatic Configuration - DHCP
- Local IP Address: 192.168.3.1 (your local subnet)
- Gateway: 192.168.3.1 (same as this router)
- SAVE
- Go to Security -> Firewall
- SPI Firewall: Disable
- APPLY
- Note that at this point Router B wll be re-IP'ed and you will lose connection to it
- Reset your computer to DHCP (it should assign you an IP in the 192.168.3.0/24 subnet
- 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
- Connect to Router B at its new address at 192.168.3.1
- Go to Wireless > Basic Settings
- Wireless Mode: Client Bridge (from Client)
- SAVE
- Go to Security > Firewall
- Under Block Wan Requests, uncheck everything (Block Anon WAN, Filter Multicast, and Filter IDENT are checked)
- Filter Multicast: checked
- SAVE
- APPLY
- Go to Setup > Advanced Routing
- Operating Mode: Router
- APPLY
- Note that at this point you will lose connection to Router B
Step 5: Connect Router A and Router B together
- Connect ethernet to port 3 of Router A
- Connect other end of ethernet to port 3 of Router B
- Turn wireless on your computer back on
- Connect to SSID mysubnet (from Router A) with your chosen key
- You should now be connected to Router A THROUGH Router B to the WAN
- Test connection to internet
No comments:
Post a Comment