Cisco CCNA (200-301)IP ServicesMedium
A network engineer needs to configure a Cisco router to automatically obtain an IP address, subnet mask, and default gateway from a DHCP server. Which command should be configured on the router's interface that connects to the DHCP server?
- Adhcp client enable
- Bip address negotiate
- Cip dhcp client address
- Dip address dhcp
Show answer & explanationAnswer & explanation
Correct answer: D. ip address dhcp
On a Cisco IOS router, the `ip address dhcp` command, configured under the interface, instructs the interface to obtain its IP configuration (address, subnet mask, default gateway, DNS servers) from a DHCP server.
Why the other options are wrong
- A. `dhcp client enable` is not a standard Cisco IOS command for configuring an interface to obtain an IP via DHCP.
- B. `ip address negotiate` is a similar command used on some older platforms or specific WAN interfaces, but `ip address dhcp` is the standard for Ethernet interfaces acting as DHCP clients.
- C. `ip dhcp client address` is not a valid Cisco IOS command for this purpose.
Cisco Router DHCP Client
Configuring a router interface to automatically obtain IP configuration from a DHCP server.
- Uses the `ip address dhcp` command under the interface.
- Receives IP address, subnet mask, default gateway, and DNS servers.
- Simplifies IP address management on client-facing interfaces.
Memory trick: To get your IP 'address' from 'DHCP', just tell it to do so.