DHCP Option Manager

Note: To display only the features present on a particular device, select one or more filters from the SmartDocs bar below.

EMDK For Android - 6.7

Overview

The DHCP Option Manager (DhcpOptionMgr) allows an app to configure options for Dynamic Host Configuration Protocol (DHCP) on the device. This can simplify device administration by allowing network settings such as the device's IP address and default gateway to be configured automatically using DHCP protocols rathan than manually by the user or an administrator.

When using DHCP on a device, a DHCP Client on the device sends a DHCP Request to a DHCP Server and receives back a DHCP Acknowledgment. A DHCP Request sent by a device can contain information about the device or the DHCP Client, and can contain requests for additional information from the DHCP Server. A DHCP Acknowledgment sent by the DHCP Server contains the IP Address assigned to the device by the DHCP Server along with any additional information requested by the device in the DHCP Request.

DHCP Options are variable-length strings that are identified by DHCP Options Numbers that can be included in a DHCP Request or a DHCP Acknowledgment to convey information between a DHCP Client and a DHCP Server. From the point of view of the device where the DHCP Client is running, a DHCP Option can support a mode of Write (if the DHCP Client sends the option to the DHCP Server in the DHCP Request) or Read (if the DHCP Client receives information from the DHCP Server in the DHCP Acknowledgment). DHCP can support a wide variety of DHCP Options, including custom options that can be defined by equipment vendors or end customers.

Main Functionality

  • Enable/Disable and set values of configurable DHCP options listed below:
DHCP Option Number DHCP Option Name Default State Configurable Supported Mode
1 Subnet Mask On No Read
3 Routers On No Read
6 Domain Name Servers On No Read
12 Host Name On Yes Write
15 Domain Name On No Read
28 Broadcast Address Off Yes Read
42 NTP Server Off Yes Read
43 Vendor Encapsulated Off Yes Read
51 Lease Time On No Read
60 Vendor Class ID Off Yes Write
61 Client Identifier Off Yes Write
66 TFTP Server Name Off Yes Read
67 Boot File Name Off Yes Read
77 User Class On Yes Write
81 FQDN Off Yes Write
119 Domain Search List Off Yes Read
150 TFTP Server Address Off Yes Read
186 Vendor Specific1 Off Yes Read
188 Vendor Specific2 Off Yes Read
230 Vendor Specific3 Off Yes Read

Note: DHCP Options that are shown as not configurable in the above table are supported on Zebra Android devices, but are always enabled and their operation cannot be altered in any way using the DhcpOptionMgr.

Host Name (12)

Controls whether a Host Name will be sent by the DHCP Client to the DHCP Server via the Host Name DHCP Option. The Host Name is generally used by a DHCP Server to identify a device on the network and/or to track the devices to which IP Addresses have been assigned.

Parm Name: HostNameState

Option Name Description Requires
0 Do not change This value (or the absence of this parm from the XML) will cause no changes to how this DHCP Option is configured.

MX: 4.4+

1 Enable This value will cause this DHCP Option to be turned on and hence will cause the specified Host Name Option to be sent by the DHCP Client to the DHCP Server in the DHCP Request.

MX: 4.4+

2 Disable This value will cause this DHCP Option to be turned off and hence will prevent a Host Name from being to be sent by the DHCP Client to the DHCP Server.

MX: 4.4+

Host Name Option Value

Used to specify the Host Name that will be sent by the DHCP Client to the DHCP Server in the DHCP Request.

Parm value input rules:

  • String from 1-91 characters containg a host name

Shown if: Host Name is "Enable"

Parm Name: HostNameValue

Requires:

  • MX: 4.4+

Broadcast Address (28)

The Broadcast Address for a network is the IP Address for which all devices on that network are enabled to receive messages. A message sent to the Broadcast Address for a network can therefore be received by all devices on that network, rather than a specific device.

This parm allows you to control whether a request for the Broadcast Address will be sent by the DHCP Client to the DHCP Server in the DHCP Request. When requested, the DHCP Server will return the Broadcast Address for the network to the device in the DHCP Acknowledgment.

Parm Name: BroadcastAddrState

