From the Kali desktop open a terminal window
Now type the below command
Add the below lines to the interfaces file after “iface lo inet loopback” and save it.
#The primary network interface
#iface eth0 inet eth0
Inface eth0 inet static
address [your IP]
netmask [your netmask]
broadcast [use 220.127.116.11 for a 192 address]
Gateway [your gateway]
Now back in the terminal window, input the below commands.
When you run the “ip a” command you should see your new IP settings.