In order to manually configure your network interface card, open network interfaces file and edit the following lines using your preferred text editor, such as nano.
Replace the IP settings lines described below to match your own network configurations.
Installing a system via PXE can improve the installation speed and in case of deploying multiple installations of Debian in a short period of time or in cases when the machines are not equipped with a CD/DVD ROM unit.
In the first step, you need to assure that the Debian system that we will use to install new servers from has the network interface that will be used to bind to a DHCP server, configured with a static IP address.
mv /etc/dhcp//etc/dhcp/backup nano /etc/dhcp/file excerpt: ddns-update-style none; option option-128 code 128 = string; option option-129 code 129 = text;authoritative;log-facility local7;option arch code 93 = unsigned integer 16; subnet 192.168.1.0 netmask 255.255.255.0 This is the IP address of the TFTP server, where the file pxelinux.0 or bootnetx64can be found in your network.
In this case the TFTP server is located in the same machine.ifdown ens33 ifup ens33 To check if the new IP address has been configured for the network interface, issue the following command.ip a Sometimes the IP settings won’t apply by simply restarting the networking daemon or disabling and enabling the interface.sudo nano /etc/network/interfaces Interfaces file excerpt: auto ens33iface ens33 inet static address 192.168.1.102 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1 dns-nameservers 192.168.1.2 126.96.36.199 dns-search debian.local After you’ve edited the network interfaces file, save and close the file and bring down the network interface, then up, to apply the settings, by issuing the below commands.Assuming that your network interface card is named ens33, issue the below commands to disable and enable the NIC.One of the most common and secured TFTP servers available for LANs is the tftpd-hpa server.The TFTP-HPA packages can be installed from official repositories offered by Debian 9.tar xfz gz -C /srv/tftp/ Also copy the memdisk file provided by Syslinux package to TFTP root path and list the content of the TFTP directory by issuing the below commands.The /srv/tftp directory should have the content as displayed in the below screenshot.nano /etc/default/tftpd-hpa tftpd-hpa file excerpt: The create flag allows remote clients to upload files to the tftp server.This option is dangerous because arbitrary users can upload or delete files from TFTP server root path.