Network Fundamentals

Which two commands display a client's IP address, subnet mask and default gateway on Windows and Linux hosts respectively? (Choose two.)

Choose 2 answers

Show the answer

Correct answersB. ipconfigC. ip addr show

AWhy not this: Cisco IOS device command; it is not available in a Windows or Linux client shell.

BWhy this is right: Windows command that shows IP address, subnet mask and default gateway per adapter.

CWhy this is right: Linux iproute2 command that shows each interface's IP address and prefix length.

DWhy not this: Tests the local TCP/IP stack through loopback; it shows no address configuration.

EWhy not this: Queries DNS to resolve names; it does not list the host's own interface settings.

FWhy not this: Shows the routing table, not the interface address and mask in a simple per-adapter view.

On Windows, ipconfig lists the IPv4 address, subnet mask and default gateway of each adapter. On Linux, ip addr show lists addresses and prefix lengths per interface. show ip interface brief is a Cisco IOS command and does not run on a client OS.