kali设置静态ip

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、重启网卡服务

 

posted @ 2021-06-08 21:58  不许抖腿  阅读(1268)  评论(0编辑  收藏  举报