2020.2 Kali Linux最新版 虚拟机桥接网络 配置静态IP地址


2020.2 Kali Linux最新版虚拟机桥接配置静态IP地址

系统版本:Linux kali 5.5.0-kali2-amd64 #1 SMP Debian 5.5.17-1kali1 (2020-04-21) x86_64 GNU/Linux

虚拟机:Parallels Desktop 15.1.3

修改静态IP地址

进入/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 interface 
auto Lo
face lo inet Loopback
auto ethe
iface etho inet static //配置eth0使用默认的静态地址
address 192.168.100.66 //设置eth0的IP地址
netmask 255.255.255.0 //配置eth0的子网掩码
gateway 192.168.100.1 //配置当前主机的默认网关

修改DNS地址

进入/etc/resolv.conf


nameserver可以配置多个DNS服务器,按照先后的顺序。

一旦前面的DNS服务器失效,系统将自动使用后面的DNS服务器。


重启网络

打开终端输入/etc/init.d/networking restart

配置成功


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM