Second Router connected wirelessly

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
jschneiter
DD-WRT Novice


Joined: 05 Nov 2019
Posts: 7

PostPosted: Tue Nov 05, 2019 2:30    Post subject: Second Router connected wirelessly Reply with quote
I have a Linksys Smart WiFi as my main router on the 192.168.1.1 network

I have a Chicken coop outback that has two Axis POE Cameras in it. I want to put this Linksys WRT54g WITH DD-WRT firmware out there. I will connect a POE switch to it to power the cameras.

I I setup a router on the Smart Wifi as follows

Coop
192.168.2.0 255.255.255.0 192.168.2.1

Then on the WRT54G I have:
Coop
192.168.1.0 255.255.255.0 192.168.1.1

Yesterday I swear it was working SORTA. I had internet but no LAN connection. In other words, I could connect to websites but I couldn't ping or see any device on the other side of each router.


I come home today and what I had yesterday isn't working today.

I have search EVERY where for what I need and I swear no one is doing it.

Any advice would be awsome!!

Thanks in Advance!!
Sponsor
jschneiter
DD-WRT Novice


Joined: 05 Nov 2019
Posts: 7

PostPosted: Tue Nov 05, 2019 4:16    Post subject: UPDATE! Reply with quote
Ok Im about 95% working

Wan Router (Linksys Smart Wifi)
192.168.2.0
255.255.255.0
192.168.1.11

Coop (DD-WRT)
192.168.1.0
255.255.255.0
192.168.1.1

I can ping the main network no problem
I can Ping the Coop ROUTER only. Anything behind the router, I cannot see

I also disabled Filter anonymous Internet Requests on both routers with no difference
I then Disabled the firewall on the computer I was trying to ping.

What am I missing??

Thanks
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Tue Nov 05, 2019 7:13    Post subject: Re: UPDATE! Reply with quote
jschneiter wrote:
Ok Im about 95% working

Wan Router (Linksys Smart Wifi)
192.168.2.0
255.255.255.0
192.168.1.11

Coop (DD-WRT)
192.168.1.0
255.255.255.0
192.168.1.1

I can ping the main network no problem
I can Ping the Coop ROUTER only. Anything behind the router, I cannot see

I also disabled Filter anonymous Internet Requests on both routers with no difference
I then Disabled the firewall on the computer I was trying to ping.

What am I missing??

Thanks


No idea what you are doing or how you have setup.
Especially regarding these entries: 192.168.1.11 and 192.168.1.1.

Gateway and local DNS should be default at 0.0.0.0. for repeater mode setup

What wiki have you followed to setup?

Here is an excerpt of the forum rules, the rules are there so that we can help you better and we can all profit from it:
1. Research your router, start with the supported devices wiki:
https://wiki.dd-wrt.com/wiki/index.php/Supported_Devices .
2. In the supported devices wiki you can see if your router is supported and what architecture your router has and if you are lucky also an install guide/wiki.
3. Post in the right forum, from the former step you can see if your router is Broadcom, Qualcomm/Atheros, Marvell or other, use that forum to post router specific questions, for networking questions post in the Advanced Networking forum and for other things in the General Questions forum.
4. When posting always state router model, build number and when applicable the Kernel version.
Describe your problem and how you think it can be solved.
Give as much detail as you can also provide your network setup if applicable.
5. When posting pictures make sure the maximum width is not more than 600 pixels.
6. Do not hijack a thread, meaning do not post your own problem in someone else's thread. Just start your own thread.
7. If your post is answered and your problem solved, mark your thread with [SOLVED] (the header of your first post).
8. Do NOT use the router database, builds can be found at:
https://dd-wrt.com/support/other-downloads/?path=betas%2F2019%2F
All builds are beta including those from the router database.
9. Before uploading a new build to your router, research the build by looking in the build threads.
This is an example of a build thread for build 41328 for Broadcom routers:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=321699&highlight=41328
Search build threads with the search function and search on build number.
10. Use the build threads from the former step to report success or problems.
11. For older Broadcom routers (Linksys WRT54 and E series) read the peacock thread although some of it is outdated: https://forum.ddwrt.com/phpBB2/viewtopic.php?t=51486&sid=05c269e8bc745f300278d04f3b742a98
Builds can be found in the Broadcom directory for Linux kernel 2.4, in Broadcom_K26 for Linux K2.6 and in Broadcom_K3X for Linux K3.X.
12. If you are sure you have discovered a bug, after asking and querying the forum, you can report a real bug in the bug tracker: https://svn.dd-wrt.com/
This is also the place where the commits/changes to the source are administrated.
13. Recommended reading:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=54845
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=54959
14. If you are happy with DDWRT and want it to live on then donate:
https://dd-wrt.com/donations/

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
jschneiter
DD-WRT Novice


