DHCP Pool Configuration

Build DHCP Pool

Prev Question Next Question

Question

Which command is used to build DHCP pool?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A

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:

A. 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>.

B. ip dhcp conflict - This command is not used for building a DHCP pool. It is used to view the conflict statistics for DHCP addresses.

C. 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".

D. 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:

  1. Enter global configuration mode using the configure terminal command.
  2. Define the DHCP pool by using the ip dhcp pool <pool-name> command, where <pool-name> is the name of the pool you want to create.
  3. Configure the DHCP options for the pool, such as the network address, subnet mask, default gateway, DNS server, and lease time.
  4. Exit configuration mode by using the end or exit command.
  5. Save the configuration to NVRAM by using the copy running-config startup-config command.

Here is an example of how to configure a DHCP pool named "my-pool" with a network address of 192.168.1.0/24:

scss
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 8.8.8.8 8.8.4.4 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 8.8.8.8 and 8.8.4.4, and a lease time of 7 days.