Option Name Description Requires
0 Do not change This value (or the absence of this parm from the XML) will cause no changes to how this DHCP Option is configured.

MX: 4.4+

1 Enable This value will cause this DHCP Option to be turned on and hence will cause the Broadcast Address to be requested by the DHCP Client in the DHCP Request.

MX: 4.4+

2 Disable This value will cause this DHCP Option to be turned off and hence will prevent the Broadcast Address from being requested by the DHCP Client in the DHCP Request.

MX: 4.4+

NTP Server (42)

Control whether a request for a NTP Server Address will be sent by the DHCP Client to the DHCP Server in the DHCP Request. When requested, the DHCP Server will return the NTP Server Address to the device in the DHCP Acknowledgment.

An NTP (Network Time Protocol) Server is a Server that is capable of providing the current Date and Time to a device. A device must generally know the name or address of an NTP Server in order to query that server to acquire the Date and Time.

Note: The DHCP Client does not automatically use the value returned by this DHCP Option to configure the device to acquire the Date and Time from the returned NTP Server. To configure a device to acquire the Date and Time from the NTP Server, the value of the returned NTP Server Address would need to be obtained using the DhcpOptionMgr and then used to configure AutoTime via the Clock.

Parm Name: NTPServerState

Option Name Description Requires
0 Do not change This value (or the absence of this parm from the XML) will cause no changes to how this DHCP Option is configured.

MX: 4.4+

1 Enable This value will cause this DHCP Option to be turned on and hence will cause the NTP Server Address to be requested by the DHCP Client in the DHCP Request.

MX: 4.4+

2 Disable This value will cause this DHCP Option to be turned off and hence will prevent the NTP Server Address from being requested by the DHCP Client in the DHCP Request.

MX: 4.4+

Vendor Encapsulated (43)

Vendor Encapsulated, also referred to as Vendor Specific, is a DHCP option that can be requested by the DHCP Client. The value of this option is determined by the specific vendor of the DHCP server. In complex network environments where they may be multiple vendors, this option is often used with option 60 so that the correct DHCP server is used for the given device.

Parm Name: VendorEncapsulatedState

Option Name Description Requires
0 Do not change This value (or the absence of this parm from the XML) will cause no changes to how this DHCP Option is configured.

MX: 5.0+

1 Enable This value will cause this DHCP Option to be turned on and hence will cause the Vendor Specific option 43 to be requested by the DHCP Client in the DHCP Request.

MX: 5.0+

2 Disable This value will cause this DHCP Option to be turned off and hence will not cause the Vendor Specific option 43 to be requested by the DHCP Client in the DHCP Request.

MX: 5.0+

Vendor Class Identifier (60)

Controls whether a Vendor Class will be sent by the DHCP Client to the DHCP Server via the Vendor Class DHCP Option. This support allows DHCP relay to compare option 60 strings in received DHCP client packets against strings configured on the router by the app or an admin. The DHCP relay option 60 feature can be used when providing converged services in a network environment—option 60 support enables DHCP relay to direct client traffic to the specific DHCP server (the vendor-option server) that provides the service that the client requires.

Another option permits option 60 strings to be configured to direct traffic to the DHCP local server in the current virtual router. For example, imagine an environment in which some DHCP clients require only Internet access, while other clients require IPTV service. The clients that need Internet access get their addresses assigned by the local DHCP server on the E Series router (in equal-access mode). Clients requiring IPTV must be relayed to a specific DHCP server that provides the service. To support both types of clients, configure two option-60 strings on the DHCP relay. When DHCP client packets are received with option 60 strings configured, the strings are matched against all strings configured on the DHCP relay. If the client string matches the first configured string, that client is directed to the DHCP local server and gains Internet access. Client traffic with an option 60 string that matches the second string is relayed to the DHCP server that provides the IPTV service. In addition, a default action can be configured to be performed by a DHCP relay when a client option 60 string does not match either of the pre-configured strings. For example, it might be desireable for any client with a non-matching string to be dropped.

Parm Name: VendorClassIdState

Option Name Description Requires
0 Do not change This value (or the absence of this parm from the XML) will cause no changes to how this DHCP Option is configured.

