kali 2.0 网络配置

来源:互联网 发布:如何下载淘宝红包 编辑:程序博客网 时间:2024/06/15 04:06

1.配置/etc/network/interfaces
vi /etc/network/interfaces
设置为如下

# This file describes the network interfaces available on your system# and how to activate them. For more information, see interfaces(5).source /etc/network/interfaces.d/*# The loopback network interfaceauto loiface lo inet loopbackauto eth0iface eth0 inet staticaddress 192.168.0.102netmask 255.255.255.0gateway 192.168.0.1

2配置DNS

vi /etc/resolv.conf
修改为
domain
nameserver 202.101.226.69
nameserver 202.101.224.69

3重启服务
执行/etc/init.d/networking restart
重启服务就能上网了

1 0
原创粉丝点击