Joined: 05 Nov 2019
Posts: 7

PostPosted: Tue Nov 05, 2019 17:48    Post subject: Reply with quote
In My house, I have a Cable modem hooked to a Linksys SMart WiFi Router.

Internal IP is 192.168.1.1

Outside I have a Chicken Coop with two cameras. These were previously hard wired into the house. I have since had to move the coop away from the house.

I setup a WRT54G to be a Wireless Client by giving it an IP address if 192.168.2.1 while the WAN is 192.168.1.11

This router successfully connects to my wireless network. I verify this by plugging in a laptop to one of the 4 switch ports on that second router and I get Internet.

I am able to from that same computer ping BACK into the house network (192.168.1.x) and see everything on that subnet.

What I really need to be able to see everything on the 192.168.2.x network as this is where my cameras will be outside.

This is where I am stuck. I can see everything on the 192.168.1.x network from the 192.168.2.x but NOT the other direction. EXCEPT for the main router 192.168.2.1

I hope this clears it up or else I am going to have to break out a visio drawing.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Tue Nov 05, 2019 18:34    Post subject: Reply with quote
Ok, so I assume you have setup repeater or client mode like described here: https://wiki.dd-wrt.com/wiki/index.php/Wlan_Repeater

Bascially you have two subnets, and it is normal that from the downstream router you can reach upstream, but not the other way around as the downstream router has its firewall and upstream has no route to downstream.

When using default settings you should not be able to reach the downstream router itself either, unless you enabled Remote Access on Administration/Management.

So to reach downstream disable the firewall on the downstream router on Security/Firewall page.

Set a static route on your upstream router to the downstream router, as this is not DDWRT I can not tell you how to do that, to give you an idea I attached the instructions for DDWRT.
Hope this helps.

If you can not set a static route on the upstream Linksys Smart Wifi you can use port forwarding on the downstream router to forward ports to your camera's

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
jschneiter
DD-WRT Novice


Joined: 05 Nov 2019
Posts: 7

PostPosted: Tue Nov 05, 2019 18:48    Post subject: Reply with quote
Thank you for that reply, it gives me some information to go on. I thought I disabled the firewall on the Smart Wifi but I will check when I get home.

Below is the static Route I gave the Smart WiFi:

Wan Router (Linksys Smart Wifi)
Destination Network 192.168.2.0
Netmask 255.255.255.0
Destination IP 192.168.1.11

Thanks again!

Jon
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Tue Nov 05, 2019 19:00    Post subject: Reply with quote
jschneiter wrote:
Thank you for that reply, it gives me some information to go on. I thought I disabled the firewall on the Smart Wifi but I will check when I get home.

Below is the static Route I gave the Smart WiFi:

Wan Router (Linksys Smart Wifi)
Destination Network 192.168.2.0
Netmask 255.255.255.0
Destination IP 192.168.1.11

Thanks again!

Jon


That static route looks fine.

