Octet

Which DHCP options do you configure most, and what are options 43, 66 and 150 for?

Show the answer

Say this first

The everyday set is option 1 subnet mask, 3 default gateway, 6 DNS servers, 15 domain name and 51 lease time. For devices that boot from the network, 66 is the TFTP server name and 67 the boot file (PXE and many IP phones), 150 is Cisco's list of TFTP server addresses for Cisco IP phones, and 43 is vendor-specific data, which Cisco access points use to learn their wireless controller addresses. Option 82 is added by relays and switches, not set in a pool.

Go deeper

The options worth knowing by number

OptionNameNotes
1Subnet mask
3Routerdefault gateway list
6DNS serverslist of addresses
15Domain nameDNS suffix for the client
42NTP servers
43Vendor-specific informationformat defined by the vendor
50Requested IP addressclient to server
51Lease timeseconds on the wire
53Message typeDISCOVER, OFFER and so on
54Server identifierwhich server owns the lease
60Vendor class identifierthe client says what kind of device it is
61Client identifierIOS bindings show this, for example 01 plus the MAC
66TFTP server nameone name or address, as a string
67Boot file namePXE
82Relay agent informationinserted by relays or snooping switches
121Classless static routes
150TFTP server addressesCisco, list of IPs

Option 43 for Cisco APs

A Cisco lightweight AP expects a type-length-value: type f1, length 4 bytes per controller, then each controller address in hex. Two controllers at 10.0.50.10 and 10.0.50.11: f1 + 08 + 0a00320a + 0a00320b.

Cisco IOS
ip dhcp excluded-address 10.50.0.1 10.50.0.10
ip dhcp pool AP-MGMT
 network 10.50.0.0 255.255.255.0
 default-router 10.50.0.1
 dns-server 10.0.0.53
 option 43 hex f1080a00320a0a00320b
!
ip dhcp excluded-address 10.40.0.1 10.40.0.10
ip dhcp pool VOICE
 network 10.40.0.0 255.255.255.0
 default-router 10.40.0.1
 dns-server 10.0.0.53
 domain-name corp.example.com
 option 150 ip 10.0.0.15 10.0.0.16
 lease 0 8

lease 0 8 is 0 days and 8 hours. The IOS default is 1 day. Other vendors' APs and phones use 43 with their own sub-option formats, usually matched by option 60.

Traps

  • Typing the WLC address for option 43 as plain text. Cisco APs expect the hex TLV.
  • Treating options 66 and 150 as the same thing. 66 is a single standard string, 150 is Cisco's list of IP addresses.
How did you do?Book 3.3 Internet (IP)