Cisco CCNA Exam Practice: Configure GigabitEthernet 0/0 Interface with DHCP

How to Configure Interface GigabitEthernet 0/0 for DHCP in Cisco IOS

Question

Which Cisco IOS command will indicate that interface GigabitEthernet 0/0 is configured via DHCP?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

D.

The correct command to determine whether interface GigabitEthernet 0/0 is configured via DHCP is "show ip interface GigabitEthernet 0/0".

The "show ip interface" command displays information about all interfaces configured on the router, while the "GigabitEthernet 0/0" option specifies that we only want to see information about the specified interface.

The output will contain information about the interface, including the IP address, subnet mask, status of the interface, and whether the interface is using DHCP or a static IP address. If the interface is configured with a dynamic IP address obtained via DHCP, the output will show the IP address assigned to the interface and indicate that DHCP is being used.

Option A, "show ip interface GigabitEthernet 0/0 dhcp", is not a valid IOS command and will result in an error message.

Option B, "show interface GigabitEthernet 0/0", will only display basic information about the interface, such as its status, protocol, and input/output rates, but will not indicate whether DHCP is being used.

Option C, "show ip interface dhcp", is not a valid IOS command and will result in an error message.

Option E, "show ip interface GigabitEthernet 0/0 brief", will display a brief summary of the interface's configuration, including the IP address, subnet mask, and status, but will not indicate whether DHCP is being used.