Hello.
Maybe this is a silly question, but I’m not able to solve this with Mikrotik.
I have a Dell switch configured with multiple vlans connected to each classroom. On each vlan configuration in the Dell switch I have the ip-helper-address pointing to my router 10.0.0.1, that allows each client in each classroom to get IP address from the central DHCP server.
Actually the router is running Debian and I have a DHCP server with multiple subnets and different hosts with static IP address on each subnet. Everything has been working ok all these years, but I’m moving everything to a new Mikrotik router CCR1072-1G-8S+ with OS 7.10.1 version and I’m not able to configure the same functionality.
In the Mikrotik I have a bonding interface INTRANET which is connected to the Dell switch.
/ip/address/print
# ADDRESS NETWORK INTERFACE
0 10.0.0.9/16 10.0.0.0 ether1
1 10.0.0.1/16 10.0.0.0 INTRANET
I have configured in the DHCP Server the different networks for each classrom, with the IP address of each VLAN gateway:
# ADDRESS GATEWAY DNS-SERVER DOMAIN
0 10.0.0.0/16 10.0.0.254 10.0.4.1 ente.local
1 10.1.0.0/16 10.1.0.254 10.0.4.1 ente.local
2 10.11.0.0/16 10.11.0.254 10.0.4.1 ente.local
3 10.12.0.0/16 10.12.0.254 10.0.4.1 ente.local
4 10.13.0.0/16 10.13.0.254 10.0.4.1 ente.local
5 10.21.0.0/16 10.21.0.254 10.0.4.1 ente.local
6 10.22.0.0/16 10.22.0.254 10.0.4.1 ente.local
7 10.23.0.0/16 10.23.0.254 10.0.4.1 ente.local
8 10.24.0.0/16 10.24.0.254 10.0.4.1 ente.local
I also have the IP pool address, example:
# NAME RANGES
0 Aula01 10.1.0.50-10.1.0.90
1 Aula11 10.11.0.50-10.11.0.90
2 Aula12 10.12.0.50-10.12.0.90
3 Aula13 10.13.0.50-10.13.0.90
4 Aula21 10.21.0.50-10.21.0.90
I also have some leases created.
Questions:
- How can I create the dhcp server in the 10.0.0.1 for each subnetwork?
- Should I create multiple dhcp servers and modifiy the ip-helper-address of each VLAN acordingly?
Thank you very much for your help, I really appreciate it.