Ethical Hacking Journal Part 7: Use Static IP in Kali Linux

DISCLAIMER: The content of this post/blog is based on opinion on what I have learned and for educational purposes, therefore if there are any mistakes or recommendation for improvement leave a comment 🙂



In some exploiting tools where the tool creates a backdoor to a web server for Shell Access and a returning IP (Kali Linux IP) is needed for the Web Server and Kali to connect.

There might be a case where a Static IP is needed because if the Kali disconnects from a DHCP network and reconnects, it will get a new local IP address therefore the pentester should redo the exploitation with the new IP.

In this post I will show how to get a Static IP in a local network.

First change directory to /etc/network then edit the interfaces file in my case I use nano.

First, identify the network mask, network address and broadcast address of your network.

Comment the text below Dynamic IP and add below the settings needed for a static IP.

For the first two lines below Static IP leave it the same as above as these will initialize the settings for a static IP.

Then add address, then next to it add the IP address you want.

Then respectively add netmask, network and broadcast according from the information received previously.

Then run sudo systemctl restart networking.service

Restart the Kali Linux Virtual Machine, by doing these steps you should get the Static IP configured.

This solution is done by terminal but it is also possible through GUI.

Thanks.

Leave a Reply

Your email address will not be published. Required fields are marked *