Hello, I am looking for the command line which allows you to set an IP of a device directly on the router. The router is a Mikrotik_HAPac2 with DHCP disabled.
Looking forward to your response, thank you in advance. Sincerely
Assuming you want to set the address on bridge
/ip address
add address=192.168.2.1/24 interface=bridge network=192.168.2.0
For more background and detailed info:
https://help.mikrotik.com/docs/display/ROS/IP+Addressing
Hello, thank you for your answer but I’m sorry I made a mistake in my question. I want to set a fixed IP (with MAC) to a device present on the Lan of my Mikrotik_HAPac2 router with DHCP disabled.
Please forgive me for this error.
In that case: more detail needed since obviously assumptions often lead to mistakes, like is shown again here.
Better description of your network (a drawing may help) and what you are trying to do and why.
The ‘why’ may be of help to determine if the ‘what’ is really the best option.
In brief: a network without DHCP server is not able to provide a fixed IP based on MAC to a client device.
A client device not using DHCP, will not accept an IP address from elsewhere. It needs to be configured locally then.
So something is odd in your description of the problem or what you are trying to do.