DHCP offered but not bound only static

Hello,
i have a lan with dhcp server from mikrotik.
Generally I left all the PCs connected in DHCP, so that it was the mikrotik that gave the address which I then made static with make static.
Now if I connect a new PC, if I assign it a static address everything ok, if instead I put it in DHCP the mikrotik cannot give it an address (offered but not bound)
I have tried with 2/3 pc.
The strange thing is that if during “l offered” when the pc appears in Leases for a short period of time, if I click on the address that the mikrotik would like to assign to the PC and make it make static then it works (just disconnect and reattach the ethernet socket and will be assigned this address)
It appears that mikrotik’s DHCP does not accept if it is not static.
I also attach the log
Version v6.46.4
Thanks

17:25:06 dhcp,debug,packet dhcp1 received request with id 394036096 from 0.0.0.0 
17:25:06 dhcp,debug,packet     ciaddr = 0.0.0.0 
17:25:06 dhcp,debug,packet     chaddr = 1C:B7:2C:0A:92:58 
17:25:06 dhcp,debug,packet     Msg-Type = request 
17:25:06 dhcp,debug,packet     Client-Id = 01-1C-B7-2C-0A-92-58 
17:25:06 dhcp,debug,packet     Address-Request = 192.168.0.102 
17:25:06 dhcp,debug,packet     Host-Name = "ASUS-PORTATILE" 
17:25:06 dhcp,debug,packet     Client-FQDN = 00-00-00-41-53-55-53-2D-50-4F-52-54-41-54-49-4C-45 
17:25:06 dhcp,debug,packet     Class-Id = "MSFT 5.0" 
17:25:06 dhcp,debug,packet     Parameter-List = Subnet-Mask,Router,Domain-Server,Domain-Name,Router-Discovery,Static-Route,Vendor-Specific,NETBIOS-Name-Server,NETBIOS-Node-Type,NETBIOS-Scope,Domain-Search,Classless-Route,MS-Classless-Route,Auto-Proxy-Config 
17:25:06 dhcp,debug,packet dhcp1 sending nak with id 394036096 to 255.255.255.255 
17:25:06 dhcp,debug,packet     ciaddr = 0.0.0.0 
17:25:06 dhcp,debug,packet     chaddr = 1C:B7:2C:0A:92:58 
17:25:06 dhcp,debug,packet     Msg-Type = nak 
17:25:06 dhcp,debug,packet     Server-Id = 169.254.1.254 
17:25:06 dhcp,debug,packet dhcp1 received discover with id 3437645843 from 0.0.0.0 
17:25:06 dhcp,debug,packet     ciaddr = 0.0.0.0 
17:25:06 dhcp,debug,packet     chaddr = 1C:B7:2C:0A:92:58 
17:25:06 dhcp,debug,packet     Msg-Type = discover 
17:25:06 dhcp,debug,packet     Client-Id = 01-1C-B7-2C-0A-92-58 
17:25:06 dhcp,debug,packet     Host-Name = "ASUS-PORTATILE" 
17:25:06 dhcp,debug,packet     Class-Id = "MSFT 5.0" 
17:25:06 dhcp,debug,packet     Parameter-List = Subnet-Mask,Router,Domain-Server,Domain-Name,Router-Discovery,Static-Route,Vendor-Specific,NETBIOS-Name-Server,NETBIOS-Node-Type,NETBIOS-Scope,Domain-Search,Classless-Route,MS-Classless-Route,Auto-Proxy-Config 
17:25:07 dhcp,debug,packet dhcp1 received request with id 3437645843 from 0.0.0.0 
17:25:07 dhcp,debug,packet     ciaddr = 0.0.0.0 
17:25:07 dhcp,debug,packet     chaddr = 1C:B7:2C:0A:92:58 
17:25:07 dhcp,debug,packet     Msg-Type = request 
17:25:07 dhcp,debug,packet     Client-Id = 01-1C-B7-2C-0A-92-58 
17:25:07 dhcp,debug,packet     Address-Request = 192.168.0.102 
17:25:07 dhcp,debug,packet     Server-Id = 192.168.20.150 
17:25:07 dhcp,debug,packet     Host-Name = "ASUS-PORTATILE" 
17:25:07 dhcp,debug,packet     Client-FQDN = 00-00-00-41-53-55-53-2D-50-4F-52-54-41-54-49-4C-45 
17:25:07 dhcp,debug,packet     Class-Id = "MSFT 5.0" 
17:25:07 dhcp,debug,packet     Parameter-List = Subnet-Mask,Router,Domain-Server,Domain-Name,Router-Discovery,Static-Route,Vendor-Specific,NETBIOS-Name-Server,NETBIOS-Node-Type,NETBIOS-Scope,Domain-Search,Classless-Route,MS-Classless-Route,Auto-Proxy-Config 
17:25:07 dhcp,debug,packet dhcp1 sending offer with id 3437645843 to 192.168.20.117 
17:25:07 dhcp,debug,packet     ciaddr = 0.0.0.0 
17:25:07 dhcp,debug,packet     yiaddr = 192.168.20.117 
17:25:07 dhcp,debug,packet     siaddr = 169.254.1.254 
17:25:07 dhcp,debug,packet     chaddr = 1C:B7:2C:0A:92:58 
17:25:07 dhcp,debug,packet     Msg-Type = offer 
17:25:07 dhcp,debug,packet     Server-Id = 169.254.1.254 
17:25:07 dhcp,debug,packet     Address-Time = 600 
17:25:07 dhcp,debug,packet     Subnet-Mask = 255.255.255.0 
17:25:07 dhcp,debug,packet     Router = 192.168.20.1 
17:25:07 dhcp,debug,packet     Domain-Server = 8.8.8.8 
17:25:07 dhcp,debug,packet     Domain-Name = "sk.local" 
17:25:44 dhcp,debug,packet dhcp1 received inform with id 4027879617 from 192.168.0.103 
17:25:44 dhcp,debug,packet     flags = broadcast 
17:25:44 dhcp,debug,packet     ciaddr = 192.168.0.103 
17:25:44 dhcp,debug,packet     chaddr = 10:78:D2:9C:C3:C5 
17:25:44 dhcp,debug,packet     Msg-Type = inform 
17:25:44 dhcp,debug,packet     Client-Id = 01-10-78-D2-9C-C3-C5 
17:25:44 dhcp,debug,packet     Host-Name = "SK-2011-PC" 
17:25:44 dhcp,debug,packet     Class-Id = "MSFT 5.0" 
17:25:44 dhcp,debug,packet     Parameter-List = Subnet-Mask,Domain-Name,Router,Domain-Server,NETBIOS-Name-Server,NETBIOS-Node-Type,NETBIOS-Scope,Router-Discovery,Static-Route,Classless-Route,MS-Classless-Route,Vendor-Specific,Auto-Proxy-Config 
17:25:44 dhcp,debug,packet dhcp1 sending ack with id 4027879617 to 255.255.255.255 
17:25:44 dhcp,debug,packet     flags = broadcast 
17:25:44 dhcp,debug,packet     ciaddr = 192.168.0.103 
17:25:44 dhcp,debug,packet     siaddr = 169.254.1.254 
17:25:44 dhcp,debug,packet     chaddr = 10:78:D2:9C:C3:C5 
17:25:44 dhcp,debug,packet     Msg-Type = ack 
17:25:44 dhcp,debug,packet     Server-Id = 169.254.1.254 
17:25:44 dhcp,debug,packet     Domain-Server = 169.254.1.254,8.8.8.8,8.8.4.4

