linux – 具有桥接和绑定接口的不稳定性

linux – 具有桥接和绑定接口的不稳定性,第1张

概述我昨天发布了一个工作设置,其中包含几个用于虚拟机的桥接接口(KVM / libvirt). One of the bridged interface is just using eth3 as its ports while the second one (public traffic) is using an ethernet bonded interface. 该设置正在运行,但不是所有时间! 我昨天发布了一个工作设置,其中包含几个用于虚拟机的桥接接口(KVM / libvirt).

One of the brIDged interface is just using eth3 as its ports while the second one (public traffic) is using an ethernet bonded interface.

该设置正在运行,但不是所有时间!我可以从虚拟机开始下载,然后停止并冻结!

所以我不知道我的桥接参数是否正确,你能检查下面的配置吗?

iface eth3 inet manualauto bond0iface bond0 inet manual    slaves eth1 eth2    pre-up ip link set bond0 up    down ip link set bond0 downauto br0iface br0 inet static    address 10.160.0.7    netmask 255.255.255.128    brIDge_ports eth3    brIDge_fd 9    brIDge_hello 2    brIDge_maxage 12    brIDge_stp onauto br0:1iface br0:1 inet static    address 10.160.0.9    netmask 255.255.255.255auto br0:2iface br0:2 inet static    address 10.160.0.10    netmask 255.255.255.255auto br1iface br1 inet static    address 217.4.40.242    netmask 255.255.255.240    gateway 217.4.40.241    pre-up /etc/network/firewall start    brIDge_ports bond0    brIDge_fd 9    brIDge_hello 2    brIDge_maxage 12    brIDge_stp onauto br1:1iface br1:1 inet static    address 217.4.40.252    netmask 255.255.255.255auto br1:2iface br1:2 inet static    address 217.4.40.253    netmask 255.255.255.255

是的,它有时也会在主持人上谈到火星人:

kernel: [249146.055172] martian source 10.160.0.17 from 10.160.0.10,on dev vnet2kernel: [249146.073122] ll header: ff:ff:ff:ff:ff:ff:54:52:00:76:c3:5c:08:06
解决方法 听起来像是我面临的一个问题.
这是KVM的桥接绑定配置的示例WORKING配置,但它同时只使用一个接口.也许这取决于开关(使用的是Planet GSD-802S和HP V1910).我在两个地方(使用不同的硬件和交换机)使用它.

cat /etc/modprobe.d/bonding.conf
别名bond0 bonding
选项绑定模式= 802.3ad miimon = 100 downdelay = 200 updelay = 200 ad_select = 0 lacp_rate = fast

cat / etc / network / interfaces
汽车公司
iface lo inet loopback

绑定的网络接口

汽车债券
iface bond0 inet manual
奴隶奴隶没有
绑定模式802.3ad
bond-miimon 100
bond_lacp_rate很快
bond_ad_select 0
up / sbin / ifenslave bond0 eth1 eth2
down / sbin / ifenslave bond0 -d eth1 eth2

奴役所有物理接口

卡#1 NvIDia千兆板载

汽车eth1
iface eth1 inet manual
债券 – 主债券

卡#2英特尔PRO / 1000 F服务器适配器 – FIBER

自动eth2
iface eth2 inet手册
债券 – 主债券

桥接到LAN用于虚拟网络KVM

自动br0
iface br0 inet static
地址10.0.0.254
网络掩码255.255.255.0
网络10.0.0.0
广播10.0.0.255
网关10.0.0.1
dns-nameservers 10.0.0.1 8.8.8.8
brIDge-ports bond0
brIDge-fd 9
桥你好2
桥梁最大12
桥 – 关

卡#3 – 互联网调制解调器

自动eth0
iface eth0 inet manual

虚拟网络KVM桥 – 调制解调器

iface br1 inet manualbrIDge_ports eth0brIDge_stp关闭brIDge_fd 0brIDge_maxwait 0指标1自动br1

总结

以上是内存溢出为你收集整理的linux – 具有桥接和绑定接口的不稳定性全部内容,希望文章能够帮你解决linux – 具有桥接和绑定接口的不稳定性所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/1035185.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存