Creating a Static IP address entry for a host

Creating a Static IP address entry for a host

What is a static IP address entry and how does it differ from a dynamic IP address entry? The main difference between static and dynamic IP addresses is that a static IP address stays the same while a dynamic IP address changes. If an IP address is fixed, it will remain the same every time a device connects to the network.

How is this helpful? Say for example, you have a printer on your network, and that printer is using DHCP services, and receives an address of 192.168.1.10. You or your network administrator set up the software and the software asks for the IP address of the printer, and you enter 192.168.1.10. Then a few days later, your network goes out, and comes back up, and your printer is requesting an IP address and receives 192.168.1.11 from the server. Now, machines that were sending print jobs to 192.168.1.10 will possibly fail because they can no longer find the printer that was attached to that address – it has moved to a different address. To resolve this issue, we are going to reserve this IP address for this device, and we can tell our router that when this device is seen on the network, always assign it this particular address.

?
In general, if you have a device that provides a service, such as a printer, server, or other device that receives connections to it, it is a good idea to make the IP address of that device static and create a DNS entry for it. That way, the IP address of that device does not change, and that device can be reached by a much easier moniker, say printer or server1, instead of by its IP address 192.168.10.5 or 192.168.10.30, etc.

How do we create a static entry?

Step 1: Open WinBox and log into the router.

Open Winbox.

Step 2: Go to IP -> DHCP Server and click the Leases tab

Navigate to the leases tab in the DHCP Server configuration panel.

Step 3: Find the device in the list that you want to make static. Right click on the entry and select Make Static from the drop down list.

Convert a dynamic IP address into a static one.

Notice that the D in the first column, signifying that the device entry is dynamic, has now disappeared. This indicates that this address is static and no longer dynamic.

Dynamic entry has now been made static.

Let's say we want to change the IP address of the static entry. To do so, double click on the line that we want to modify. For instance, if we want to change this entry from 192.168.51.10, we would change the address in the DHCP lease address entry and hit Apply or OK to make the change permanent.

Modifying IP address for static address entry.

Notice that now our static IP address entry has been updated.

?
Please note that the address entry has been updated but the existing IP lease is still active. Once the device is reconnected to the network, it will use the new IP assigned to it.
After device restart. Device is now using the static assignment.