Do not disable the firewall on your internet connected router but on the ddwrt secondary router and you should be fine

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
jschneiter
DD-WRT Novice


Joined: 05 Nov 2019
Posts: 7

PostPosted: Thu Nov 07, 2019 4:00    Post subject: Success!!!.........99% Reply with quote
Ok, so I got it working for the most part.
I can ping and see both sides
I can even access my cameras. works great!

I removed the Static route from the second router (DD-WRT) AND I used the
iptables -I forward -j accept
command


One weird issue though.

I can connect to the second router (192.168.2.x) when wired up to it on a laptop on the same network, but I cannot access it from the 192.168.1.1 network Wired or Wirelessly.

Any idea?

Thanks!!
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Thu Nov 07, 2019 10:18    Post subject: Re: Success!!!.........99% Reply with quote
jschneiter wrote:
Ok, so I got it working for the most part.
I can ping and see both sides
I can even access my cameras. works great!

I removed the Static route from the second router (DD-WRT) AND I used the
iptables -I forward -j accept
command


One weird issue though.

I can connect to the second router (192.168.2.x) when wired up to it on a laptop on the same network, but I cannot access it from the 192.168.1.1 network Wired or Wirelessly.

Any idea?

Thanks!!


You probably have not disabled the firewall on the second router.

You do not have to, instead you can use iptables commands to let traffic through
Like:
Code:
iptables -I FORWARD -j ACCEPT
This lets traffic through and onto your network
But if you also want traffic to your router itself you also have to enable that with:
Code:
iptables -I INPUT -j ACCEPT

That last one seems missing.

Test from the command line and if it works
Administration/Commands, Save as Firewall

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
jschneiter
DD-WRT Novice


Joined: 05 Nov 2019
Posts: 7

PostPosted: Fri Nov 08, 2019 4:32    Post subject: It worked! Reply with quote
I would like to thank you for the command to allow access to the router from anywhere.

I want to send my appreciation for the continued support in this matter. I'm learning DD-WRT and this is helping.

So here is what I have noticed tonight while testing:

Ping rates from the second router to my main router are very low 1-3ms, which is good.

Ping rates from the Main router TO the second router are VERY high. 100 - 500ms. It also now takes a VERY long time to open the web interface, if it does at all. Sad

After a while, the connection just drops. I reboot the router and the connection comes back and works. Then fails again.

The only thing I've done was lower the power from 75 - 45 and set left antenna to RX and the Right antenna to TX.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Fri Nov 08, 2019 10:31    Post subject: Re: It worked! Reply with quote
jschneiter wrote:
I would like to thank you for the command to allow access to the router from anywhere.

I want to send my appreciation for the continued support in this matter. I'm learning DD-WRT and this is helping.

So here is what I have noticed tonight while testing:

Ping rates from the second router to my main router are very low 1-3ms, which is good.

Ping rates from the Main router TO the second router are VERY high. 100 - 500ms. It also now takes a VERY long time to open the web interface, if it does at all. Sad

After a while, the connection just drops. I reboot the router and the connection comes back and works. Then fails again.

The only thing I've done was lower the power from 75 - 45 and set left antenna to RX and the Right antenna to TX.


I do not think that has anything to do with the commands Smile

But can be related to the tinkerring with the settings you are doing, just leave everything at default.

Could also be related to the build you are using, I probably missed it but there are a lot of "not so good" builds out in the wild.

Post in the broadcom forum asking for good builds for your particular router / network setup

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
jschneiter
DD-WRT Novice


Joined: 05 Nov 2019
Posts: 7

PostPosted: Sun Nov 10, 2019 19:08    Post subject: Thank you for everything Reply with quote
I just wanted to come back one final time to thank everyone who's helped me through this process.

Come to find out it was one camera that was hogging the bandwidth. With the two outside, there has been no issues. So thank you again for helping me get my chicken coop cameras wireless.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking 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 cannot attach files in this forum
You cannot download files in this forum