nbalonso.com

View Extra DHCP Info

| Comments

When configuring services that are part of the DHCP offers, like PXE or automatic proxy configuration, it is very handy to be able to verify from the client side which options are we getting.

With this simple command you’ll be able to verify all the information the client received from the DHCP server.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
bash-3.2$ ipconfig getpacket en0
op = BOOTREPLY
htype = 1
flags = 0
hlen = 6
hops = 0
xid = 2351191707
secs = 0
ciaddr = 0.0.0.0
yiaddr = 192.168.1.29
siaddr = 192.168.1.96
giaddr = 0.0.0.0
chaddr = 40:6c:8f:b8:56:4
sname =
file = smsboot\x86\wdsnbp.com
options:
Options count is 11
dhcp_message_type (uint8): ACK 0x5
renewal_t1_time_value (uint32): 0x54600
rebinding_t2_time_value (uint32): 0x93a80
lease_time (uint32): 0xa8c00
server_identifier (ip): 192.168.1.1
subnet_mask (ip): 255.255.254.0
router (ip_mult): {192.168.1.1}
domain_name_server (ip_mult): {192.168.1.2, 192.168.1.3}
domain_name (string): NBALONSO.COM
proxy_auto_discovery_url (string): http://nbalonso.com/proxy.pac
end (none):

Comments