This is my network!
I created the second interface cause it doesn’t set it up, I subnetted it and got the 192.168.1.252 network address and setup that Interface with 192.168.1.253 and without setting up dhcp. I setup the second router which is connected to the wan port with 192.168.1.254 and the mask of 255.255.255.252 and the dns to 192.168.1.253, then added the second interface to the primary lan zone,but I don’t get dns unless I add a dns server
eth0's network overlaps that of eth1. To be more specific, every subnet on a router must be unique and non-overlapping. 192.168.1.0/24 includes 192.168.1.252/30.
Also, what is the purpose of the DD-WRT router? You appear to be using it as a router -- why not simply setup the 192.168.2.0/24 network on eth0 and omit the WRT300N (or make it a bridged AP instead of using it as a router)?
The main openwrt x86 router has been pretty solid and I did some networking training online I’m just doing labbing and practicing subnetting a subnet, and then creating a second network on top of that. The other router is something I had that was basic and doesn’t have too many options so if I have issues I know it’s probably not an advanced feature that’s causing an issue to simplify things.
Ok... well, there are two simple solutions...
- delete the second interface and put eth0 into a bridge with eth1 so that it is part of the 192.168.1.0/24 network that already exists.
or
- Change the second interface's IP to something that is unique and non-overlapping. For example, 192.168.51.0/24 (so the OpenWrt router's address would be 192.168.51.1/24, for example).
So maybe I should go with a /23 then and go with 192.168.0.1 for the primary interface and 192.168.2.1 for the second interface?
I mean you can do this, but why? Do you have more than ~250 devices connecting to either or both of the networks?
You could do this regardless of the choice of /24 or /23.
Or, you could leave your 192.168.1.0/24 network in place and use 192.168.2.0/24 on the eth0 interface.
All that matters is that the subnets are unique and non-overlapping.
Can you explain what is happening with the dns as it is?
I'm not sure what you're asking. It would be helpful to see your config so that it is clear where you're adding the DNS, but before we even worry about that, you need to fix the initial issue of the overlapping subnets.
Once that is fixed, if you're still having issues, let's see the config:
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button (red circle; this works best in the 'Markdown' composer view in the blue oval):
![]()
Remember to redact passwords, VPN keys, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
cat /etc/config/dhcp
cat /etc/config/firewall
Your subnets overlap. You need to make the original 192.168.1.1 interface smaller than /24 (e.g. /25, not /23) if you're going to set up another network in the same /24.
In home networks it is almost universal to use /24 to keep the numbering simple.
I just reinstalled the software [OpenWrt 24.10.5 (r29087-d9c5716d1d)] and under the primary interface I have the ip 192.168.1.1 and subnet mask 255.255.255.0 and the second interface I just changed the second interface ip to 192.168.2.1 255.255.255.0 then on the next router after the second interface I changed it to 192.168.3.1 and 255.255.255.0 and 192.168.2.1 for the gateway and when I change the dns to 192.168.2.1 on the next router it fails to connect to web pages giving a dns error but when I change the dns to google dns address 8.8.8.8 the pages load fine!
Please post the configs as requested earlier. It tells the whole story.
