Posted: Sat Sep 15, 2007 8:46 Post subject: Router as AP & Client, so to connect 2 LAN's together
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
Joined: 28 Jun 2007 Posts: 87 Location: Ontario, Canada
Posted: Sun Sep 16, 2007 2:29 Post subject:
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.
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
Joined: 28 Jun 2007 Posts: 87 Location: Ontario, Canada
Posted: Mon Sep 17, 2007 3:28 Post subject:
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.
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! _________________ WRT54GS v1.1 with DD-WRT v24 std
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..
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.