Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Click here to return to the 'It is also easy to get similar information via a simple terminal command.' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
It is also easy to get similar information via a simple terminal command.
Authored by: st3phen on Fri, May 23 2008 at 3:56PM PDT
ipconfig getpacket [ifaddr]

For example, on Ethernet 0:
ipconfig getpacket en0

This returns the DHCP information, including the DHCP server's address info, any Option 95 information. Here's example information for my MacBook Pro:

op = BOOTREPLY
htype = 1
flags = 0
hlen = 6
hops = 0
xid = 1301709434
secs = 1
ciaddr = 0.0.0.0
yiaddr = 192.168.15.100
siaddr = 0.0.0.0
giaddr = 0.0.0.0
chaddr = 0:12:34:56:78:9A
sname =
file =
options:
Options count is 9
dhcp_message_type (uint8): ACK 0x5
server_identifier (ip): 192.168.15.253
lease_time (uint32): 0x54600
renewal_t1_time_value (uint32): 0x2a300
rebinding_t2_time_value (uint32): 0x49d40
subnet_mask (ip): 255.255.255.0
router (ip_mult): {192.168.15.254}
domain_name_server (ip_mult): {192.168.15.253}
end (none):



[ Reply to This | # ]