# Prerequisites

In order to work with HPE Morpheus Enterprise bare metal PXE boot capabilities, some initial setup configuration is required. First, on the HPE Morpheus Enterprise server, if you have a firewall enabled, make sure port 69 is open for TFTP. HPE Morpheus Enterprise actually uses port 6969 and during installation a redirect should have been set. To check this, SSH onto the Morpheus server and run the following:

```
```
iptables -t nat -L -n -v
```
```

If the redirect is still properly, the response should include the following:

```
```
Chain PREROUTING (policy ACCEPT 69 packets, 9767 bytes)  
pkts bytes target   prot opt in out source     destination  
0     0 REDIRECT udp  --  *  *   0.0.0.0/0  0.0.0.0/0        udp dpt:69 redir ports 6969  
0     0 DNAT     tcp  --  *  *   0.0.0.0/0  169.254.169.254  tcp dpt:80 to:192.168.1.156
```
```

Next, in HPE Morpheus Enterprise, set a default PXE root password. This password is set in Administration > Settings > Provisioning. With the default root password set, set up the redirect on the DHCP server. In addition to the DNS and Gateway settings, add Boot Server Host Name which will be the name of the HPE Morpheus Enterprise Server and Bootfile Name which should be set to `pxelinux.0`. If you are using a Linux-based DHCP server, for example on CentOS, the dhcpd.conf configuration will look something like the following:

```
```
allow booting;  
allow bootp;  
option option-128 code 128 = string;  
option option-129 code 129 = text;  
next-server xx.xx.xx.xx;  
filename "pxelinux.0";
```
```

NOTE

Replace the dummy IP address in the example dhcpd.conf file above with your HPE Morpheus Enterprise appliance IP address.

Once you have done this, when you boot a PXE-enabled machine on the network, it will be told to access the HPE Morpheus Enterprise server and request the `pxelinux.0` file. It will do this on port 69, the default for TFTP and will be redirected to 6969 once it hits the HPE Morpheus Enterprise server. If successful you will see the “HPE Morpheus Enterprise PXE Server” menu when you boot a server. This is the default menu defined in HPE Morpheus Enterprise and supports the shipped PXE images supplied with the product. By selecting any of the choices from the “HPE Morpheus Enterprise PXE Server menu”, the install files should be downloaded and the server configured as per the supplied kickstart files. At this point, back on the HPE Morpheus Enterprise appliance, you should see the MAC address for the new server appear in the “Discovered MAC Addresses” tab of the Infrastructure > Boot page.
