#configure terminal | Enter Configure mode. |
(config)#feature dhcp | Enable the feature dhcp. This will be enabled by default. |
(config)#interface xe1 | Specify the interface(xe1) to be configured and enter the 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)#commit | Commit the candidate configuration to the running configuration. |
(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. |
(config)#commit | Commit the candidate configuration to the running configuration. |