Verifying IP parameters on Windows, macOS, and Linux
When a host can't reach the network, the first step is to read its IP, mask, gateway, and DNS — without logging into the switch. Each OS has a different command. This chapter is the reference.
When a host can't reach the network, the first step is to read its IP, mask, gateway, and DNS — without logging into the switch. Each OS has a different command. This chapter is the reference.
C:\> ipconfig /all
Ethernet adapter Ethernet:
IPv4 Address . . . . . . . . . . . : 10.0.0.42
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.0.0.1
DHCP Server . . . . . . . . . . . : 10.0.0.1
DNS Servers . . . . . . . . . . . : 8.8.8.8, 1.1.1.1
IPv6 Address . . . . . . . . . . . : 2001:db8::42
Link-local IPv6 Address . . . . . : fe80::1234%5
C:\> ipconfig /release
C:\> ipconfig /renew
C:\> ipconfig /flushdns
C:\> route print
C:\> netsh interface ipv4 show config$ ifconfig en0
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 10.0.0.42 netmask 0xffffff00 broadcast 10.0.0.255
inet6 2001:db8::42 prefixlen 64 autoconf
ether aa:bb:cc:dd:ee:ff
$ netstat -nr | head # routing table
$ scutil --dns # DNS servers
$ networksetup -getinfo Wi-Fi2 more sections in this chapter, plus a 2-question quiz.
You can see the title, summary, and learning objectives. To read the chapter and build the labs, create a free account — Module 1 is fully readable on the free plan.
NetForge-AI is an independent educational platform and is not affiliated with, endorsed by, or sponsored by any networking vendor or certification body. All product names, protocols, and standards referenced are the property of their respective owners and are used for descriptive, educational purposes only.
Free account · no card required · compare plans any time