Skip to 0 minutes and 5 secondsYou should now have the two VMs running on your desktop. Let's first start with some checks. The Kali VM has two virtual network interfaces. The first one is set to NAT and should be disconnected by default. By this interface the VM uses your computer network connection to connect to the internet. In some lab exercises you will need to connect Kali to the internet but in most labs you will use host-only connections. So leave it disconnected for now. The other interface is set to host-only, meaning that all traffic through this interface will only be visible to the other VMs running on your computer and it should be connected. Next we want to check the network configuration of your Linux.
Skip to 1 minute and 0 secondsThere are several ways to do that. We will use the ifconfig command to check and control the network interfaces. We can see the two network interfaces ETH0 and ETH1. Let's shut down the first one. This is the NAT.
Skip to 1 minute and 32 secondsAnd set up the IP address for the second interface, which is the host-only one. In some labs you will need to change the IP address of your Kali in order to move it to the subnet of your target. You can do that by simply entering ifconfig, the name of the interface you want to change and its IP address.
Skip to 2 minutes and 1 secondNext we need to configure the routing through this interface. Enter the command route add -net to network 192.168.5.0 with a mask of 255.255 255.0 to eth 1. Finally we check that everything is set correctly by entering ifconfig again. As we can see the first network interface eth0 is shut down, i.e. it's no longer in the list, and the IP for the ETH1 is set to 192.168.5.10. Now we check the routing it is set up - don't worry if some of this doesn't yet make much sense to you. We will dive into this in greater detail in later courses. For now we just need to get you up and running. With this our Kali machine is ready for the first exercise.
Skip to 3 minutes and 11 secondsRemember these checks as it is a good idea to run them at the beginning of each exercise.
Setting up your network
Before we start the actual work we need to check and, if required, configure the networking in our VMs.
Watch the video where you will find the commands to configure the basic networking in Linux. Remember these steps as it is a good idea to run them at the beginning of each exercise.
Note: If you are using the CUEHaliLight VM, your networking should be already set up for the exercise. Verify this by looking at the IP addresses of the network interfaces.
If this is not the case for some reason the following two commands should set you up for the lab:
ifconfig eth1 192.168.5.10 netmask 255.255.255.0
ip route add 192.168.5.0/24 dev eth1
© Coventry University. CC BY-NC 4.0