MX: 5.0+

1 Enable This value will cause this DHCP Option to be turned on and hence will cause the specified Vendor Class to be sent by the DHCP Client to the DHCP Server in the DHCP Request.

MX: 5.0+

2 Disable This value will cause this DHCP Option to be turned off and hence will prevent a Vendor Class from being to be sent by the DHCP Client to the DHCP Server.

MX: 5.0+

Vendor Class Value

Used to specify the Vendor Class value that will be sent by the DHCP Client to the DHCP Server in the DHCP Request.

Parm value input rules:

  • String from 1-91 characters containing a vendor class value

Shown if: Vendor Class is "Enable"

Parm Name: VendorClassIdValue

Requires:

  • MX: 5.0+

Client Identifier Enable/Disable (61)

Controls whether a custom client identifier value can be specified for identifying a device on the network in place of its MAC address. When Enabled, permits the identifier to be specified using the ClientIdentifierValue parameter. When Disabled, the device will be identified by its MAC address.

Parm Name: ClientIdentifier

Option Name Description Requires
0 Do not change This value (or the absence of this parm from the XML) will cause no changes to how this DHCP Option is configured.

MX: 6.3+

1 Enable Enables a client identifier to be specified.

MX: 6.3+

2 Disable Prevents a client identifier from being specified.

MX: 6.3+

Client Identifier Value

Used to specify the client identifier, an optional parameter that can be used to identify a device on the network in place of its MAC address.

Parm value input rules:

  • String from 1-91 characters containing a class identifier value

Shown if: Client Identifier is set to "Enable"

Parm Name: ClientIdentifierValue

Requires:

  • MX: 6.3+

TFTP Server Name Enable/Disable (66)

Controls whether a request for a TFTP Server Name will be sent by the DHCP Client to the DHCP Server in the DHCP Request. When requested, the DHCP Server will return the TFTP Server Name to the device in the DHCP Acknowledgment.

A TFTP (Trivial File Transport Protocol) Server provides simple means for a remote client to get or put a file. A primary use of TFTP is configuring a device when it first joins a network. TFTP is used because it is very simple to implement but must be used with caution because it lacks security and other more advanced file transfer features.

Important: The DHCP Client does not automatically use an acquired TFTP Server Name to perform file transfers or configuration. To configure a device using TFTP, use DhcpOptionMgr to acquire the TFTP Server Name and provide it to the TFTP Client that will perform the file transfer. The transferred files can then be used to perform the desired configuration.

Parm Name: TFTPServerNameState

Option Name Description Requires
0 Do not change This value (or the absence of this parm from the XML) will cause no changes to how this DHCP Option is configured.

MX: 4.4+

1 Enable This value will cause this DHCP Option to be turned on and hence will cause the TFTP Server Name to be requested by the DHCP Client in the DHCP Request.

MX: 4.4+

2 Disable This value will cause this DHCP Option to be turned off and hence will prevent the TFTP Server Name from being requested by the DHCP Client in the DHCP Request.

MX: 4.4+

TFTP Ser. Name (66)

NOTE: This parameter is deprecated. Use TFTPServerNameState instead.

Parm Name: TFTPSerNameState

Option Name Description Requires
0 Do not change This value (or the absence of this parm from the XML) will cause no changes to how this DHCP Option is configured.

MX: 4.4+

1 Enable This value will cause this DHCP Option to be turned on and hence will cause the TFTP Server Name to be requested by the DHCP Client in the DHCP Request.

MX: 4.4+

2 Disable This value will cause this DHCP Option to be turned off and hence will prevent the TFTP Server Name from being requested by the DHCP Client in the DHCP Request.

MX: 4.4+

Boot File Name Enable/Disable (67)

Controls whether a request for a Boot File name will be sent by the DHCP Client to the DHCP Server in the DHCP Request. When requested, the DHCP Server will return the Boot File name to the device in the DHCP Acknowledgment.

A Boot File is a file that is typically used to configure a device when it first joins a network. A common usage scenario is to pull a Boot File of a given name from a TFTP Server and then use that Boot File to configure the device.

