Skip to main content
Skip table of contents

3526 - Troubleshoot DHCP issue: no free leases in NIOS

Scenario

Your colleagues have created a new subnet to provide DHCP service. However, you received reports that clients are unable to receive leases on this subnet. A copy of the DHCP logs were provided for your analysis. Please investigate and provide a fix so clients receive DHCP services on this subnet.

Estimate Completion Time

  • 15 to 20 minutes

Credentials

Description

Username

Password

URL or IP

Grid Manager UI

admin

infoblox

https://10.100.0.100/

Course References

  • 3012: DHCP Troubleshooting Methodology

Lab Initiation

Access jump-desktop

Once the lab is deployed, you can access the virtual machines required to complete this lab activity. To initiate the lab, click on the jump-desktop tile and login to the Linux UI:

Username: training

Password: infoblox

Initiate lab

To initiate the lab, double-click the Launch Lab icon on the Desktop.

Launch Lab

Launch Lab

Choose the lab number from the list and click OK.

After clicking OK, you will see a pop-up message with a brief description of the lab task. If the description looks correct, click Yes to continue lab initiation.

Lab initiation will take a couple of minutes to finish.

Once complete, you will see another pop-up message with the login credentials and the URL for the Grid Manager’s User Interface. Note that the credentials may differ from those from prior labs.

Screenshot 2024-05-06 at 3.16.57 PM.png

Tasks

Task 1: Analyzing the provided syslog messages

Study the syslog messages given below and predict the possible configuration issues that can cause this scenario.

Syslog

20080:2023-07-06T18:58:13+00:00 daemon ibns1.techblue.net dhcpd[27923]: err DHCPDISCOVER from 00:50:56:00:1a:2b via 172.31.101.1 TransID 42fab6ac: network 172.31.101.0/24: no free leases
20081:2023-07-06T18:58:28+00:00 daemon ibns1.techblue.net dhcpd[27923]: err DHCPDISCOVER from 00:50:56:00:1a:2b via 172.31.101.1 TransID 42fab6ac: network 172.31.101.0/24: no free leases
20082:2023-07-06T18:58:36+00:00 daemon ibns1.techblue.net dhcpd[27923]: err DHCPDISCOVER from 00:50:56:00:1a:2b via 172.31.101.1 TransID 42fab6ac: network 172.31.101.0/24: no free leases
20083:2023-07-06T18:58:38+00:00 daemon ibns1.techblue.net dhcpd[27923]: err DHCPDISCOVER from 00:50:56:00:2d:3c via 172.31.101.1 TransID 7a1cac01: network 172.31.101.0/24: no free leases
20084:2023-07-06T18:58:41+00:00 daemon ibns1.techblue.net dhcpd[27923]: err DHCPDISCOVER from 00:50:56:00:2d:3c via 172.31.101.1 TransID 7a1cac01: network 172.31.101.0/24: no free leases
20085:2023-07-06T18:58:44+00:00 daemon ibns1.techblue.net dhcpd[27923]: err DHCPDISCOVER from 00:50:56:00:2d:3c via 172.31.101.1 TransID 7a1cac01: network 172.31.101.0/24: no free leases
20086:2023-07-06T18:58:48+00:00 daemon ibns1.techblue.net dhcpd[27923]: err DHCPDISCOVER from 00:50:56:00:2d:3c via 172.31.101.1 TransID 7a1cac01: network 172.31.101.0/24: no free leases
20087:2023-07-06T18:58:54+00:00 daemon ibns1.techblue.net dhcpd[27923]: err DHCPDISCOVER from 00:50:56:00:2d:3c via 172.31.101.1 TransID 7a1cac01: network 172.31.101.0/24: no free leases
20088:2023-07-06T18:59:08+00:00 daemon ibns1.techblue.net dhcpd[27923]: err DHCPDISCOVER from 00:50:56:00:2d:3c via 172.31.101.1 TransID 7a1cac01: network 172.31.101.0/24: no free leases

You can also log on to the VM testing-linux and use the commands sudo set-network-dhcp and sudo clear-dhcp-leases to test the DHCP behavior.

