Configuring IP V4 Address to CenOS 7 VM Via DHCP - Part 03

by AmruthKumarSala in Circuits > Software

9 Views, 0 Favorites, 0 Comments

Configuring IP V4 Address to CenOS 7 VM Via DHCP - Part 03

Slide1.PNG

This article will show steps to configure the IP address to CentOS VM. We presume a DHCP server is running on the LAN.

Supplies

image-blog-openlogic-centos7-support.png

A VM with CentOS 7 installed on a Personal Computer/Laptop with access to networking services such as DHCP

Changes to Configuration File

Slide3.PNG
Slide4.PNG
Slide5.PNG
Slide6.PNG
Slide7.PNG
Slide8.PNG

In this step, we will perform the following:

  1. Check the configuration file in the path "/etc/sysconfig/network-scripts"
  2. Take a backup of the configuration file before we edit and save changes
  3. Edit the configuration file to fetch the IP V4 address from DHCP Server on LAN. Disable all the lines that refer to IP V6
  4. Check the status of the "NetworkManager" Service
  5. Stop & Disable the "NetworkManager" Service
  6. Check the status of the "network" Service
  7. Restart the "network" service for changes to take effect

Note the IP V4 Address

Slide9.PNG
Slide10.PNG

To connect the VM console via PuTTY, we would like to understand the IP V4 address of the VM. Please take the necessary help from the screenshots and execute commands to fetch the IP address

Connecting the VM to PuTTY

Slide11.PNG
01-1-OS1DWS-InitialNetworkConfiguration.png

Enter the IP address and save the configuration to PuTTY.

Attempt to connect to the VM. Provide the "root" user credentials to successfully log in to the VM.

Conclusion

360_F_144253410_sWxnBXVAPdq1u7Cy1IfbIDT4sazgoZgX.jpg

Now that we have access to the VM via PuTTY, we will learn to configure the machine to handle different networking services such as Web Server, Database Server, etc.