门头沟手机网站建设我们不是做网站的
- 作者: 五速梦信息网
- 时间: 2026年04月20日 10:26
当前位置: 首页 > news >正文
门头沟手机网站建设,我们不是做网站的,wordpress移动端底部添加菜单,网页设计要学所有软件吗网卡的7种bond模式 一、bond模式 Mode0(balance-rr) 表示负载分担round-robin#xff0c;和交换机的聚合强制不协商的方式配合 Mode1(active-backup) 表示主备模式#xff0c;只有一块网卡是active,另外一块是备的standby#xff0c;这时如果交换机配的是捆绑#xff0c…网卡的7种bond模式 一、bond模式 Mode0(balance-rr) 表示负载分担round-robin和交换机的聚合强制不协商的方式配合 Mode1(active-backup) 表示主备模式只有一块网卡是active,另外一块是备的standby这时如果交换机配的是捆绑将不能正常工作因为交换机往两块网卡发包有一半包是丢弃的 Mode2(balance-xor) 表示XOR Hash负载分担和交换机的聚合强制不协商方式配合。需要xmit_hash_policy Mode3(broadcast) 表示所有包从所有interface发出这个不均衡只有冗余机制…和交换机的聚合强制不协商方式配合 Mode4(802.3ad) 表示支持802.3ad协议和交换机的聚合LACP方式配合需要xmit_hash_policy Mode5(balance-tlb) 是根据每个slave的负载情况选择slave进行发送接收时使用当前轮到的slave Mode6(balance-alb) 在5的tlb基础上增加了rlb 模式策略特点负载均衡交换机配置bond0balance-rrRound-robin policy 平衡轮询策略依次传输即第一次包走eth0,下一个包走eth1…一直循环下去直到最后一个传输完毕是静态聚合bond1(active-backup)Active-backup policy 主-备份策略只有一个端口处于活动状态当一个宕掉后另一个马上状态由备变为主mac地址唯一否否bond2Banlance-xorXOR policy 平衡策略基于指定的HASH策略传输数据包是静态聚合bond3broadcastbroadcast 广播策略每个slave接口上传输每个数据包否静态聚合bond4802.3adIEEE 802.3ad Dynamic link aggregation (IEEE 802.3ad 动态链接聚合)创建一个聚合组他们共享相同的速率和双工设定根据802.3ad规范将多个slave工作在同一个激活的聚合体下是支持IEEE 802.3ad动态聚合bond5balance-tlbAdaptive transmit load balancing 适配器传输负载均衡根据每个slave的负责情况选择salve进行发送接收时使用当前轮到的slave是否bond6balance-albAdaptive load balancing 适配器适应性负载均衡先把eth0流量占满再占eth1…ethX。该模式包含了balance-tlb模式同时加上针对IPV4流量的接受负载均衡reveive load balance rlb是否 二、交换机设置 mode 1、5、6不需要交换机设置 mode 0、2、3需要交换机设置静态聚合mode 4需要交换机支持802.3ad 三、网卡配置文件 2个物理网口分别是eth0,eth1 绑定后的虚拟口是bond0 服务器IP是192.168.0.100 1修改eth0配置文件 vim /etc/sysconfig/network-scripts/ifcfg-eth0DEVICEeth0BOOTPROTOnoneMASTERbond0SLAVEyesONBOOTyes2修改eth1配置文件 vim /etc/sysconfig/network-scripts/ifcfg-eth1DEVICEeth1BOOTPROTOnoneMASTERbond0SLAVEyesONBOOTyes3修改bond0配置文件 vim /etc/sysconfig/network-scripts/ifcfg-bond0DEVICEbond0BOOTPROTOstaticIPADDR192.168.0.100NETMASK255.255.255.0ONBOOTyes4修改bonding配置文件 CentOS6追加写/etc/modprobe.d/dist.confCentOS7新建写/etc/modprobe.d/bonding.conf alias bond0 bonding options bond0 miimon100 mode65加载bonding模块 modprobe bonding确认模块是否加载成功 lsmod |grep bonding6重启网络 service network restart查看bond cat /proc/net/bonding/bond0四、设置多个bond 1多个bond口的模式设成相同 alias bond0 bonding alias bond1 bonding options bonding max_bonds2 miimon100 mode62不同的bond口mode设成不一样 alias bond0 bonding options bond0 miimon100 mode1 install bond1 /sbin/modprobe bonding -o bond1 miimon100 mode0 miimon监视网络链接的频度单位是毫秒我们设置的是100毫秒 max_bonds配置的bond口个数 modebond模式在一般的实际应用中0和1用的比较多 官方介绍 mode0 (Balance Round Robin) per packetmode1 (Active backup)mode2 (Balance XOR)mode3 (Broadcast)mode4 (802.3ad)mode5 (Balance TLB)mode6 (Balance ALB) Modes of bonding : RHEL bonding supports 7 possible “modes” for bonded interfaces. These modes determine the way in which traffic sent out of the bonded interface is actually dispersed over the real interfaces. Modes 0, 1, and 2 are by far the most commonly used among them. Mode 0 (balance-rr) This mode transmits packets in a sequential order from the first available slave through the last. If two real interfaces are slaves in the bond and two packets arrive destined out of the bonded interface the first will be transmitted on the first slave and the second frame will be transmitted on the second slave. The third packet will be sent on the first and so on. This provides load balancing and fault tolerance.Mode 1 (active-backup) Mode 1 places one of the interfaces into a backup state and will only make it active if the link is lost by the active interface. Only one slave in the bond is active at an instance of time. A different slave becomes active only when the active slave fails. This mode provides fault tolerance.Mode 2 (balance-xor) Transmits based on XOR formula. (Source MAC address is XOR’d with destination MAC address) modula slave count. This selects the same slave for each destination MAC address and provides load balancing and fault tolerance.Mode 3 (broadcast) The broadcast mode transmits everything on all slave interfaces. This mode is least used (only for a specific purpose) and provides only fault tolerance.Mode 4 (802.3ad) The 802.3ad mode is known as Dynamic Link Aggregation mode. It creates aggregation groups that share the same speed and duplex settings. This mode requires a switch that supports IEEE 802.3ad Dynamic link. Slave selection for outgoing traffic is done according to the transmit hash policy, which may be changed from the default simple XOR policy via the xmit_hash_policy option. Note that not all transmit policies may be 802.3ad compliant, particularly in regards to the packet mis-ordering requirements of section 43.2.4 of the 802.3ad standard. Differing peer implementations will have varying tolerances for noncompliance.Mode 5 (balance-tlb) This is called as Adaptive transmit load balancing. The outgoing traffic is distributed according to the current load and queue on each slave interface. Incoming traffic is received by the current slave.Mode 6 (balance-alb) This is Adaptive load balancing mode. This includes balance-tlb receive load balancing (rlb) for IPV4 traffic. The receive load balancing is achieved by ARP negotiation. The bonding driver intercepts the ARP Replies sent by the server on their way out and overwrites the src hw address with the unique hw address of one of the slaves in the bond such that different clients use different hw addresses for the server. 参考链接 https://www.cnblogs.com/lcword/p/5914089.html https://www.cloudibee.com/network-bonding-modes/
- 上一篇: 门户站模板一键生成网站
- 下一篇: 门源网站建设公司开发板和单片机的区别
相关文章
-
门户站模板一键生成网站
门户站模板一键生成网站
- 技术栈
- 2026年04月20日
-
门户型网站怎么建设做网站分为哪些功能的网站
门户型网站怎么建设做网站分为哪些功能的网站
- 技术栈
- 2026年04月20日
-
门户网站做等保需要备案哪些wordpress 内存要求
门户网站做等保需要备案哪些wordpress 内存要求
- 技术栈
- 2026年04月20日
-
门源网站建设公司开发板和单片机的区别
门源网站建设公司开发板和单片机的区别
- 技术栈
- 2026年04月20日
-
蒙古文网站建设photoshop网页版
蒙古文网站建设photoshop网页版
- 技术栈
- 2026年04月20日
-
蒙古文网站建设工作计划保山网站建设
蒙古文网站建设工作计划保山网站建设
- 技术栈
- 2026年04月20日
