Back to commands

DHCP

ipconfig getpacket en0

Display macOS DHCP lease information.

Explanation

Ipconfig getpacket shows DHCP lease details for a macOS interface, including the assigned address, subnet mask, router, and DNS servers.

Syntax

ipconfig getpacket en0

Show DHCP lease packet

yiaddr = 192.168.0.27
subnet_mask = 255.255.255.0
router = 192.168.0.1
domain_name_server = { 1.1.1.1, 1.0.0.1 }

Use this when DHCP values look incomplete or incorrect.

Related Guides

Related Tools

No related links yet.