Problem with DHCP under MT

Hi, I have a DHCP configuration problem uner a MT (winbox).
I don’t know how to configure static MAC ↔ IP relations.

example :
Mac ip
00:88:sf:2s:43:ds 192.168.0.2

I’m sorry about my English. :neutral_face:
Lucas

Try this

/ ip dhcp-server lease 
add address=192.168.2.73 mac-address=00:11:D8:8E:B0:D5 disabled=no
add address=192.168.2.40 mac-address=00:01:80:32:DF:92 disabled=no

/Jörgen

ok, it’s right…, thanks…
but, I have another qastion !
I configue a subnet mask (…/16), like 255.255.0.0
and a MT (in DHCP) give to DHCP client sub 255.0.0.0 , why ?

Can I make a something, to protect a network, that My client’s can’t change a IP addresses ?
for example, in My network, some laptop have a 192.168.0.4 ip, and I want to make like this, when client change on this lap ip configuration (ex. for 192.168.0.3), then can’t connect to network, or something like this?!

one more time thank’s for help
Lucas

This works in my setup

/ ip pool
add name=“dhcp-pool-1” ranges=192.168.2.100-192.168.2.254

/ ip dhcp-server network
add address=192.168.2.0/24 gateway=192.168.2.1
dns-server=195.67.199.33,195.67.199.34

/Jörgen

Set the interface to reply-only and make sure to create the ARP table with the IP/MAC. and.. read the manual…

Regards

“Set the interface to reply-only”


that’s help…
thank’s very much…