OCI How to Change the DHCP Renewal Timeout
in Linux
Applies to:
Oracle Cloud Infrastructure - Version N/A and later
Oracle Linux 7 - All Versions
Goal
This document outlines the steps required to change the "renewal" time from the default of 24hrs to a suggested 30 seconds, so that the renewal happens faster. This can be used to check for issues seen with the renewal of the IP address in instances.
The option should be used for a short period in order to troubleshoot issues with DHCP renewal.
Solution:
1) Add the following line to the /etc/dhcp/dhclient.conf
file as the root user
supersede dhcp-lease-time 60;
This has the effect of “renewing” the lease every 30 seconds on average (around 1/2 of the total lease time of 60).
Tagged:
0