互联网组team:是将多少个网卡聚合在壹起,从而完结容错和增长吞吐量

互连网组team:是将多个网卡聚合在同步,从而达成容错和升高吞吐量

网络组Network Teaming,组networkteaming

网络组team:是将多个网卡聚合在共同,从而达成容错和坚实吞吐量

壹 成立网络组接口

nmcli connection add type team con-name TEAMname ifname INTname [config
JSON]

TEAMname 钦定连接名,INname内定接口名,

JSON指定runner方式,格式为:'{“runner”:{“name”:”METHOD”}}’

METHOD 可以是broadcast、roundrobin、activebackup、loadbalance、lacp

(一)创设互联网接口组team0

[[email protected]
~]# nmcli connection add type team con-name team0 ifname team0 config
‘{“runner”:{“name”:”loadbalance”}}’

Connection ‘team0’ (e70483a1-2688-4eb2-9466-8e732360291d) successfully
added.

(2)给网路组team0配置IP地址

[[email protected]
~]# nmcli connection modify team0 ipv4.method manual ipv4.addresses
200.200.200.200/24 gw4 200.200.200.1

2 创建port接口(SLAVE)

既正是生成组TEAM组成员的配备文件。

瞩目:这么些布局文件和网卡配置文件是相互独立的。

nmcli connection add type team-slave con-name SLAVEname ifname INname
master TEAMname

SLAVEname
内定连接名,INTname指定互连网接口名(相当于钦定要参预网络组的网卡名),TEAMnmae钦点所属网络组。

若总是名不钦赐,私下认可为team-slave-IFACE

成立接口组

    那里运用ens34、ens3八两块网卡

[[email protected]
~]# nmcli connection add con-name team0-ens34 type team-slave ifname
ens34 master team0

Connection ‘team0-ens34’ (a481fb6d-bf61-413d-a2c7-289966bee1a7)
successfully added.

[[email protected]
~]# nmcli connection add con-name team0-ens38 type team-slave ifname
ens38 master team0

Connection ‘team0-ens38’ (758d0eba-1625-46b2-b539-1d853a45be6b)
successfully added.

三 启用网络组

启用互连网组:nmcli connection up team0

启用组成员:nmcli connection up SLAVEname

[[email protected]
~]# nmcli connection up team0

Connection successfully activated (master waiting for slaves) (D-Bus
active path: /org/freedesktop/NetworkManager/ActiveConnection/20)

[[email protected]
~]# nmcli connection up team0-ens34

Connection successfully activated (D-Bus active path:
/org/freedesktop/NetworkManager/ActiveConnection/23)

[[email protected]
~]# nmcli connection up team0-ens38

Connection successfully activated (D-Bus active path:
/org/freedesktop/NetworkManager/ActiveConnection/24)

4 查看网络组状态

teamdctl TEAMname state

[[email protected]
~]# teamdctl team0 state

setup:

runner: loadbalance

ports:

ens34

link watches:

link summary: up

instance[link_watch_0]:

name: ethtool

link: up

down count: 0

ens38

link watches:

link summary: up

instance[link_watch_0]:

name: ethtool

link: up

down count: 0

5 互连网组配置文件

(一)MASTETiggo配置文件

[[email protected]
~]# cat /etc/sysconfig/network-scripts/ifcfg-team0

DEVICE=team0

TEAM_CONFIG=”{\”runner\”:{\”name\”:\”loadbalance\”}}”

BOOTPROTO=none

DEFROUTE=yes

IPV4_FAILURE_FATAL=no

NAME=team0

UUID=e70483a1-2688-4eb2-9466-8e732360291d

ONBOOT=yes

DEVICETYPE=Team

IPADDR=200.200.200.200

PREFIX=24

GATEWAY=200.200.200.1

(二)组成员(SLAVE)配置文件

[[email protected]
~]# cat /etc/sysconfig/network-scripts/ifcfg-team0-ens34

NAME=team0-ens34

UUID=a481fb6d-bf61-413d-a2c7-289966bee1a7

DEVICE=ens34

ONBOOT=yes

TEAM_MASTER=team0

DEVICETYPE=TeamPort

陆 剔除网络组

(一)断开连接

[[email protected]
~]# nmcli connection down team0

