Centos8双网卡绑定 centos8配置双网卡

资讯 2024-07-09 阅读:65 评论:0
BONDING_OPTS是配置bonding的一个必要参数,其中:miimon=系统每100ms监测一次链路连接状态,如果有一条线路不通就转入另一条线路; mode表示模式,分为七种: (1)mode=0  轮询策略(默认): (...
美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址


BONDING_OPTS是配置bonding的一个必要参数,其中:miimon=系统每100ms监测一次链路连接状态,如果有一条线路不通就转入另一条线路;
mode表示模式,分为七种:
(1)mode=0  轮询策略(默认):
(2)mode=1  主-备策略(常用):
(3)mode=2  平衡策略(不常用);
(4)mode=3  广播策略(不常用);
(5)mode=4  IEEE802.3ad动态链路聚合(不常用);
(6)mode=5  适配器传输负载均衡(不常用);
(7)mode=6  适配器适应性负载均衡(不常用)

BONDING_OPTS is a necessary parameter for the configuration of binding, in which: miimon=Systems monitor the state of the link every 100ms and move to another line if one line is not connected;
mode indicates a pattern divided into seven types:
(1)mode=0 & nbsp; rounding strategy (default):
(2)mode=1 & nbsp; master-preparation strategy (used):
(3)mode=2 & nbsp; balancing strategy (not commonly used);
(4)mode=3 & nbsp; broadcast strategy (not commonly used);
(5)mode=4 & nbsp; IEE802rd dynamic chain convergence (not commonly used);
(6)mode=5 & nbsp; fit machine transfer load balance (not commonly used);
(7)mode=6 & nbsp; adapter load balance (not commonly used)

3、添加bonding模块到配置文件,目的是开机自动加载bonding模块到内核(centos7.7下可不用配置


Linux主机bonding的配置--采用主备模式

mode=0平衡负载模式:平时两块网卡均工作,且自动备援,采用Switch支援。
mode=1自动备援模式:平时只有一块网卡工作,故障后自动替换为另外的网卡。
mode=2平衡策略模式:此模式提供负载平衡和容错能力
mode=6:平衡负载模式:平时两块网卡均工作,且自动备援,无须设置Switch支援。

3. Adding the Bonding module to the configuration file with the aim of automatically loading the Bonding module to the kernel (centos 7.7) without having to configure the configuration of the
>br> Linux mainframe binding -- using master mode
>br'mode=0 load balance mode: both webcards work in normal times, and automatically assist with Switch support. mode=2 balanced strategy mode: this mode provides load balance and tolerance error
mode=6: Balance load mode: both webcards work in normal times and automatically provide support, without the need to install Switch support.

1.添加2块网卡

1. Add 2 net cards

Centos8双网卡绑定 centos8配置双网卡_java


2.确认网卡正常工作

2. Confirmation of the normal operation of the netcard

Centos8双网卡绑定 centos8配置双网卡_Centos8双网卡绑定_02

3.添加新网卡配置文件
现在新添加的两块网卡均无配置文件需手动添加

Add a new network card configuration file
. Neither of the two new cards now added has a profile to add manually

Centos8双网卡绑定 centos8配置双网卡_开发语言_03

ifcfg-eth1

ifcfg-eth2

#可以采用命令模式创建: nmcli connection add type bond ifname bond0 con-name bond0
ifcfg-bond0

# Created using command mode:   nmcli connection add type Bond ifname bond0 con-name bond0
ifcfg-bond0

4.bond配置,修改modprobe相关设定文件
需要关闭NetworkManager服务

4. Bond configuration, modify the modprobe-related setting file
to close NetworkManager service

5.查看内核是否加载bonding
重启网络服务

Check whether the kernel is loaded into the binding
reboot network service

1.
查看内核是否加载

1.
See whether the kernel is loaded

Centos8双网卡绑定 centos8配置双网卡_java_04

6.查看是否成功(eth1与eth2 MAC地址已同步说明绑定成功)

6. Check for success (eth1 and eth2 MAC addresses are synchronized to indicate successful binding)

Centos8双网卡绑定 centos8配置双网卡_开发语言_05

在另一台同网段虚拟机也可以ping通

It's also possible to use a virtual combinator on another part of the network.

Centos8双网卡绑定 centos8配置双网卡_Centos8双网卡绑定_06

7.多网卡也只需添加一块网卡写入配置文件即可

7. Multi-net cards only need to be added to the configuration file

Centos8双网卡绑定 centos8配置双网卡_Centos8双网卡绑定_07

Centos8双网卡绑定 centos8配置双网卡_Centos8双网卡绑定_08

创建完查看相关配置

Create View Related Configuration

Centos8双网卡绑定 centos8配置双网卡_链路_09

Centos8双网卡绑定 centos8配置双网卡_配置文件_10

 

Centos8双网卡绑定 centos8配置双网卡_java_11

 断开一个网卡在测试依旧无影响

& nbsp; disconnection of a webcard remains intact at the test

Centos8双网卡绑定 centos8配置双网卡_开发语言_12

美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址
文字格式和图片示例

注册有任何问题请添加 微信:MVIP619 拉你进入群

弹窗与图片大小一致 文章转载注明

分享:

扫一扫在手机阅读、分享本文

发表评论
平台列表
美化布局示例

欧易(OKX)

  全球官网 大陆官网

币安(Binance)

  官网

火币(HTX)

  官网

Gate.io

  官网

Bitget

  官网

deepcoin

  官网
热门文章
  • 区块链社区有哪些?区块链社区是什么?

    区块链社区有哪些?区块链社区是什么?
    展开全文...
  • 0.00006694个比特币等于多少人民币/美金

    0.00006694个比特币等于多少人民币/美金
    0.00006694比特币等于多少人民币?根据比特币对人民币的最新汇率,0.00006694比特币等于4.53424784美元/32.5436 16人民币。比特币(BTC)美元(USDT)人民币(CNY)0.000066944.53424784【比特币密码】32.82795436 16比特币对人民币的最新汇率为:490408.64 CNY(1比特币=490408.64人民币)(1美元=7.24人民币)(0.00006694USDT=0.0004846456 CNY)汇率更新时...
  • 0.00015693个比特币等于多少人民币/美金

    0.00015693个比特币等于多少人民币/美金
    0.000 15693比特币等于多少人民币?根据比特币对人民币的最新汇率,0.000 15693比特币等于10.6 1678529美元/76.86554996人民币。比特币(BTC)【比特币价格翻倍】美元(USDT)人民币(CNY)0.000/克洛克-0/5693【数字货币矿机】10.6 167852976.8655254996比特币对人民币的最新汇率为:489,807.72 CNY(1比特币= 489,807.72人民币)(1美元=7.24人民币)(0.00015693 U...
  • 0.00003374个比特币等于多少人民币/美金

    0.00003374个比特币等于多少人民币/美金
    0.00003374比特币等于多少人民币?根据比特币对人民币的最新汇率,0.00003374比特币等于2.2826 1222美元/16.5261124728人民币。比特币(BTC)美元(USDT)人民币(CNY)0.00003374克洛克-0/22216.5261124728比特币对人民币的最新汇率为:489807.72 CNY(1比特币=489807.72人民币)(1美元=7.24人民币)(0.00003374USDT=0.0002442776 CNY)。汇率更新于2024...
  • 2018-5-31币圈简报

    2018-5-31币圈简报
    一、要闻资讯类I. KEY INFORMATION CATEGORY1、央视:数字货币在京揭牌成立!中国或为此突变!1. View: Digital currency is established in Kyoto! China or mutated for it!中国数字货币来了˂a href="https://mp.weixin.qq.com/s/69fxKCf8GKSCscS4lT8WCA" Target="_blank"rel="noformlow"" Chinese...
标签列表