1、设置DNS
vim /etc/resolv.conf
插入:
nameserver 192.168.1.1
nameserver 114.114.114.114
nameserver 8.8.8.8
2、设置静态/动态上网ip
vi /etc/network/interfaces
设置为dhcp自动获取:
auto eth0
iface eth0 inet dhcp
设置静态配置:
auto eth0
iface eth0 inet static
address 192.168.0.7
netmask 255.255.255.0
gateway 192.168.0.1
转载请注明:Adminxe's Blog » 解决新版kali桥接上不去网