DHCP doesn't deliver an address for a gateway

Router OS 7.13 doesn’t deliver an IP address for the gateway to DHCP clients.
Same config on older version works.

You may want to flesh out the circumstances a bit more or nobody is going to be able to help.

  • what device are you referring to ?
  • how is it integrated in the network ?
  • what does the config look like ? (export config, no screenshots please).

crs112, 7.13
nothing is integrated, just a standalone switch and a notebook attached.
Switch is new, config is basic and very simple. One IP address, a bridge, a DHCP server that delivers ip’s, bound to the bridge.
DHCP pool and DHCP config are correct; I have a crs328 for my productive network and the same config, just different ip range.

My second post isn’t published or something went wrong when I sent it: After 2 hours I finally got an IP for a gateway. It took only 4 lease times to renew.
Want to reduce that to 5 minutes, if possible…
And I’m not sure if I want to now why the 328 makes it fast and reliable, and the crs112 doesn’t.

Oh, playing that DHCP game with version 6.x made it easier to win the battle.

Still not convinced it’s not config related but since you don’t show it …

I have checked the configs 1:1

/ip dhcp-server print detail:
name=DHCP-Server
interface=bridge
lease-time=30m
address-pool=pool1
auth=yes
use-radius=no
lease script is empty

pools are nearly identical, just the ip-range is different. They contain the network, gateway (in both cases it’s the corresponding crs-IP), and a DNS-server entry.

bridges contain the ethernet interfaces the point to local network.
One difference: the 328 has internet-connect on port eth24
The crs112 doesn’t run that way, it needs internet-connection on port eth1
Therefore the bridges contain the same interfaces, but without the internet-facing one.

And dhcp-server network settings ?

Best to use /ip dhcp-server export
Then we see all config under that section (remove serial from the output, all MAC addresses on the leases and please post between [__code] quotes for easier readability.

http://forum.mikrotik.com/t/forum-rules/173010/1

Since my CRS112-8G-4S (specified the model in full, since there are multiple versions of “crs112”) with software and firmware version 7.13.2,
completely empty, except the dhcp-server, ip and pool configured, with a directly connected Asus laptop it works instantly,
For now I have 5 hypotheses:

  1. Update RouerOS to 7.13.2 (if it already is, be more specific about which version you use), probably fix it.
  2. It could be a defect in the laptop’s Ethernet port (in laptops these new self-retractable ethernet ports are s–t…) or the CRS, or the cable used.
  3. You have configured the device badly, but you still don’t want to provide the export (export IS NOT print or screenshot),
    which obviously is NOT enough just the DHCP part but also everything else related,
    such as the IPs on the interfaces, the pools, the firewall rules, and any bridge rules, etc.
  4. The internal configuration database is damaged and the device must be netinstalled.
  5. You have the preconception that the problem is located “there” so we cannot help you on the forum, if there is no collaboration.

1 ) already done. I forgot to add it in my previous post, sorry
2) tried a lot of different devices (and also I have the problem with the wifi clients, but I wanted to leave that out for now, to reduce the problem) and cables - and I checked them with the 328, so at least I can exclude that
3) I can export, but the network on the crs112 is not connected to the internet. So it's a lot of work to transfer the data to the notebook, bring the notebook to the location where I have internet,... but here it is:

/ip dhcp-server
add address-pool=pool1 interface=bridge name=DHCP-intern
/ip dhcp-server network
add address=0.0.0.0/24 dns-server=0.0.0.0 gateway=0.0.0.0 netmask=24
add address=192.168.21.0/24 dns-server=192.168.21.254 domain=g21.local gateway=192.168.21.254 netmask=24 ntp-server=192.168.21.254

The line with address 0.0.0.0 is new this morning. I have no idea where it comes from.

  1. Delivery was on Monday (new device, unused). Yesterday I configured the device for the first time. And instantly internal config could be damaged? ok... well, I cannot exclude it
  2. my experience with mikrotik is, that some things begin to work after some reboots, some de- and reactivate, some reset and replay the saved config,...

Also I don't understand, that the crs112 accepts its internetfacing port only on eth1. With eth8 it's not working. Though the rest of the config was adapted... But this is no important.

And my crs112 is also the CRS112-8P-4S, revision 2

  1. Remove that line on dhcp-server network.
    Most likely that is exactly the problem, but I don’t rule out anything else because obviously, it’s just a small piece of the configuration.

  2. If you don’t write things down, we don’t know them.

  3. Instead my experience, since 2007, with the exception of some buggy RouterOS versions, is that if I configure it that way, that way it stays and works as I expect, always.

I’m sorry, but objectively it’s definitely a configuration error on your part.
As 0.0.0.0/24 came up in one point, there is certainly something else that is wrong or that you haven’t considered,
because you think that your consideration, compared to everyone else on the forum, is enough to do things right.

well, yesterday this line (to 3.) ) was not there.
I’ve deleted it and restarted the device.
Now the router has lost all routing information. It got an ip address on the internet-faced port (eth1), but I cannot ping its gateway (no route to host).

It is true, goto point 4)

The internal configuration database is damaged and the device must be > netinstalled> .

