Hello everyone!
I sincerely ask for help in setting up, because I do not have the necessary experience at the moment.
Task: it is necessary to replace the DHCP server in the network with an OpenWRT server, but leave the router the same.
Network topology:
There is a Sophos XG router, to which the Internet from the provider is connected on one side, and a local network on the other side. Several IP addresses with different subnets are registered on the local interface:
192.168.30.1/28 for local network equipment
192.168.31.1/29 for smart devices
192.168.32.1/24 for wifi
At the same time, a DHCP server is configured on Sophos, which distributes, with MAC binding, addresses for devices of the first and second networks, as well as a little of the third, but at the same time in the third network all other devices without MAC binding receive random addresses.
The local network is connected to the first router (xiaomi 3200), which is connected via mesh to two other routers (xiaomi ax5). There are both wifi and LAN devices behind the other routers.
I need to disable the DHCP server on Sophos and connect another router (Asus RT-N56U B1) with openwrt with two LAN interfaces to the first router (xiaomi 3200) (I suppose to give it a static address from the first network 192.168.30.2/28) and WAN (this is for further experiments and broadcasting traffic through this device).
Thus, I need to configure the LAN interface of Asus openwrt for distributing DHCP, as it was implemented on Sophos.
So far I do not understand whether it is necessary to make all the same networks on LAN as on Sophos, whether it is necessary to make its own DHCP for each network and everything else?
Please tell me the logic of implementing such a plan and possibly the configuration.
Model
ASUS RT-N56U B1
Platform ramips/mt7621
Version 23.05.4 (r24012-d8dd03c46f)
Тo briefly describe the task, I need the LAN interface on openvrt with the IP address 192.168.30.1/255.255.255.240, physically connected to the infrastructure, to distribute DHCP for three subnets 192.168.30.0/255.255.255.240, 192.168.31.0/255.255.255.248 and 192.168.32.0/255.255.255.0, while in the distributed addresses, DHCP clearly indicated the IP address of the router, DNS and subnet.
in addition to this, it is necessary to reserve some IPs for MAC for different subnets.