Server-Id = 169.254.1.254 ?

IP address of the DHCP server is in the same subnet as the IP pool I hope.

Thanks for reply,
That address was a test, I removed it but the problem remains, I don’t know what to check anymore :frowning:

10:47:22 dhcp,debug,packet dhcp1 received request with id 3222528924 from 0.0.0.0 
10:47:22 dhcp,debug,packet     secs = 1280 
10:47:22 dhcp,debug,packet     flags = broadcast 
10:47:22 dhcp,debug,packet     ciaddr = 0.0.0.0 
10:47:22 dhcp,debug,packet     chaddr = 10:78:D2:9C:C3:C5 
10:47:22 dhcp,debug,packet     Msg-Type = request 
10:47:22 dhcp,debug,packet     Client-Id = 01-10-78-D2-9C-C3-C5 
10:47:22 dhcp,debug,packet     Address-Request = 192.168.0.103 
10:47:22 dhcp,debug,packet     Host-Name = "SK-2011-PC" 
10:47:22 dhcp,debug,packet     Client-FQDN = 00-00-00-53-4B-2D-32-30-31-31-2D-50-43 
10:47:22 dhcp,debug,packet     Class-Id = "MSFT 5.0" 
10:47:22 dhcp,debug,packet     Parameter-List = Subnet-Mask,Domain-Name,Router,Domain-Server,NETBIOS-Name-Server,NETBIOS-Node-Type,NETBIOS-Scope,Router-Discovery,Static-Route,Classless-Route,MS-Classless-Route,Vendor-Specific 
10:47:22 dhcp,debug,packet dhcp1 sending nak with id 3222528924 to 255.255.255.255 
10:47:22 dhcp,debug,packet     flags = broadcast 
10:47:22 dhcp,debug,packet     ciaddr = 0.0.0.0 
10:47:22 dhcp,debug,packet     chaddr = 10:78:D2:9C:C3:C5 
10:47:22 dhcp,debug,packet     Msg-Type = nak 
10:47:22 dhcp,debug,packet     Server-Id = 192.168.20.1 
10:47:22 dhcp,debug,packet dhcp1 received discover with id 4160620234 from 0.0.0.0 
10:47:22 dhcp,debug,packet     flags = broadcast 
10:47:22 dhcp,debug,packet     ciaddr = 0.0.0.0 
10:47:22 dhcp,debug,packet     chaddr = 10:78:D2:9C:C3:C5 
10:47:22 dhcp,debug,packet     Msg-Type = discover 
10:47:22 dhcp,debug,packet     Client-Id = 01-10-78-D2-9C-C3-C5 
10:47:22 dhcp,debug,packet     Host-Name = "SK-2011-PC" 
10:47:22 dhcp,debug,packet     Class-Id = "MSFT 5.0" 
10:47:22 dhcp,debug,packet     Parameter-List = Subnet-Mask,Domain-Name,Router,Domain-Server,NETBIOS-Name-Server,NETBIOS-Node-Type,NETBIOS-Scope,Router-Discovery,Static-Route,Classless-Route,MS-Classless-Route,Vendor-Specific 
10:47:22 dhcp,debug,packet dhcp1 received request with id 4160620234 from 0.0.0.0 
10:47:22 dhcp,debug,packet     flags = broadcast 
10:47:22 dhcp,debug,packet     ciaddr = 0.0.0.0 
10:47:22 dhcp,debug,packet     chaddr = 10:78:D2:9C:C3:C5 
10:47:22 dhcp,debug,packet     Msg-Type = request 
10:47:22 dhcp,debug,packet     Client-Id = 01-10-78-D2-9C-C3-C5 
10:47:22 dhcp,debug,packet     Address-Request = 192.168.0.103 
10:47:22 dhcp,debug,packet     Server-Id = 192.168.20.150 
10:47:22 dhcp,debug,packet     Host-Name = "SK-2011-PC" 
10:47:22 dhcp,debug,packet     Client-FQDN = 00-00-00-53-4B-2D-32-30-31-31-2D-50-43 
10:47:22 dhcp,debug,packet     Class-Id = "MSFT 5.0" 
10:47:22 dhcp,debug,packet     Parameter-List = Subnet-Mask,Domain-Name,Router,Domain-Server,NETBIOS-Name-Server,NETBIOS-Node-Type,NETBIOS-Scope,Router-Discovery,Static-Route,Classless-Route,MS-Classless-Route,Vendor-Specific 
10:47:23 dhcp,debug,packet dhcp1 sending offer with id 4160620234 to 255.255.255.255 
10:47:23 dhcp,debug,packet     flags = broadcast 
10:47:23 dhcp,debug,packet     ciaddr = 0.0.0.0 
10:47:23 dhcp,debug,packet     yiaddr = 192.168.20.115 
10:47:23 dhcp,debug,packet     siaddr = 192.168.20.1 
10:47:23 dhcp,debug,packet     chaddr = 10:78:D2:9C:C3:C5 
10:47:23 dhcp,debug,packet     Msg-Type = offer 
10:47:23 dhcp,debug,packet     Server-Id = 192.168.20.1 
10:47:23 dhcp,debug,packet     Address-Time = 5 
10:47:23 dhcp,debug,packet     Subnet-Mask = 255.255.255.0 
10:47:23 dhcp,debug,packet     Domain-Name = "sk.local" 
10:47:23 dhcp,debug,packet     Router = 192.168.20.1 
10:47:23 dhcp,debug,packet     Domain-Server = 8.8.8.8 
10:47:26 dhcp,debug,packet dhcp1 received inform with id 2813022131 from 192.168.0.103 
10:47:26 dhcp,debug,packet     flags = broadcast 
10:47:26 dhcp,debug,packet     ciaddr = 192.168.0.103 
10:47:26 dhcp,debug,packet     chaddr = 10:78:D2:9C:C3:C5 
10:47:26 dhcp,debug,packet     Msg-Type = inform 
10:47:26 dhcp,debug,packet     Client-Id = 01-10-78-D2-9C-C3-C5 
10:47:26 dhcp,debug,packet     Host-Name = "SK-2011-PC" 
10:47:26 dhcp,debug,packet     Class-Id = "MSFT 5.0" 
10:47:26 dhcp,debug,packet     Parameter-List = Subnet-Mask,Domain-Name,Router,Domain-Server,NETBIOS-Name-Server,NETBIOS-Node-Type,NETBIOS-Scope,Router-Discovery,Static-Route,Classless-Route,MS-Classless-Route,Vendor-Specific,Auto-Proxy-Config 
10:47:26 dhcp,debug,packet dhcp1 sending ack with id 2813022131 to 255.255.255.255 
10:47:26 dhcp,debug,packet     flags = broadcast 
10:47:26 dhcp,debug,packet     ciaddr = 192.168.0.103 
10:47:26 dhcp,debug,packet     siaddr = 192.168.20.1 
10:47:26 dhcp,debug,packet     chaddr = 10:78:D2:9C:C3:C5 
10:47:26 dhcp,debug,packet     Msg-Type = ack 
10:47:26 dhcp,debug,packet     Server-Id = 192.168.20.1 
10:47:26 dhcp,debug,packet     Domain-Server = 192.168.20.1,8.8.8.8,8.8.4.4

