Include a subnet

Hello

I have a Fritzbox 7590 that is connected to the Internet.

Then I have an AVM FRITZ!Box 7362 SL with OpenWrt 22.03.3 r20028-43d71ad93e / LuCI openwrt-22.03 branch git-22.361.69894-438c598.

And a TP Link router also with Open WRT.

The 7590 has the IP address 192.168.0.1.

The TP Link should get the network 192.168.1.0.

The 7362 is intended to serve as a switch/bridge

Can someone tell me what I have to set in the 7362 so that I can connect the 1 network to the gateway 192.168.0.1?

Thank you in advance

The preferred language in the OpenWrt forum is english.
When writing in your native language, please always provide an english translation.
This way other users all around the world can take part in the discussion and possibly benefit from the outcome, without having to use a translator.

Thanks! :slight_smile:

2 Likes

https://openwrt.org/docs/guide-user/network/wifi/dumbap

All English refers to the thread topic too ,)

1 Like

Hello
I have now set the WAN port of the Fritzbox 7590 (192.168.0.1) which has the DSL Internet connection with the IP 192.168.0.200 and the gateway 192.168.0.1 on the FB-SL.
The Fritzbox SL has the IP address 192.168.1.1.
Unfortunately I can't get the FB-SL to use the WAN port for the Internet and create a SUBNET (192.168.1.0).
Can someone tell me what I have to set in the FB-SL so that it works the way I would like?

This conflicts with the OpenWrt router's lan address/subnet. Therefore, you must change your lan to use another subnet.

Change the lan to something like 192.168.5.1 and that should help.
https://openwrt.org/docs/guide-user/network/openwrt_as_routerdevice

Did you also set a default gateway and DNS server? This is not visible on your screenshot. Why did you make it static anyway? Setting it up as DHCP client should get all required settings automatically from your 7590.

I'm also quite certain that eth0 is not your WAN interface but the entire switch - I could be wrong though.

Why would you like to achieve this configuration anyway? At the moment, I can't see the advantage of doing NAT on the Fritz!SL

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:
grafik
Remember to redact passwords, MAC addresses and any public IP addresses you may have:

cat /etc/config/network

@psherman I don't think that OP has to change the LAN subnet - from what I've understood, the upstream router connected to the ISP is in 192.168.0.0/24 and the Fritz he's currently trying to configure uses 192.168.1.0/24 as LAN.

However, it will conflict with the subnet of the TP-Link once it's connected to the Fritz.

Hello
Since my TP-Link router is defective, I would like to set up the whole thing as shown in the picture.
Fritzbox 7590 (IP-192.168.0.1) Provides the Internet. Has DHCP for Lan & WLAN.
The Fritzbox 7362 (IP-192.168.1.1) with LUCI OPENWRT is supposed to form a subnet - also with DHCP - WLAN and LAN.
schema!

root@OpenWrt:~# cat /etc/config/network

config interface 'loopback'
        option device 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fd94:bf70:70d1::/48'

config atm-bridge 'atm'
        option vpi '1'
        option vci '32'
        option encaps 'llc'
        option payload 'bridged'
        option nameprefix 'dsl'

config dsl 'dsl'
        option annex 'b'
        option tone 'av'
        option ds_snr_offset '0'

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'lan1'
        list ports 'lan2'
        list ports 'lan3'
        list ports 'lan4'
        option vlan_filtering '1'

config device
        option name 'lan1'
        option macaddr '08:96:D7:E'

config device
        option name 'lan2'
        option macaddr '08:96:D7:E'

config device
        option name 'lan3'
        option macaddr '08:96:D7:E'

config device
        option name 'lan4'
        option macaddr '08:96:D7:E'

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option netmask '255.255.255.0'
        option ip6assign '60'
        option broadcast '192.168.0.255'
        list dns '192.168.0.1'
        option ipaddr '192.168.1.5'
        option gateway '192.168.0.1'
        option delegate '0'

config device
        option name 'dsl0'
        option macaddr '08:96:D7'

