Kali Linux: Configuring Static IP in command line

发布时间 2023-04-12 19:05:55作者: profesor

 

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