how to set static ip using command line for kali linux

发布时间 2023-03-25 11:01:35作者: profesor

How to configure Kali Linux to use a static IP address

https://miloserdov.org/?p=542 

 

sudo vim /etc/network/interfaces

 

 

auto eth0
iface eth0 inet static
address 10.10.0.12/24
gateway 10.10.0.1

 

sudo systemctl restart networking.service

 

ip a

 

sudo rm /etc/resolv.conf

 

sudo vim /etc/resolv.conf

 

nameserver 10.10.1.1

nameserver 8.8.8.8