PXE Server Setup
PXE Server Setup
PXE Server Setup
1. Get the IP address, gateway, broadcast and DNS using ifconfig. Open the terminal
and type the following:
ifconfig
route -n
2. Open network interfaces using any editor.
sudo nano /etc/network/interfaces
3. Add/Edit like below
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.253.111
netmask 255.255.255.0
gateway 192.168.253.254
dns-nameservers 192.168.253.254
4. Restart network manager
sudo /etc/init.d/networking restart
5. Update package lists from the repositories and "updates" them to get information
on the newest versions of packages and their dependencies.
sudo apt-get update
6. Install ISC DHCP Server (provides IP address), inetutils-inetd (provides internet
services), tftpd-hpa (required for booting operating systems or configurations over
the network), syslinux (bootloader) and nfs-kernel-Server (allow sharing of
directories and files over a network)
sudo apt-get install isc-dhcp-Server inetutils-inetd tftpd-hpa syslinux
nfs-kernel-Server
R201 Level 2 The District Mall, Ayala Northpoint, Talisay CIty, Philippines
filename "pxelinux.0";
next-Server 192.168.253.111;
}
11. Start dhcp server
sudo /etc/init.d/isc-dhcp-server start
12. Open inetd.conf in any text editor
sudo nano /etc/inetd.conf
13. Add/Edit like below (1 line)
tftp dgram udp wait root /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /var/lib/tftpboot
14. Open tftpd-hpa in text editor
sudo nano /etc/default/tftpd-hpa
15. Add/Edit like below (change red text with the server IP address)
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/var/lib/tftpboot"
TFTP_ADDRESS="192.168.253.111:69"
TFTP_OPTIONS="--secure"
RUN_DAEMON="yes"
OPTIONS="-l -s /var/lib/tftpboot"
R201 Level 2 The District Mall, Ayala Northpoint, Talisay CIty, Philippines