#configure terminal | Enter Configure mode. |
(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)#ip dhcp client request dns-nameserver | The client requests for the DNS name server. |
(config-if)#ip dhcp client request ntp-server | The client requests for the NTP server . |
(config-if)#ip dhcp client request host-name | The client requests for the Name of the client. |
(config-if)#ip dhcp client request log-server | The client requests for the log server. |
(config if)#exit | Exit interface mode. |
#configure terminal | Enter Configure mode. |
(config)#interface xe2 | Specify the interface (xe2) to be configured and enter the interface mode. |
(config-if)#ip address 10.10.10.1/24 | Configure the IP address to the server interface. |
(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. |
#configure terminal | Enter Configure mode. |
(config)#ip vrf vrf1 | Configure IP VRF name. |
(config-vrf)#ip dhcp server max-lease-time 100 | Configure max lease time. |
(config-vrf)#ip dhcp server default-lease-time 100 | Configure default lease time. |
(config-vrf)#ip dhcp server pool test | Configure DHCP server pool name. |
(dhcp-config)#network 3.3.3.0 netmask 255.255.255.0 | Configure network and netmask. |
(dhcp-config)#address range low-address 3.3.3.1 high-address 3.3.3.4 | Configure address IPv4 range. |
(dhcp-config)#boot-file test | Configure boot-file name. |
(dhcp-config)#host-name dhcp-server | Configure host name. |
(dhcp-config)#ntp-server 4.4.4.5 | Configure NTP server. |
(dhcp-config)#log-server 5.5.5.6 | Configure log server. |
(dhcp-config)#dns-server 5.5.5.5 | Configure DNS server. |
(dhcp-config)#tftp-server 5.5.5.6 | Configure TFTP server. |
(dhcp-config)#boot-file test | Configure boot-file name. |