Configuring DHCP
This topic includes the following topics about configuring required communications for the BMC provisioning environment.
Configuring SSL Ports
The provisioning process explicitly uses the TCP protocol, port 9831 as the SSL port. Bare metal target servers use this port to communicate back to the Application Server (the Provisioning Server).
- On the Application Server, ensure that the SSL port is set to 9831.
- On the BMC Server Automation Console, select Configuration > Infrastructure Management.
- Expand the Application Servers node and select the Application Server that is your Provisioning Server.
Under the Application Server, ensure that the SSL Port is set to 9831. Set it if not.
- Ensure that port 9831 is open for communication. (For example, make sure a firewall is not blocking communication.)
- Configure port 9831 as the SSL port in the DHCP server, as described in the following procedures:
Configuring the Windows DHCP
To enable and configure DHCP on a Windows server, use the procedures in this section.
Adding DHCP
The following procedure is specific to Windows 2003. Other Windows operating systems are similar.
- Select Control Panel > Add/Remove Programs.
- Select Add/Remove Windows Components.
- Select Networking Services and click Details.
- Select DHCP and click OK.
Click Next and then click Finish.
Adding predefined options
- Run DHCP from the Start menu by selecting Programs > Administrative Tools > DHCP.
- Ensure that a DHCP scope is defined. Typically, a scope is already defined. If not, do the following:
- Right-click the server and select New Scope.
- Use the wizard to define a scope that leases addresses to servers provisioned in a certain range.
- Right-click the default server and choose Set Predefined Options. In the Predefined Options and Values dialog box, click Add.
- Provide the following information about the Application Server.
- Name: bl-server
- Data Type: IP address
- Code: 211
Click OK.
- Click OK again.
- In the Predefined Options and Values dialog box, click Add again.
- Provide the following information and click OK.
- Name: bl-port
- Data Type: Word
- Code: 212
- Click OK, and do not change the default value for Word.
- Click OK again.
- In the DHCP window, expand the Scope folder.
- Right-click Scope Options and select Configure Options.
- Under Available Options:
- Scroll down and check the 211 bl-server option.
- For IP address, enter the IP address of the Application Server.
- Check the 212 bl-ports option.
- For Port, enter 9831, which is the port that BMC Server Automation uses by default for Secure Sockets Layer (SSL) communication. The system calculates and displays the hexadecimal value for the port number (0x2667).
To configure a router, check option 003.
- For Server Name, type a valid router IP address. The system administrator who configured the DHCP server can provide this value. Use the actual router address, which might not align with the .1 host ID. If you do not have a valid router IP address (for example, if you are provisioning in a local LAN) you can use any valid IP address within the subnet that is not in the range of IP addresses to be distributed by the DHCP server, such as x.x.x.1. The IP address of the DHCP server is a good alternative if no gateway exists.
- Click Resolve. The value appears in the IP Address field.
- Click Add. Option 003 appears in the list of options.
- Click OK.
Review the DHCP Scope Options that you just configured. A successful configuration looks similar to the right panel in the following example.
Adding Option 60
If the DHCP server and the PXE server reside on the same host computer, you must add Option 60. This option makes it possible for the target computers to differentiate between DHCP servers and proxy DHCP servers.
- On the DHCP server, type netsh on the command line to enter Microsoft Windows network shell.
- Run the dhcp command dhcp
- Run the server command: server server_ID
Where server_IDis one of the following:- Name of the DHCP server, in the format
servername - IP address of the DHCP server
The command prompt changes to dhcp server.
- Name of the DHCP server, in the format
Run the following command:
add optiondef 60 PXEClient STRING 0 comment=<userDefined>Where userDefined is any comment that you want to add. The comment 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- Before proceeding to the next section, restart the DHCP server.
Configuring the ISC DHCP for Linux
The following procedure describes how to install and configure the Internet Systems Consortium (ISC) DHCP.
- Download ISC DHCP version 3.0p2 or later from http://www.isc.org/software/dhcp and compile the executable.
Or
Use a package manager (such as YUM, YaST, or Zypper) to install the dhcpd package. Edit the dhcpd.conf file, (typically /etc/dhcpd.conf) to match the following example.
allow booting;
allow bootp;
allow duplicates;
always-broadcast on;
authoritative;
ddns-update-style none;
option bl-server code 211 = ip-address;
option bl-port code 212 = unsigned integer 16;
subnet 192.168.4.0 netmask 255.255.255.0
\{
range 192.168.4.200 192.168.4.220;
option subnet-mask 255.255.255.0;
option routers 192.168.4.1;
option domain-name-servers 10.20.21.3;
option netbios-name-servers 10.20.21.3;
option domain-name "netboot.customer.com";
default-lease-time 2592000;
max-lease-time 5184000;
option vendor-class-identifier "PXEClient";
option bl-server 192.168.4.100;
option bl-port 9831;
\}- Restart the DHCP server.