The software described in this documentation is either in Extended Support or Sustaining Support. See https://www.oracle.com/us/support/library/enterprise-linux-support-policies-069172.pdf for more information.
Oracle recommends that you upgrade the software described by this documentation as soon as possible.
To configure an Oracle Linux system as a DHCP client:
Install the
dhclient
package:#
yum install dhclient
Edit
/container/
, wherename
/rootfs/etc/sysconfig/network-scripts/ifcfg-iface
iface
is the name of the network interface, and change the value ofBOOTPROTO
to read as:BOOTPROTO=dhcp
Edit
/etc/sysconfig/network
and verify that it contains the following setting:NETWORKING=yes
To specify options for the client, such as the requested lease time and the network interface on which to request an address from the server, create the file
/etc/dhclient.conf
containing the required options.The following example specifies that the client should use the
eth1
interface, request a lease time of 24 hours, and identify itself using its MAC address:interface "eth1" { send dhcp-lease-time 86400; send dhcp-client-identifier 80:56:3e:00:10:00; }
For more information, see the
dhclient.conf(5)
manual page.Restart the network interface or the network service to enable the client, for example:
#
service network restart
When the client has requested and obtained a lease, information about this lease is stored in
/var/lib/dhclient/dhclient-
.interface
.leases
For more information, see the dhclient(8)
manual page.