Given a network architecture diagram, you can communicate with each other if there is any problem during the installation process. I have been tossing for several days. 1. install DHCP, tftp, and HTTP. [Root @ test ~] # Yuminstalldhcptftp-serverhttpd2. modify DHCP, tftp, HTTP configuration file [root @ test ~] #
Specify a network architecture
If you have any problems during the installation process, you can communicate with each other. I have been involved for several days.
1. install DHCP, tftp, and HTTP.
[Root @ test ~] # Yum install dhcp tftp-server httpd
2. modify DHCP, tftp, and HTTP configuration files
[Root @ test ~] # Cp/usr/share/doc/dhcp-4.2.5/dhcpd. conf. example/etc/dhcp/dhcpd. conf
Cp: overwrite '/etc/dhcp/dhcpd. Conf '? Y
After modification, the content of the DHCP file is as follows:
Start DHCP service
Install syslinux to generate pxelinux.0, [root @ test ~] # Yum install syslinux
Configure the tftp service
[Root @ test ~] # Rpm-ql tftp-server
/Etc/xinetd. d/tftp
/Usr/lib/systemd/system/tftp. service
/Usr/lib/systemd/system/tftp. socket
/Usr/sbin/in. tftpd
/Usr/share/doc/tftp-server-5.2
/Usr/share/doc/tftp-server-5.2/CHANGES
/Usr/share/doc/tftp-server-5.2/README
/Usr/share/doc/tftp-server-5.2/README. security
/Usr/share/man/man8/in.tftpd.8.gz
/Usr/share/man/man8/tftpd.8.gz
/Var/lib/tftpboot
,
Configure HTTP service
After modifying the configuration, restart HTTP
[Root @ test conf. d] # systemctl restart httpd. service
Disable selinux and iptables
Ks file is also modified through the anaconda-ks.cfg, the content is as follows:
In this case, set the network of the client to start. the following page is displayed:
The above Error is displayed because two nework items are written in the ks file.
After waiting, press the up/down key to display the following:
The reason for the above problem is that in the default file under the/var/lib/tftpboot/pxelinux. cfg Directory
Menu linux
....
...
Append... inst. stage2 =... ks =... delete all stage2 =...
After the installation, the system will automatically restart (at this time, you can adjust the startup sequence in the BIOS). remember to set it to shutdown after the installation.
After the startup, log on to the interface. after logging on, the following Nic also gets the IP address
This article from "Happy Good" blog, please be sure to keep this source http://wdllife.blog.51cto.com/6615958/1608036