200-301 · Question #136
You are configuring your edge routers interface with a public IP address for Internet connectivity. The router needs to obtain the IP address from the service provider dynamically. Which command is ne
The correct answer is D. ip address dhcp. To configure a router interface to dynamically obtain an IP address from a service provider, the ip address dhcp command is used, enabling the interface to act as a DHCP client.
Question
You are configuring your edge routers interface with a public IP address for Internet connectivity. The router needs to obtain the IP address from the service provider dynamically. Which command is needed on interface FastEthernet 0/0 to accomplish this?
Options
- Aip default-gateway
- Bip route
- Cip default-network
- Dip address dhcp
- Eip address dynamic
How the community answered
(17 responses)- D94% (16)
- E6% (1)
Why each option
To configure a router interface to dynamically obtain an IP address from a service provider, the `ip address dhcp` command is used, enabling the interface to act as a DHCP client.
The `ip default-gateway` command specifies the gateway of last resort for the router itself, not for obtaining an IP address dynamically on an interface.
The `ip route` command is used to configure static routes in the routing table, not to dynamically assign an IP address to an interface.
The `ip default-network` command is an older method to establish a default route by designating a network that exists in the routing table, not for dynamic IP assignment.
The `ip address dhcp` command on a Cisco IOS interface configures it to act as a DHCP client, allowing it to dynamically obtain an IP address, subnet mask, and other IP parameters from a DHCP server.
`ip address dynamic` is not a valid Cisco IOS command for configuring dynamic IP address acquisition on an interface.
Concept tested: Router interface DHCP client configuration
Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr_cfg/configuration/xe-16/ipaddr-cfg-xe-16-book/ipaddr-cfg-interfaces.html#GUID-E1DF78EC-7B67-4AF3-8869-7117C324316D
Topics
Community Discussion
No community discussion yet for this question.