DHCP is basically a protocol to assign dynamic IP address to clients. It means you don’t need to touch the clients’ computer / laptop to manually set with a static IP address. The IP address will be assigned dynamically to the clients.
However in some cases, you may need to assign static IP address to clients to do policy access to the clients such as firewalling, bandwidth allocation, or monitoring the clients’ internet activities. As an administrator, you can assign the IP address without touching the computers / laptops. The thing you have to know is the hardware (MAC) address of each PC / laptop that you want to set fixed IP addresses.
Here is the way how to set fixed IP address via DHCP server configuration in Mikrotik RouterOS.
For example, you want to assign a computer with a MAC address 70:F1:A1:D1:49:49 with an IP address 192.168.100.10 and clientID ‘client10’, use the following command:
You can add more clients by adding the ‘add address’ command as example above.
If using Winbox is as follows
Various ways to restrict internet access based on MAC address in MikroTik router has been discussed in this article. I hope, you are now able to prevent any unauthorized access in your network by filtering MAC address with MikroTik router. However, if you face any problem to design a MAC address filtering network with MikroTik router, feel free to discuss in comment or contact with me from.
MikroTik Winbox bundled into macOS app with Wine. Contribute to nrlquaker/winbox-mac development by creating an account on GitHub.
Go to IP, then DHCP-Server
Click on Leases
Click the line that shows the IP address of the device you would like to make a DHCP Reservation for
At this point you will be looking in the Active Address column, near the middle
Click Make Static at the top of the window
The Address and MAC Address columns will populate
Double-click the device you are working on
In Address, enter the permanent IP address you would like the device to have – an address outside of the DHCP range
Click Comment and enter a description for the device. e.g. “front yard IP camera”
Click OK.
At this point the device still has the OLD IP address that it got when it was first plugged in.
Do whatever steps necessary to force the device to grab the new DHCP address. This could be a reboot, pulling the network cable and plugging it back in, clicking Repair on the network connection on a PC, etc.
The device should grab the new DHCP address.
This is how a standard DHCP lease looks:
This article describes set of commands used for configuration management. Configuration Undo/Redo. Any action done in GUI or any command executed from the CLI are recorded in /system history. You can undo or redo any action by running undo or redo commands from the CLI or by clicking on Undo, Redo buttons from the GUI. Simple example to demonstrate addition of firewall rule and how.
Double-click it and open that DHCP Lease’s window. When you click “Make Static”, the main DHCP Server window will update, but the DHCP Lease window will NOT update. You have to close it and reopen it to see the “General” tab. (see pic below)
GamePlay ScreenShots.
In the Address field on the General tab, you can type in the permanent static DHCP address you would like the device to have. (Ideally outside your DHCP Pool so the same address doesn’t get handed out twice.) It will not change immediately – the device will grab the new IP the next time it goes to renew its DHCP lease. You can normally force this to happen by rebooting the device or unplugging the network cable and plugging it back in.
Mikrotik Winbox For Mac Catalina
The Address is the static DHCP reservation. The Active Address is what the device currently has. After a reboot/dhcp refresh the Active Address will change to what is in the Address field. Add a Comment to make your life easier and you’re done.
Semipro tip: I sometimes enter a static DHCP reservation for devices that have a hard-coded static IP address. Even though the DHCP reservation will never be ‘active’, it will be in the list with all the DHCP devices and it’s a great reminder that “Oh yeah, I do have a device at 192.168.1.248 that I forgot about.”