200-301 · Question #1268
Which command must be entered so that the default gateway is automatically distributed when DHCP is configured on a router?
The correct answer is B. default-router. To automatically distribute the default gateway to DHCP clients on a Cisco router, the default-router command must be configured within the DHCP pool.
Question
Which command must be entered so that the default gateway is automatically distributed when DHCP is configured on a router?
Options
- Adns-server
- Bdefault-router
- Cip helper-address
- Ddefault-gateway
How the community answered
(23 responses)- A4% (1)
- B87% (20)
- D9% (2)
Why each option
To automatically distribute the default gateway to DHCP clients on a Cisco router, the `default-router` command must be configured within the DHCP pool.
The `dns-server` command specifies the DNS server IP addresses to be distributed, not the default gateway.
The `default-router` command is explicitly used within a Cisco router's DHCP pool configuration to specify the IP address that DHCP clients will receive and use as their default gateway.
The `ip helper-address` command is configured on an interface to forward DHCP broadcast requests to a DHCP server, not to define the default gateway for clients.
The `default-gateway` command is typically used on a switch or end device to set its own default gateway, not to distribute one to DHCP clients.
Concept tested: Cisco DHCP default gateway distribution
Source: https://www.cisco.com/c/en/us/td/docs/ios/ipaddr/command/reference/iap_r_book/iap_d1.html#wp1026601
Topics
Community Discussion
No community discussion yet for this question.