Archive for ‘DHCP’ Category

Renew a DHCP lease

datePosted on 12:46, January 3rd, 2013 by Many Ayromlou

Renew a DHCP lease:

Renewing a DHCP lease via the Network System Preference Pane has the advantage of not dropping the connection, unlike switching the interface to BOOTP and back to DHCP. This command mimics that behavior. 


Mac OSX DHCP debuging

datePosted on 13:08, December 15th, 2007 by Many Ayromlou

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 en0
This produces the following output:

htype = 1
dp_flags = 0
hlen = 6
hops = 0
xid = 1956115059
secs = 0
ciaddr =
yiaddr =
siaddr =
giaddr =
chaddr = 0:3:93:7a:d7:5c
sname =
file =
Options count is 10
dhcp_message_type (uint8): ACK 0x5
server_identifier (ip):
lease_time (uint32): 0x164a
subnet_mask (ip):
router (ip_mult): {}
domain_name_server (ip_mult): {}
domain_name (string):
end (none):