DHCP Server not working (as intended)

I have an RB-493AH board w/ DHCP setup on it with static addresses setup using a script like this.

/ip dhcp-server lease add address=192.168.135.1 mac-address=00:15:6D:FA:5E:5D client-id="Name1" server=dhcp1 disabled=no
/ip dhcp-server lease add address=192.168.135.2 mac-address=00:15:6D:E4:A6:A0 client-id="Name2" server=dhcp1 disabled=no
/ip dhcp-server lease add address=192.168.135.3 mac-address=00:15:6D:E6:A8:E0 client-id="Name3" server=dhcp1 disabled=no
/ip dhcp-server lease add address=192.168.135.4 mac-address=00:15:6D:FC:60:FB client-id="Name4" server=dhcp1 disabled=no
/ip dhcp-server lease add address=192.168.135.5 mac-address=00:15:6D:F0:59:FA client-id="Name5" server=dhcp1 disabled=no

but the clients are not getting IP addresses like they’re supposed to. In fact, no one has pulled the proper IP address from the device.

Can you post your IP pool and DHCP server and server network configuration, too?

refresh my memory as to how to do just those..

DHCP-SERVER

# jan/02/1970 18:54:55 by RouterOS 4.10
# software id = 
#
/ip dhcp-server
add address-pool=dhcp_pool1 authoritative=after-2sec-delay bootp-support=\
    static disabled=no interface=ether1 lease-time=3d name=dhcp1
/ip dhcp-server config
set store-leases-disk=5m
/ip dhcp-server lease
add address=192.168.135.1 client-id="Name1" comment="" disabled=no \
    mac-address=00:15:6D:FA:5E:5D server=dhcp1
add address=192.168.135.2 client-id="Name2" comment="" disabled=no \
    mac-address=00:15:6D:E4:A6:A0 server=dhcp1
add address=192.168.135.3 client-id=NULL comment="" disabled=yes mac-address=\
    11:11:11:11:11:01 server=dhcp1
add address=192.168.135.4 client-id="Name3" comment="" disabled=no \
    mac-address=00:15:6D:FC:60:FB server=dhcp1
add address=192.168.135.5 client-id="Name4" comment="" disabled=no \
    mac-address=00:15:6D:F0:59:FA server=dhcp1
add address=192.168.135.6 client-id=Name5="" disabled=no mac-address=\
    00:15:6D:FC:61:7B server=dhcp1
add address=192.168.135.7 client-id=Null comment="" disabled=no mac-address=\
    00:15:6D:FC:61:7A server=dhcp1
add address=192.168.135.8 client-id="Name6" comment="" disabled=no \
    mac-address=00:15:6D:FC:61:6F server=dhcp1
add address=192.168.135.9 client-id="Name7" comment="" disabled=no \
    mac-address=00:15:6D:FC:60:7E server=dhcp1
add address=192.168.135.10 client-id="Name8" comment="" disabled=no \
    mac-address=00:15:6D:FC:60:0F server=dhcp1
add address=192.168.135.12 client-id="Name9" comment="" disabled=no \
    mac-address=00:15:6D:FC:61:4A server=dhcp1
add address=192.168.135.13 client-id="Name" comment="" disabled=no \
    mac-address=00:15:6D:FC:60:CF server=dhcp1
add address=192.168.135.14 client-id="name" comment="" disabled=no \
    mac-address=00:15:6D:E6:A6:9D server=dhcp1
add address=192.168.135.15 client-id="name" comment="" disabled=no \
    mac-address=00:15:6D:E6:A8:D2 server=dhcp1
add address=192.168.135.16 client-id="name" comment="" disabled=no \
    mac-address=00:15:6D:E6:A8:C2 server=dhcp1
add address=192.168.135.17 client-id="name" comment="" disabled=no \
    mac-address=00:15:6D:FA:5E:C7 server=dhcp1
add address=192.168.135.18 client-id="name" comment="" disabled=no \
    mac-address=00:15:6D:F0:5A:21 server=dhcp1
add address=192.168.135.19 client-id="name" comment="" disabled=no \
    mac-address=00:15:6D:FA:5E:A4 server=dhcp1
add address=192.168.135.20 client-id="name" comment="" disabled=no \
    mac-address=00:15:6D:FC:61:44 server=dhcp1
add address=192.168.135.21 client-id="name" comment="" disabled=no \
    mac-address=00:15:6D:FC:62:C0 server=dhcp1
add address=192.168.135.22 client-id="name" comment="" disabled=no \
    mac-address=00:15:6D:FA:39:19 server=dhcp1
add address=192.168.135.23 client-id="name" comment="" disabled=no \
    mac-address=00:15:6D:FC:63:5A server=dhcp1
add address=192.168.135.24 client-id="name" comment="" disabled=no \
    mac-address=00:15:6D:F0:5A:8E server=dhcp1
