Cybersecurity Demystify How to set a static Ip address in Kali Linux

How to set a static Ip address in Kali Linux

First, find out your dynamic Ip address assigned by the DHCP. To do this, open the terminal, type ifconfig and press enter. This gives you the information as shown in the screenshot below. Note the eth0 detail.

Cybersecurity Demystify How to set a static Ip address in Kali Linux

To set a static IP address using GUI, click the application icon and start typing in the word “network”. Click on “Advanced Network Configuration

Cybersecurity Demystify How to set a static Ip address in Kali Linux

Click the ipv4 Setting tab. Change the Method from Automatic(DHCP) to Manual

Cybersecurity Demystify How to set a static Ip address in Kali Linux

Enter your IP address, Netmask, Gateway, and DNS Server as shown in the screenshot below. You can use the Ip address noted earlier or use a new Ip address. Click the Save button to save the changes.

Cybersecurity Demystify How to set a static Ip address in Kali Linux

Open your terminal, type ifconfig and press enter. Take note of your eth0 detail.

Cybersecurity Demystify How to set a static Ip address in Kali Linux

Set a static IP address in Kali Linux using the terminal. We need to use the nano command to edit /etc/network/interfaces to do this. Open your terminal, type sudo nano /etc/network/interfaces and press enter. As shown in the screenshot below, edit the file with your IP address, gateway, and netmask.

Cybersecurity Demystify How to set a static Ip address in Kali Linux
Cybersecurity Demystify How to set a static Ip address in Kali Linux

A pop-up appears, asking you to authenticate to start ‘NetworkManager.service’. Enter your sudo password and click the Authenticate button.

Cybersecurity Demystify How to set a static Ip address in Kali Linux

Now type sudo systemctl restart networking.service and press enter to restart the service. Type ifconfig and press enter to confirm the changes.

About The Author

Help someone out! Share this post with those who might need it.
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
CHAT