Task 2: Updating DHCP configuration

Correct any faulty configuration and make necessary changes to resolve the issue.


Solutions

Task 1 Solution: Analyzing the provided syslog messages

Study the syslog messages given below and predict the possible configuration issues that can cause this scenario.

Syslog

20080:2023-07-06T18:58:13+00:00 daemon ibns1.techblue.net dhcpd[27923]: err DHCPDISCOVER from 00:50:56:00:1a:2b via 172.31.101.1 TransID 42fab6ac: network 172.31.101.0/24: no free leases
20081:2023-07-06T18:58:28+00:00 daemon ibns1.techblue.net dhcpd[27923]: err DHCPDISCOVER from 00:50:56:00:1a:2b via 172.31.101.1 TransID 42fab6ac: network 172.31.101.0/24: no free leases
20082:2023-07-06T18:58:36+00:00 daemon ibns1.techblue.net dhcpd[27923]: err DHCPDISCOVER from 00:50:56:00:1a:2b via 172.31.101.1 TransID 42fab6ac: network 172.31.101.0/24: no free leases
20083:2023-07-06T18:58:38+00:00 daemon ibns1.techblue.net dhcpd[27923]: err DHCPDISCOVER from 00:50:56:00:2d:3c via 172.31.101.1 TransID 7a1cac01: network 172.31.101.0/24: no free leases
20084:2023-07-06T18:58:41+00:00 daemon ibns1.techblue.net dhcpd[27923]: err DHCPDISCOVER from 00:50:56:00:2d:3c via 172.31.101.1 TransID 7a1cac01: network 172.31.101.0/24: no free leases
20085:2023-07-06T18:58:44+00:00 daemon ibns1.techblue.net dhcpd[27923]: err DHCPDISCOVER from 00:50:56:00:2d:3c via 172.31.101.1 TransID 7a1cac01: network 172.31.101.0/24: no free leases
20086:2023-07-06T18:58:48+00:00 daemon ibns1.techblue.net dhcpd[27923]: err DHCPDISCOVER from 00:50:56:00:2d:3c via 172.31.101.1 TransID 7a1cac01: network 172.31.101.0/24: no free leases
20087:2023-07-06T18:58:54+00:00 daemon ibns1.techblue.net dhcpd[27923]: err DHCPDISCOVER from 00:50:56:00:2d:3c via 172.31.101.1 TransID 7a1cac01: network 172.31.101.0/24: no free leases
20088:2023-07-06T18:59:08+00:00 daemon ibns1.techblue.net dhcpd[27923]: err DHCPDISCOVER from 00:50:56:00:2d:3c via 172.31.101.1 TransID 7a1cac01: network 172.31.101.0/24: no free leases

The syslog messages do indicate that the server has run out of leases. To get more information, it is necessary to look at the DHCP configuration.

Since the syslog messages were from ibns1.techblue.net, we should check its configuration:

  1. Navigate to Data Management→DHCP→Members→Members.

  2. Check the box next to the member ibns1.techblue.net

  3. From the Toolbar, select View DHCP Configuration → IPv4.

  4. This shows us the DHCP configuration file. You can scroll down and notice this section that indicates there are no DHCP ranges or other objects configured for this network:

    CODE
    subnet 172.31.101.0 netmask 255.255.255.0 {
    }
  5. We can investigate further by check the configuration in Grid by navigating to Data Management → DHCP and click the network 172.31.101.0/24. We can see that it does have a range, but it is configured as a IPv4 Reserved Range, thus not available for DHCP service.

Task 2 Solution: Updating DHCP configuration

To correct the configuration, we can change this range from Reserved to being assigned to at least one Grid member.

  1. Login to NIOS GM web interface, navigate to Data Management→DHCP→Networks→Networks.

  2. Open the 172.31.101.0/24 network.

  3. Check the box next to the range object and click Edit.

  4. In the dialog window, switch to the Member Assignment tab on the left. Change Served by to Grid Member ibns1.techblue.net.

  5. Click Save & Close and restart services when prompted.

You may now test receiving a lease from the VM testing-linux.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.