Which command is used to build DHCP pool?
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:
configure terminal
command.ip dhcp pool <pool-name>
command, where <pool-name>
is the name of the pool you want to create.end
or exit
command.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:
scssRouter(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.