Академический Документы
Профессиональный Документы
Культура Документы
The Preboot eXecution Environment (PXE) [3] specication allows a network device to retrieve
the operating system from a centralized network location while starting up, through the DHCP
and TFTP protocols. See Boot from network conguration for an example about conguring a
such case.
DHCP conguration
The DHCP server can be enabled on all green and blue interfaces (see Network). NethServer will
assign a free IP address within the congured DHCP range in DHCP > DHCP server page.
The DHCP range must be dened within the network of the associated interface. For instance, if
the green interface has IP/netmask 192.168.1.1/255.255.255.0 the range must be
192.168.1.2192.168.1.254
Host IP reservation
The DHCP server leases an IP address to a device for a limited period of time. If a device requires
to always have the same IP address, it can be granted an IP reservation associated to its MAC
address.
The page DHCP > IP reservation lists the currently assigned IP addresses:
a line with IP reservation button identies an host with a temporary lease (gray color);
a line with Edit button identies an host with a reserved IP (black color). A small two arrows
icon near the host name says the DHCP lease is expired: this is a normal condition for hosts
with static IP conguration, as they never contact the DHCP server.
configsetpropdhcptftpstatusdisabled
signaleventnethserverdnsmasqsave
For instance, we now congure a client to boot CentOS from the network. In NethServer, type at
roots console:
yuminstallsyslinux
cp/usr/share/syslinux/{pxelinux.0,menu.c32,memdisk,mboot.c32,chain.c32}/var/lib/tftpboot/
configsetpropdnsmasqdhcpbootpxelinux.0
signaleventnethserverdnsmasqsave
mkdir/var/lib/tftpboot/pxelinux.cfg
/var/lib/tftpboot/pxelinux.cfg/default
defaultmenu.c32
prompt0
timeout300
MENUTITLEPXEMenu
LABELCentOS
kernelCentOS/vmlinuz
appendinitrd=CentOS/initrd.img
mkdir/var/lib/tftpboot/CentOS
vmlinuz
/images/pxeboot
and
initrd.img
Finally, power on the client host, selecting PXE boot (or boot from network) from the start up
screen.
References
[1]
[2]
[3]