Note: The DHCP Client does not automatically use the Boot File name to perform any file transfers or configuration. To configure a device, a Boot File name and a TFTP Server Name would both be need to be acquired using the DhcpOptionMgr and then provided to a TFTP Client that could perform the transfer of the Boot File and then perform any desired configuration using that file.

Parm Name: BootFileState

Option Name Description Requires
0 Do not change This value (or the absence of this parm from the XML) will cause no changes to how this DHCP Option is configured.

MX: 4.4+

1 Enable This value will cause this DHCP Option to be turned on and hence will cause the Boot File name to be requested by the DHCP Client in the DHCP Request.

MX: 4.4+

2 Disable This value will cause this DHCP Option to be turned off and hence will prevent the Boot File name from being requested by the DHCP Client in the DHCP Request.

MX: 4.4+

User Class Enable/Disable (77)

Control whether a User Class will be sent by the DHCP Client to the DHCP Server via the User Class DHCP Option. The User Class is generally used by a DHCP Server to select the proper pool of IP Addresses from which to acquire the IP Address to assign to the device. It may also be used by the DHCP Server to determine which additional information should be returned to the device in the DHCP Acknowledgment.

Parm Name: UserClassState

Option Name Description Requires
0 Do not change This value (or the absence of this parm from the XML) will cause no changes to how this DHCP Option is configured.

MX: 4.4+

1 Enable This value will cause this DHCP Option to be turned on and hence will cause the specified User Class to be sent by the DHCP Client to the DHCP Server in the DHCP Request.

MX: 4.4+

2 Disable This value will cause this DHCP Option to be turned off and hence will prevent a User Class from being to be sent by the DHCP Client to the DHCP Server.

MX: 4.4+

User Class Value

Used to specify the User Class value that will be sent by the DHCP Client to the DHCP Server in the DHCP Request.

Parm value input rules:

  • String from 1-91 characters containing a user class value

Shown if: User Class is "Enable"

Parm Name: HostNameValue

Requires:

  • MX: 4.4+

FQDN Enable/Disable (81)

Controls whether the DHCP client can send a fully qualified domain name (FQDN) value and optional flag to the DHCP server as a means of updating IP-address-to-FQDN mapping.

An FQDN is the complete domain name for a specific internet host computer, including its hostname and domain name. For example, the FQDN of Google's Gmail server "mail.google.com" includes the hostname "mail" and the domain name "google.com." The server's hostname distinguishes it from other servers in the Google.com domain, and its domain name sets Google's mail server apart from other public mail servers.

For complete information about FQDN options, please refer to the IETF's FQDN Option page.

Parm Name: FqdnState

Option Name Description Requires
0 Do not change This value (or the absence of this parm from the XML) will cause no changes to how this DHCP Option is configured.

MX: 6.3+

1 Enable Enables the DHCP client send an FQDN value and optional flag.

MX: 6.3+

2 Disable Prevents the DHCP client from sending FQDN information.

MX: 6.3+

FQDN Value

Used to specify a fully qualified domain name (FQDN) for the DHCP client to communicate to the DHCP server.

Parm value input rules:

  • String from 1-91 characters containing an FQDN value

Shown if: FQDN is set to "Enable"

Parm Name: FqdnValue

Requires:

  • MX: 6.3+

FQDN Flag Value

Used to specify the value of the optional FQDN flag, which DHCP clients can use to convey information about DNS updates.

Parm value input rules:

  • String of exactly 7 characters containing an FQDN flag value

Shown if: FQDN is set to "Enable"

Parm Name: FqdnFlagValue

Requires:

  • MX: 6.3+

Domain Search Enable/Disable (119)

Control whether a request for the Domain Search list will be sent by the DHCP Client to the DHCP Server in the DHCP Request. When requested, the DHCP Server will return the Domain Search list for the network to the device in the DHCP Acknowledgment.

The Domain Name System (DNS) is a hierarchical distributed naming system that associates domain names to the IP Addresses. When seeking to resolve a name, one or more Domain Name Servers may need to be contacted, in a prioritized order until the name can be successfully resolved. The Domain Search list for a network is an ordered list of DNS server addresses that should be used to resolve names on that network.

