Is it possible to use a home router to interconnect two or more routers? After a mistake I had some devices on 192.168.1.0/24 and others on 192.168.10.0/24. Obviously they don't communicate, because I need a router to interconnect them. Is this correct? Can use a home router to get them communicate.
Most "home routers" are actually gateways not true routers. As such, residential gateways usually connect at most two networks (Internet and a LAN). Further, they incorporate a firewall between the two networks that usually blocks traffic flowing from the Internet-connected network to the LAN. In the purest form, a router doesn't block traffic at all...it just moves it from one network to another.
All that said, if your home router is among those that support multiple LAN interfaces with distinct IP subnetwork address, either via separate physical interfaces or virtual VLAN interfaces, then you can do what you want. Otherwise you'll need to seek an alternate solution.
While I've never done so myself, there are several open source packages that I believe can be used to re-flash the firmware on your router and add the capability you require. Examples include OpenWrt and Tomato. These may be a worthwhile option for you.
Obviously you could solve your problem by re-addressing the devices to be on the same subnetwork. If you're looking for a really unique alternative, you could change the subnet mask on all of your devices to be
255.255.0.0 which would enable them to communicate without changing their IP address. Be sure your router supports a 16-bit mask before doing this. (Clearly this is more work than even re-addressing all the devices!)
I've actually gotten this working - on an stock asus and a dlink running tomato. You basically need to set up static routes on either side. This is not the smart way to do it - you'd actually be able to trivially get away with a single network if you can turn off DHCP on the secondary, and connect them correctly - since wan's actually on a seperate vlan in many consumer routers, connect the main router to a normal port on the secondary.
If you actually want 2 different subnets... the setup below works
Asus +---------+ +--------------+ |Internet +---------------------------------->+ Primary router | | | 192.168.1.1 +------->Dumb Switch +---------+ +--------------+ + 255.255.255.0 | | | v Secondary router 192.168.1.142 10.0.0.1 255.255.255.128
I have a network that looks something like this - with a main router on a 192.168.1.1 subnet and a second router on its own 10.0.0.1 subnet.
Now, I'd like to route between these networks - I've tried to set up a static route on my main router
The routing table on the secondary router (a dlink running tomato firmware) looks like
I also needed to set it to router, not gateway mode
The ethernet cable on the second router is on the wan interface. In theory I'd need a static route for the second router but this just works