200-301 Question 357
Single answerA network engineer is configuring a router to provide DHCP services for a small branch office. The DHCP server should assign IP addresses from the range 192.168.10.100 to 192.168.10.150 and set the default gateway as 192.168.10.1. Which command is necessary to configure the default gateway for DHCP clients on the router?
- A
ip dhcp pool BRANCH
- B
default-router 192.168.10.1
- C
network 192.168.10.100 255.255.255.0
- D
dns-server 8.8.8.8
- E
lease 7
Show answer and explanation
Correct answer: B
Explanation
To configure a router's DHCP server to assign a default gateway to clients, the 'default-router' command must be used within the DHCP pool configuration. This ensures that clients receive the correct gateway IP address (192.168.10.1 in this case) along with their assigned IP addresses.
- A. Incorrect.
This command creates a DHCP pool named 'BRANCH', but it does not configure the default gateway. It is required to start the DHCP configuration but not sufficient for this task.
- B. Correct.
This command specifies the default gateway (192.168.10.1) for DHCP clients, which is a required parameter for DHCP configuration.
- C. Incorrect.
This command specifies the IP address range (subnet) for the DHCP pool but does not configure the default gateway.
- D. Incorrect.
This command specifies the DNS server address for DHCP clients, which is optional and not related to configuring the default gateway.
- E. Incorrect.
This command configures the lease time for IP addresses assigned by the DHCP server but does not set the default gateway.