sudo pfctl -s all # Show all firewall rules sudo pfctl -f /etc/pf.conf # Load rules
macOS : sudo networksetup -setmanual "Wi-Fi" 192.168.1.50 255.255.255.0 192.168.1.1 : Windows : netsh interface ip set address "Ethernet" dhcp macOS : sudo networksetup -setdhcp "Wi-Fi" Troubleshooting Wi-Fi: wdutil and airport
| Goal | macOS command | |------|----------------| | Show IP address | ifconfig or ipconfig getifaddr en0 | | Renew DHCP lease | sudo ipconfig set en0 DHCP | | Flush DNS cache | sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder | | Scan Wi‑Fi networks | /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -s | | Disable/enable interface | sudo ifconfig en0 down / up | | Show ARP table | arp -a |
zsh: command not found: netsh