Connection ‘team0’ successfully deactivated (D-Bus active path:
/org/freedesktop/NetworkManager/ActiveConnection/7)

翻看下情形

[[email protected]
~]# teamdctl team0 state

Device “team0” does not exist

[[email protected]
~]# nmcli connection show

NAME UUID TYPE DEVICE

ens33 be9d1f2f-20e0-4282-9cb5-0da4c8b0fc7c 802-3-ethernet ens33

virbr0 8b1532d4-d99b-4201-8163-44d733302230 bridge virbr0

team0 e70483a1-2688-4eb2-9466-8e732360291d team —

team0-ens34 a481fb6d-bf61-413d-a2c7-289966bee1a7 802-3-ethernet —

team0-ens38 758d0eba-1625-46b2-b539-1d853a45be6b 802-3-ethernet —

能够见见曾经倒闭成功

(2)删除TEAM组成员

[[email protected]
~]# nmcli connection delete team0-ens34

Connection ‘team0-ens34’ (a481fb6d-bf61-413d-a2c7-289966bee1a7)
successfully deleted.

[[email protected]
~]# nmcli connection delete team0-ens38

Connection ‘team0-ens38’ (758d0eba-1625-46b2-b539-1d853a45be6b)
successfully deleted.

(3)删除TEAM组

[[email protected]
~]# nmcli connection delete team0

Connection ‘team0’ (e70483a1-2688-4eb2-9466-8e732360291d) successfully
deleted.

翻看一下

[[email protected]
~]# nmcli connection show

NAME UUID TYPE DEVICE

ens33 be9d1f2f-20e0-4282-9cb5-0da4c8b0fc7c 802-3-ethernet ens33

virbr0 8b1532d4-d99b-4201-8163-44d733302230 bridge virbr0

早已看不到team0 相关的始末,表明删除成功

Teaming,组networkteaming
互连网组team:是将七个网卡聚合在联合,从而实现容错和进步吞吐量 1创建网络组接口 nmcli connection add t…

多网卡同IP技术

将八个网卡端口绑定为1个,能够荣升网络的性质。在linux系统上有二种技术能够兑现,Linux
互联网组和bond,通过绑定多少个网卡作为一个逻辑网口并安插单个的IP地址,大幅度升级服务器的网络吞吐。

一 创制互联网组接口

一 创造互联网组接口

Bonding

当前宣告各样Linux版本内核均已包涵了此模块,超越61%状态下不须求重新编写翻译内核。
Linux 的 bonding
驱动提供了绑定/集成(bond)八个网卡为三个虚拟逻辑网口的机能。
一般的话绑定的网口(bonded)有种种工作形式,主要有热后备(hot standby) 和
负载均衡(load balancing).
1.创造bond0配置文件

nmcli connection add type team con-name TEAMname ifname INTname [config
JSON]

nmcli connection add type team con-name TEAMname ifname INTname [config
JSON]

1.创办bond0配置文件

vi /etc/sysconfig/network-scripts/ifcfg-bond0 添加配置参数

配置属性 含义
DEVICE 物理设备名字
ONBOOT 在系统引导时是否激活此设备
TYPE 接口类型;常见有的Ethernet,Bridge
IPADDR 指明IP地址
NETMASK 子网掩码
GATEWAY 默认网关
NAME bond名称
DNS1 第一个DNS服务器指向
DNS2 第二个DNS服务器指向
USERCTL 普通用户是否可控制此设备
PEERDNS 如果BOOTPROTO的值为“dhcp”,是否允许

TEAMname 钦命连接名,INname钦点接口名,

TEAMname 内定连接名,INname钦点接口名,

2.修改被绑定的eth0和eth一的计划文件

vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=”eth0″
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes(设置从属关系)
BOOTPROTO=none
HWADDR=00:15:17:CC:FC:35
eth1的布局文件与之相同,只是device的值改为eth一即可。

JSON指定runner方式,格式为:'{“runner”:{“name”:”METHOD”}}’

JSON指定runner方式,格式为:'{“runner”:{“name”:”METHOD”}}’

三.装载bond模块驱动

