Router as AP & Client, so to connect 2 LAN's together

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


Joined: 11 Aug 2006
Posts: 7

PostPosted: Sat Sep 15, 2007 8:46    Post subject: Router as AP & Client, so to connect 2 LAN's together Reply with quote
First a network map...
Code:
     <192.168.0.1>    <192.168.0.1> - both set by DHCP
     {192.168.0.2}    {192.168.0.3}
          └-------┬--------┘
             {192.168.0.1}
[ADSL MODEM]-[(W)LAN ROUTER]
                  |
          wireless connection
                  |
[ADSL MODEM]-[(W)LAN ROUTER]
             {192.168.1.1}
          ┌-------┴--------┐
     {192.168.1.2}    {192.168.1.3}
     <192.168.1.1>    <192.168.1.1> - both set by DHCP
Key:
{} = device's IP
<> = device's gateway
[] = type of device
192.168.0.1 = My router (WRT54GS v1.1 with DD-WRT v24 RC-3 (09/13/07) std)
192.168.0.2 = Friends router across the street (Netgear with factory firmware)


Ok, what am I trying to do?
I am trying to configure my Router so that it does 2 things...
  • acts as an AP for my LAN/WLAN and
  • connects to my friends Router and allow his client computers to communicate to my client computers
Background - what I have tried and researched
  • I have spent several hours reading several threads on this forum (& a couple of others) about Virtual Interfaces, Router Mode & Bridging
  • I have read articles about the same sort of topics on this site's wiki
  • From the above 2 points I have tried separately WDS, setting Virtual Interface under Wireless & Router mode (as instructed at wiki), but have had no success
  • I may have just missed something, hence this post to try and get some ideas
Alternatives
I have thought, that if I can't do this with just my WRT54GS router with DD-WRT, that I might have to make a linux box...
  • That is a client to my router (probably via ethernet)
  • client to my friends router wirelessly
  • and manually route the 2 networks together using the route command
So...
if you have any suggestions on how I might be able to do this with just my router, I would appreciate your assistance.

_________________
WRT54GS v1.1 with DD-WRT v24 std
Sponsor
Ka Hooli
DD-WRT Novice


Joined: 11 Aug 2006
Posts: 7

PostPosted: Sat Sep 15, 2007 22:28    Post subject: sorry... Reply with quote
I have tried playing around a bit with Virtual Interfaces under Wireless but as soon as I do, the ethernet clients on my LAN can't see the internet.

hmmm.... strange

_________________
WRT54GS v1.1 with DD-WRT v24 std
matt0401
DD-WRT User


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

PostPosted: Sun Sep 16, 2007 2:29    Post subject: Reply with quote
I'm currently doing this exact same thing using two routers at my house to connect to another house. The reason I use 2 is to simplify things. I just use one in client bridge mode connected to the other house's AP (which isn't hard at all to set up), and I connect a 2nd router on my end acting as an AP to serve as an AP since the first one is busy connecting to the other house. Works fine. Smile
Ka Hooli
DD-WRT Novice


Joined: 11 Aug 2006
Posts: 7

PostPosted: Sun Sep 16, 2007 4:34    Post subject: Reply with quote
matt0401 wrote:
I'm currently doing this exact same thing using two routers at my house to connect to another house...
Yeah, this is basically what I would be doing with a linux computer as I don't have another router available to do this with.
But I was hoping to do this with just the 1 router I have now.

_________________
WRT54GS v1.1 with DD-WRT v24 std
matt0401
DD-WRT User


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

PostPosted: Mon Sep 17, 2007 3:28    Post subject: Reply with quote
Try "Repeater" mode. You can find info on it on these forums and the wiki. I personally have no experience with it though so I can't help you out. I should forewarn you, though, that a lot of people have trouble setting it up and say it is quite finicky.

Good luck! If you get it working, PM me. Because I'm curious about using it in situations where two separate routers isn't an option.
Hurricane
DD-WRT Novice


Joined: 06 Sep 2007
Posts: 6

PostPosted: Mon Sep 17, 2007 10:55    Post subject: Reply with quote
Wouldn't setting one router as repeater do the trick?
Ka Hooli
DD-WRT Novice


Joined: 11 Aug 2006
Posts: 7

PostPosted: Mon Sep 17, 2007 11:27    Post subject: Reply with quote
Hurricane wrote:
Wouldn't setting one router as repeater do the trick?
It might, but I haven't been able to get it to work.

The thing is that we are both wanting to use our own Routers as AP so that our client computers can access our own internet access.

If I can get my router to work as an AP for my network as well as a Client to his network, I might be able to route traffic between the 2 networks.

I have tried following the Repeater Mode steps in the wiki but I couldn't get internet access on my client computers.
It could be that I am using an incorrect setting, so if you have any suggestions, I am all ears! Very Happy

_________________
WRT54GS v1.1 with DD-WRT v24 std
redhawk0
DD-WRT Guru


Joined: 04 Jan 2007
Posts: 11564
Location: Wherever the wind blows- North America

PostPosted: Mon Sep 17, 2007 11:31    Post subject: Reply with quote
WLAN is not the correct repeater mode setup on the wiki for your application.

You want the Universal Wireless Repeater tutorial.

http://www.dd-wrt.com/wiki/index.php/Universal_Wireless_Repeater

[EDIT] I just modified the http://www.dd-wrt.com/wiki/index.php/Wlan_Repeater page. If you follow those instructions it should now work.

redhawk

_________________
The only stupid question....is the unasked one.
propalica
DD-WRT Novice


Joined: 10 May 2007
Posts: 43

PostPosted: Mon Sep 17, 2007 14:18    Post subject: Reply with quote
redhawk: That would NOT do what he is trying to do! If he does that, he will use internet from a friend and he wants to use his own internet..
I know cause I've done it. (repeater with VirtualAP) And I could only use internet from repeated router (my friends)..

I have also asked here how I could use (connect) to 2 connections (internet) to increase the speed of my own one internet line, but nobody ever answered.

With repeater and VirtualAP he/they can shere 1 connection and be on on a network where they would see all networks PC's, but they would still only use ONE internet line.. His own or friends internet connection..
m_elias
DD-WRT User


Joined: 05 Jul 2006
Posts: 55

PostPosted: Tue Sep 25, 2007 20:18    Post subject: Reply with quote
If you have not solved this yet, it sounds to me like this is what you need.

Quote:
<192.168.0.1> <192.168.0.1> - both set by DHCP(turn one DHCP off/manually assign)
{192.168.0.2} {192.168.0.3}
└-------┬--------┘
{192.168.0.1}
[ADSL MODEM]-[(W)LAN ROUTER]
|
wireless connection (WDS mode)
|
[ADSL MODEM]-[(W)LAN ROUTER]
{192.168.0.100}
┌-------┴--------┐
{192.168.0.101} {192.168.0.102}
<192.168.0.100> <192.168.0.100>
- both set by DHCP(turn one DHCP off/manually assign)


Like this, all your broadcast packets will go to his clients and vice versa. You will have your own inet links but all LAN traffic will flow between you and your friend's networks. There is no big reason I chose 192.168.0.100 for your friends gateway, just so that it is organized.
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