ntrogers
9/11/2017 - 7:10 PM

[sh - Networking Commands] #macOS

[sh - Networking Commands] #macOS

# Renew IP address via DHCP
ipconfig set en0 BOOTP && sudo ipconfig set en0 DHCP
# Get IP address of DHCP server
ipconfig getpacket en0 | grep server_identifier
# Get MAC address of an IP
nmap -sP -n 192.168.10.1