编辑/etc/modprobe.conf只怕/etc/modules.conf文件,参加如下内容,使系统运维时加载bonding模块驱动
alias bond0 bonding
option bond0 miimon=100 mode=1
说明:
1).miimon=100
用来进展链路监测的。即每拾0ms监测2次链路状态。bonding只监测主机与沟通机之间链路。假设交流机出去的链路出标题而作者没不寻常,那么bonding认为链路不奇怪而继续使用。
贰).mode=一意味提供冗余功用。除了那几个之外还是可以为0、贰、三,共各个格局。0表示负载均衡

METHOD 可以是broadcast、roundrobin、activebackup、loadbalance、lacp

METHOD 可以是broadcast、roundrobin、activebackup、loadbalance、lacp

四.在/etc/rc.d/rc.local文件中插足如下语句,使得系统运营自动运转

ifenslave bond0 eth0 eth1
route add -net 192.168.1.254 netmask 255.255.255.0 bond0
#如有要求才加该路由

(一)成立网络接口组team0

多网卡同IP和同网卡多IP技术。(1)成立互联网接口组team0

伍.检验、验证配置

先是执行命令装载bonding模块:modprobe bonding
重启互联网服务,并承认bond0正确运维:service network restart
确认设备已经不错加载:less /proc/net/bonding/bond0
到现在,bond 的装置就基本完工了
删除bond
ifconfig bond0 down
rmmod bonding

[root@centos7 ~]# nmcli connection add type team con-name team0
ifname team0 config ‘{“runner”:{“name”:”loadbalance”}}’

[root@centos7 ~]# nmcli connection add type team con-name team0
ifname team0 config ‘{“runner”:{“name”:”loadbalance”}}’

互连网组配置

网络组:是将两个网卡聚合在1块方法,从而完毕冗错和增进吞吐量,互连网组分裂于旧版中bonding
技术,能提供越来越好的习性和扩大性,互联网组由基础驱动和teamd 守护进度落成.

Connection ‘team0’ (e70483a1-2688-4eb2-9466-8e732360291d) successfully
added.

Connection ‘team0’ (e70483a1-2688-4eb2-9466-8e732360291d) successfully
added.

一.开立网络组接口

nmcli connection add type team con-name TEAMname ifname INTname [config
JSON]
TEAMname
钦赐连接名,INname钦定接口名,JSON钦定runner格局,格式为:'{“runner”:{“name”:”METHOD”}}’
METHOD 可以是broadcast、roundrobin、activebackup、loadbalance、lacp
(1)成立网络接口组team0
[root@centos7 ~]# nmcli connection add type team con-name team0
ifname team0 config ‘{“runner”:{“name”:”loadbalance”}}’
Connection ‘team0’ (e70483a1-2688-4eb2-9466-8e732360291d) successfully
added.
(二)给网路组team0配置IP地址
[root@centos7 ~]# nmcli connection modify team0 ipv4.method manual
ipv4.addresses 200.200.200.200/24 gw4 200.200.200.1

(二)给网路组team0配置IP地址

(二)给网路组team0配置IP地址

2 创建port接口(SLAVE)

既正是生成组TEAM组成员的安插文件,那些布局文件和网卡配置文件是彼此独立的。
nmcli connection add type team-slave con-name SLAVEname ifname INname
master TEAMname
SLAVEname
内定连接名,INTname内定网络接口名(相当于钦定要进入互联网组的网卡名),TEAMnmae钦赐所属互连网组。
若再而三名不钦点,暗中认可为team-slave-IFACE
成立接口组
此间运用ens3四、ens3八两块网卡
[root@centos7 ~]# nmcli connection add con-name team0-ens34 type
team-slave ifname ens34 master team0

Connection ‘team0-ens34’ (a481fb6d-bf61-413d-a2c7-289966bee1a7)
successfully added.

[root@centos7 ~]# nmcli connection add con-name team0-ens38 type
team-slave ifname ens38 master team0

Connection ‘team0-ens38’ (758d0eba-1625-46b2-b539-1d853a45be6b)
successfully added.

[root@centos7 ~]# nmcli connection modify team0 ipv4.method manual
ipv4.addresses 200.200.200.200/24 gw4 200.200.200.1

