当前位置:网站首页>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 team0
nmcli connection add type team-slave ifname ens38 con-name team0-port2 master team0
Activate the slave device :nmcli connection up team0-port1
nmcli 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 team0
nmcli connection delete team0-port1
nmcli connection delet team0-port2
边栏推荐
- Global and Chinese market of high purity copper foil 2022-2028: Research Report on technology, participants, trends, market size and share
- 【c】 Digital bomb
- 【leetcode】1027. Longest arithmetic sequence (dynamic programming)
- In 2021, the global revenue of syphilis rapid detection kits was about US $608.1 million, and it is expected to reach US $712.9 million in 2028
- Set, weakset, map, weakmap in ES6
- 1.4 learn more about functions
- Discussion Net legacy application transformation
- MySQL learning notes - single table query
- 设计电商秒杀系统
- Print linked list from end to end
猜你喜欢
Reinforcement learning - learning notes 1 | basic concepts
@Transactional注解失效的场景
Qtablewidget control of QT
Discussion Net legacy application transformation
你真的知道自己多大了吗?
AI enhanced safety monitoring project [with detailed code]
全网都在疯传的《老板管理手册》(转)
Such as the visual appeal of the live broadcast of NBA Finals, can you still see it like this?
2022 safety officer-c certificate examination and safety officer-c certificate registration examination
Apprentissage intensif - notes d'apprentissage 1 | concepts de base
随机推荐
Analysis of gas fee setting under eip1559
2022 low voltage electrician examination and low voltage electrician simulation examination question bank
QT6 QML book/qt quick 3d/ Basics
JVM JNI and PVM pybind11 mass data transmission and optimization
Instructions for common methods of regular expressions
Etcd 基于Raft的一致性保证
The global industrial design revenue in 2021 was about $44360 million, and it is expected to reach $62720 million in 2028. From 2022 to 2028, the CAGR was 5.5%
Fingerprint password lock based on Hal Library
For in, foreach, for of
Viewing Chinese science and technology from the Winter Olympics (II): when snowmaking breakthrough is in progress
Operate BOM objects (key)
2.1 use of variables
Reinforcement learning - learning notes 1 | basic concepts
Set, weakset, map, weakmap in ES6
CesiumJS 2022^ 源码解读[7] - 3DTiles 的请求、加载处理流程解析
1.5 learn to find mistakes first
浅议.NET遗留应用改造
浅议.NET遗留应用改造
How to set the system volume programmatically- How to programmatically set the system volume?
AI enhanced safety monitoring project [with detailed code]