Figure 42-1. Option Codes and Lengths
Option Code
68 (Mobile IP Home
Agent)
69 (SMTP Server)
70 (POP3 Server)
71 (NNTP Server)
72 (WWW Server)
73 (Finger Server)
74 (IRC Server)
75 (Streettalk Server)
76 (STDA Server)
Options 19, 20, 27, 29, 30, 31, 34, 36, and 39 only accept hex 00 or hex 01
values.
Example
console(config-dhcp-pool)#option 4 ascii "ntpservice.com "
console(config-dhcp-pool)#option 42 ip 192.168.21.1
console(config-dhcp-pool)#option 29 hex 01
console(config-dhcp-pool)#option 59 hex 00 00 10 01
console(config-dhcp-pool)#option 25 hex 01 ff
service dhcp
Use the service dhcp command in Global Configuration mode to enable local
IPv4 DHCP server on the switch. Use the no form of the command to disable
the DHCPv4 service.
Syntax
service dhcp
no service dhcp
(continued)
Fixed Length
Minimum Length Multiple Of
–
0
–
4
–
4
–
4
–
4
–
4
–
4
–
4
–
4
DHCP Server and Relay Agent Commands
4
4
4
4
4
4
4
4
4
927