fbpx

Does the MikroTik dhcp server always deliver the same IP to a client?

Usually yes, however it does not mean that a host will always receive the same IP address, this depends on the moment in which the IP address is renegotiated again since it could be granted to a new host that at that moment appeared to negotiate an IP and If this does not happen, the same IP will probably be assigned to the host.

The behavior of the DHCP server on MikroTik devices can be configured to assign the same IP address to a specific client each time it connects to the network, using static IP assignment (also known as IP reservation).

This is achieved by associating the MAC address of the client device with a specific IP address in the DHCP server configuration.

We explain how it works:

Dynamic Allocation

By default, a DHCP server assigns IP addresses dynamically from a pool of available addresses.

With this method, there is no guarantee that a client will always be assigned the same IP address each time it connects to the network, especially if the lease has expired and the IP has been returned to the pool to be assigned to another device.

Static Assignment (IP Reservation)

To ensure that a device always receives the same IP address, you can configure an IP reservation on the MikroTik DHCP server. This is done by binding the MAC address of the device to a specific IP address within the address range of the DHCP server.

Although this IP address is part of the DHCP server's range, it is reserved exclusively for that device and will not be assigned to others, ensuring that the device always receives the same IP address each time it connects to the network.

Configuration in MikroTik RouterOS

Here is an example of how you can configure an IP reservation in MikroTik RouterOS:

  1. Access your MikroTik device through WinBox or WebFig.
  2. Go to IP > DHCP Server > Leases.
  3. Find the MAC address of the device you want to assign a static IP address to. You can view current assignments or add a new one manually.
  4. Double-click the corresponding lease or create a new one. Set the MAC address of the client and specify the IP address you want to reserve for this device.
  5. Make sure the lease is set to “bound” status if it already exists or save the new settings.

By making this setting, you ensure that the client device receives the same IP address each time it connects to the network, which can be useful for managing network access, firewall configurations, and other network tasks that require address consistency. IP of the devices.

There are no tags for this post.
Did this content help you?
Facebook
Twitter
LinkedIn
WhatsApp
Telegram

Other documents in this category

Leave your comment

Your email address will not be published. Required fields are marked with *

Tutorials available at MikroLABs

No Courses Found!

DISCOUNT CODE

AN24-LIB

applies to MikroTik books and book packs

Days
Hours
Minutes
Seconds

Introduction to
OSPF - BGP - MPLS

Sign up for this Free course

MAE-RAV-ROS-240118
Days
Hours
Minutes
Seconds

Sign up for this Free course

MAS-ROS-240111

Promo for Three Kings Day!

KINGS24

15%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the Three Kings Day discount code!

* promotion valid until Sunday January 7, 2024
** the code (KINGS24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

New Year's Eve Promo!

NY24

20%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the New Year's Eve discount code!

* promotion valid until Monday, January 1, 2024
** the code (NY24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

Christmas discounts!

XMAS23

30%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the discount code for Christmas!!!

**codes are applied in the shopping cart
Promo valid until Monday December 25, 2023

CYBER WEEK DISCOUNTS

CW23-MK

17%

all MikroTik OnLine courses

CW23-AX

30%

all Academy courses

CW23-LIB

25%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Cyber ​​Week!!!

**codes are applied in the shopping cart
Promo valid until Sunday December 3, 2023

BLACK FRIDAY DISCOUNTS

BF23-MX

22%

all MikroTik OnLine courses

BF23-AX

35%

all Academy courses

BF23-LIB

30%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Black Friday!!!

**Codes are applied in the shopping cart

codes are applied in the shopping cart
valid until Sunday November 26, 2023

Days
Hours
Minutes
Seconds

Sign up for this Free course

MAE-VPN-SET-231115

Halloween promo

Take advantage of discount codes for Halloween.

Codes are applied in the shopping cart

HW23-MK

11% discount on all MikroTik OnLine courses

11%

HW23-AX

30% discount on all Academy courses

30%

HW23-LIB

25% discount on all MikroTik Books and Book Packs

25%

Register and participate in the free course Introduction to Advanced Routing with MikroTik (MAE-RAV-ROS)

Today (Wednesday) October 11, 2023
7pm to 11pm (Colombia, Ecuador, Peru)

MAE-RAV-ROS-231011