Computer Essential Network
Network Commands for IT
Professionals
C R E AT E D B Y : - M I T H U R S H A N
( H N D I T, N D I C T )
1. Windows Network Commands
Check Network Configuration
Command Description Example
ipconfig Displays IP, subnet, gateway ipconfig
ipconfig /all Shows full network details ipconfig /all
ipconfig /release Releases DHCP IP address ipconfig /release
ipconfig /renew Renews DHCP IP address ipconfig /renew
ipconfig /flushdns Clears DNS cache ipconfig /flushdns
ipconfig /displaydns Shows DNS cache ipconfig /displaydns
2
1. Windows Network Commands
Check Network Connectivity
Command Description Example
ping Tests connection to a host ping google.com
ping -t Continuous ping ping -t 8.8.8.8
ping -4 Uses IPv4 only ping -4 google.com
ping -6 Uses IPv6 only ping -6 google.com
3
1. Windows Network Commands
Trace Network Path & Latency
Command Description Example
tracert Shows route to a destination tracert google.com
pathping Traces route + network latency pathping google.com
4
1. Windows Network Commands
Manage Network Connections
Command Description Example
netstat Shows active connections netstat -an
netstat -r Displays routing table netstat -r
netsh wlan show profile Shows Wi-Fi profiles netsh wlan show profile
netsh wlan show interfaces Displays wireless interface info netsh wlan show interfaces
5
1. Windows Network Commands
Get MAC Address & ARP Table
Command Description Example
getmac Displays MAC address getmac
arp -a Shows ARP cache arp -a
6
1. Windows Network Commands
Check DNS & Network Resolution
Command Description Example
nslookup Finds IP of a domain nslookup google.com
nslookup -type=mx google.com Finds mail servers for a domain nslookup -type=mx google.com
7
2. Linux & macOS Network Commands
Check IP & Network Configuration
Command Description Example
Shows network interface details
ifconfig ifconfig
(Old)
ip a Displays IP & interface details (New) ip a
ip route Shows routing table ip route
hostname -I Displays IP address hostname -I
8
2. Linux & macOS Network Commands
Check Connectivity & Performance
Command Description Example
ping Tests connection ping google.com
traceroute Shows route to a destination traceroute google.com
mtr Combines ping & traceroute mtr google.com
9
2. Linux & macOS Network Commands
Manage Network Connections
Command Description Example
Shows network manager
nmcli nmcli device status
settings
iwconfig Displays Wi-Fi settings iwconfig wlan0
ethtool eth0 Shows Ethernet details ethtool eth0
10
2. Linux & macOS Network Commands
Manage DNS & Name Resolution
Command Description Example
dig google.com Gets detailed DNS info dig google.com
host google.com Finds IP for a domain host google.com
11
2. Linux & macOS Network Commands
Check Open Ports & Listening Services
Command Description Example
netstat -tulnp Shows open ports netstat -tulnp
ss -tulnp Alternative for netstat ss -tulnp
12
3.Router & Firewall Commands
Check Routing Table
Command Description Example
route print Shows Windows routing table route print
ip route show Shows Linux routing table ip route show
13
3.Router & Firewall Commands
Manage Firewall (Windows/Linux)
Command Description Example
netsh advfirewall show netsh advfirewall show
Windows firewall status
allprofiles allprofiles
iptables -L Linux firewall rules iptables -L
ufw status Ubuntu firewall status ufw status
14
4. Wi-Fi & Wireless Network Commands
Command Description Example
netsh wlan show profile Shows saved Wi-Fi networks netsh wlan show profile
netsh wlan show profile netsh wlan show profile
Shows saved Wi-Fi password
name="WiFiName" key=clear name="HomeWiFi" key=clear
Lists available Wi-Fi networks
iwlist wlan0 scanning iwlist wlan0 scanning
(Linux)
15
Thank you
C R E AT E D B Y : - M I T H U R S H A N
( H N D I T, N D I C T )