config interface 'wan'
        option proto 'static'
        option device 'eth0'
        option ipaddr '192.168.0.200'
        option netmask '255.255.255.0'
        option gateway '192.168.0.1'
        option broadcast '192.168.0.255'

There's a lot wrong here (the lan interface definition has many issues)... but before we go further...

The 7590 appears to be performing as a modem+router, is that correct?
Do you have any use for the 192.168.0.0/24 network (i.e. what the 7590 is setup to route)? If not, can you make it perform as a modem only?

It seems that you want the 7362 to operate as a router... if that's the case, you will want to take one of the ports and make it into a wan port. Can you confirm what you want to do here?

Hello
I would like to create a second subnet with the 7362SL.
This should have its own IP range and do WLAN/Lan/DHCP and get the Internet via the 7590.
It was very helpful for me how to set this up in the OPENWRT (7362SL).

Thank you

Ah... I see.

The easiest way to do this is to treat the 7362 as a dumb AP and then use the guest wifi on a dumb AP tutorial to add the second subnet.

If you want to have ethernet ports servicing the second subnet, we can make a few small tweaks to the guest wifi recipe.

I'd recommend that you reset your 7362 to defaults and then configure it as a dumb AP.

From there, I'd be happy to help adapt it to create the second subnet -- just need to know if ethernet is in play (and which ports).

Hello
Thanks for your answer.
Unfortunately my WiFi signal is in the place where the FB-SL 7362 is not available. Therefore it will only work via LAN connection.
I set my Fritzbox 7362 to the factory setting of the WRT-LUCI. Maybe there is a solution for me after all.
Thank you in advance

I think you may have misunderstood.

The dumb ap configuration requires a lan (Ethernet) connection by definition.

This fits with both your constraints and goals.

OK
Then I would say that I misunderstood it,
Lan should work - only for Internet (port 80?)
(Lan1 Lan2)..

Thank you

Not sure what you mean here...

A dumb AP is just a wired-to-wireless bridge... it's transparent, it'll basically just provide wifi coverage in that location.

??

It does not provide another subnet. I haven't fully understood whether this is a strict requirement or not.

I am recommending the "guest wifi on a dumb AP" type configuration (linked earlier). This will provide an additional subnet per the OP's requirement. However, to get there, the OP needs to start by configuring OpenWrt as a dumb AP.

Thanks for the clarification, I missed that part!

I have the WiFi working so far.
Could you make the LAN1 and LAN2 ports of the Fritzbox7362SL work in the subnet?
greeting

cat /etc/config/network

config interface 'loopback'
        option device 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fd8d:3'

config atm-bridge 'atm'
        option vpi '1'
        option vci '32'
        option encaps 'llc'
        option payload 'bridged'
        option nameprefix 'dsl'

config dsl 'dsl'
        option annex 'b'
        option tone 'av'
        option ds_snr_offset '0'

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'lan1'
        list ports 'lan2'
        list ports 'lan3'
        list ports 'lan4'

config device
        option name 'lan1'
        option macaddr '08:96'

config device
        option name 'lan2'
        option macaddr '08:96:D7'

config device
        option name 'lan3'
        option macaddr '08:96:D7:'

config device
        option name 'lan4'
        option macaddr '08:96:D'

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option netmask '255.255.255.0'
        option ipaddr '192.168.0.30'
        option gateway '192.168.0.1'
        list dns '192.168.0.1'
        option delegate '0'

config device
        option name 'dsl0'
        option macaddr '08:96:D'

config device
        option type 'bridge'
        option name 'br-guest'
        option bridge_empty '1'
        option ipv6 '0'
        option mtu '1500'

config interface 'guest'
        option proto 'static'
        option device 'br-guest'
        option ipaddr '192.168.2.1'
        option netmask '255.255.255.0'

root@OpenWrt:~#


I added the LAN1 and LAN2 ports to the guest bridge and removed them both from the bridge.

Seems to work like this!!
Thanks

The preferred, although not necessarily mandatory, implementation is to use bridge-vlans with all ports in the same bridge (br-lan normally).

I'd be happy to show you that -- just post your current network config file.