Howto pxe install centos: Difference between revisions
Jump to navigation
Jump to search
(Created page with "first we install the following packages: yum install xinetd dhcp vsftpd syslinux syslinux-tftpboot bind-chroot system-config-kickstart tftp tftp-server -y") |
No edit summary |
||
Line 1: | Line 1: | ||
first we install the following packages: | first we install the following packages: | ||
yum install xinetd dhcp vsftpd syslinux syslinux-tftpboot bind-chroot system-config-kickstart tftp tftp-server -y | yum install xinetd dhcp vsftpd syslinux syslinux-tftpboot bind-chroot system-config-kickstart tftp tftp-server -y | ||
configure your network ip address as static: | |||
create dhcpd config file: | |||
# | |||
# DHCP Server Configuration file. | |||
# see /usr/share/doc/dhcp*/dhcpd.conf.sample | |||
# see 'man 5 dhcpd.conf' | |||
# Global Options | |||
Allow booting; | |||
Allow bootp; | |||
authoritative; | |||
# Subnet definition | |||
subnet 192.168.1.0 netmask 255.255.255.0 { | |||
# Parameters for the local subnet | |||
option routers 192.168.1.254; | |||
option subnet-mask 255.255.255.0; | |||
option domain-name "example.com"; | |||
option domain-name-servers 192.168.1.254; | |||
default-lease-time 21600; | |||
max-lease-time 43200; | |||
# Client IP range | |||
range dynamic-bootp 192.168.1.100 192.168.1.200; | |||
filename "pxelinux.0"; | |||
next-server 192.168.1.254; | |||
} |
Revision as of 22:55, 15 October 2020
first we install the following packages:
yum install xinetd dhcp vsftpd syslinux syslinux-tftpboot bind-chroot system-config-kickstart tftp tftp-server -y
configure your network ip address as static:
create dhcpd config file:
# # DHCP Server Configuration file. # see /usr/share/doc/dhcp*/dhcpd.conf.sample # see 'man 5 dhcpd.conf' # Global Options Allow booting; Allow bootp; authoritative; # Subnet definition subnet 192.168.1.0 netmask 255.255.255.0 { # Parameters for the local subnet option routers 192.168.1.254; option subnet-mask 255.255.255.0; option domain-name "example.com"; option domain-name-servers 192.168.1.254; default-lease-time 21600; max-lease-time 43200; # Client IP range range dynamic-bootp 192.168.1.100 192.168.1.200; filename "pxelinux.0"; next-server 192.168.1.254; }