Kali报错 RTNETLINK answers: File exists

本来打算配置双网卡
VBox网卡eth0为NET模式,eth1为HOST-ONLY模式
好处:主机可以访问虚拟机,虚拟机相互访问且可联网
配置静态IP

vim /etc/network/interfaces

然后

auto lo
iface lo inet loopback

#eth0
auto eth0
iface eth0 inet static
address 10.0.2.5
netmask 255.255.255.0
gateway 10.0.2.2

#eth1
auto eth1
iface eth1 inet static
address 192.168.118.3
netmask 255.255.255.0

重启network

service networking restart 

然后出现
Job for networking.service failed because the control process exited with error code.
See “systemctl status networking.service” and “journalctl -xeu networking.service” for details.

解决

ip addr flush dev eth0
ip addr flush dev eth1
service networking restart

Over~
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_46119529/article/details/130660820
今日推荐