How to Set network boot and install RHEL5 on the network

Source: Internet
Author: User

Environment rhel5, at least two computers, or a virtual machine is installed on one computer, and the NIC of your computer must support network startup. Two computers can be directly connected with a network cable or in the same LAN)

Goals to be achieved: machines 1 and machines 2 can be achieved. As the client's No. 2 function, the ip address allocated to machines 1 can be queried through the network, in addition, machine 2 can start the network and install rhel5 through the services provided by machine 1.

Disable the firewall iptatble before this process.

1. If the two machines are in the same LAN, disconnect the LAN from the outside before the test.

2. Overload rhel5.iso: mount/dev/cdrom/mnt/memory

3. Check whether dhcp is installed in the system, rpm-qa | grep dhcpd if not installed, to enter/mnt/memory/Server, execute command rpm-ivh dhcp-3.0.5-18.rpm, install dhcp

4, if installed, there will be a dhcp-3.0.5-18.el5 or has been installed, setup set ip

192.168.1.45
255.255.255.0
192.168.1.1

5. cp/usr/share/doc/dhcp-3.0.5/dhcp. conf/sample/etc/dhcpd. conf mv etc/dhcpd. conf. sample/etc/dhcpd. conf changes the original dhcpd. conf Overwrite

6 vim/etc/dhcpd. conf

Modify the information of all ip addresses according to the ip address information configured in setup.

7 Service network restart

Service dhcpd restart

If no problem occurs, the configuration is correct. Go to machine 2, set setup to automatically obtain the ip address, and set Service network restart.

Dhclient

Ifconfig checks whether ip addresses and Host 1 ip addresses are in the same CIDR block. If all the above configuration values are correct, it indicates that machine 1 has successfully assigned an ip address to machine 2.

8 then: cp/usr/lib/syslinux/pxelinux.0./uplooking

9 vim/etc/shcpd. conf in that large loop, find a line and write the following information

Filename "uplooking ";

10 cp/mnt/memory/isolinux /*./

11 mkdir pxelinux. cfg

12 mv isolinux. cfg pwelinux. cfg/default

13 chkconfig tftp on

14 service xinetd restart

15 service dhcpd restart

16. Step 7 is executed here. If there is no problem, it indicates that the above configuration is basically correct. You only need to restart host 2 and SET network startup in bios, you can.

17 if you are lucky, you will see the rhel5 installation interface. By now, you have successfully started the computer through the network,

Rhel5 cannot be installed yet, because at this time you have not told Machine 2 the exact location of the real rhel5 installation source. If you really want to install rhel5, run the following command:
Vim/etc/exports

Write the exact mount of the rhel5 installation source on machine 1 so far. Then, the service portmap restart Service tftp restart is basically solved here!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.