Network Installation in Linux
Network Installation in Linux
Cd/DVD ROMs
Hard Drive
Here all above servers can be a one server or we can configure three different servers for
different task.
Let us now setup a single server for network installation using DHCP and FTP.
Following information is required to install a new server so that we can setup a DHCP
server in order to recognize the new machine automatically.
Sub-Net mask:
o For CD-ROMs:
dd if=/dev/cdrom of=/tftpboot/diskX.iso
where cdrom refers to your CD drive device, and X is the number of the
disk that you are copying, beginning with 1 for the first disk, and so on.
A DHCP server is required to provide IP addresses for the clients when booting Grub
(BOOTP) and later when booting Linux. A TFTP server is required to make the boot
images available on the network for Linux to boot. The TFTP server is also necessary to
make it possible to save and restore the disk images.
Setting up DHCP
Install DHCP, if not installed, from the rpm package, normally found in Linux
distributions:
Edit the /etc/dhcpd.conf file to configure DHCP service. In our setup, the server has IP
address 10.0.0.1 and provides IP addresses up to 253 clients. Configure
/etc/dhcpd.conf according to your environment:
#/etc/dhcpd.conf
server-identifier installserver.com;
default-lease-time 172800;
max-lease-time 604800;
option domain-name "installserver.com";
subnet 10.0.0.0 netmask 255.255.255.0 {
host testserver {
hardware Ethernet Ethernet_address(MAC Address)
fixed address 10.0.0.50
}
range dynamic-bootp 10.0.0.2 10.0.0.254;
/etc/rc.d/init.d/dhcpd start.
Setting up TFTP
First install from the rpm package:
# mkdir /tftpboot
# chown nobody:nobody /tftpboot
The directory /tftpboot is owned by user nobody, because this is the default user id set
up by tftpd to access the files.
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -c -s /tftpboot
disable = no
per_source = 11
cps = 100 2
}
The changes from the default file are the parameter disable = no (to enable the service)
and the server argument -c. This argument allows for the creation of files, which is
necessary if you want to save boot or disk images. You may want to make TFTP read
only in normal operation.
/etc/rc.d/init.d/xinetd reload
You can use the tftp command, available from the tftp (client) rpm package, to test the
server. At the tftp prompt, you can issue the commands put and get.
Or