350-401 Question 186
Select 4A network engineer is tasked with configuring DHCP services on a Cisco router to provide IP addresses to devices in a branch office. The DHCP pool must assign IP addresses in the range 192.168.1.100 to 192.168.1.200 and exclude 192.168.1.150 to 192.168.1.160. Which of the following configuration commands are required to achieve this?
- A
ip dhcp excluded-address 192.168.1.150 192.168.1.160
- B
ip dhcp pool BRANCH_OFFICE
- C
network 192.168.1.0 255.255.255.0
- D
default-router 192.168.1.1
- E
ip dhcp enable
Show answer and explanation
Correct answers: A, B, C, D
Explanation
To configure DHCP on a Cisco router, you must define the DHCP pool, specify the IP address range (using the 'network' command), set any exclusions (using 'ip dhcp excluded-address'), and configure additional options like the default gateway. The 'ip dhcp enable' command is not necessary as DHCP services are enabled by default when a pool is configured.
- A. Correct.
This command is required to exclude the IP addresses from the DHCP pool. The specified range (192.168.1.150 to 192.168.1.160) will not be assigned to clients.
- B. Correct.
This command creates a DHCP pool named BRANCH_OFFICE, which is essential for assigning IP addresses to clients.
- C. Correct.
This command specifies the network range (192.168.1.0/24) for the DHCP pool from which IP addresses will be assigned.
- D. Correct.
This command sets the default gateway (192.168.1.1) for the devices receiving IP addresses from the DHCP pool.
- E. Incorrect.
This command is not required because DHCP services are enabled by default when you configure a DHCP pool.