Contents

Configure Metasploitable3

The problem

When booted out from the box. Metasploitable will not have certain network configuration met such as one network interface not appearing on ifconfig.

The goal

My goal is to demonstrate how to add network adapter and statically change the IP address so that it works with my cyber range.
First, I will do sudo nano /etc/network/interfaces
/images/modern_cyber_range22.png
Now, this is where all the magic happens. I’m going to add an eth1 for my additional adapter. To do this, I will add the following line

1
2
3
4
5
auto eth1
iface eth0 inet static
      address 192.168.40.254
      netmask 255.255.255.255
      gateway 192.168.40.1

/images/modern_cyber_range23.png
Save the file. Now, we’re going cat: /etc/network/interfaces Once we see that the changes reflect from the output. We can move on to the next time. The next thing we need to do is run this command: sudo ifconfig <adapter_name> up. For me, I’m going to do sudo ifconfig eth1 up.
After I do that, I am going to restart my VM. The final result should be look like this:
/images/modern_cyber_range24.png \

Bonus

We are going to configure our Linux so that it uses our static DNS server. To do this, we are going edit /etc/resolv.conf. We are going to add this following line: nameserver IP_DNS_SERVER. For me, it will be nameserver 192.168.40.2. Save the file and output it to make sure the changes are save.\

Now we are done with the configuration.