DHCP option 下载本文

内容发布更新时间 : 2024/6/16 4:36:03星期一 下面是文章的全部内容请认真阅读。

General Options

Option 1 (Subnet Mask)

Description

The subnet mask option specifies the client's subnet mask as per RFC 950. If both the subnet mask and the router option are specified in a DHCP reply, the subnet mask option MUST be first. The code for the subnet mask option is 1, and its length is 4 octets. VALIDVALUE e.g. 255.255.0.0 SETTING netmask

Option 3 (Router)

Description

The router option specifies a list of IP addresses for routers on the client's subnet. Routers SHOULD be listed in order of preference. The code for the router option is 3. The minimum length for the router option is 4 octets, and the length MUST always be a multiple of 4. VALIDVALUE e.g. 192.168.0.1 SETTING gateway

Option 4 (Time Server)

Description

The time server option specifies the time server (RFC 868), available to the client. The code for the time server option is 4. The minimum length for this option is 4 octets, and the length MUST always be a multiple of 4. Time Server is mapped to NTP Server.

Available since 8.5.1 VALIDVALUE

192.53.103.103, de.pool.ntp.org SETTING ntp_server

Option 6 (DNS Server)

Description

The domain name server option specifies a list of Domain Name System (STD 13, RFC 1035) name servers available to the client. Servers SHOULD be listed in order of preference. The code for the domain name server option is 6. The minimum length for this option is 4 octets, and the length MUST always be a multiple of 4. VALIDVALUE

Private: 192.168.0.9 Public: 174.129.1.129

SETTING

dns_server1 dns_server2

Option 12 (Hostname)

Description

This option specifies the name of the client. The name may or may not be qualified with the local domain name (see section 3.17 for the preferred way to retrieve the domain name). See RFC 1035 for character set restrictions. The code for this option is 12, and its minimum length is 1.

VALIDVALUE

phone123 SETTING phone_name

Option 15 (DNS Domain)

Description

This option specifies the domain name that client should use when resolving hostnames via the Domain Name System. The code for this option is 15. Its minimum length is 1. VALIDVALUE company.com SETTING dns_domain

Option 42 (NTP Server)

Description

The NTP server option specifies the NTP server (RFC 868), available to the client. The code for the NTP server option is 42. The minimum length for this option is 4 octets, and the length MUST always be a multiple of 4. VALIDVALUE

192.53.103.103, de.pool.ntp.org SETTING ntp_server

Option 50 (Requested IP Address)

Description

This option is used in a client request

(DHCPDISCOVER) to allow the client to request that