×

UniFi Video will reach end-of-support on December 31st, 2020.

For more information, please refer to the official community notice.

UniFi - UDM/USG: Assigning a Fixed IP to a Client using DHCP

Overview

Readers will learn how to assign a fixed IP address to clients using DHCP on the UDM and USG models.

NOTES & REQUIREMENTS:

Table of Contents

  1. Introduction
  2. Assigning a Fixed IP Address to a Client Device
  3. Assigning a Fixed IP Address to a UniFi Device
  4. Related Articles

Introduction

Fixed IP addresses assigned via DHCP are a way to ensure that the client device will use the same IP address. Another name for a fixed IP address is a static IP mapping or DHCP reservation. This feature is especially useful when a client on the LAN needs to be reachable on a particular address, for example when forwarding a port to the device.

Fixed IP addresses allow you to control these IP address assignments using the DHCP server that is running on the UDM/USG. The advantage of this method is that the client configuration does not need to be altered and they can keep using DHCP instead of manually configuring a static IP address on the client. The fixed IP address is configured per network and must not overlap with other assigned addresses. 

Assigning a Fixed IP Address to a Client Device

GUI: Access the UniFi Controller Web UI.

Follow the steps below to assign the fixed IP address on the UDM/USG, depending on whether the client is known or not.

  • Known Client A client that has previously connected to the network and is listed in the  insights.png  Insights > Client History section.
  • Unknown Client A client that has never connected to the network.
Known Client Fixed IP
Unknown Client Fixed IP

1. Navigate to the  clients.png  Clients section and select the client to open the properties.

2. Select the Config tab and expand the Network section.

3. Select Use fixed IP address and enter the necessary information. For example:

Network: LAN
IP Address: 192.168.1.100

fixed-ip-client.png

3. Save the settings.

4. The change will not be applied automatically as the client will still be using the previously assigned DHCP address.

5. Optionally restart the client or renew the DHCP lease manually to force it to obtain the new IP address:

  windows.png  Windows Client

Open a Command Shell (CMD) or PowerShell window and run the following command:

ipconfig /renew


Run the command below to verify if an IP address was obtained:

ipconfig /all


Alternatively, you can disable and re-enable the network adapter in the following section:
Settings > Network & Internet > Status > Change Adapter Options

 macos.png  macOS client

Navigate to the advanced network settings for the network adapter:
System Preferences > Networks > Adapter > Advanced

Select the TCP/IP tab and then click on the Renew DHCP Lease option. Here you can also verify if an IP address was obtained.

6. Clients that are assigned a fixed IP address will be displayed in the  insights.png  Insights > Client History > Fixed IP section.

1. Navigate to the  clients.png  Clients section and select the Add Client option.

2. Enter the necessary information. For example:

MAC Address: <client MAC address>
Alias: <client name>
User Group: Default
Fixed IP: Checked
Network: LAN
IP Address: 192.168.1.100

add-client.png

3. Save the settings and apply them.

4. Connect the client device to the network.

5. Clients that are assigned a fixed IP address will be displayed in the  insights.png  Insights > Client History > Fixed IP section.

Assigning a Fixed IP Address to a UniFi Device

Fixed IP addresses can also be assigned to UniFi devices (for example a UniFi Switch or UniFi Access Point) using similar methods:

  • Known UniFi Device A device that is already adopted and listed in the  devices.png  Devices section.
  • Unknown UniFi Device A device that is not yet adopted and has never connected to the network.

For unknown UniFi devices, you can follow the same Unknown Client Fixed IP steps from the section above. Known UniFi devices can also be configured with a static IP address (not relying on DHCP) by changing the network settings from DHCP to a statically assigned address:

GUI: Access the UniFi Controller Web UI.

1. Navigate to the  devices.png  Devices section and select the UniFi device.

2. Select the Config tab and expand the Network section.

3. Change the Configure IP option from Using DHCP to Static IP and enter the necessary information. For example:

IP Address: 192.168.1.5
Subnet Mask: 255.255.255.0
Gateway: 192.168.1.1
Preferred DNS: 192.168.1.1
Alternate DNS: Optional
DNS Suffix: Optional

change-network.png

ATTENTION: Make sure that the assigned IP address does not overlap with the configured DHCP range.

4. Queue the changes.

Related Articles

Intro to Networking - Dynamic Host Configuration Protocol (DHCP)

UniFi - UDM/USG: How to Configure Custom DHCP Options

Was this article helpful?
119 out of 190 found this helpful