我正在尝试在 Debian 中安装和配置 KVM,如下所示本指南。当我配置后重新启动网络时,/etc/network/interfaces.d/br0
我的 wi-fi 连接会断开。我注意到,如果删除该/etc/network/interfaces.d/br0
文件然后重新启动网络,它会重新出现。
这里的/etc/network/interfaces.d/br0
配置:
## make sure all config related to eth0 deleted ##
auto br0
iface br0 inet static
address 192.168.2.86 ## set up/netmask/broadcast/gateway as per your setup
broadcast 192.168.2.255
netmask 255.255.255.0
gateway 192.168.2.1
bridge_ports wlp2s0 # replace eth0 with your actual interface name
bridge_stp off # disable Spanning Tree Protocol
bridge_waitport 0 # no delay before a port becomes available
bridge_fd 0 # no forwarding delay
和我的网络地址等:
ip a s
### OUTPUT:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: wlp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 40:a3:cc:8c:22:fb brd ff:ff:ff:ff:ff:ff
inet 192.168.2.86/24 brd 192.168.2.255 scope global dynamic wlp2s0
valid_lft 85503sec preferred_lft 85503sec
inet6 fe80::b6b:434f:6c9b:4b8c/64 scope link
valid_lft forever preferred_lft forever
#############################
ip route | grep default
### OUTPUT :
default via 192.168.2.1 dev wlp2s0 proto static metric 600
这是我的/etc/network/interfaces
文件:
cat /etc/network/interfaces
### OUTPUT :
# 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
iface lo inet loopback
此外,我还删除了/root/bridged.xml
指令中所说的创建内容,但如果我列出 KVM 的所有活动网络设置,它仍然显示:
sudo virsh net-list --all
### OUTPUT:
Name State Autostart Persistent
----------------------------------------------------------
br0 active yes yes
default inactive no yes
我不是网络等方面的专家,我尝试在互联网上寻找解决方案,但没有任何效果......是否有任何不匹配?任何关于我做错了什么的小“理论”将不胜感激!
预先感谢您的任何帮助!