0% found this document useful (0 votes)
50 views

Configure Static IP and Connect To Virtual Machine Through Putty

This document provides instructions for configuring a static IP address and connecting to a CentOS virtual machine using Putty. It involves setting the network adapter to bridged mode in VirtualBox, starting the VM, using nmtui to configure a static IP within the host network range, restarting the network service, verifying the IP, and connecting via Putty using the static IP.

Uploaded by

Akhilesh Mathur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views

Configure Static IP and Connect To Virtual Machine Through Putty

This document provides instructions for configuring a static IP address and connecting to a CentOS virtual machine using Putty. It involves setting the network adapter to bridged mode in VirtualBox, starting the VM, using nmtui to configure a static IP within the host network range, restarting the network service, verifying the IP, and connecting via Putty using the static IP.

Uploaded by

Akhilesh Mathur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Configure Static IP and connect to virtual machine through Putty

In this tutorial, we will learn how to connect to the virtual machine through a static IP.

1. Open Virtual Box


2. Right click the virtual machine and select "Settings"
3. Select Network and be sure that Network adapter attached to "Bridged Adapter"

4. Click "Ok"
5. Start the virtual machine
6. Open Terminal to configure a static IP for the CentOS virtual machine within you
network IP range, I will use my network IP range "192.168.1.x" , you may have other IP
range so you need to get the range from your computer.

- execute "nmtui"
- Click "Edit a connection"

- Select your NIC and click "Edit"


Note : use tab key to move between menu options
- Select "Manual" for IPv4 Configuration and Click on "Show"
- Type your IP address , Gateway and DNS as shown in the next image and don't
forget to replace IP,Gateway and DNS with yours if needed

- Click Ok
- Click Back
- Click Quit

7. Restart the network service


systemctl restart network
8. Execue "ip addr" to list your network information and you should see the configured ip
9. If you didn't find any information then be sure that the NIC is activated and you can
activate it by running
ifup nic

replace nic with your network card name


10. Open putty and put the ip , in our tutorial it's 192.168.1.5 and connect to the Virtual
machine

You might also like