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
发布了55 篇原创文章 · 获赞 1 · 访问量 2707

猜你喜欢

转载自blog.csdn.net/prettyX/article/details/103974191