当前位置:网站首页>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
边栏推荐
- Cannot load driver class: com. mysql. cj. jdbc. Driver
- Haven't expressed the artifact yet? Valentine's Day is coming. Please send her a special gift~
- 设计电商秒杀系统
- How to choose cache read / write strategies in different business scenarios?
- Preliminary practice of niuke.com (11)
- 11-grom-v2-05-initialization
- "Designer universe" argument: Data Optimization in the design field ultimately falls on cost, safety and health | chinabrand.com org
- The 12th Blue Bridge Cup
- University of Electronic Science and technology | playback of clustering experience effectively used in reinforcement learning
- 强基计划 数学相关书籍 推荐
猜你喜欢

Node MySQL serialize cannot rollback transactions

How can the outside world get values when using nodejs to link MySQL

MDM mass data synchronization test verification

APEC industry +: father of the king of the ox mill, industrial Internet "king of the ox mill anti-wear faction" Valentine's Day greetings | Asia Pacific Economic media | ChinaBrand

Test panghu was teaching you how to use the technical code to flirt with girls online on Valentine's Day 520
![Measurement fitting based on Halcon learning -- Practice [1]](/img/71/9f6c27aa89035b2550bdb0ac902045.jpg)
Measurement fitting based on Halcon learning -- Practice [1]

Reinforcement learning - learning notes 1 | basic concepts

2.7 format output of values

How to choose cache read / write strategies in different business scenarios?

Apprentissage intensif - notes d'apprentissage 1 | concepts de base
随机推荐
[postgresql]postgresql custom function returns an instance of table type
Based on laravel 5.5\5.6\5 X solution to the failure of installing laravel ide helper
Refer to some books for the distinction between blocking, non blocking and synchronous asynchronous
Go learning notes (4) basic types and statements (3)
2.7 format output of values
一台服务器最大并发 tcp 连接数多少?65535?
Global and Chinese market of cyanuric acid 2022-2028: Research Report on technology, participants, trends, market size and share
上周内容回顾
Global and Chinese market of high temperature Silver sintering paste 2022-2028: Research Report on technology, participants, trends, market size and share
Introduction to golang garbage collection
《ActBERT》百度&悉尼科技大学提出ActBERT,学习全局局部视频文本表示,在五个视频-文本任务中有效!...
Global and Chinese market of speed limiter 2022-2028: Research Report on technology, participants, trends, market size and share
强化学习-学习笔记1 | 基础概念
2.3 other data types
Such as the visual appeal of the live broadcast of NBA Finals, can you still see it like this?
浅议.NET遗留应用改造
Interval product of zhinai sauce (prefix product + inverse element)
Example of peanut shell inner net penetration
Instructions for common methods of regular expressions
C 10 new feature [caller parameter expression] solves my confusion seven years ago