sudo vim /etc/network/interfaces
#Static IP address
auto wlan0
iface eth0 inet static
address 10.10.1.10
netmask 255.255.255.0
gateway 10.10.1.1
Here wlan0 is our wireless interface. We can check our interfaces using ip addr command.
The address is our desired static IP address and netmask is 255.255.255.0 will be suitable for most of the tasks, gateway is the IP address of our router. Router’s IP address may vary by its manufacturer.
For the changes to take effect, reboot our system by using following command:
sudo reboot
https://www.kalilinux.in/2020/08/configure-static-ip-address-kali-linux.html
标签:ip,Configuring,Linux,Kali,address,command,Static,IP,our From: https://www.cnblogs.com/profesor/p/17310888.html