I have 2 Fritz boxes, both of which have an internet connection.
One has the 192.168.0.0 network gateway 192.168.0.1
The other has the network 192.168.1.0 gateway 192.168.1.5.
Now I have a Fritzbox 7362 with OpenWrt 22.03.3 r20028-43d71ad93e / LuCI openwrt-22.03 branch git-22.361.69894-438c598.
I would like to connect these between the two networks.
I would like 192.168.0.0 --> 192.168.1.0 in both directions
& 192.168.1.0 --->192.168.0.0.
Can someone help me with how I have to set something where so that I can use the LAN access in both directions.
Sorry for my English ... gladly also in German ..
You'll have to provide some more information.
How many Fritzboxes are there? 2 or 3?
What version are they running? ubus call system board
Are they located in the same area? Can you connect them directly with a cable?
and yes I have two Lan cables that can be connected to the 7362, each coming from the two Lan networks 192.168.0.0 and 192.168.1.0...
This is to be used as a LAN/LAN bridge.
Unfortunately I don't know how to connect these LAN subnets with each other..
That's how I would like it.
DHCP servers are running in both networks.
But I would like to go from the 0 to the 1 network and from the 1 to the 0 network.
I would be happy if you can implement it like this.
ok.... good. Assuming the 7490 also has a similar thing, you should be fine.
Your OpenWrt 7362 will have 2 networks (192.168.0.0/24 and 126.96.36.199/24). Each network will need to have an address on the associated network that is not being used by any other devices on your networks, and not in the DHCP pool. Let's say, for example, that it has 192.168.0.2 and 192.168.1.6. You'll assign the two networks to the same zone with the zone forward rule set to accept (the lan zone works for this application).
On the 7590, you'd set a static route as follows: 192.168.1.0 255.255.255.0 via 192.168.0.2
On the 7490, you'd set a static route as follows: 192.168.0.0 255.255.255.0 via 192.168.1.6
EDIT: I can give more specific advice about the FB7362 with OpenWrt if you post the /etc/config/network file here
I once added a picture of how it would have to be adjusted in the 7590?
Wouldn't that work without changing something on the Fritz boxes 7590 & 7490? Aslo to configure the 7362 so that it goes over it?
The picture looks correct (assuming that the OpenWrt device will use 192.168.0.2... adapt as necessary if OpenWrt uses a different address).
Each of the routers needs to be aware of the other network. Therefore, you must have the static routes installed on both sides.
But a device connected to one of the 7x90 routers won't know how to reach the other network, so it will ask the 7x90 router to handle the routing... but without the static route, the 7x90 router won't know where to send the traffic, so it will either direct it to the wan or drop it (depending on the configuration, packets with RFC1918 addresses in the destination may be dropped before they hit a public WAN because RFC1918 is not routable on the public internet).
The static route on each of the 7x90 routers ensures that the router knows the path to get to the other network.
This one, running OpenWrt, is the 'gateway' from one network to the other. It will have addresses on each of the networks, so it will already know how to route between them. It is the metaphorical 'bridge' here (but not a technical networking 'bridge' -- that is a very different thing).