Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Configuration of SHELL script PXE batch unattended installation machine

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report