当前位置:网站首页>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
边栏推荐
- 一台服务器最大并发 tcp 连接数多少?65535?
- 淺析 Ref-NeRF
- The 29th day of force deduction (DP topic)
- XAI+网络安全?布兰登大学等最新《可解释人工智能在网络安全应用》综述,33页pdf阐述其现状、挑战、开放问题和未来方向
- Operate BOM objects (key)
- Cap and base theory
- Global and Chinese market of full authority digital engine control (FADEC) 2022-2028: Research Report on technology, participants, trends, market size and share
- JS three families
- [Yugong series] February 2022 Net architecture class 004 ABP vNext used in WPF project
- 2.3 other data types
猜你喜欢

Recommendation of books related to strong foundation program mathematics

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

Rhcsa third day operation

2022 safety officer-c certificate examination and safety officer-c certificate registration examination

Commands related to files and directories
![AI enhanced safety monitoring project [with detailed code]](/img/a9/cb93f349229e86cbb05ad196ae9553.jpg)
AI enhanced safety monitoring project [with detailed code]

2.4 conversion of different data types

@Transactional注解失效的场景

2022 low voltage electrician examination and low voltage electrician simulation examination question bank

Haven't expressed the artifact yet? Valentine's Day is coming. Please send her a special gift~
随机推荐
Get log4net log file in C - get log4net log file in C
Strange way of expressing integers (expanding Chinese remainder theorem)
Introduction to golang garbage collection
Assign the CMD command execution result to a variable
JVM JNI and PVM pybind11 mass data transmission and optimization
Commands related to files and directories
Global and Chinese market of cyanuric acid 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese markets for medical temperature sensors 2022-2028: Research Report on technology, participants, trends, market size and share
"Designer universe" argument: Data Optimization in the design field ultimately falls on cost, safety and health | chinabrand.com org
11-grom-v2-05-initialization
Fingerprint password lock based on Hal Library
Based on laravel 5.5\5.6\5 X solution to the failure of installing laravel ide helper
JS three families
Scientific research document management Zotero
Kubernetes 通信异常网络故障 解决思路
【leetcode】1027. Longest arithmetic sequence (dynamic programming)
Global and Chinese market of speed limiter 2022-2028: Research Report on technology, participants, trends, market size and share
TLS environment construction and plaintext analysis
QT6 QML book/qt quick 3d/ Basics
Cap and base theory