我可以从新访客访问的唯一内容是网络内的资源.尝试访问任何其他网络资源(包括通过网关的资源)会导致100%的数据包丢失到目标.
来宾通过桥接器连接,使用eth2访问网络.
主机网络按预期工作,另一个(当前只有一个)guest虚拟机的网络也可以通过同一个网桥连接.关闭工作客户并不能解决问题.
两位客人都通过DHCP获取网络详细信息.
在guest虚拟机的虚拟接口上从主机运行tcpdump会显示guest虚拟机尝试与外部通信,并且仅从主机和网关获取响应.
主办
有问题的访客目前通过vnet0连接.
# ip a1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNowN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valID_lft forever preferred_lft forever2: eth0: <broADCAST,MulTICAST> mtu 1500 qdisc noop state DOWN qlen 1000 link/ether 00:1e:4f:34:dc:79 brd ff:ff:ff:ff:ff:ff3: eth1: <broADCAST,MulTICAST> mtu 1500 qdisc noop state DOWN qlen 1000 link/ether 00:1e:4f:34:dc:7b brd ff:ff:ff:ff:ff:ff4: eth2: <broADCAST,MulTICAST,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UP qlen 1000 link/ether 00:15:17:6a:fb:ee brd ff:ff:ff:ff:ff:ff13: br0: <broADCAST,LOWER_UP> mtu 1500 qdisc noqueue state UP link/ether 00:15:17:6a:fb:ee brd ff:ff:ff:ff:ff:ff inet 192.168.0.10/24 brd 192.168.0.255 scope global br0 inet6 fe80::215:17ff:fe6a:fbee/64 scope link valID_lft forever preferred_lft forever24: vnet0: <broADCAST,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UNKNowN qlen 500 link/ether fe:54:00:fc:0f:07 brd ff:ff:ff:ff:ff:ff inet6 fe80::fc54:ff:fefc:f07/64 scope link valID_lft forever preferred_lft forever25: vnet1: <broADCAST,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UNKNowN qlen 500 link/ether fe:54:00:89:8e:17 brd ff:ff:ff:ff:ff:ff inet6 fe80::fc54:ff:fe89:8e17/64 scope link valID_lft forever preferred_lft forever# ip routedefault via 192.168.0.202 dev br0192.168.0.0/24 dev br0 proto kernel scope link src 192.168.0.10# cat /etc/network/interfacesauto loiface lo inet loopbackauto br0iface br0 inet dhcp brIDge_ports eth2 brIDge_stp off brIDge_maxwait 0 brIDge_fd 0# brctl showbrIDge name brIDge ID STP enabled interfacesbr0 8000.0015176afbee no eth2 vnet0 vnet1
非工作客人
请注意,不工作的guest虚拟机使用busyBox ip.
# ip a1: lo: <LOOPBACK,LOWER_UP> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valID_lft forever preferred_lft forever2: eth0: <broADCAST,LOWER_UP> mtu 1500 qdisk pfifo_fast qlen 1000 link/ether 52:54:00:fc:0f:07 brd ff:ff:ff:ff:ff:ff inet 192.168.0.27/24 scope global eth0 inet6 fe80::5054:ff:fefc:f07/64 scope link valID_lft forever preferred_lft forever# ip routedefault via 192.168.0.202 dev eth0192.168.0.0/24 dev eth0 src 192.168.0.27
工作嘉宾
# ip a1: lo: <LOOPBACK,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 52:54:00:89:8e:17 brd ff:ff:ff:ff:ff:ff inet 192.168.0.12/24 brd 192.168.0.255 scope global eth0 inet6 fe80::5054:ff:fe89:8e17/64 scope link valID_lft forever preferred_lft forever# ip routedefault via 192.168.0.202 dev eth0192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.12
主持人和客人都经营着Debian Wheezy.
我没有看到发布的详细信息中存在任何错误配置,特别是考虑到最近安装其他KVM来宾的完全相同的设置方法(并且即使现在也继续工作).可能是导致此问题的原因,我该如何解决?
解决方法 用于KVM虚拟机的桥上的 STP should be enabled.在/ etc / network / interfaces文件中修复此问题:
brIDge_stp on
在运行时启用它而不重新启动网络服务:
# brctl stp br0 on总结
以上是内存溢出为你收集整理的linux – 新的KVM来宾无法访问外部局域网全部内容,希望文章能够帮你解决linux – 新的KVM来宾无法访问外部局域网所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)