OcNOS-DC 6.4.2 : System Management Guide : System Management Configuration Guide : DHCP Client Configuration
DHCP Client Configuration
Overview
Dynamic Host Configuration Protocol (DHCP) protocol is used for assigning dynamic IP addresses to systems on a network. Dynamic addressing allows a system to have an IP address each time it connects to the network. DHCP makes network administration easier by removing the need to manually assign a unique IP address every time a new system is added to the network. It is especially useful to manage mobile users. Once a system is configured to use DHCP, it can be automatically configured on any network that has a DHCP server.
DHCP uses a client-server model, in which the DHCP server centrally manages the IP addresses used in the network. DHCP clients obtain an IP address on lease from the DHCP server.
DHCP Client Configuration for IPv4
Before configuring the DHCP in client, make sure that DHCP server is ready and also dhcpd is running on the server machine.
.
DHCP sample topology
 
#configure terminal
Enter configure mode.
(config)#feature dhcp
Enable the feature dhcp. This will be enabled by default.
(config)#interface xe1
Enter interface mode.
(config-if)#ip address dhcp
The client requests for the IP address to the server, once it receives the acknowledgment from the server, it assigns the IP address to the interface in which this command is enabled.
(config if)#exit
Exit interface mode.
(config)#interface eth0
Enter management interface mode.
(config-if)#ip address dhcp
The client requests for the IP address to the server, once it receives the Acknowledgement from the server, it assigns the IP address to the management interface.
(config if)#exit
Exit interface mode.
Validation Commands
#show running-config dhcp
interface xe2
ip address dhcp
!
ip dhcp relay information option
 
#sh ip interface brief
 
Interface IP-Address Admin-Status Link-Status GMPLS Type
eth0 10.12.44.20 up up -
lo 127.0.0.1 up up -
lo.4 127.0.0.1 up up -
vlan1.1 unassigned up down -
xe1/1 2.2.2.3 up up -
xe1/2 unassigned down down -
xe1/3 unassigned down down -
xe1/4 unassigned up down -
xe2 *40.40.40.40 up down -
xe3/1 20.20.30.1 up up -