目录
[配置网络接口的绑定1. 添加三个网络适配器(一共四个)](#配置网络接口的绑定1. 添加三个网络适配器(一共四个))
[2. 查看可用的网络接口](#2. 查看可用的网络接口)
[3. 执行以下命令添加一个类型为 bond 的链接,链接名为 bond_test,](#3. 执行以下命令添加一个类型为 bond 的链接,链接名为 bond_test,)
[编辑4. 为上述链接 bond_test 添加四个类型为 bond-slave 的从链接网卡为 bond_test,绑定模式为 active-backupbond_test-slave-1、bond_test-slave-2、bond_test-slave-3 和 bond_test-slave-4,网卡分别为 ens160、ens161、ens224、ens256.](#编辑4. 为上述链接 bond_test 添加四个类型为 bond-slave 的从链接网卡为 bond_test,绑定模式为 active-backupbond_test-slave-1、bond_test-slave-2、bond_test-slave-3 和 bond_test-slave-4,网卡分别为 ens160、ens161、ens224、ens256.)
[5. 为连接 bond_test 配置 IP、网关、DNS 和开启启动方式等并重载NetworkManager 配置继续查看IP 10.0.0.110/24Gateway 10.0.0.2Dns 114.114.114.114, 8.8.8.8](#5. 为连接 bond_test 配置 IP、网关、DNS 和开启启动方式等并重载NetworkManager 配置继续查看IP 10.0.0.110/24Gateway 10.0.0.2Dns 114.114.114.114, 8.8.8.8)
[2. 执行以下命令创建两个类型为 team 的链接 team_test1 和team_test2 并查看](#2. 执行以下命令创建两个类型为 team 的链接 team_test1 和team_test2 并查看)
[编辑3. 为上述链接 team_test1 和 team_test2 分别添加两个类型为 team-slave 的从链接 team_test-port1、team_test-port2、team_test-port3、team_test-port4,网卡分别为 ens160、ens161、ens224、ens256](#编辑3. 为上述链接 team_test1 和 team_test2 分别添加两个类型为 team-slave 的从链接 team_test-port1、team_test-port2、team_test-port3、team_test-port4,网卡分别为 ens160、ens161、ens224、ens256)
[4. 为主链接 team_test1 和 team_test2 配置 IP、网关、DNS 等(10.0.0.110/24 和 10.0.0.111/24)Gateway 10.0.0.2Dns 114.114.114.114, 8.8.8.8](#4. 为主链接 team_test1 和 team_test2 配置 IP、网关、DNS 等(10.0.0.110/24 和 10.0.0.111/24)Gateway 10.0.0.2Dns 114.114.114.114, 8.8.8.8)
[5. 重载 NetworkManager 配置并查看链接状态](#5. 重载 NetworkManager 配置并查看链接状态)
[7. 测试网卡组合。可以使用 teamdctl 命令检查网卡组合的配置功能](#7. 测试网卡组合。可以使用 teamdctl 命令检查网卡组合的配置功能)
[编辑8. 继续查看组合各端口的信息及当前活动端口](#编辑8. 继续查看组合各端口的信息及当前活动端口)
[9. 远程连接(10.0.0.110 和 10.0.0.111)](#9. 远程连接(10.0.0.110 和 10.0.0.111))
配置网络接口的绑定
- 添加三个网络适配器(一共四个)

2. 查看可用的网络接口

3. 执行以下命令添加一个类型为 bond 的链接,链接名为 bond_test,
- 为上述链接 bond_test 添加四个类型为 bond-slave 的从链接网卡为 bond_test,绑定模式为 active-backupbond_test-slave-1、bond_test-slave-2、bond_test-slave-3 和 bond_test-
slave-4,网卡分别为 ens160、ens161、ens224、ens256.


5. 为连接 bond_test 配置 IP、网关、DNS 和开启启动方式等并重载
NetworkManager 配置继续查看
IP 10.0.0.110/24
Gateway 10.0.0.2
Dns 114.114.114.114, 8.8.8.8


6.执行以下命令来查看当前的绑定状态和信息


7.远程连接(10.0.0.110)

配置网络接口的组合
1.查看系统中可用的网络接口。

2. 执行以下命令创建两个类型为 team 的链接 team_test1 和
team_test2 并查看
- 为上述链接 team_test1 和 team_test2 分别添加两个类型为 team-
slave 的从链接 team_test-port1、team_test-port2、team_test-port3、
team_test-port4,网卡分别为 ens160、ens161、ens224、ens256


4. 为主链接 team_test1 和 team_test2 配置 IP、网关、DNS 等
(10.0.0.110/24 和 10.0.0.111/24)
Gateway 10.0.0.2
Dns 114.114.114.114, 8.8.8.8

5. 重载 NetworkManager 配置并查看链接状态

- 执行以下命令验证网卡组合的 IP 地址信息
注:请注意,team_test 并不是 Linux 内核原生支持的一个网络接
口名称,除非它是一个自定义的接口名称。在 Linux 中,team 通
常指的是一个网络团队(Team)接口,它允许你将多个物理网络接
口绑定成一个逻辑接口,以提供冗余和负载均衡等功能。

7. 测试网卡组合。可以使用 teamdctl 命令检查网卡组合的配置功能
- 继续查看组合各端口的信息及当前活动端口

9. 远程连接(10.0.0.110 和 10.0.0.111)