[root@centos7 ~]# nmcli connection modify team0 ipv4.method manual
ipv4.addresses 200.200.200.200/24 gw4 200.200.200.1

叁 启用网络组

启用互连网组:nmcli connection up team0
启用组成员:nmcli connection up SLAVEname
[root@centos7 ~]# nmcli connection up team0

Connection successfully activated (master waiting for slaves) (D-Bus
active path: /org/freedesktop/NetworkManager/ActiveConnection/20)

[root@centos7 ~]# nmcli connection up team0-ens34

Connection successfully activated (D-Bus active path:
/org/freedesktop/NetworkManager/ActiveConnection/23)

[root@centos7 ~]# nmcli connection up team0-ens38

Connection successfully activated (D-Bus active path:
/org/freedesktop/NetworkManager/ActiveConnection/24)

2 创建port接口(SLAVE)

2 创建port接口(SLAVE)

四 查看网络组状态

teamdctl TEAMname state
[root@centos7 ~]# teamdctl team0 state

setup:
runner: loadbalance
ports:
ens34

link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
down count: 0
ens38
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
down count: 0

既正是生成组TEAM组成员的配置文件。

既正是生成组TEAM组成员的布署文件。

5 互联网组配置文件

(壹)MASTE奥德赛配置文件
[root@centos7 ~]# cat /etc/sysconfig/network-scripts/ifcfg-team0

DEVICE=team0
TEAM_CONFIG=”{“runner”:{“name”:”loadbalance”}}”
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
NAME=team0
UUID=e70483a1-2688-4eb2-9466-8e732360291d
ONBOOT=yes
DEVICETYPE=Team
IPADDR=200.200.200.200
PREFIX=24
GATEWAY=200.200.200.1

(贰)组成员(SLAVE)配置文件
[root@centos7 ~]# cat
/etc/sysconfig/network-scripts/ifcfg-team0-ens34

NAME=team0-ens34
UUID=a481fb6d-bf61-413d-a2c7-289966bee1a7
DEVICE=ens34
ONBOOT=yes
TEAM_MASTER=team0
DEVICETYPE=TeamPort

小心:那一个布局文件和网卡配置文件是并行独立的。

只顾:这几个布局文件和网卡配置文件是互为独立的。

陆 刨除互联网组

(一)断开连接
[root@centos7 ~]# nmcli connection down team0

Connection ‘team0’ successfully deactivated (D-Bus active path:
/org/freedesktop/NetworkManager/ActiveConnection/7)

再也翻开景况
[root@centos7 ~]# teamdctl team0 state

Device “team0” does not exist

[root@centos7 ~]# nmcli connection show

NAME UUID TYPE DEVICE
ens33 be9d1f2f-20e0-4282-9cb5-0da4c8b0fc7c 802-3-ethernet ens33
virbr0 8b1532d4-d99b-4201-8163-44d733302230 bridge virbr0
team0 e70483a1-2688-4eb2-9466-8e732360291d team —
team0-ens34 a481fb6d-bf61-413d-a2c7-289966bee1a7 802-3-ethernet —
team0-ens38 758d0eba-1625-46b2-b539-1d853a45be6b 802-3-ethernet —

能够看出曾经关闭成功
(2)删除TEAM组成员
[root@centos7 ~]# nmcli connection delete team0-ens34

Connection ‘team0-ens34’ (a481fb6d-bf61-413d-a2c7-289966bee1a7)
successfully deleted.

[root@centos7 ~]# nmcli connection delete team0-ens38

Connection ‘team0-ens38’ (758d0eba-1625-46b2-b539-1d853a45be6b)
successfully deleted.

(3)删除TEAM组
[root@centos7 ~]# nmcli connection delete team0

Connection ‘team0’ (e70483a1-2688-4eb2-9466-8e732360291d) successfully
deleted.
重新翻开情状
[root@centos7 ~]# nmcli connection show
NAME UUID TYPE DEVICE
ens33 be9d1f2f-20e0-4282-9cb5-0da4c8b0fc7c 802-3-ethernet ens33
virbr0 8b1532d4-d99b-4201-8163-44d733302230 bridge virbr0
现已看不到team0 相关的始末,表明删除成功

nmcli connection add type team-slave con-name SLAVEname ifname INname
master TEAMname

