Lab Environment:
RHEL6.5 version, Windows7 system each one
RHEL6.5 version of IP address: 192.168.100.222
Some of the commands used in this experiment are:
CD Switch Directory
RPM Add/Remove Programs feature
Cat Viewing files
CP Replication
Vim Edit File
Service Start/Close a program
---------------------------------procedure----------------------------------------
First, check whether the optical drive has been mounted in the MNT directory.
Second, install DHCP.
Third, to the etc of the DHCP directory to view the files we need.
Iv. View the contents of the file dhcpd.conf.
V. Copying files.
Vi. Modify the contents of the dhcpd.conf file.
After the modification is complete, the ESC key is returned to command mode and entered: wq! Add enter to save and exit.
Seven, start DHCP, and turn off the firewall.
The DHCP service we need to build on Rhel is done here.
Below we open the spare Windows7 system to experiment to see if we can get the IP address automatically.
Eight, first we need to set up automatic acquisition of IP address.
Nine. Open a command prompt and enter ipconfig/release to release the IP address.
X. Enter ipconfig/renew to get the IP address.
Here we find some errors, originally the IP address segment we set up in Rhel is the address of 192.168.100.150 to 192.168.100.160 segment. But our IP address here is the IP address of 192.168.162.128. We are going to solve the problem below.
xi. resolves an issue with an address segment error.
When the resolution is complete, we will then enter the command prompt to release the IP and obtain the IP automatically. If the IP acquired automatically is 192.168.100.150 to 192.168.100.160, the experiment is complete.
12. Get the IP address
The experiment is complete.
We build DHCP services in Rhel in order to enable Windows systems to obtain IP addresses automatically.
Build DHCP service in Rhel to enable Windows system to obtain IP address automatically