If the problem persist, ask RMA from your distributor.

Obviously the problem is with your config or other parts which you are not telling us but since you refuse to show it or reveal the complete context, you can not expect others to solve your problem with only crumbles for information.
Since you know how to show only bits and pieces, one would expect you also know how to solve this problem, no ?

If you want us to help you, you have to help us to help you. You have to ALLOW us to help you.

Educated guess: did you make backup on that old device and imported it on the new one ?
If so, NEVER do that again.

Anyhow, netinstall and start over.

it’s not a config from another device. As I said, the device and the config is brand-new, based on my little experience with my crs328.

/interface bridge
add admin-mac=48:A9:8A:B5:C3:2A auto-mac=no comment=defconf name=inside vlan-filtering=yes
add name=outside
/interface vlan
add interface=inside name=vlan1-LOKAL vlan-id=1
add interface=ether1 name=vlan99-INTERNET vlan-id=99
/caps-man datapath
add bridge=inside name=datapath1
/caps-man security
add authentication-types=wpa2-psk encryption=aes-ccm name=security1-abcde12345
/caps-man configuration
add country=germany datapath=datapath1 installation=any mode=ap name=cfg1 security=security1-abcde12345 ssid=G21
/interface list
add name=WAN
add name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=hotspot
/ip pool
add name=pool1 ranges=192.168.21.101-192.168.21.130
add name=dhcp ranges=192.168.21.101-192.168.21.150
add name=vpn ranges=192.168.89.2-192.168.89.255
/ip dhcp-server
add address-pool=pool1 interface=inside name=DHCP-intern
/port
set 0 name=serial0
/ppp profile
set *FFFFFFFE local-address=192.168.89.1 remote-address=vpn
/caps-man manager
set enabled=yes
/caps-man provisioning
add action=create-dynamic-enabled master-configuration=cfg1 name-format=identity
/interface bridge port
add bridge=inside comment=defconf interface=ether2
add bridge=inside comment=defconf interface=ether3
add bridge=inside comment=defconf interface=ether4
add bridge=inside comment=defconf interface=ether5
add bridge=inside comment=defconf interface=ether6
add bridge=inside comment=defconf interface=ether7
add bridge=inside comment=defconf interface=ether8
add bridge=inside comment=defconf interface=sfp9
add bridge=inside comment=defconf interface=sfp10
add bridge=inside comment=defconf interface=sfp11
add bridge=inside comment=defconf interface=sfp12
add bridge=outside interface=ether1
/interface bridge vlan
add bridge=inside untagged=ether2,ether3,ether4,ether5,ether6,ether7,ether8 vlan-ids=1
add bridge=outside untagged=outside vlan-ids=99
/interface l2tp-server server
set enabled=yes use-ipsec=yes
/interface list member
add interface=ether1 list=WAN
add interface=inside list=LAN
/ip address
add address=192.168.21.254/24 interface=inside network=192.168.21.0
/ip cloud
set ddns-enabled=yes
/ip dhcp-client
# DHCP client can not run on slave or passthrough interface!
add interface=ether1
/ip dhcp-server network
add address=192.168.21.0/24 dns-server=192.168.21.254 domain=g21.local gateway=192.168.21.254 netmask=24 ntp-server=192.168.21.254
/ip dns
set allow-remote-requests=yes servers=8.8.8.8
/ip firewall filter
add action=accept chain=input dst-port=53 protocol=udp src-address=192.168.21.0/24
/ip firewall nat
add action=masquerade chain=srcnat out-interface-list=WAN
# in/out-interface matcher not possible when interface (ether1) is slave - use master instead (outside)
add action=masquerade chain=srcnat comment="masq. vpn traffic" out-interface=ether1 src-address=192.168.21.0/24
/ip route
add check-gateway=ping disabled=no dst-address=0.0.0.0/0 gateway="" routing-table=main suppress-hw-offload=no
#error exporting "/ip/ssh" (timeout)
/ppp secret
add name=vpn
/system clock
set time-zone-name=Europe/Vienna
/system identity
set name=G21-Mikrotik
/system note
set show-at-login=no

Underlying issue is QuickSet. It had a bug in old versions that created a dhcp-network with 0.0.0.0 instead of the subnet from ether1. So I suspect OP changed the IP in QuickSet, which created the 0.0.0.0. Since upgrade does not change the default configuration that was already applied, the 0.0.0.0 bug from old version remain in the new config.

One example:
Upgrading from 7.12 to 7.13.2 and do a reset-configuration disk space is 7% free.
Netinstalling directly the 7.13.2 disk space free is 9%…
Something is left regardlessly the “reset”…

puh, netinstall...

we can forget netinstall.
It says "no package included".
I used the 7.13.2 for mips

Better you read the netinstall guide: If you don’t download the packages and select on the netinstall the right folder, how do you install them?

I follow the guide! Exactly!
But the result is different. Where the manual shows how to load a package, my downloaded file from mikrotik is not a valid file for netinstall.

I browse for the folder containing the image, but the list of sets is empty.

If I wasn't to lazy I would throw the whole hardware into the recycle bin. The way to get a new device up and running is unacceptable long...