nmcli connection add type team-slave con-name SLAVEname ifname INname
master TEAMname

同网卡多IP技术

澳门金沙国际,区别的做事条件1般IP地址以及有关网络属性寒日是不等同的.尽管大家每趟都以手动去修改,那将是可怜繁琐的.所以我们去修改部分互联网安顿让网卡去自适应工作环境.在linux系统上布署同2个网卡拥有七个IP的技术也正是为网卡添加多少个子网卡,如eth0:0、eth1:1这种互联网接口,LINUX最多能够援助贰伍拾贰个IP子网卡。
在linux系统上有三种办法添加子网卡。一种是应用互联网安顿命令,那种措施会即时生效,但不会永远生效,如果重启则会霎时丢失。借使想要永久生效则是另一种办法去修改互联网布局文件。配置子网卡命令前要卸载也许剥夺NetworkManager服务,因为和NetworkManager有冲突。

SLAVEname
钦定连接名,INTname钦点互联网接口名(也就是钦定要投入互联网组的网卡名),TEAMnmae钦点所属互联网组。

SLAVEname
钦命连接名,INTname钦赐网络接口名(也正是钦点要进入网络组的网卡名),TEAMnmae钦赐所属互联网组。

运用命令添加子网卡:

动用ifconfig命令管理子网卡:
ifconfig device[label] [address] [up|down]
ifconfig eth0:0 1玖二.16八.一.拾0/二4 up(添加并启用eth0:0子网卡)
ifconfig eth0:0 down(禁用eth0:0子网卡)
选用ip命令管理子网卡:
ip addr add [address] device [label]
ip addr add 172.1陆.一.2/1陆 dev eth0(为eth0网卡添加1个IP)
ip addr add 17二.1陆.一.1/1陆 dev eth0 label
eth0:0(为eth0网卡添加3个IP并且钦点label)
ip addr del 172.16.1.1/16 dev eth0 label
eth0:0(删除eth0上172.16.1.1/16这条IP)
ip addr flush dev eth0 label eth0:0(刷新)
把有关安顿写入文件
将上边的通令ifconfig加入到rc.local中去(永久生效)

若延续名不钦赐,暗中同意为team-slave-IFACE

若延续名不钦点,暗中同意为team-slave-IFACE

手动编写ip的网卡配置文件

配置属性 含义
ONBOOT 在系统引导时是否激活此设备
DEVICE 物理设备名字
TYPE 接口类型;常见有的Ethernet,Bridge
UUID 设备的惟一标识
IPADDR 指明IP地址
NETMASK 子网掩码
GATEWAY 默认网关
DNS1 第一个DNS服务器指向
DNS2 第二个DNS服务器指向
USERCTL 普通用户是否可控制此设备
PEERDNS 如果BOOTPROTO的值为“dhcp”,是否允许

装有网卡的配置文件都保存在/etc/sysconfig/network-scripts目录中,一个网卡对应3个配备文件
手工业添加IP地址的
以下是网卡配置文件的壹些音信验证,别的类似新闻暗许即可:

配置属性 含义
ONBOOT 在系统引导时是否激活此设备
DEVICE 物理设备名字
TYPE 接口类型;常见有的Ethernet,Bridge
UUID 设备的惟一标识
IPADDR 指明IP地址
NETMASK 子网掩码
GATEWAY 默认网关
DNS1 第一个DNS服务器指向
DNS2 第二个DNS服务器指向
USERCTL 普通用户是否可控制此设备
PEERDNS 如果BOOTPROTO的值为“dhcp”,是否允许

安插达成重启网卡即可:service network restart

创办接口组

创设接口组

    那里运用ens3四、ens38两块网卡

    那里运用ens3四、ens3八两块网卡

[root@centos7 ~]# nmcli connection add con-name team0-ens34 type
team-slave ifname ens34 master team0

[root@centos7 ~]# nmcli connection add con-name team0-ens34 type
team-slave ifname ens34 master team0

Connection ‘team0-ens34’ (a481fb6d-bf61-413d-a2c7-289966bee1a7)
successfully added.

Connection ‘team0-ens34’ (a481fb6d-bf61-413d-a2c7-289966bee1a7)
successfully added.

