Get the App
SLTechnology News&Howtos  ›  Servers  › 

Configuration of SHELL script PXE batch unattended installation machine

Shulou Source: shulou.com Published: 2022-06-02 22:52:08 11月11日 Update

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

Tags: Network card configuration service file script location template firewall preparation fire prevention Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB OPPO Reno Shulou Information Microsoft Shulou Tech Info