Your DHCP server now is 192.168.20.1, or is it 192.168.20.150 ? The IP pool for the DHCP server should be in the same range 192.168.20.0/24 or another subnet.

In the first post 192.168.0.103 gets a NAK (not accepted) , it gets an ACK in the second post. This not consistent. Subnet mask changed from /24 to something else.???

If your DHCP server is on a bridge, disable the STP on the bridge (set it to “none”). This solved it in other occasions, but I don’t understand why.

/ip pool
add name=dhcp_pool1 ranges=192.168.20.101-192.168.20.150
/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=bridge-local lease-time=5s \
    name=dhcp1
/ip address
add address=192.168.20.1/24 comment="default configuration" interface=\
    bridge-local network=192.168.20.0
add address=192.168.15.2/24 interface=ether1-gateway network=192.168.15.0
add address=192.168.0.1 disabled=yes interface=bridge-local network=\
    192.168.0.0
add address=10.128.0.1 disabled=yes interface=xxxxxx network=\
    10.128.0.2
add address=10.120.1.10 disabled=yes interface=xxxxxx network=\
    10.120.1.11
add address=93.71.151.207 interface=ether1-gateway network=xxxxxx
add address=169.254.1.254 disabled=yes interface=bridge-local network=\
    169.254.1.0
add address=192.168.0.5 disabled=yes interface=bridge-local network=\
    192.168.0.0
add address=169.254.1.254/24 disabled=yes interface=bridge-local network=\
    169.254.1.0

This is a configuration part.(if needed I can send the complete conf)
Nothing has changed I just disabled the network
169.254.1.254/24
I had already tried to put STP bridge “none” but nothing has changed.
Reading various posts they say they try the firmware version 6.37.4
http://forum.mikrotik.com/t/ros-6-38-serious-dhcp-server-problem/105259/1
but in my router I can’t downgrade it until that version
I would have liked to try this version to understand if it worked.

This is a configuration part.(if needed I can send the complete conf)
Nothing has changed I just disabled the network
169.254.1.254/24
I had already tried to put STP bridge “none” but nothing has changed.



This looks OK at the router side. Don’t know why this doesn’t work.
What looks strange to me is all those self-assigned 192.254.0.0/16 IP adresses on the bridge. They are typical for an interface failing to obtain an IP address, and falling back on a self-assigned IP address. The bridge should not be trying to obtain an IP address, so it should not fall back to a self-assigned address. You may have added this manually (/24) to the bridge.Don’t forget the subnet masks in the IP adresses.