Which command is used to build DHCP pool?
Click on the arrows to vote for the correct answerA. B. C. D.
The correct command to build a DHCP pool on a Cisco router or switch is:
ip dhcp pool <pool-name>
The options provided in the question are:
ip dhcp pool DHCP pool - This command is incorrect as it includes an extra word "pool". The correct syntax is
ip dhcp pool <pool-name>.
ip dhcp conflict - This command is not used for building a DHCP pool. It is used to view the conflict statistics for DHCP addresses.
ip dhcp-server pool DHCP - This command is incorrect as it uses the keyword "dhcp-server", which is not a valid option for creating a DHCP pool. The correct keyword is "dhcp".
ip dhcp-client pool DHCP - This command is not used for building a DHCP pool. It is used to configure the DHCP client on a Cisco device.
To configure a DHCP pool on a Cisco router or switch, follow these steps:
ip dhcp pool <pool-name>command, where
<pool-name>is the name of the pool you want to create.
copy running-config startup-configcommand.
Here is an example of how to configure a DHCP pool named "my-pool" with a network address of 192.168.1.0/24:
Router(config)# ip dhcp pool my-pool Router(dhcp-config)# network 192.168.1.0 255.255.255.0 Router(dhcp-config)# default-router 192.168.1.1 Router(dhcp-config)# dns-server 188.8.131.52 184.108.40.206 Router(dhcp-config)# lease 7 Router(dhcp-config)# exit Router(config)#
This configuration will create a DHCP pool with a range of IP addresses from 192.168.1.1 to 192.168.1.254, a default gateway of 192.168.1.1, DNS servers of 220.127.116.11 and 18.104.22.168, and a lease time of 7 days.