200-301 · Question #1495
A DHCP pool has been created with the name NOCC. The pool is using 192.168.20.0/24 and must use the next to last usable IP address as the default gateway for the DHCP clients. What is the next step in
The correct answer is C. default-router 192.168.20.253. To configure the default gateway for clients within a DHCP pool, the default-router command is used, specifying the gateway's IP address.
Question
Options
- Anext-server 192.168.20.254
- Bnetwork 192.168.20.254 255.255.255.0 secondary
- Cdefault-router 192.168.20.253
- Dip default-gateway 0.0.0.0 0.0.0.0 192.168.20.253
How the community answered
(33 responses)- A3% (1)
- B9% (3)
- C76% (25)
- D12% (4)
Why each option
To configure the default gateway for clients within a DHCP pool, the `default-router` command is used, specifying the gateway's IP address.
The `next-server` command specifies the IP address of a TFTP server for clients to download boot files, not the default gateway.
The `network` command defines the network address and subnet mask for the DHCP pool, and the 'secondary' keyword is not used in this context to define a default gateway.
The `default-router` command within a Cisco IOS DHCP pool configuration is used to specify the IP address that DHCP clients will receive as their default gateway. For a 192.168.20.0/24 network, the last usable IP is 192.168.20.254, making the next-to-last usable IP 192.168.20.253.
The `ip default-gateway` command is a global configuration command that sets a default gateway for the router itself, not for DHCP clients served by the router.
Concept tested: DHCP server default gateway configuration
Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr_dhcp/configuration/15-mt/dhcp-15-mt-book/dhcp-cfg-ip-dhcp-server.html
Topics
Community Discussion
No community discussion yet for this question.