Mac OSX DHCP debuging

Apple, CLI, DHCP, Macintosh, OSX
Once in a while you might want to dig deep into OSX's dhcp client and find out what dhcp packet the server sent it. A quick command to spit out this info:# ipconfig getpacket en0This produces the following output: op = BOOTREPLY htype = 1 dp_flags = 0 hlen = 6 hops = 0 xid = 1956115059 secs = 0 ciaddr = 0.0.0.0 yiaddr = 192.168.4.10 siaddr = 192.168.4.1 giaddr = 0.0.0.0 chaddr = 0:3:93:7a:d7:5c sname = dhcp.mycompany.net file = options: Options count is 10 dhcp_message_type (uint8): ACK 0x5 server_identifier (ip): 192.168.4.1 lease_time (uint32): 0x164a subnet_mask (ip): 255.255.255.0 router (ip_mult): {192.168.4.1} domain_name_server (ip_mult): {192.168.4.1} domain_name (string): mycompany.net end (none):
Read More