Here are some tips for configuring these parameters properly as it is not entirely obvious. The example I am using is to point some VoIP phones to an IP PBX.
Also see RFC2131 for the official DHCP definition.
Address info:
- Firewall IP: 192.168.1.1
- TFTP Host Name (IP PBX): 192.168.1.10
- NTP Server: 192.168.1.20
- Phone IP Range: 192.168.1.100 - 192.168.1.200
- FTP Username: user1 (this is for the phone to login to the IP PBX)
- FTP Password: password1
- Browse to System -> DHCP and create or modify an appropriate DHCP scope
- Name: VoIP_Phone_Scope
- IP Range: 192.168.1.100 - 192.168.1.200
- Network Mask: 255.255.255.0
- Default Gateway: 192.168.1.1
- Domain: example.com
- Click the Advanced button to expand your available options
- IP Assignment Mode: Server IP Range
- DNS Server 1:
- Option 1: Code = 42, Option = C0A80114
- This defines the NTP Time Server (Option 42) as 192.168.1.20 (192=C0, 168=A8,1=01,20=14 in hex). You can use the Windows Calculator in scientific mode to do the decimal to hex conversion if you don't do dec to hex in your head :)
- Option 2: Code = 66, Option = 6674703a2f2f75736572313a70617373776f726431403139322e3136382e312e3130
You can also accomplish the above tasks via the CLI:
- config system dhcp server
- edit "dhcp scope name"
- set option 1 42 C0A80114
- set option 2 66 6674703a2f2f75736572313a70617373776f726431403139322e3136382e312e3130
- end