[root@centos7 ~]# nmcli connection add con-name team0-ens38 type
team-slave ifname ens38 master team0

[root@centos7 ~]# nmcli connection add con-name team0-ens38 type
team-slave ifname ens38 master team0

Connection ‘team0-ens38’ (758d0eba-1625-46b2-b539-1d853a45be6b)
successfully added.

Connection ‘team0-ens38’ (758d0eba-1625-46b2-b539-1d853a45be6b)
successfully added.

三 启用网络组

三 启用互联网组

启用网络组:nmcli connection up team0

启用网络组:nmcli connection up team0

启用组成员:nmcli connection up SLAVEname

启用组成员:nmcli connection up SLAVEname

[root@centos7 ~]# nmcli connection up team0

[root@centos7 ~]# nmcli connection up team0

Connection successfully activated (master waiting for slaves) (D-Bus
active path: /org/freedesktop/NetworkManager/ActiveConnection/20)

Connection successfully activated (master waiting for slaves) (D-Bus
active path: /org/freedesktop/NetworkManager/ActiveConnection/20)

[root@centos7 ~]# nmcli connection up team0-ens34

[root@centos7 ~]# nmcli connection up team0-ens34

Connection successfully activated (D-Bus active path:
/org/freedesktop/NetworkManager/ActiveConnection/23)

Connection successfully activated (D-Bus active path:
/org/freedesktop/NetworkManager/ActiveConnection/23)

[root@centos7 ~]# nmcli connection up team0-ens38

[root@centos7 ~]# nmcli connection up team0-ens38

Connection successfully activated (D-Bus active path:
/org/freedesktop/NetworkManager/ActiveConnection/24)

Connection successfully activated (D-Bus active path:
/org/freedesktop/NetworkManager/ActiveConnection/24)

四 查看互联网组状态

肆 查看互连网组状态

teamdctl TEAMname state

teamdctl TEAMname state

[root@centos7 ~]# teamdctl team0 state

[root@centos7 ~]# teamdctl team0 state

setup:

setup:

runner: loadbalance

runner: loadbalance

ports:

ports:

ens34

ens34

link watches:

link watches:

link summary: up

link summary: up

instance[link_watch_0]:

instance[link_watch_0]:

name: ethtool

name: ethtool

link: up

link: up

down count: 0

down count: 0

ens38

ens38

link watches:

link watches:

link summary: up

link summary: up

instance[link_watch_0]:

instance[link_watch_0]:

name: ethtool

name: ethtool

link: up

link: up

down count: 0

down count: 0

伍 网络组配置文件

5 互联网组配置文件

(1)MASTE帕Jero配置文件

(一)MASTECR-V配置文件

[root@centos7 ~]# cat /etc/sysconfig/network-scripts/ifcfg-team0

[root@centos7 ~]# cat /etc/sysconfig/network-scripts/ifcfg-team0

DEVICE=team0

DEVICE=team0

TEAM_CONFIG=”{\”runner\”:{\”name\”:\”loadbalance\”}}”

TEAM_CONFIG=”{\”runner\”:{\”name\”:\”loadbalance\”}}”

BOOTPROTO=none

BOOTPROTO=none

DEFROUTE=yes

DEFROUTE=yes

IPV4_FAILURE_FATAL=no

IPV4_FAILURE_FATAL=no

NAME=team0

NAME=team0

UUID=e70483a1-2688-4eb2-9466-8e732360291d

UUID=e70483a1-2688-4eb2-9466-8e732360291d

ONBOOT=yes

ONBOOT=yes

DEVICETYPE=Team

DEVICETYPE=Team

IPADDR=200.200.200.200

IPADDR=200.200.200.200

PREFIX=24

PREFIX=24

GATEWAY=200.200.200.1

GATEWAY=200.200.200.1

(2)组成员(SLAVE)配置文件

(2)组成员(SLAVE)配置文件

[root@centos7 ~]# cat
/etc/sysconfig/network-scripts/ifcfg-team0-ens34

[root@centos7 ~]# cat
/etc/sysconfig/network-scripts/ifcfg-team0-ens34

NAME=team0-ens34

NAME=team0-ens34

UUID=a481fb6d-bf61-413d-a2c7-289966bee1a7

