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
This article will show steps to configure the IP address to CentOS VM. We presume a DHCP server is running on the LAN.
Supplies
A VM with CentOS 7 installed on a Personal Computer/Laptop with access to networking services such as DHCP
Changes to Configuration File
In this step, we will perform the following:
- Check the configuration file in the path "/etc/sysconfig/network-scripts"
- Take a backup of the configuration file before we edit and save changes
- Edit the configuration file to fetch the IP V4 address from DHCP Server on LAN. Disable all the lines that refer to IP V6
- Check the status of the "NetworkManager" Service
- Stop & Disable the "NetworkManager" Service
- Check the status of the "network" Service
- Restart the "network" service for changes to take effect
Note the IP V4 Address
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
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
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.