To obtain a public IP from an ISP dynamically on interface FastEthernet0/0, which command is required?
Choose an answer
Tap an option to check your answer.
Correct answer: ip address dhcp.
Why this is the answer
The ip address dhcp command configures an interface to obtain its IP address, subnet mask, and default gateway dynamically from a DHCP server. This is the standard method for a router to acquire a public IP from an ISP when the ISP uses DHCP. ip default-gateway is used on a router that is not routing (e.g., a Layer 2 switch with an IP for management) to specify its gateway. Routers typically use routing protocols or static routes. ip route is used to configure static routes, not to obtain an IP address for an interface. ip default-network is an older command, largely deprecated, used to indicate a default route based on a classful network. It does not obtain an IP address. ip address dynamic is not a valid Cisco IOS command for this purpose.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed