{"id":169233,"date":"2026-06-19T08:39:39","date_gmt":"2026-06-19T05:39:39","guid":{"rendered":"https:\/\/computingforgeeks.com\/?p=169233"},"modified":"2026-06-19T08:39:39","modified_gmt":"2026-06-19T05:39:39","slug":"verify-ip-settings-windows-mac-linux","status":"publish","type":"post","link":"https:\/\/computingforgeeks.com\/verify-ip-settings-windows-mac-linux\/","title":{"rendered":"Verify IP Settings on Windows, macOS, and Linux"},"content":{"rendered":"<p>By the end of this you&#8217;ll know the exact command to confirm a machine&#8217;s IP address, subnet mask, default gateway, and DNS server on any of the three desktop operating systems, and how to read the output so a misconfiguration jumps out at you. The graphical network settings panels show the same information, but the command line is faster, scriptable, and the same everywhere you connect, which is why it is worth learning once.<\/p>\n\n<p>This guide shows how to verify IP settings on Windows, macOS, and Linux with the real command output for each, a side-by-side table so you never mix up which command belongs to which OS, and what to do when an address starting with 169.254 shows up.<\/p>\n\n<p><em>Captured the output below on Windows, macOS 26, and Ubuntu 24.04 in June 2026.<\/em><\/p>\n\n<h2>The four settings every device needs<\/h2>\n\n<p>Before the commands, know what you are looking for. Every device on a network needs four values configured correctly, and each one fails in its own way when it is wrong:<\/p>\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Setting<\/th><th>What it does<\/th><th>What breaks if it is wrong<\/th><\/tr><\/thead><tbody>\n<tr><td>IP address<\/td><td>The device&#8217;s unique address on the network<\/td><td>No communication, or an address clash<\/td><\/tr>\n<tr><td>Subnet mask<\/td><td>Splits the address into network and host parts<\/td><td>The device thinks local hosts are remote (or vice versa)<\/td><\/tr>\n<tr><td>Default gateway<\/td><td>The router that reaches other networks<\/td><td>Local traffic works, but nothing off the subnet (no internet)<\/td><\/tr>\n<tr><td>DNS server<\/td><td>Resolves names like example.com to addresses<\/td><td>Numbers work, names do not (&#8220;the internet is down&#8221;)<\/td><\/tr>\n<\/tbody><\/table><\/figure>\n\n\n<p>Every command below is just a way to read these four values back off a running machine. The trick is knowing which command each OS uses, so we will take them one at a time.<\/p>\n\n<h2>Check IP settings on Windows<\/h2>\n\n<p>Windows uses <code>ipconfig<\/code>. On its own it prints the address, mask, and gateway, which is enough for a quick look. Add the <code>\/all<\/code> switch and it prints everything: the MAC address, whether DHCP is on, the DNS servers, and the lease times.<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"2200\" height=\"1386\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-verify-ip-windows.png\" alt=\"Windows ipconfig \/all output showing the IPv4 address 192.168.1.52, subnet mask 255.255.255.0, default gateway 192.168.1.1, DHCP server, and DNS servers\" class=\"wp-image-169228\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-verify-ip-windows.png 2200w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-verify-ip-windows-300x189.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-verify-ip-windows-1024x645.png 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-verify-ip-windows-768x484.png 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-verify-ip-windows-1536x968.png 1536w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-verify-ip-windows-2048x1290.png 2048w\" sizes=\"auto, (max-width: 2200px) 100vw, 2200px\" \/><\/figure>\n\n\n<p>Read it top to bottom for the four values: <code>IPv4 Address<\/code> is the address, <code>Subnet Mask<\/code> is the mask, <code>Default Gateway<\/code> is the router, and <code>DNS Servers<\/code> is name resolution. The <code>DHCP Enabled: Yes<\/code> line tells you the address came from a DHCP server rather than being set by hand, and the lease times tell you when it renews. If you ever need to drop and reacquire a lease, <code>ipconfig \/release<\/code> followed by <code>ipconfig \/renew<\/code> does it.<\/p>\n\n<h2>Check IP settings on macOS<\/h2>\n\n<p>macOS keeps two tools side by side. The classic <code>ifconfig<\/code> still works and shows the address and MAC, but the friendlier <code>networksetup -getinfo<\/code> prints the address, mask, router, and a clean summary for a named service in one shot. For DNS, <code>scutil --dns<\/code> lists the resolvers the system is actually using.<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"2200\" height=\"1166\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-verify-ip-macos.png\" alt=\"macOS networksetup -getinfo, ifconfig, and scutil --dns output showing IP address 192.168.1.50, subnet mask, router 192.168.1.1, and DNS nameservers\" class=\"wp-image-169229\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-verify-ip-macos.png 2200w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-verify-ip-macos-300x159.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-verify-ip-macos-1024x543.png 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-verify-ip-macos-768x407.png 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-verify-ip-macos-1536x814.png 1536w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-verify-ip-macos-2048x1085.png 2048w\" sizes=\"auto, (max-width: 2200px) 100vw, 2200px\" \/><\/figure>\n\n\n<p>The part that trips people up on macOS is the subnet mask in <code>ifconfig<\/code>, which prints in hexadecimal (<code>0xffffff00<\/code>) rather than dotted decimal. That hex value is just <code>255.255.255.0<\/code> written another way, and <code>networksetup -getinfo<\/code> shows it in the familiar decimal form if you prefer. To get the service name to pass to <code>networksetup<\/code>, run <code>networksetup -listallnetworkservices<\/code> first.<\/p>\n\n<h2>Check IP settings on Linux<\/h2>\n\n<p>Modern Linux uses the <code>ip<\/code> command from iproute2. The old <code>ifconfig<\/code> is deprecated and often not installed at all. Three commands cover the four values: <code>ip addr<\/code> for the address and mask, <code>ip route<\/code> for the gateway, and <code>resolvectl status<\/code> for DNS.<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"2200\" height=\"1166\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-verify-ip-linux.png\" alt=\"Linux ip addr show, ip route, and resolvectl status output showing inet 192.168.1.51\/24, default via 192.168.1.1, and DNS server 192.168.1.1\" class=\"wp-image-169230\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-verify-ip-linux.png 2200w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-verify-ip-linux-300x159.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-verify-ip-linux-1024x543.png 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-verify-ip-linux-768x407.png 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-verify-ip-linux-1536x814.png 1536w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-verify-ip-linux-2048x1085.png 2048w\" sizes=\"auto, (max-width: 2200px) 100vw, 2200px\" \/><\/figure>\n\n\n<p>Two things look different from Windows and macOS here. The address and mask come together as a CIDR prefix, <code>192.168.1.51\/24<\/code>, where <code>\/24<\/code> is the same thing as a <code>255.255.255.0<\/code> mask. And the gateway is not in the address output at all; it is the <code>default via<\/code> line of <code>ip route<\/code>. On any distro, <code>cat \/etc\/resolv.conf<\/code> is a universal fallback for seeing the DNS servers if <code>resolvectl<\/code> is not present.<\/p>\n\n<h2>Every command, side by side<\/h2>\n\n<p>This is the table to memorise. Same task, different command per OS, so you never reach for <code>ipconfig<\/code> on a Mac or <code>ifconfig<\/code> on a modern Linux box:<\/p>\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Task<\/th><th>Windows<\/th><th>macOS<\/th><th>Linux<\/th><\/tr><\/thead><tbody>\n<tr><td>Show IP + mask<\/td><td><code>ipconfig<\/code><\/td><td><code>ifconfig en0<\/code><\/td><td><code>ip addr<\/code><\/td><\/tr>\n<tr><td>Show everything<\/td><td><code>ipconfig \/all<\/code><\/td><td><code>networksetup -getinfo \"Wi-Fi\"<\/code><\/td><td><code>ip addr; ip route; resolvectl status<\/code><\/td><\/tr>\n<tr><td>Show gateway<\/td><td><code>ipconfig<\/code><\/td><td><code>netstat -rn<\/code> \/ <code>route -n get default<\/code><\/td><td><code>ip route<\/code><\/td><\/tr>\n<tr><td>Show DNS<\/td><td><code>ipconfig \/all<\/code><\/td><td><code>scutil --dns<\/code><\/td><td><code>resolvectl status<\/code><\/td><\/tr>\n<tr><td>Show MAC address<\/td><td><code>ipconfig \/all<\/code><\/td><td><code>ifconfig en0<\/code><\/td><td><code>ip link<\/code><\/td><\/tr>\n<tr><td>Renew DHCP lease<\/td><td><code>ipconfig \/renew<\/code><\/td><td><code>sudo ipconfig set en0 DHCP<\/code><\/td><td><code>sudo networkctl renew eth0<\/code><\/td><\/tr>\n<tr><td>Flush DNS cache<\/td><td><code>ipconfig \/flushdns<\/code><\/td><td><code>sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder<\/code><\/td><td><code>sudo resolvectl flush-caches<\/code><\/td><\/tr>\n<\/tbody><\/table><\/figure>\n\n\n<p>One caveat on the Linux column: the renew command shown is for systems running systemd-networkd or netplan, which is the Ubuntu and Debian default. On a desktop managed by NetworkManager, use <code>nmcli device reapply eth0<\/code> instead. The read commands (<code>ip addr<\/code>, <code>ip route<\/code>, <code>resolvectl<\/code>) are identical either way.<\/p>\n\n<h2>What an address starting 169.254 means<\/h2>\n\n<p>Here is the one diagnostic worth memorising. If a Windows machine shows an IPv4 address in the <code>169.254.x.x<\/code> range, it did not get an address from DHCP. This is APIPA (Automatic Private IP Addressing): when a client sends DHCP requests and gets no answer, it assigns itself a link-local address in <code>169.254.0.0\/16<\/code> so it can at least talk to other machines on the same wire. It cannot reach the gateway or the internet.<\/p>\n\n<p>If you see a 169.254 address, the fix is upstream, not on the client. Check that the DHCP server is actually running, that the switch port is in the right VLAN, and that the cable and network adapter are up. On the Cisco side, a port in the wrong VLAN is a common cause, which you would confirm with the <a href=\"https:\/\/computingforgeeks.com\/cisco-interface-troubleshooting-show-interfaces\/\">interface status counters<\/a>. Once DHCP answers again, <code>ipconfig \/renew<\/code> on Windows (or reconnecting the interface elsewhere) pulls a real address.<\/p>\n\n<h2>Practice verifying IP settings<\/h2>\n\n<p>Flip the cards to lock in which command belongs to which OS, then take the quiz, which includes the APIPA diagnostic and the command-matching question. For background on what each of these four values actually means, the <a href=\"https:\/\/computingforgeeks.com\/ipv4-addressing-explained\/\">IPv4 addressing guide<\/a> covers them in depth, and the full path is the <a href=\"https:\/\/computingforgeeks.com\/quickly-prepare-for-ccna-200-301-exam\/\">CCNA 200-301 study roadmap<\/a>.<\/p>\n\n<div class=\"cfg-fc\" data-fc=\"{\n  &quot;id&quot;: &quot;verify-ip&quot;,\n  &quot;title&quot;: &quot;Verify IP Settings (Windows, macOS, Linux) Flashcards&quot;,\n  &quot;objective&quot;: &quot;1.10 Verify IP parameters for Client OS&quot;,\n  &quot;intro&quot;: &quot;The host-verification facts worth knowing cold: which command shows the IP, mask, gateway, and DNS on each OS, and what an APIPA address means. Tap a card to flip it, then mark whether you knew it.&quot;,\n  &quot;cards&quot;: [\n    {&quot;front&quot;: &quot;What four IP settings does every client need?&quot;, &quot;back&quot;: &quot;IP address (unique address), subnet mask (network vs host split), default gateway (router off the subnet), and DNS server (name resolution). Each fails differently when wrong.&quot;},\n    {&quot;front&quot;: &quot;Windows: which command shows everything (MAC, DHCP, DNS, lease)?&quot;, &quot;back&quot;: &quot;ipconfig \/all. Plain ipconfig shows only address, mask, and gateway; \/all adds the Physical Address, DHCP Enabled, DNS Servers, and lease times.&quot;},\n    {&quot;front&quot;: &quot;What does an IPv4 address of 169.254.x.x mean?&quot;, &quot;back&quot;: &quot;APIPA (Automatic Private IP Addressing). The host got no DHCP reply and self-assigned a link-local address in 169.254.0.0\/16. It can reach the local wire but not the gateway or internet.&quot;},\n    {&quot;front&quot;: &quot;If you see a 169.254 address, where is the fix?&quot;, &quot;back&quot;: &quot;Upstream, not on the client. Check the DHCP server is running, the switchport VLAN is correct, and the cable\/adapter is up. Then ipconfig \/renew (Windows) pulls a real address.&quot;},\n    {&quot;front&quot;: &quot;macOS: which command prints IP, mask, and router in one clean block?&quot;, &quot;back&quot;: &quot;networksetup -getinfo \\&quot;Wi-Fi\\&quot; (or \\&quot;Ethernet\\&quot;). Run networksetup -listallnetworkservices first to get the service name.&quot;},\n    {&quot;front&quot;: &quot;Why does macOS ifconfig show the mask as 0xffffff00?&quot;, &quot;back&quot;: &quot;It prints the subnet mask in hexadecimal. 0xffffff00 is 255.255.255.0 (a \/24) written another way. networksetup -getinfo shows it in decimal.&quot;},\n    {&quot;front&quot;: &quot;macOS: which command shows the DNS resolvers in use?&quot;, &quot;back&quot;: &quot;scutil --dns. It lists the nameservers the system is actually resolving against.&quot;},\n    {&quot;front&quot;: &quot;Linux: which command shows the IP address and mask?&quot;, &quot;back&quot;: &quot;ip addr (from iproute2). It shows the address and mask together as a CIDR prefix, e.g. 192.168.1.51\/24.&quot;},\n    {&quot;front&quot;: &quot;Linux: which command shows the default gateway?&quot;, &quot;back&quot;: &quot;ip route. The gateway is on the &#039;default via&#039; line. The gateway is NOT in ip addr output.&quot;},\n    {&quot;front&quot;: &quot;Linux: which commands show the DNS servers?&quot;, &quot;back&quot;: &quot;resolvectl status (systemd-resolved), or cat \/etc\/resolv.conf as a universal fallback on any distro.&quot;},\n    {&quot;front&quot;: &quot;Why is ifconfig discouraged on modern Linux?&quot;, &quot;back&quot;: &quot;It is deprecated in favour of the iproute2 ip command and is often not installed. Use ip addr, ip route, and ip link instead.&quot;},\n    {&quot;front&quot;: &quot;What does \/24 mean in 192.168.1.51\/24?&quot;, &quot;back&quot;: &quot;It is the CIDR prefix length: 24 network bits, which equals a 255.255.255.0 subnet mask.&quot;},\n    {&quot;front&quot;: &quot;On Windows, what does DHCP Enabled: No tell you?&quot;, &quot;back&quot;: &quot;The interface is statically configured, not using DHCP. DHCP Enabled: Yes means the address was leased from a DHCP server.&quot;},\n    {&quot;front&quot;: &quot;How do you release and renew a DHCP lease on Windows?&quot;, &quot;back&quot;: &quot;ipconfig \/release then ipconfig \/renew. This drops the current lease and requests a fresh one from the DHCP server.&quot;},\n    {&quot;front&quot;: &quot;How do you flush the DNS cache on each OS?&quot;, &quot;back&quot;: &quot;Windows: ipconfig \/flushdns. macOS: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder (both; the killall is what actually flushes the resolver on modern macOS). Linux: sudo resolvectl flush-caches.&quot;},\n    {&quot;front&quot;: &quot;Match the &#039;show everything&#039; command to each OS.&quot;, &quot;back&quot;: &quot;Windows: ipconfig \/all. macOS: networksetup -getinfo \\&quot;Wi-Fi\\&quot;. Linux: ip addr (plus ip route for the gateway). Never use ipconfig on a Mac or ifconfig on a modern Linux box.&quot;}\n  ]\n}\n\" data-fc-anki=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/ccna-verify-ip-flashcards.apkg\"><div class=\"cfg-fc-loading\">Loading flashcards...<\/div><\/div>\n\n<div class=\"cfg-quiz\" data-quiz=\"{\n  &quot;id&quot;: &quot;verify-ip&quot;,\n  &quot;title&quot;: &quot;Verify IP settings (Windows, macOS, Linux) quiz&quot;,\n  &quot;objective&quot;: &quot;1.10 Verify IP parameters for Client OS (Windows, Mac OS, Linux)&quot;,\n  &quot;intro&quot;: &quot;Ten questions on checking a host&#039;s IP address, subnet mask, gateway, and DNS across the three desktop operating systems, plus the APIPA diagnostic. Every answer matches the commands and output above.&quot;,\n  &quot;questions&quot;: [\n    {&quot;q&quot;: &quot;A Windows machine shows an IPv4 address of 169.254.14.32. What does this tell you?&quot;, &quot;options&quot;: [&quot;It has a static IP&quot;, &quot;DHCP failed and the host self-assigned an APIPA link-local address&quot;, &quot;It is on a different subnet&quot;, &quot;DNS is misconfigured&quot;], &quot;answer&quot;: 1, &quot;explanation&quot;: &quot;169.254.0.0\/16 is APIPA. When a client gets no DHCP reply it self-assigns a link-local address in this range. It can reach other hosts on the same wire but not the gateway or the internet. Fix the DHCP server, the switchport VLAN, or the link.&quot;, &quot;validated&quot;: &quot;doc&quot;},\n    {&quot;q&quot;: &quot;Which command shows the default gateway on Linux?&quot;, &quot;options&quot;: [&quot;ip addr show&quot;, &quot;ip route&quot;, &quot;resolvectl status&quot;, &quot;ifconfig&quot;], &quot;answer&quot;: 1, &quot;explanation&quot;: &quot;ip route shows the gateway on the &#039;default via&#039; line. ip addr shows the address and mask but not the gateway.&quot;, &quot;validated&quot;: &quot;lab&quot;},\n    {&quot;q&quot;: &quot;Which Windows command shows the DHCP Enabled field, MAC address, and DNS servers?&quot;, &quot;options&quot;: [&quot;ipconfig&quot;, &quot;ipconfig \/all&quot;, &quot;ip addr&quot;, &quot;netstat -rn&quot;], &quot;answer&quot;: 1, &quot;explanation&quot;: &quot;Plain ipconfig shows address, mask, and gateway. The \/all switch adds the MAC (Physical Address), DHCP Enabled, DNS Servers, and lease times.&quot;, &quot;validated&quot;: &quot;lab&quot;},\n    {&quot;q&quot;: &quot;In macOS ifconfig output, the subnet mask shows as 0xffffff00. What is this in dotted decimal?&quot;, &quot;options&quot;: [&quot;255.255.0.0&quot;, &quot;255.255.255.0&quot;, &quot;255.255.255.255&quot;, &quot;255.0.0.0&quot;], &quot;answer&quot;: 1, &quot;explanation&quot;: &quot;macOS ifconfig prints the mask in hexadecimal. 0xffffff00 is 255.255.255.0, the same \/24 mask written another way. networksetup -getinfo shows it in decimal.&quot;, &quot;validated&quot;: &quot;lab&quot;},\n    {&quot;q&quot;: &quot;On Linux, ip addr shows 192.168.1.51\/24. What is the subnet mask?&quot;, &quot;options&quot;: [&quot;255.255.0.0&quot;, &quot;255.255.255.0&quot;, &quot;255.255.255.128&quot;, &quot;255.0.0.0&quot;], &quot;answer&quot;: 1, &quot;explanation&quot;: &quot;The \/24 CIDR prefix is the same as a 255.255.255.0 mask. Linux shows address and mask together as a prefix instead of a separate mask line.&quot;, &quot;validated&quot;: &quot;lab&quot;},\n    {&quot;q&quot;: &quot;Why is ifconfig discouraged on modern Linux distributions?&quot;, &quot;options&quot;: [&quot;It is a security risk&quot;, &quot;It is deprecated in favour of the ip command (iproute2) and often not installed&quot;, &quot;It only works as root&quot;, &quot;It cannot show IPv6&quot;], &quot;answer&quot;: 1, &quot;explanation&quot;: &quot;iproute2&#039;s ip command replaced the older net-tools ifconfig, which is deprecated and frequently absent on modern distros. Use ip addr, ip route, and ip link instead.&quot;, &quot;validated&quot;: &quot;doc&quot;},\n    {&quot;type&quot;: &quot;match&quot;, &quot;q&quot;: &quot;Match each command to the operating system it belongs to.&quot;, &quot;pairs&quot;: [{&quot;left&quot;: &quot;ipconfig \/all&quot;, &quot;right&quot;: &quot;Windows&quot;}, {&quot;left&quot;: &quot;networksetup -getinfo&quot;, &quot;right&quot;: &quot;macOS&quot;}, {&quot;left&quot;: &quot;scutil --dns&quot;, &quot;right&quot;: &quot;macOS&quot;}, {&quot;left&quot;: &quot;resolvectl status&quot;, &quot;right&quot;: &quot;Linux&quot;}], &quot;explanation&quot;: &quot;ipconfig is Windows-only; networksetup and scutil are macOS; resolvectl (and ip addr \/ ip route) are Linux. Mixing them up is the classic mistake this objective tests.&quot;, &quot;validated&quot;: &quot;doc&quot;},\n    {&quot;type&quot;: &quot;multi&quot;, &quot;q&quot;: &quot;Which two commands show the DNS servers a host is using? (Choose two.)&quot;, &quot;options&quot;: [&quot;Windows: ipconfig \/all&quot;, &quot;Linux: resolvectl status&quot;, &quot;Windows: ip route&quot;, &quot;macOS: ifconfig en0&quot;], &quot;answers&quot;: [0, 1], &quot;explanation&quot;: &quot;ipconfig \/all lists DNS Servers on Windows, and resolvectl status (or cat \/etc\/resolv.conf) shows them on Linux. ifconfig shows the address and MAC, not DNS.&quot;, &quot;validated&quot;: &quot;doc&quot;},\n    {&quot;q&quot;: &quot;On Windows, the DHCP Enabled field shows No. What does that confirm?&quot;, &quot;options&quot;: [&quot;The network is down&quot;, &quot;The interface is statically configured, not using DHCP&quot;, &quot;DNS is manual&quot;, &quot;The lease expired&quot;], &quot;answer&quot;: 1, &quot;explanation&quot;: &quot;DHCP Enabled: No means the address was set by hand (static), not leased from a DHCP server. DHCP Enabled: Yes means it came from DHCP.&quot;, &quot;validated&quot;: &quot;doc&quot;},\n    {&quot;q&quot;: &quot;Which single macOS command prints the IP, subnet mask, router, and a clean summary for a named interface?&quot;, &quot;options&quot;: [&quot;scutil --dns&quot;, &quot;ifconfig en0&quot;, &quot;networksetup -getinfo \\&quot;Wi-Fi\\&quot;&quot;, &quot;ip addr&quot;], &quot;answer&quot;: 2, &quot;explanation&quot;: &quot;networksetup -getinfo \\&quot;Wi-Fi\\&quot; (or \\&quot;Ethernet\\&quot;) prints the address, mask, and router in one clean block. Use networksetup -listallnetworkservices to find the service name first.&quot;, &quot;validated&quot;: &quot;lab&quot;}\n  ]\n}\n\" data-quiz-count=\"8\"><div class=\"cfg-quiz-loading\">Loading quiz...<\/div><\/div>\n\n<h2>The 30-second IP check<\/h2>\n\n<p>When you sit down at an unfamiliar machine and need its network settings fast, this is the one command per OS that shows all four values at once:<\/p>\n\n<ul>\n<li><strong>Windows:<\/strong> <code>ipconfig \/all<\/code><\/li>\n<li><strong>macOS:<\/strong> <code>networksetup -getinfo \"Wi-Fi\"<\/code> (swap &#8220;Wi-Fi&#8221; for &#8220;Ethernet&#8221; on a wired machine)<\/li>\n<li><strong>Linux:<\/strong> <code>ip addr<\/code> then <code>ip route<\/code> (address and mask, then the gateway)<\/li>\n<\/ul>\n\n<p>Run the one for the OS in front of you, read off the address, mask, gateway, and DNS, and you have confirmed in half a minute whether the machine is configured to reach the network. If any value looks wrong, you now know exactly which of the four is the problem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By the end of this you&#8217;ll know the exact command to confirm a machine&#8217;s IP address, subnet mask, default gateway, and DNS server on any of the three desktop operating systems, and how to read the output so a misconfiguration jumps out at you. The graphical network settings panels show the same information, but the &#8230; <a title=\"Verify IP Settings on Windows, macOS, and Linux\" class=\"read-more\" href=\"https:\/\/computingforgeeks.com\/verify-ip-settings-windows-mac-linux\/\" aria-label=\"Read more about Verify IP Settings on Windows, macOS, and Linux\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":169231,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[299,55],"tags":[524,525],"cfg_series":[39888],"class_list":["post-169233","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","category-networking","tag-ccna","tag-cisco","cfg_series-ccna-200-301"],"_links":{"self":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/169233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/comments?post=169233"}],"version-history":[{"count":1,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/169233\/revisions"}],"predecessor-version":[{"id":169234,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/169233\/revisions\/169234"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/media\/169231"}],"wp:attachment":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/media?parent=169233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/categories?post=169233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/tags?post=169233"},{"taxonomy":"cfg_series","embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/cfg_series?post=169233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}