add address=192.168.135.25 client-id="name" comment="" disabled=yes \
    mac-address=00:15:6D:FA:5E:87
add address=192.168.135.26 client-id="name" comment="" disabled=no \
    mac-address=00:15:6D:E6:A7:5A server=dhcp1
add address=192.168.135.27 client-id="name" comment="" disabled=no \
    mac-address=00:15:6D:F8:18:13 server=dhcp1
add address=192.168.135.100 client-id="name" comment="" disabled=no \
    mac-address=00:15:6D:E6:A8:E0 server=dhcp1
add address=192.168.135.101 client-id="name" comment="" disabled=no \
    mac-address=00:15:6D:E6:A8:FE server=dhcp1
add address=192.168.135.102 client-id="name" comment="" disabled=no \
    mac-address=00:15:6D:E6:A8:70 server=dhcp1
add address=192.168.135.103 client-id="name" comment="" disabled=no \
    mac-address=00:15:6D:E6:A8:E5 server=dhcp1
add address=192.168.135.104 client-id="name" comment="" disabled=no \
    mac-address=00:15:6D:E6:A9:04 server=dhcp1
add address=192.168.135.105 client-id="name" comment="" disabled=no \
    mac-address=00:15:6D:E6:A7:95 server=dhcp1
add address=192.168.135.106 client-id="name" comment="" disabled=no \
    mac-address=00:15:6D:E6:A8:90 server=dhcp1
add address=192.168.135.108 client-id="name" comment="" disabled=no \
    mac-address=00:15:6D:E6:A8:C3 server=dhcp1
add address=192.168.135.110 client-id=name comment="" disabled=no \
    mac-address=00:15:6D:E6:A8:EF server=dhcp1
add address=192.168.135.111 client-id=namet comment="" disabled=no \
    mac-address=00:15:6D:E6:A8:6A server=dhcp1
add address=192.168.135.112 client-id="name" comment="" disabled=no \
    mac-address=00:22:3F:91:8E:08 server=dhcp1
add address=192.168.135.113 client-id="name" comment="" disabled=no \
    mac-address=00:15:6D:E6:A8:6D server=dhcp1
add address=192.168.135.114 client-id="name" comment="" disabled=no \
    mac-address=00:15:6D:E6:A8:04 server=dhcp1
add address=192.168.135.115 client-id="name" comment="" disabled=no \
    mac-address=00:15:6D:E6:A6:19 server=dhcp1
add address=192.168.135.116 client-id="name" comment="" disabled=no \
    mac-address=00:15:6D:F8:17:C8 server=dhcp1
add address=192.168.135.117 client-id=name comment="" disabled=no \
    mac-address=00:15:6D:E6:A9:02 server=dhcp1
add address=192.168.135.118 client-id=name comment="" disabled=no \
    mac-address=00:15:6D:F8:18:11 server=dhcp1
add address=192.168.135.29 client-id=1:0:15:6d:fa:5e:87 comment="" disabled=\
    no mac-address=00:15:6D:FA:5E:87 server=dhcp1
/ip dhcp-server network
add address=192.168.135.0/24 comment="" gateway=192.168.135.254

POOL

# jan/02/1970 18:54:31 by RouterOS 4.10
# software id = 
#
/ip pool
add name=dhcp_pool1 ranges=192.168.135.1-192.168.135.250

Not sure if this is what your looking for for network config.. im drawing a blank today

/ip pool export
/ip dhcp-server export

what part of my network cfg do you need? i think i edited my post at the same time you posted how to pull the info down

I don’t see anything wrong with that DHCP configuration. Are the clients connected via ether1?

Yes, the clients are connected to Ether1.
with DSL modems plugged in to ether2,3,4 and 5 doing PPPoE back to the ISP (AT&T)
as if the DHCP issues are not enough, it does not look like my PCC load balancing is working right.. (cfg for that was posted in another thread)

When you configure a static address on a client, can you ping the .254 IP address on ether1?

Yep. I sure can. Can even do it with a Dynamic one. (in fact, i’m posting from a laptop connected to the RB493AH)

Then the most likely cause is that the client identifier you’re setting isn’t actually sent by the client, so the request doesn’t match.

client-id (string; Default: ) If specified, must match DHCP ‘client identifier’ option of the request

http://wiki.mikrotik.com/wiki/Manual:IP/DHCP_Server#Leases

Try to remove them all with the below command:

/ip dhcp-server lease set [/ip dhcp-server lease find] client-id=""

And then test again.

can not change dynamic lease

is what i get. I am thinking that is normal right now since i have some dynamic addresses. it cleared all the client ID things, will try again. Thanks. Will add karma in a bit..

Now on to figure out why the PPC setup I have is only throwing traffic over 1 connection, suppose another new post is in order for that

Yes, that would be normal.

And yes, PCC would best be handled in a separate thread so that it’s easy to find for other people with the same issue.