kali配置网络
实验环境:kali虚拟机,4G运行实验目的:配置kali网络实验步骤:1,调整虚拟网络适配器2,配置网卡┌──(root????kali)-[~]└─# vim /etc/network/interfaceskali网卡配置路径#auto lo动态IP分配iface loinet loopbackauto eth0网卡名称iface eth0 inet static表示使用静态
·
实验环境:kali虚拟机,4G运行
实验目的:配置kali网络
实验步骤:
1,调整虚拟网络适配器
2,配置网卡
┌──(root💀kali)-[~]
└─# vim /etc/network/interfaces kali网卡配置路径
#auto lo 动态IP分配
iface lo inet loopback
auto eth0 网卡名称
iface eth0 inet static 表示使用静态IP地址
address 192.168.22.137 静态IP地址
netmask 255.255.255.0 子网掩码
gateway 192.168.22.2 网关地址
3,DNS设置
┌──(root💀kali)-[~]
└─# vim /etc/resolv.conf kaliDNS配置路径
nameserver 223.5.5.5 设置自己喜欢使用的DNS的IP地址(其他DNS地址114.114.114.114)
4,重启网卡,查看是否生效
┌──(root💀kali)-[~]
└─# systemctl restart networking kali重启网卡命令
┌──(root💀kali)-[~]
└─# ifconfig eth0 查看IP地址是否生效 130 ⨯
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.22.137 netmask 255.255.255.0 broadcast 192.168.22.255
inet6 fe80::20c:29ff:fed2:2719 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:d2:27:19 txqueuelen 1000 (Ethernet)
RX packets 7957 bytes 5951038 (5.6 MiB)
RX errors 4 dropped 7 overruns 0 frame 0
TX packets 7996 bytes 827264 (807.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 18 base 0x2000
┌──(root💀kali)-[~]
└─# ping www.baidu.com ping百度测试网络是否正常
PING www.a.shifen.com (39.156.66.18) 56(84) bytes of data.
64 bytes from 39.156.66.18: icmp_seq=1 ttl=128 time=22.6 ms
64 bytes from 39.156.66.18: icmp_seq=2 ttl=128 time=20.6 ms
^C64 bytes from 39.156.66.18: icmp_seq=3 ttl=128 time=20.8 ms
--- www.a.shifen.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 20068ms
rtt min/avg/max/mdev = 20.583/21.339/22.632/0.918 ms
【至此,kali配置网络实验完成】
更多推荐
已为社区贡献14条内容
所有评论(0)