Note: The DHCP Client does not automatically use the Domain Search List to configure the DNS Client to resolve names based on the list. This may be a future enhancement, when the DNS Client provides a way to configure it to use such a list. In the meantime, if name resolution needs to be performed based on this list, it would have to be implemented at an application level. An application would need to acquire the Domain Search List using the DhcpOptionMgr and then utilize the information provided in that list to drive an explicit process of requesting name resolution from the DNS Servers for the listed domains

Parm Name: DomainSearchState

Option Name Description Requires
0 Do not change This value (or the absence of this parm from the XML) will cause no changes to how this DHCP Option is configured.

MX: 4.4+

1 Enable This value will cause this DHCP Option to be turned on and hence will cause the Domain Search list to be requested by the DHCP Client in the DHCP Request.

MX: 4.4+

2 Disable This value will cause this DHCP Option to be turned off and hence will prevent the Domain Search list from being requested by the DHCP Client in the DHCP Request.

MX: 4.4+

TFTP Server Address Enable/Disable (150)

Control whether a request for a TFTP Server Address will be sent by the DHCP Client to the DHCP Server in the DHCP Request. When requested, the DHCP Server will return the TFTP Server Address to the device in the DHCP Acknowledgment.

The TFTP Server Address DHCP Option (Option 150) is basically a Cisco-proprietary version of the standard TFTP Server Name DHCP Option (Option Number 150).

Note: The DHCP Client does not automatically use the TFTP Server Address to perform any file transfers or configuration. To configure a device using TFTP, the TFTP Server Address would need to be acquired using the DhcpOptionMgr and then provided to a TFTP Client that could perform the transfer of one or more files and then perform any desired configuration using those files.

Parm Name: TFTPServerAddrState

Option Name Description Requires
0 Do not change This value (or the absence of this parm from the XML) will cause no changes to how this DHCP Option is configured.

MX: 4.4+

1 Enable This value will cause this DHCP Option to be turned on and hence will cause the TFTP Server Address to be requested by the DHCP Client in the DHCP Request.

MX: 4.4+

2 Disable This value will cause this DHCP Option to be turned off and hence will prevent the TFTP Server Address from being requested by the DHCP Client in the DHCP Request.

MX: 4.4+

Vendor Specific 186 Enable/Disable

Controls whether vendor-specific option 186 can be requested by the DHCP client. The potential returned value of this request is determined by the DHCP server vendor.

Parm Name: VendorSpecific1State

Option Name Description Requires
0 Do not change This value (or the absence of this parm from the XML) will cause no changes to how this DHCP Option is configured; any previously selected setting will be retianed.

MX: 5.0+

1 Enable Enables vendor-specific option 186 to be requested by the DHCP Client.

MX: 5.0+

2 Disable Prevents vendor-specific option 186 from being requested.

MX: 5.0+

Vendor Specific 188 Enable/Disable

Controls whether wendor-specific option 188 can be requested by the DHCP client. The potential returned value of this request is determined by the DHCP server vendor.

Parm Name: VendorSpecific2State

Option Name Description Requires
0 Do not change This value (or the absence of this parm from the XML) will cause no changes to how this DHCP Option is configured; any previously selected setting will be retianed.

MX: 5.0+

1 Enable Enables vendor-specific option 188 to be requested by the DHCP Client.

MX: 5.0+

2 Disable Prevents vendor-specific option 188 from being requested.

MX: 5.0+

Vendor Specific 230 Enable/Disable

Controls whether the vendor-specific option 230 can be requested by the DHCP client. The potential returned value of this request is determined by the DHCP server vendor.

Parm Name: VendorSpecific230State

Option Name Description Requires
0 Do not change This value (or the absence of this parm from the XML) will cause no changes to how this DHCP Option is configured; any previously selected setting will be retianed.

MX: 6.3+

1 Enable Enables vendor-specific DHCP Option 230 to be requested by the DHCP Client.

MX: 6.3+

2 Disable Prevents vendor-specific DHCP Option 230 from being requested.

MX: 6.3+