You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI How to Change the DHCP Renewal Timeout

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). 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!