当前位置:网站首页>Link aggregation based on team mechanism
Link aggregation based on team mechanism
2022-07-03 20:48:00 【1ta-chi】
Preface
stay linux in , Rhel7 It used to be bond Mechanism To bind multiple network cards to the same IP Address , To provide access to the network , And according to different modes Load balancing perhaps Recurrent succession management Processing data . And by the Rhel7 after , Provides a powerful tool , nmcli Tool command , Use this tool , The specific configuration file will be regenerated according to the configuration of command parameters for use by the network interface , Convenient and flexible . stay Rhel7 in , No longer use bond Mechanism definition , Instead, use netgroups team Mechanism , hold team Group as a device
Example
Next, let's do a simple experiment
First add two network cards 
View the network card and its binding information :nmcli device ,nmcli connection
Obviously ,ens33 It's our original network card , And successfully connected , and ens37 and ens38 It's the network card we just added , We can configure it manually
Now? , We need to check Team Sample file of the network group and select the link aggregation model
route :/usr/share/doc/teamd/example_configs/, We cd Go and have a look 
We choose the first file , And intercept part of it :cat activebackup_arp_ping_1.conf
Here's the screenshot :"runner": {"name": "activebackup"}( There is no comma )
add to Team Device and session :nmcli connection add ifname team0 con-name team0 type team config '{"runner": {"name": "activebackup"}}'
We configure it manually IP Address ( It's OK here, too dhcp Automatic access to ):nmcli connection modify team0 ipv4.method manual ipv4.addresses 192.168.32.168/24 ipv4.gateway 192.168.32.1 ipv4.dns 114.114.114.114
We have successfully matched it with 168 The address of ( I'll match whatever I want )
Add device to team0 :(team0-port1 I wrote it casually )
nmcli connection add type team-slave ifname ens37 con-name team0-port1 master team0nmcli connection add type team-slave ifname ens38 con-name team0-port2 master team0

Activate the slave device :nmcli connection up team0-port1nmcli connection team0-port2
Activate the master device :nmcli connection up team0
Check the status :teamdctl team0 state
You can see , Currently active devices are ens37
We use another device ping once 168( This machine )
At this time , We are close ens37:nmcli connection down team0-port1
At this time, the only thing left to work is ens38, Let's see if the other host can still ping through 
Obviously , Still can , This is the advantage of link aggregation
The last step , Delete Team0
disconnect :nmcli connection down team0
Delete team0:nmcli connection delete team0nmcli connection delete team0-port1nmcli connection delet team0-port2
边栏推荐
- Design e-commerce seckill system
- Camera calibration (I): robot hand eye calibration
- Etcd raft Based Consistency assurance
- Global and Chinese markets of polyimide tubes for electronics 2022-2028: Research Report on technology, participants, trends, market size and share
- jvm jni 及 pvm pybind11 大批量数据传输及优化
- 2166. Design bit set
- Strange way of expressing integers (expanding Chinese remainder theorem)
- Qt6 QML Book/Qt Quick 3D/基础知识
- How to modify the network IP addresses of mobile phones and computers?
- CesiumJS 2022^ 源码解读[7] - 3DTiles 的请求、加载处理流程解析
猜你喜欢

JMeter plug-in installation

Rhcsa third day operation

XAI+网络安全?布兰登大学等最新《可解释人工智能在网络安全应用》综述,33页pdf阐述其现状、挑战、开放问题和未来方向

jvm jni 及 pvm pybind11 大批量数据传输及优化

thrift go

1.4 learn more about functions

2.7 format output of values

Test changes in Devops mode -- learning and thinking

Xai+ network security? Brandon University and others' latest "interpretable artificial intelligence in network security applications" overview, 33 page PDF describes its current situation, challenges,

Operate BOM objects (key)
随机推荐
Camera calibration (I): robot hand eye calibration
Basic knowledge of dictionaries and collections
Global and Chinese market of speed limiter 2022-2028: Research Report on technology, participants, trends, market size and share
Set, weakset, map, weakmap in ES6
C 10 new feature [caller parameter expression] solves my confusion seven years ago
一台服务器最大并发 tcp 连接数多少?65535?
Scientific research document management Zotero
强化學習-學習筆記1 | 基礎概念
2.3 other data types
11-grom-v2-05-initialization
[Yugong series] February 2022 Net architecture class 004 ABP vNext used in WPF project
你真的知道自己多大了吗?
全网都在疯传的《老板管理手册》(转)
Instructions for common methods of regular expressions
QT6 QML book/qt quick 3d/ Basics
2.7 format output of values
From the behind the scenes arena of the ice and snow event, see how digital builders can ensure large-scale events
2166. Design bit set
App compliance
2022 safety officer-c certificate examination and safety officer-c certificate registration examination