Virtual Machine Networking Configurations - Host Only Networking without Virtual DHCP

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi everyone in this video we again are going to discuss about virtual networking and virtualizations and specifically we are discussing about host only networking but this time we will be configuring these virtual machines without virtual dlcp and we will create a custom virtual switch so we know that host only networking is used to create a network that is completely contained within the host computer it means and we do actually repeat the same thing that for instance on our host machine we have different virtual machines for example we can have kali linux we can have windows 10 we can have windows server machine now we have different virtual machines and we want to create a virtual network of those virtual machines on our host and this kind of setup is useful when we want to have multiple computers on a single computer so in that case we can have much of multiple virtual machines so anyway in this case we are going to configure these uh virtual machines to be part of a host only network and we discussed that in that these virtual machines can be assigned ip addresses using some virtual dhcp so that dhcp will be assigning dynamically the ip addresses to all those virtual machines like this and we also discussed that in this vmware actually virtual switch is there which is used to connect these all virtual machines and by default in vmware workstation there are three virtual switches like this we have three virtual switches one of them is vm net zero second is vm net one and vm at eight and that vm net one is basically by default configured as a host only network and now uh in this actually so this is vmnet one which is by default by host only but in this video we will create a custom virtual network and we can give this vm number any number i mean we can give any number to this virtual network like 15 i have taken here and we will configure ip addresses manually so in this case it means we will not be using any virtual dhcp server we will create we will create a network of these virtual machines we call this vmnet unit 15 and then instead of using virtual dhcp we will be manually configuring ip addresses of these all virtual machines and in this case those virtual machines actually will not be able to communicate to the internet it means they will not be able to use internet services and in addition these virtual machines will not be able to communicate with the rest of the nodes like we can have maybe any any node for example at our home network for some these laptop smartphone or tablet so they all will have an ip address but they will not be able to communicate with these uh virtual machines these virtual machines will actually be uh stand alone network and and this is very much recommended when we are doing or we are learning some some like ethical hacking so we want that these virtual machines should be only within this zombie they should not be able to interact with the internet and even on the host so we we configure ip addresses manually to this so let's move to the actual demonstration in vmware now for demonstration of this host only network using manual ip addresses for those virtual machines i am using this vmware workstation and i have these two virtual machine one of them is kali linux and second one is windows 10 virtual machine so these two virtual machines i will create a virtual network vm net with any number and then we'll connect this virtual machine with that vm net and that will be private that will be host only and that will be contained within itself so for that we can create virtual network editor virtual network adapter virtual network switch sorry so in this case we need to go to menu bar and then click edit and then here we click on virtual network editor and in this virtual network editor you can see here we have some of the switches virtual switches our virtual network already created by default and if we click on change setting and yes so we can see we have these by default three virtual switches one of them is by default configured as a bridge second is host only and third is net so we can use host only here but today we will be creating a custom network so in this case to create a new network or new virtual switch we just go to add network and here we have different numbers so we can create any vm net here so you see here vmware 0 1 and 8 are not there because they have been defined by default so we can select maybe say for example we have met 13 functions so select the network to address that will be vm at 13 and we say okay and then you can see we are creating this vmware 13 and that is host only so this is host only but this time we are planning that we will not be using this dhcp server to assign ip addresses to our virtual machine so i am going to deselect it and check this box and then we are also going to uncheck this box that this says that connect a host virtual adapter to this network so we are going to uncheck this one this as well because we want our network to be self-contained and this should not interfere any other network for security for safety of our host so we say apply and after this setup we say okay so now we have created this vmware 13 that is host only type of network and say okay and then we are going to our virtual machines first kali and now we want to join this kali linux machine to our virtual network that is vmware 13 so for that we click on edit virtual machine setting and here on the network adapter i'm going to click on custom and the custom we will have all the numbers of possible vm nets and we just selected and we have created vmware 13 so i'm going to click vmn 13 that means now this kali machine will be part of this vm net 13 that is host only network press ok and then we go to windows 10 again same way click on edit virtual machine setting go to network adapter and click on custom and the custom we created virtual network that is being vmware 13 so i'm going to click on vmf 13 so now this windows 10 is also part of vm net 13 that is host only network now turn on these machines for example for this power on this kali linux machine and also power on this windows 10 machine so it will take some some time for those machines to boot meanwhile i'm going to again emphasize that in this host only network we are not using virtual dxep we will be manually assigning ip addresses to the to the members of this virtual network to those virtual machines now it will take some time for these virtual machines and this is important and this is really useful when we are learning some client-server technology or we are learning some ethical hacking where one of the machine will be our attacker and the second machine will be our victim our target machine so for all these lab work these lab sessions when we are working ethical hacking our client server things for example we want to learn about active directory in windows server so one of the virtual machines can be windows server one of the virtual machine can be simple windows any windows so for learning purpose is really useful when we don't have multiple computers multiple physical computers we can create virtual computers on a single our host computer and then we can play or we can create the networks and we can learn everything so our kali machine is ready just we have to give the username and password so kalikali is a username and password and i i'll put the link to download the virtual machines for kali linux in the description section and the same way we have windows 10 but it's still still booting but in this meanwhile we can see we can see the ip address for this virtual machine for this i mean for this kali for this i'm going to click on this terminal emulator and here we will use a command that is i f config and this command will give us the ip address for uh the network adapter virtual network adapter for this kali and you can see this e t h0 this ethernet zero the eth0 is the network interface card and this network interface card has not been assigned any ipad test because we didn't use any dhcp here so we will be manually configuring the ip address for this kali linux and for that we have a command that is uh so we should be administered as a super user so sudo and then we have the command if config and then we specify the interface where we want to assign the ip address so that is 0 and then this is the ipad switch for example we can say 1.1 1.1.1 dot one for instance and then the subnet mask can be two five five dot two five so this is just only for learning that we are going to specify the ip address for this sorry we also need the net mask keyword here so this is the complete command by which we can configure ip address on a kali linux machine so with this command this this is asking for the password for kali machines i have given the password and now this has been accepted and this time hopefully if we run ifconfig command again then this question will show us the ip address which we just configured so you can see here now we have this ip address which we just configured and in the same way we can assign ip address manually to this windows so for that first we want to verify whether this machine already has got some ipa address or not so for that we are going to command prompt of this windows virtual machine and in this command prompt if we are in windows we have ipconfig command and by using this ip config command we can see there is no ipa address and this ipad this is actually known as apipa so that is uh automatically generated automatically assigned by the windows machine that will be that will not be used for the networking i mean this will not be able to route the traffic so in this case to assign the ip address manually to this windows machine we will go to this open network and internet settings and then we can go for example to ethernet and then change virtual adapter options here and here this is the network adapter we are going to properties and in this properties we want to configure ipv4 address so i just click ipv4 and then go to properties and here instead of opt in an ip address automatically i'm going to select use the following ip address in this case for example so ip address of both of the virtual machines should be on the same subnet so we are going to select 1.1.1.2 ipad is for this virtual machine and the subnet mask was 255.255.0 and that's it so we assign ip address to this windows machine as well now both of the virtual machines has got an ip address and now for this windows machine let us verify that we have assigned an ip address to this windows machine for that again we use ip config command and here you can see this windows has got an ipad as that is 1.1.1.2 now once we have configured the ip address for windows 10 and for kali linux we can check the connectivity in between these two virtual machines using ping command so for that i'm going to kali linux machine and here again using terminal so in the terminal we use pin command and in the ping functions i'm giving the ip address of this windows 10 that is 1.1.1.2 and we press enter and you can see we are receiving and the response from this virtual machine that is windows 10 in the same way if we go to windows 10 and from here if we ping our kali linux machine the ipad is for that kali is 1.1.1.1 and press enter so you can see we are getting reply from kali linux machine as well it means now these two virtual machines are connected with each other using host only so they have created a virtual network of their own now we can for example for some learning purpose we can use one of the machines as the maybe client second machine as a server for any purpose but now we have these two virtual machines connected with a private network of its own one of the machine has ip address of 1.1.1.1 and second has an ip address of 1.1.1.2 so this ip addresses for just for for example just to demonstrate this thing you can use any ip address for this thank you thank you very much for your time i hope to see you in some other video thank you
Info
Channel: GD Networking Newbie
Views: 147
Rating: 5 out of 5
Keywords: Host-only, VMware workstation pro, bridged networking, NAT, virtual machine, VMware Workstation, bridged connection, virtual network adapter, Network address translation, virtual dhcp, three modes of connections, vNICs, Comptia, Security+, Cisco security, gd networking newbie, vmware networking tutorial, host only network, virtual machines, vmware workstation network configuration
Id: ckqiknxfC6U
Channel Id: undefined
Length: 14min 51sec (891 seconds)
Published: Thu Jul 15 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.