16

I have read that I can connect a second router by turning off DHCP and NAT, but I want the second router to assign DNS (I'm using it as an access point for my kids, and will use OpenDNS family service to help prevent inappropriate web pages).

Can I chain the two routers together keeping DHCP on both? How?

It's a Pace 4111N (primary) and Linksys E3200 (secondary).

3
  • You should be able to just set the second router to use OpenDNS for the DNS, while having DHCP and NAT only in the first router.
    – mgkrebbs
    Sep 4, 2013 at 23:37
  • 2
    @mgkrebbs That won't work. Since the second router won't be assigning DNS servers to clients, what DNS servers it uses won't affect anything. Sep 6, 2016 at 21:41
  • Enable bridge mode: support.google.com/googlenest/answer/6240987
    – barbolo
    Jun 24, 2023 at 11:22

6 Answers 6

23

You really only want one DHCP server per network (or multiple ones working in a redundant configuration). If you have more than one on a given network, whichever DHCP server answers first is going to be the one that gets to configure that DHCP client. So if you have two separate configurations you want to "push" via DHCP, you can't do it predictably if both DHCP servers are on the same network - not to mention if the IP ranges overlap, you'll have IP conflicts.

However, in your case, it sounds like you really want two separate networks, one for your use and one for your kids. You can do this with what you have.

  • One of your routers will be connected to your ISP. This router needs to be assigned the internal LAN IP 192.168.1.1, and hand out DHCP addresses on something like 192.168.1.2 through 192.168.1.50. Call this router Router A.

  • Connect a cable from one of the LAN ports on router A to the WAN port on router B. Set Router B's WAN IP address to 192.168.1.51, and its internal LAN IP to 192.168.2.1. Tell it to hand out DHCP addresses on something like 192.168.2.2 through 192.168.2.50. Set the DNS settings on this router's DHCP to what you want for your kids.

Router A should work normally. If you have things you need accessible via the Internet, make sure it's connected to Router A and setup your port forwarding on Router A like you would on any normal router.

Router B will "get internet" through Router A.

Router B will be double NATed. This means it's very difficult for machines from the Internet to connect to anything behind router B. You probably want this since it's for your kids.

By segmenting your network like this, you'll have a separate network for you and your kids and can do what you want.

1
  • I had imagined something like this, but couldn't quite wrap my head around the details. I will try it and if it works I will mark it as the answer. Thank you for the detailed explanation!
    – Aerik
    Sep 4, 2013 at 22:26
5

Set the DHCP ON for both routers. This is particularly nice for wireless connections when Router 1 is slow, you can flip the connection to Router 2. For hardwired connections, you can setup a batch file to flip the network settings to reflect the proper IP Address and default gateway. The method you've demonstrated forces everything to be routed through Router 1 unless you manually assign IPs.

  1. Modem (provider gives 2 IP Addresses out Switch Port 1 and 2) or 2 separate modems (Cable and DSL)
  2. Router 1 WAN connected to modem Switch Port 1.

    a. Set IP to 192.168.0.1 (default gateway1)

    b. Subnet to 255.255.255.0

    c. DHCP ON 192.168.0.3 to 192.168.0.100 (IP Address on devices)

  3. Router 2 WAN connected to modem Switch Port 2.

    a. Set IP to 192.168.0.2 (default gateway2) (keep it on same subnet 192.168.0.xxx if you want connections on both routers to see each other, if you want connections to be isolated on independent networks put it on 192.168.1.xxx or 192.168.2.xxx)

    b. Subnet to 255.255.255.0

    c. DHCP ON 192.168.0.101 to 192.168.0.200 (IP Address on devices)

  4. Router 1 LAN 1 connected to Router 2 LAN 1 (only if you want devices on either router to see each other)
1

Sure, the only thing you'll want to make sure to do is set them to different subnets. Most consumer routers are set to use 192.168.1.*

Just make sure to set the second one to be 192.168.2.* or something similar.

Assuming Internet > RouterA > RouterB, the one disadvantage you'll have is that systems attached to RouterA will not be able to access systems behind RouterB unless you set up routes.

0

Short answer: no, you cannot bridge two DHCP servers together. Computers that join the network would get an address from whichever router that responded first, and the two routers would not check in on each other.

Longer answer: you could make one router a DHCP client of the other. This would make a network inside your network, and you could control what the inside subnet would see. Downside is the inner network would have NAT running twice, but you'd have a "private" network.

When you turn off DHCP and NAT, you're effectively turning that router into a switch, not bridging them together.

0

You do not need two DHCP networks (or even networks) here.

Leave the address handling and DHCP servers however you want, either forward just the DNS on the second router to OpenDNS, or change the DNS servers only in your TCP / IP properties.

enter image description here

1
  • You said, "either forward just the DNS on the second router to OpenDNS" - but I didn't think that would work... won't the devices connected to the second router only get the DNS info from that router if they have DHCP through that router? Also, thank you but "change the DNS servers only in your TCP / IP properties" is insufficient because I want the Wii and the kids' other devices to get DNS lookups from OpenDNS as well (unless they're using their own DNS, and I can't help that).
    – Aerik
    Sep 4, 2013 at 22:21
0

You can absolutely do this. I have a wireless AC router with the default gateway being 10.0.0.1 and this is my main or master router. I have another router that's connected from a powerline adapter wired into the second router. The second router has an IP address range of the standard 192.168.1.1 address block and although I assigned my second router a static IP from the master router it would work either way. I have router RIP enabled only because of other things I do behind the double NAT.That slave router model should be fine and you would have the second router allocating IP addresses and you shouldnt have a problem using DYNDNS or OpenDNS. Sometimes depending on Hardware its kind of trial and error. You could also have the second router in the same subnet as the master router by creating a different segment within that ip network. i.e.Master 192.168.1.2-192.168.1.100 and slave 192.168.1.101-192.168.1.200. Some routers may give you issues if you use a VPN to encapsulate your data and ive noticed the packet headers may contain some false data but everything should work ok with a little work and configuration.Following the answer given above will work but doing it with both routers dhcp enabled and segmenting the network will give you more security and better network minipulation.

1
  • 2
    People are more likely to read your answer if you format it so it is not a wall of text. Please read Markdown help and edit your answer to add paragraphs and bullet points ... and remove unnecessary information.
    – DavidPostill
    Sep 6, 2016 at 22:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .