Configuring a DHCP server on Windows
This topic provides instructions for configuring the DHCP server on Microsoft Windows platforms.
In addition to standard configuration of the DHCP server, which includes defining a scope, you must set some scope options. Use the following tasks to configure the DHCP server on Windows:
Adding predefined options
This topic provides instructions for adding predefined options on Microsoft Windows.
A standard DHCP configuration should include the definition of a scope, which sets a start and end of the range of IP addresses being distributed. This range determines the number of servers that can simultaneously access the DHCP server.
The BMC Server Automation provisioning process requires the following scope options:
- 3
- 60
- 211
- 212
To add scope options 3, 211 and 212, follow the instructions in #To add predefined options. To add scope option 60, see Adding Option 60.
To add predefined options
- Install DHCP, if it is not already installed.
- Run DHCP from the Start menu by selecting Programs > Administrative Tools > DHCP. The default server is the server on which you have installed DHCP.
- If a scope is not already defined, right-click the server and choose New Scope. Use the wizard to define a new scope.
- Add options 211 and 212.
- Select the default server, right-click, and choose Set Predefined Options.
- In the Predefined Options and Values dialog box, click Add.
- In the Option Type dialog box, provide the following information and click OK.The [confluence_table-plus] macro is a standalone macro and it cannot be used inline. Click on this message for details.
- In the Predefined Options and Values dialog box, click Add again.
- Provide the following information and click OK.The [confluence_table-plus] macro is a standalone macro and it cannot be used inline. Click on this message for details.
- Click OK again.
Provide values for options 211, 212, and 3:
- Expand the hierarchy for the default server and then expand the hierarchy for Scope.
- Select Scope Options, right-click, and select Configure Options.
- Under Available Options, scroll down and check option 211. Then, for IP address enter the IP address of the BMC Server Automation Application Server.
- Check option 212. For Port, enter 9831, which is the default port that BMC Server Automation uses for SSL communication.
- Check option 3 (Router).
For Server Name, type a valid router IP address. (The system administrator who configured the DHCP server can provide this value.) Then click Resolve. The value appears in the IP Address field.
- Click Add. Option 003 appears on the list of addresses. Click OK.
- Click OK.
Adding Option 60
If the DHCP server and the PXE server reside on the same host computer, you must add option 60 to let target computers differentiate between DHCP servers and proxy DHCP servers. If the DHCP server and the PXE Server reside on separate host computers, you do not have to perform this task.
To add Option 60
- From the command line on the DHCP server, enter netsh. (This command runs the Microsoft Windows network shell.)
- Enter dhcp.
- Enter one of the following commands:
- server
<servername> - server <ip_address>
Replace <servername> with the host name of the DHCP server or replace <ip_address> with the IP address.
The command prompt changes to netsh dhcp server>.
- server
- Enter the following command:
add optiondef 60 PXEClient STRING 0 comment=<userDefined>
For <userDefined>, substitute any comment that you want to add. This information appears in the list of scope options for the DHCP server. If your comment includes spaces, enclose the comment in quotation marks. - Enter the following command:
set optionvalue 60 STRING PXEClient To confirm the addition of the scope option, enter the following command:
show optionvalue all
The output is similar to the following example:General Option Values:
OptionId: 60
Option Value:
Number of Option Elements = 1
Option Element Type = STRING
Option Element Value = PXEClient