kali linux 网络配置

ip配置:
vim /etc/network/interfaces
auto eth0
iface eth0 inet static ===>静态
iface eth0 inet dhcp ===>动态
address 192.168.0.133 
netmask 255.255.255.0 
gateway 192.168.0.1
 
dns配置:
 vim /etc/resolv.conf 
nameserver dns地址
 
 
service networking restrat
或 /etc/init.d/networking restart




posted @ 2019-11-14 16:51  一个毛豆  阅读(570)  评论(0编辑  收藏  举报