UUID=a481fb6d-bf61-413d-a2c7-289966bee1a7

DEVICE=ens34

DEVICE=ens34

ONBOOT=yes

ONBOOT=yes

TEAM_MASTER=team0

TEAM_MASTER=team0

DEVICETYPE=TeamPort

DEVICETYPE=TeamPort

6 去除互连网组

陆 删减网络组

(一)断开连接

(1)断开连接

[root@centos7 ~]# nmcli connection down team0

[root@centos7 ~]# nmcli connection down team0

Connection ‘team0’ successfully deactivated (D-Bus active path:
/org/freedesktop/NetworkManager/ActiveConnection/7)

Connection ‘team0’ successfully deactivated (D-Bus active path:
/org/freedesktop/NetworkManager/ActiveConnection/7)

查阅下情形

翻开下境况

[root@centos7 ~]# teamdctl team0 state

[root@centos7 ~]# teamdctl team0 state

Device “team0” does not exist

Device “team0” does not exist

[root@centos7 ~]# nmcli connection show

[root@centos7 ~]# nmcli connection show

NAME UUID TYPE DEVICE

NAME UUID TYPE DEVICE

ens33 be9d1f2f-20e0-4282-9cb5-0da4c8b0fc7c 802-3-ethernet ens33

ens33 be9d1f2f-20e0-4282-9cb5-0da4c8b0fc7c 802-3-ethernet ens33

virbr0 8b1532d4-d99b-4201-8163-44d733302230 bridge virbr0

virbr0 8b1532d4-d99b-4201-8163-44d733302230 bridge virbr0

team0 e70483a1-2688-4eb2-9466-8e732360291d team —

team0 e70483a1-2688-4eb2-9466-8e732360291d team —

team0-ens34 a481fb6d-bf61-413d-a2c7-289966bee1a7 802-3-ethernet —

team0-ens34 a481fb6d-bf61-413d-a2c7-289966bee1a7 802-3-ethernet —

team0-ens38 758d0eba-1625-46b2-b539-1d853a45be6b 802-3-ethernet —

team0-ens38 758d0eba-1625-46b2-b539-1d853a45be6b 802-3-ethernet —

能够看出已经关门成功

能够看来曾经关门成功

(2)删除TEAM组成员

(2)删除TEAM组成员

[root@centos7 ~]# nmcli connection delete team0-ens34

[root@centos7 ~]# nmcli connection delete team0-ens34

Connection ‘team0-ens34’ (a481fb6d-bf61-413d-a2c7-289966bee1a7)
successfully deleted.

Connection ‘team0-ens34’ (a481fb6d-bf61-413d-a2c7-289966bee1a7)
successfully deleted.

[root@centos7 ~]# nmcli connection delete team0-ens38

[root@centos7 ~]# nmcli connection delete team0-ens38

Connection ‘team0-ens38’ (758d0eba-1625-46b2-b539-1d853a45be6b)
successfully deleted.

Connection ‘team0-ens38’ (758d0eba-1625-46b2-b539-1d853a45be6b)
successfully deleted.

(3)删除TEAM组

(3)删除TEAM组

[root@centos7 ~]# nmcli connection delete team0

[root@centos7 ~]# nmcli connection delete team0

Connection ‘team0’ (e70483a1-2688-4eb2-9466-8e732360291d) successfully
deleted.

Connection ‘team0’ (e70483a1-2688-4eb2-9466-8e732360291d) successfully
deleted.

查阅一下

翻开一下

[root@centos7 ~]# nmcli connection show

[root@centos7 ~]# nmcli connection show

NAME UUID TYPE DEVICE

NAME UUID TYPE DEVICE

ens33 be9d1f2f-20e0-4282-9cb5-0da4c8b0fc7c 802-3-ethernet ens33

ens33 be9d1f2f-20e0-4282-9cb5-0da4c8b0fc7c 802-3-ethernet ens33

virbr0 8b1532d4-d99b-4201-8163-44d733302230 bridge virbr0

virbr0 8b1532d4-d99b-4201-8163-44d733302230 bridge virbr0

业已看不到team0 相关的剧情,表达删除成功

壹度看不到team0 相关的情节,表明删除成功

相关文章