1、编辑/etc/network/interfaces 文件,添加以下几行:
auto eth0
iface eth0 inet static
address 1.1.1.2
netmask 255.255.255.0
gateway 1.1.1.3
2、配置dns文件,/etc/resolv.conf
3、重启网卡服务
kali设置静态ip
原文:https://www.cnblogs.com/mikiv/p/14864661.html