Help with repeater-bridge and DHCP

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
millerm
DD-WRT Novice


Joined: 05 Jan 2010
Posts: 32

PostPosted: Fri Sep 10, 2010 0:36    Post subject: Help with repeater-bridge and DHCP Reply with quote
I'm trying to set up a repeater-bridge, but I need the repeater to take care of it's own clients' DHCP because the parent network keeps assigning new IP's every time a client swaps nodes.

Repeater non-bridge breaks port-forwarding because of double-NATing.

Help?

(P.S. sorry for lack of detail, the forum said error click back and lost my long, detailed post so I really don't want to re-type everything)
Sponsor
matt0401
DD-WRT User


Joined: 28 Jun 2007
Posts: 87
Location: Ontario, Canada

PostPosted: Fri Sep 10, 2010 1:48    Post subject: tutorial Reply with quote
There's no need to worry about the repeating router needing to assign separate DHCP addresses. Once you've got it set up as a repeater bridge this will be a non-issue. The roaming wireless clients will keep their IP addresses assigned by the DHCP server on the primary router and everything will work fine in the background.

To configure a router as a repeater bridge:

- Go into the "Setup" tab and give your router a distinct IP address to avoid IP address conflicts between the primary router and repeater. It is logical to use 192.168.x.n+1 where x is the subnet and n is the address of the primary router. Click "Apply Settings".

- Go into the "Wireless" tab and under the "Basic Settings" area, set the "Wireless Mode" to "Repeater Bridge". Click "Apply Settings".

- Under the "Wireless Physical Inferface wl0" area, set the SSID to that of the primary router. This tells the repeater to connect to the primary router to find the original signal. Click "Apply Settings".

- Click on "Add" under the "Virtual Interfaces" area on that page. We'll be adding the signal that will be repeated here. Create a name for the repeated signal. Choose a new SSID to allow wireless clients to choose which signal to connect to, or use the same SSID as is being repeated to allow clients to automatically roam. Click "Apply Settings".

- Go into the "Setup" tab and under the "VLANs" area, check all of the boxes to the right of "Tagged". This will unlock the rest of the boxes. Check all of the boxes to the right of 0 and 1. Make sure the drop boxes under "Assigned To Bridge" have "LAN" selected. This step links the LAN segments between the original signal and the repeated signal, enabling all traffic to pass seamlessly through. It should look like the diagram below.


- The setting of the router to "Repeater Bridge" should have automatically completed certain steps, such as disabling WAN and the DHCP server on the repeating router. If for some reason it hasn't, disable these in the "Basic Setup" area of the "Setup" tab.

Finished! Repeater bridges are one of the most powerful things you can create using DD-WRT. They are infinitely-scalable (only limited by IPv4) and allow you to create controlled mesh networks with automatic roaming. It is worth noting, however, that it places additional strain on the routers' radios. There are already two wifi connections being made and the fact that it's a repeater cuts through bandwidth in half. For heavy file transfers, an AP + Client Bridge combo would help maintain through bandwidth, and a traditional wired connection is always superior to any wifi link. But for internet use, repeater bridges can be very useful.

To take advantage of this scalability, apply this tutorial to a 3rd (or 4th, 5th, and so on) router, treating the 2nd router as the primary router and the 3rd router as the repeater. Any repeated signal can also be repeated again by more repeaters in the network. If you are using more than 2 routers in this type of system, using distinct SSID's will help keep things organized in terms of the routers linking up properly. The repeaters will connect to the strongest signal with the SSID they are configured to connect to. If the repeaters don't have a clear choice as to which of the other routers to connect to, the network won't be as stable, with the routers constantly re-aligning their links among each other. The diagram below illustrates this. The situation on the left will allow for a common SSID and roaming without the routers getting confused. The situation on the right will not, and distinct SSID's should be used among all routers.
millerm
DD-WRT Novice


Joined: 05 Jan 2010
Posts: 32

PostPosted: Fri Sep 10, 2010 12:09    Post subject: Reply with quote
Maybe you have a suggestion why it's not working right then. My setup has one parent router (older Belkin 54G) and one DD-WRT repeater (Netgear WG602).

It works flawlessly until the parent runs out of addresses in it's DHCP pool (192.168.2.2-192.168.2.100) which shouldn't happen with only a few clients. My repeater was set static IP 192.168.2.250 so it shouldn't have caused conflicts. I have this same problem (described below) on Windows XP, Windows Vista, Windows 7, and Windows Mobile.

Here's an example:
1. turn on computer and it connects to the repeater, the Belkin parent router gives it the first available address (192.168.1.2)
2. walk toward the parent node, it roams and is re-assigned a new IP (192.168.1.3)
3. walk back toward the repeater and it roams again, gets another new IP (192.168.1.4)

Also, power-cycling a client connected to the parent access-point it will get the same IP back, BUT power-cycling a client connected to the repeater it will get a new IP. I first found this when my smartphone crashed the system because every 5 minutes it woke up to download email (via wifi) it was assigned the next available IP address, in under an hour nothing was responding.

This continues until the DHCP client table on the Belkin router is filled and the router locks up, and the client can't get an IP address.

I can't replace/modify the parent router because it's no longer under my control. I made a deal with the neighbor when I graduated college I gave them all my wireless stuff and set it up secured with WPA2 for free, in exchange I get free internet for the cumulative few weeks per year that I'm visiting my relatives down there.

I hoped DD-WRT would have some way I could work around this issue, I think the Belkin router is mis-interpreting the MAC of the repeater as being the client instead of reading the forwarded DHCP request (not sure how that all works).

I know how it *should* work because my parents have Verizon FiOS and I set up a WRT54G-TM as a repeater, it doesn't exhibit the strange behavior nor do two other DD-WRT repeaters I've build for friends. But throw a Belkin 54G in as the parent and logic goes out the window.

Any other suggestions?


Last edited by millerm on Fri Sep 10, 2010 12:34; edited 7 times in total
millerm
DD-WRT Novice


Joined: 05 Jan 2010
Posts: 32

PostPosted: Fri Sep 10, 2010 12:11    Post subject: Reply with quote
Also, maybe someone with the forums can explain why I keep getting "Error an attempt to automatically insert text blah blah" and it deletes my reply when I click back? Fortuniately, I copied my reply to Notepad so I didn't lose everything this time.
ReadtheAnnouncements!
DD-WRT Guru


Joined: 02 Mar 2010
Posts: 1362

PostPosted: Fri Sep 10, 2010 14:27    Post subject: Reply with quote
Read the announcements at the start of this forum. The solution to your issue is likely there, and if it isn't information that you need to post, which you haven't is outlined. The instructions that were posted by Matt0401 were incomplete. Use the better instructions in the wiki.

The announcements also tell you how to deal with that "mistake...." that you get when you take too long to post.

_________________
If I've said it once, I've must have said it a thousand times! READ the announcements at the start of the broadcom forum!
THESE:
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=54889
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=51486
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=54845
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=52043
(We'll wait....!) Wink
millerm
DD-WRT Novice


Joined: 05 Jan 2010
Posts: 32

PostPosted: Fri Sep 10, 2010 18:44    Post subject: Reply with quote
ReadtheAnnouncements! wrote:
Read the announcements at the start of this forum. The solution to your issue is likely there, and if it isn't information that you need to post, which you haven't is outlined. The instructions that were posted by Matt0401 were incomplete. Use the better instructions in the wiki.

The announcements also tell you how to deal with that "mistake...." that you get when you take too long to post.

The only thing I saw about what to do with the "mistake" error says click the back button and try again. When I click back, then I have to re-type my whole message and hope it doesn't do it again. My original post had far more detail, but when I spend 20 minutes gathering information about versions and configuration only to have it wiped out in 2 seconds, it really discourages from re-gathering all the information all over when it may wipe it out AGAIN the next time. Why should I keep clicking back and re-typing all my details if it's probably going to trash my message again?

I've read the (unbelievably long) stickys and searched the forums as well as Google. I still haven't found any more answers. I've also tried numerous combinations on my own without finding what I'm looking for.

I followed the wiki for setting up my repeater. Regardless of how complete/incomplete the directions above are, it works as a repeater just DHCP isn't working right on this parent node. I've helped 2 friends and my parents successfully set up DD-WRT based repeaters. I still can't get DHCP to work properly on this particular network and can't find anyone else that has the same problem. Before DD-WRT I tried a Belkin universal repeater, and they blamed it on my having Vista at the time, and claimed that the network hardware was only compatable with Windows XP, nothing newer so they refused to help. So I tried DD-WRT hoping it would be better, or at least give me a workaround.

DD-WRT hardware: tried Netgear WG602 v4 (first choice) or Linksys WRT54G-TM (no HW ver, second choice) both do the same thing with either firmware virsion. I only want to use one repeater, but I have two devices to experiment with in case it's a hardware limitation.

DD-WRT version: tried both 13064 and 14311 on both units, both did the same thing.

Parent router: Belkin F5D7234-4 v1000, Belkin Firmware 1.00.01 (the newest version) -- this router is out of my reach and I had the new "owner" set their own admin password so it can't be changed, I have to work around it. They have given me only the SSID and encryption key.

For testing, I can bring out a "parent network" using a spare Belkin F5D7230-4 v7000 that I have control over for debugging, I can replicate the problem without any risk of crashing the internet.

[EDIT: I'm not sure what other info to post, I discribed the problem in my original post and don't see a point in posting 300 screenshots of increasing IP addresses until it fails. When it fails, I can't post an error because Windows can't get an IP address, that's the only error.]

Please don't just say search more, if I could have found the answer searching I wouldn't have wasted my time asking again -- I'm asking because I can't find the solution on my own!
matt0401
DD-WRT User


Joined: 28 Jun 2007
Posts: 87
Location: Ontario, Canada

PostPosted: Fri Sep 10, 2010 19:08    Post subject: Reply with quote
Ah, I see now. I had an incomplete understanding of your problem. I didn't realize that you had no control over the DHCP server on the primary router. It is possible that settings on the primary router are interfering with the ability of the clients to maintain their assigned addresses. I have never encountered this problem, so I wouldn't know where to begin addressing it on the primary router. Given that you have no access to it, I'll ignore it, and think of a new solution.

What we need to do is exactly what you originally thought. We need a second DHCP server on the repeater. It is possible to configure this on one router and have everything work properly, but I've never done this and so I cannot provide instructions without first experimenting with my own setup to determine how it can best be done.

Instead, what I'd like to do is test to see if this will work at all. You mentioned having a spare router. Set the DD-WRT router we would have used as a repeater as a "Client Bridge" instead, and have it connect to the primary router. Attach a cat5 cable between one of the LAN ports on the client bridge and then plug this into the WAN port of the Belkin spare router you had. Enable the DHCP server on the Belkin router and use it as normal. These are going to be on different subnets so there's no need to worry about gateways or IP address conflicts.

If this works, then in the future you can tinker with settings on the DD-WRT router to get everything working by using software, rather than hardware as we're doing with this test. It is possible to route everything behind the scenes so that it's repeating a signal, though it's on a different subnet with its own DHCP server.
millerm
DD-WRT Novice


Joined: 05 Jan 2010
Posts: 32

PostPosted: Fri Sep 10, 2010 19:43    Post subject: Reply with quote
matt0401 wrote:
Ah, I see now. I had an incomplete understanding of your problem. I didn't realize that you had no control over the DHCP server on the primary router. It is possible that settings on the primary router are interfering with the ability of the clients to maintain their assigned addresses. I have never encountered this problem, so I wouldn't know where to begin addressing it on the primary router. Given that you have no access to it, I'll ignore it, and think of a new solution.

What we need to do is exactly what you originally thought. We need a second DHCP server on the repeater. It is possible to configure this on one router and have everything work properly, but I've never done this and so I cannot provide instructions without first experimenting with my own setup to determine how it can best be done.

Instead, what I'd like to do is test to see if this will work at all. You mentioned having a spare router. Set the DD-WRT router we would have used as a repeater as a "Client Bridge" instead, and have it connect to the primary router. Attach a cat5 cable between one of the LAN ports on the client bridge and then plug this into the WAN port of the Belkin spare router you had. Enable the DHCP server on the Belkin router and use it as normal. These are going to be on different subnets so there's no need to worry about gateways or IP address conflicts.

If this works, then in the future you can tinker with settings on the DD-WRT router to get everything working by using software, rather than hardware as we're doing with this test. It is possible to route everything behind the scenes so that it's repeating a signal, though it's on a different subnet with its own DHCP server.


Let me clarify a bit more -- the spare Belkin router I have can be used for testing (it's the same setup as the one I can't control) but it's a spare because the radio is failing and it drops back to 1Mbps within a few hours.

So I have 2 usable DD-WRT routers that can be put to full-time use, and the "spare" router that is my parent network so I don't risk crashing my neighbor's internet in testing.

The parent router (Belkin) over there is running basically all defaults, but with a new SSID and WPA2-PSK security to lock it down. I know this because I set it up for them.

I think what you're describing is like the plain "Repeater" setting but with multiple devices -- which works and that's what I've been tolerating. The parent network is 192.168.2.x and the repeater behaves as a client+router in 192.168.1.x.

This provides internet access but I'd like to have everything in the same subnet so printer-sharing and UPnP port-forwarding works properly.

I'm guessing there may be a way to turn off NAT and put everything on the same subnet? Now with this secondary router where in the DD-WRT configuration would I try to disable NAT?
matt0401
DD-WRT User


Joined: 28 Jun 2007
Posts: 87
Location: Ontario, Canada

PostPosted: Fri Sep 10, 2010 21:31    Post subject: Reply with quote
Actually if you want everything in the same subnet then the repeater bridge I described is what you're after. I don't understand what's causing your DHCP problem, where roaming forces the DHCP server to assign a new address but it will need to be fixed in order to have that seamless roaming. Repeater bridge will put everything on the same subnet. Repeater will allow you to break them up into different subnets with separate DHCP servers.

Replacing the primary router with something running DD-WRT might help a lot. We can make sure there is a proper DHCP server running. I understand this may be difficult, but it'd probably help you out a lot.
millerm
DD-WRT Novice


Joined: 05 Jan 2010
Posts: 32

PostPosted: Fri Sep 10, 2010 22:49    Post subject: Reply with quote
matt0401 wrote:
Actually if you want everything in the same subnet then the repeater bridge I described is what you're after. I don't understand what's causing your DHCP problem, where roaming forces the DHCP server to assign a new address but it will need to be fixed in order to have that seamless roaming. Repeater bridge will put everything on the same subnet. Repeater will allow you to break them up into different subnets with separate DHCP servers.

Replacing the primary router with something running DD-WRT might help a lot. We can make sure there is a proper DHCP server running. I understand this may be difficult, but it'd probably help you out a lot.


Fair enough, not the answer I was hoping for but at least it sounds like we've pinpointed the problem.

Kinda dissapointing, the original Belkin 54G router I had was really good right up until it bricked itself when I tried to flash it to fix some WPA2-PSK/AES encryption issues. Guess port-forwarding GUI isn't the only thing broken on the new Belkins.

Thanks for your time!
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum