Skip to main content

3 VM - Ping Connection

 3 VM - Ping Connection

Youtube



In this project, we will install 3 virtual machines to communicate with each other. We already installed the Kali machine so we just need to install the other 2. 


If you missed the installation of Kali, follow this blog. 

https://toukeevang.blogspot.com/2023/10/virtual-machine-set-up.html 


Installation


Windows and Cloning the Kali machine. 


Windows


Ensure you have the minimum hardware requirement before starting or the lab will utilize many of your hardware resources.


https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn303418(v=ws.11) 


Go to the Windows website, download the Windows Server 2012 R2, and follow the instructions.


https://www.microsoft.com/en-us/evalcenter/download-windows-server-2012-r2 





Once you have downloaded the ISO open VirtualBox and click “New”



Give your virtual machine a name and search for the ISO Image where you download the file.


  1. Name

  2. Folder - ( Location where you want to store your virtual machines )

  3. ISO Image - ( Where you download the file )

  4. CHECK ( “ Skip Unattended Installation “ )

  5. Next 



Change your setting for your:

  1. CPU

  2. RAM

  3. Storage

  4. Next


The setting should be minimum specification or higher. Again here are the minimum requirements.


https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn303418(v=ws.11)




Once you have configured your settings, verify these settings are correct and can support the operating system.

  1. Finish



Launch your Windows Server 2012 virtual machine and follow the steps to complete installation. 



Kail


To make a clone virtual machine, right-click on the already installed Kali virtual machine and choose “ Clone “.



You will be prompted to:

  1. Rename your virtual machine

  2. Choose a virtual machine stored location

  3. MAC Address Policy: Choose “ Generate new MAC address for all network adapters “


*****  IMPORTANT  *****

  1. The reason to generate a new MAC is to ensure you do not have the same MAC as the original Kali. 

  1. Next

  2. Full clone

  3. Current machine state

  4. Finish





Network Adapter Setup


At the top of VirtualBox under file, you will see a section called “ Tools “

  1. Click Tools

  2. On the right is the setting with three lines

  3. Click and choose “ Network “



  1. Under “ Nat Networks “

  2. Create “ Green + sign “

  3. Name the new network “ NatNetwork “ 

  4. General Options

    1. Name

    2. IPv4 “ Leave Default ip address “

    3. CHECK “ Enable DHCP “

  5. Apply


Now you have configured a separate network in NAT for any virtual machine using these adapters.



Changing Network Adaptor for the Virtual Machines


Choose your main Kali virtual machine and click settings.

  1. Click “ Setting “

  2. Left side “ Network “

  3. Adaptor 1

    1. Attached to: NAT Network

    2. Name: NatNetwork

    3. OK


Do the same for the clone virtual machine and the Windows Server.




Ping to make communication


You can start from any virtual machine you see fit but we have to get the IP address of each host device so we can communicate using the ping command. 


On your clone virtual machine open the terminal and type the following command.


> ip a


This command gathers the network device's information to output it to the terminal. Most important is getting the IP address to use with the ping command. 


Clone IP address: 10.0.2.20, your IP address will be different.




Follow the same steps for your main Kali machine. IP address 10.0.2.25, your IP address will be different.




Windows


Also the same process but we will search for the command prompt “cmd“.


On your Windows machine bottom left “ Start “ 

  1. Search for “ cmd “

  2. Open cmd and type

    1. ipconfig

Get the IP address ‘ IPv4 “ 10.0.2.15, your IP address will be different.




Your IP address will be different.


Kali: 10.0.2.25

Clone Kali: 10.0.2.20

Windows server: 10.0.2.15



From the Kali virtual machine try to ping the clone machine.


> ping -c3 10.0.2.20


  1. ping = the command to send ICMP packets to another node

  2. -c { 3 } = count of ICMP packets sent to another host. You can change how many packets are sent over before stopping. If you do not, in any Linux distro the ping continues to send an ICMP packet until you cancel the command using “ control + c “

  3. x.x.x.x  = This will be the IP address of the node




Ping clone machine to Kali.



Ping Windows Server Machine to Kali and Clone.

  1. In the command prompt enter the command

  2. ping { x.x.x.x }

  3. No need to use { -c3 } option as Windows stops after 3 pings





With Kali machine ping Windows computer. As you can see the Kali machine did not receive any acknowledged packets because by default Windows turned off the ICMP echo request. 



To turn on ICMP echo request on Windows. Go to start and follow directions.


  1. Start

  2. Search

  3. Firewall and Advance Security

  4. Inbound Rules

  5. File and Printer Sharing (Echo Request - ICMPv4-In)

  6. Right click

  7. Enable Rule



Now on any Kali machine, try to ping the Windows Server again and you should be able to communicate using the ping command.



Awesome job getting this far. Next, we are going to learn how to use Nmap to scan nodes in the network and learn options within the Nmap tool. 



Reference:

https://www.microsoft.com/en-us/evalcenter/download-windows-server-2012-r2


https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn303418(v=ws.11)


https://manage.accuwebhosting.com/knowledgebase/2609/How-to-Allow-Pingor-ICMP-Echo-Request-in-Windows-Firewall.html


https://kb.iu.edu/d/aopy


Comments

Popular posts from this blog

Linux Server Installation

Linux Server Installation Youtube In the lab, we are going to install a Linux Server on a virtual box. Go to the Linux site and download the ISO for installation. https://ubuntu.com/download/server Once you have downloaded the ISO, go to the virtual box and start a new virtual machine. Name your machine and choose the ISO you downloading for installation. Choose your RAM and CPU settings. Change your network to “ NAT NETWORK”. Launch your new machine and follow the installation. Choose the first option. Install Ubuntu Server. Once you finish installation it will restart. Make sure to remove the ISO disk so you do not go through the installation process again. You will be prompted to log in with the username and password you created during the installation.  This completes the Linux Server installation.  

Virtual Machine Set-up

  Virtual Machine Set-Up with Kali Linux To start working in a test environment, we will need to set up a virtual machine. This requires some minimum specification of hardware to run this virtual machine. Please reference the virtual box for more information.  https://www.virtualbox.org/wiki/End-user_documentation   Once you have the minimum hardware requirements we can move on to the next steps. Virtual Box installation Kali installation Virtual Box Installation: In the browser go to https://www.virtualbox.org/ to download the file for your operation system. If you have Windows, download the Windows hosts, and if you have macOS download macOS. You can install the application once you have the file downloaded to your host system.  Run the VirtualBox installer and follow the default installation Once installing is complete you can search for the application in your system and open the application. Once VirtualBox is open it should look something like this. Downloadin...