Kali Linux is a powerful and widely-used operating system for penetration testing and ethical hacking. Setting up a static IP address in Kali Linux is a crucial step for maintaining a stable and predictable network connection. In this guide, we’ll walk you through the process of configuring a static IP address on your Kali Linux system.
Steps to Setup a Static IP Address in Kali Linux
I need you to open the Terminal and execute the below command to get the IP address and the default gateway of your router.
1. In the Terminal execute ip r and press enter.
The default gateway of my router is 192.168.0.1 and the IP address is 192.168.0.105 which is located in front of scop link scr.
In case if you are not satisfied, you have executed the ifconfig command in Terminal, your IP address will be in front of inet.
2. For the next step, right-click on the wired connect in the menu at the top right corner and choose Edit connection.
Choose ethernet, followed by wired connection1.
3. Once you are in the network connection settings, go to the iPv4 Settings.
In front of the method> change the IP from Automatically to manual.
Now click on Add, type your IP address> followed by netmask and then the default gateway.
Netmask refers to the subnet mask.
Once everything is good to go, you have to click on save to apply the changes.
4. Now go ahead and restart the Kali Linux, then open the terminal and check the IP address by typing the ifconfig.
In my case, the changes has been applied.
Congratulations! You have successfully configured a static IP address on your Kali Linux system. This step is essential for maintaining a consistent and reliable network connection, especially in penetration testing scenarios.