Hi, I’m trying to set up a DHCP server with IP 192.168.88.XX but when I create it via the setup wizard it tells me it’s invalid. Where am I doing wrong?
I need the DHCP server to connect those devices without static IP, which often change in the network.
# jun/14/2022 21:23:57 by RouterOS 7.3
/interface lte
set [ find ] allow-roaming=no band="" name=lte1
/interface ethernet
set [ find default-name=ether1 ] arp=proxy-arp
/interface wireless
set [ find default-name=wlan1 ] ssid=MikroTik
/interface lte apn
set [ find default=yes ] apn=APN authentication=pap ip-type=ipv4 name=LTE use-network-apn=no user=USERNAME
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip address
add address=192.168.88.1/24 interface=ether1 network=192.168.88.0
add address=82.134.200.140/24 interface=ether1 network=82.134.200.0
/ip dns
set servers=8.8.8.8
/ip firewall nat
add action=masquerade chain=srcnat comment="" \
out-interface=lte1 src-address=192.168.88.0/24
Yes I have deleted the default configuration because I like to experiment and learn, for that now I am trying to implement DHCP by hand, I would like to understand where I am wrong
Thank you! This is a great tip that is much appreciated.
Thank you! These commands helped me understand what are the best configurations to create a DHCP server. I also understood that I was not making a mistake, but simply the writing "Invalid" appeared in the DHCP server because I did not have a PC connected to the Ethernet port.
In fact, even with your commands the writing invalid appears if I disconnect it, why?
After configuring the DHCP server, some clients when I connect them I see that they don't get the LAN IP. If I go to the "Leases" section I see it in the "Offered" state. The client is in DHCP and even if I restart it it does not take the LAN IP.
With the default configuration of the Mikrotik it works. I tried to do a comparison with exporting the default configuration, but I can't find the error.
Ps. I saw that you speak Italian like me, if a language other than English is allowed in the forum we can easily continue in Italian.
Ok, repost actual config with /export and do not omit anything (remove only serial number)
censore (not delete) public IPs, e-mails, usernames and passwords.
(IT: Fammi dara un’occhiata a come è configurato ora)
Because if nothing is connected to ether1, then interface is "not running" and DHCP server on non-running interface is invalid. Mostly used default config has a bridge with multiple RJ45 ports members (wireless as well if device supports that) and DHCP server is then bound to bridge interface which is (AFAIK) never "not running", so DHCP server doesn't become invalid even if none of bridge member ports is running/active/up.
Thank you very much, I did some tests on the Firewall but I can't find the rules that are good for my case, after I will open a new thread to ask for advice explaining my use case well.