200-301 · Question #152
Which Cisco IOS command will indicate that interface GigabitEthernet 0/0 is configured via DHCP?
The correct answer is D. show ip interface GigabitEthernet 0/0. The show ip interface <interface_id> command displays detailed IP information for a specific interface, including whether its IP address was obtained via DHCP.
Question
Which Cisco IOS command will indicate that interface GigabitEthernet 0/0 is configured via DHCP?
Options
- Ashow ip interface GigabitEthernet 0/0 dhcp
- Bshow interface GigabitEthernet 0/0
- Cshow ip interface dhcp
- Dshow ip interface GigabitEthernet 0/0
- Eshow ip interface GigabitEthernet 0/0 brief
How the community answered
(20 responses)- B5% (1)
- D90% (18)
- E5% (1)
Why each option
The `show ip interface <interface_id>` command displays detailed IP information for a specific interface, including whether its IP address was obtained via DHCP.
There is no standard Cisco IOS command syntax `show ip interface <interface_id> dhcp`; `dhcp` is not a valid keyword in this context.
The `show interface GigabitEthernet 0/0` command displays Layer 2 and physical interface status but does not typically include the IP address acquisition method (DHCP vs. static).
The `show ip interface dhcp` command is not a valid Cisco IOS command; `dhcp` is not a recognized keyword after `show ip interface`.
The `show ip interface GigabitEthernet 0/0` command provides comprehensive IP-related details for the specified interface, and if DHCP is in use, it will explicitly state "Address determined by DHCP."
The `show ip interface GigabitEthernet 0/0 brief` command provides a concise summary of the interface's IP address and status but typically does not detail the method of IP address assignment.
Concept tested: Verifying interface IP configuration method (DHCP)
Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr_cfg/command/ipaddr-cr-book/ipaddr-cr-s3.html#wp4007624953
Topics
Community Discussion
No community discussion yet for this question.