Configuration of SHELL script PXE batch unattended installation machine
PXE batch unattended installation script prepares 2 network cards:
The first network card uses NET to install the service
The second network card is used to provide dhcp service
#! / bin/bash# deployment pxe batch installation service # configure dual network card # define network card configuration file location k=/etc/sysconfig/network-scripts# copy network card configuration file template cd / etc/sysconfig/network-scriptscp-p ifcfg-ens33 ifcfg-ens36# modify the second network card configuration file sed-I's k/ifcfg-ens36sed dhcp k/ifcfg-ens36sed'$k/ifcfg-ens36sed-I'/ UUID/d '$k/ifcfg-ens36cat > > $k/ifcfg-ens36 / etc/dhcp/dhcpd.conf