Tuesday, December 30, 2014

Set static IP address Kali

Sometimes you need to configure your Kali Linux virtual machine with static IP address:

1. Go to /etc/network

2. nano interfaces

Now you will find the following text in the file:

#The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp


3. Because this is temporary and will comment the dhcp part and set the static IP address:

# The primary network interface
allow-hotplug eth0
#iface eth0 inet dhcp

# Temp Config
iface eth0 inet static
address 192.168.16.14
netmask 255.255.255.0
gateway 192.168.16.1
network 192.168.16.0
broadcast 192.168.16.255

Notice I put in read where I set the difference and type the new ip address I want.

4. Lets restart the service:

service networking restart

5. Check the new IP address with ifconfig command.

Do you want to learn more about security and how to test your network security, please go to: http://www.thehost1.com/





No comments:

Post a Comment