Kali设置DNS、双网卡配置

设置DNS

vim /etc/resolv.conf
nameserver XX.XX.XX.XX

 

双网卡配置

vim /etc/network/interfaces

auto eth0
iface eth0 inet static
address 192.168.1.160
netmask 255.255.255.0

auto eth1
iface eth1 inet static
address 192.168.2.20
netmask 255.255.255.0
gateway 192.168.2.1

//保存后
service networking  restart     
ifconfig
reboot

 

你可能感兴趣的:(Kali)