当前位置:网站首页>bond模式配置
bond模式配置
2022-07-28 05:28:00 【花生味花生米】
前言
网卡bond是通过把多张网卡绑定为一个逻辑网卡,实现本地网卡的冗余,带宽扩容和负载均衡。在应用部署中是一种常用的技术,我们公司基本所有的项目相关服务器都做了bond,这里总结整理,以便待查。
bond模式
当linux系统上有多个单独网卡,又想充分利用这些网卡,同时对外提供一个统一的网络地址,以
使得增大网络的吞吐量,同时也提高网络的可用性,这时就需要bond来帮助我们解决这个问题。
linux中bond感觉有点带有bound和bind的意思,从字面意义上,就可以看出bond的作用是聚合
多个东西,组合成一个统一的东西使用。
1. 我们先看主备模式
主备模式下,Linux Bonding实现会将Bond的两个slave网口的MAC地址改为Bond的MAC地址,
而Bond的MAC地址是Bond创建启动后,主用slave网口的MAC地址。
2. 再看负载均衡模式
负载均衡模式下,Linux Bonding实现可以保持两个slave网口的MAC地址不变,Bond的MAC地
址是其中一个网卡的,Bond MAC地址的选择是根据Bond自己实现的一个算法来的,具体如何选
择还没有研究。
3.链路聚合是在两个设备间使用多个物理链路创建一个逻辑链路的功能。这种方式允许物理链路间
共享负载。
bond配置
1.添加网卡
2.配置第一块网卡

3.配置第二块网卡
4.配置bond0
5.在vim /etc/rc.d/rc.local 添加指定网卡
6.在vim /etc/resolv.conf 加入指定DNS
7.激活bond0![]()
8.测试结果
边栏推荐
猜你喜欢

Esxi community nvme driver update v1.1

shell脚本——编程条件语句(条件测试、if语句、case分支语句、echo用法、for循环、while循环)

DNS domain name resolution service

NAT和PAT的原理及配置

File operation in C language

Shell script - regular expression

技术分享 | 实战详解接口测试请求方式Get、post

How about air conduction Bluetooth headset? It's the most worthwhile air conduction headset to start with

MySQL master master

MOOC翁恺C语言第八周:指针与字符串:1.指针2.字符类型3.字符串4.字符串计算
随机推荐
Custom components -- styles
[learning notes] tool
Test interview questions collection (V) | automated testing and performance testing (with answers)
Servlet
Use powercli to create a custom esxi ISO image
QGraphicsView提升为QChartView
KVM热迁移
手把手教你三步完成测试监控系统搭建
技术分享 | 实战详解接口测试请求方式Get、post
Pku-2739-sum of constructive prime numbers
Wechat applet custom compilation mode
Array to linked list
Hdu-5783 divide the sequence (greedy water question)
Understanding of C language EOF
技术分享 | 如何模拟真实使用场景?mock 技术来帮你
HDU-5805-NanoApe Loves Sequence(思维题)
Clock tree analysis example
HDU-5806-NanoApeLovesSequenceⅡ(尺取法)
Ubuntu18.04+Centos7配置redis主从【学习笔记】
Technology sharing | interface testing value and system