您的位置:时时app平台注册网站 > 时时app平台注册网站 > 互连网组Network Teaming时时app平台注册网站

互连网组Network Teaming时时app平台注册网站

2019-11-08 02:01

2 创建port接口(SLAVE)

3 启用网络组

name: ethtool

GATEWAY=200.200.200.1

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

TEAM_CONFIG="{"runner":{"name":"loadbalance"}}"

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

ens38

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

翻看一下

[root@centos7 ~]# teamdctl team0 state

若总是名不钦点,默以为team-slave-IFACE

[root@centos7 ~]# nmcli connection show

DEVICE=team0

setup:

IPADDR=200.200.200.200

[root@centos7 ~]# nmcli connection add type team con-name team0 ifname team0 config '{"runner":{"name":"loadbalance"}}'

翻看下情形

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

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

ONBOOT=yes

[root@centos7 ~]# nmcli connection show

NAME=team0

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

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

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

ONBOOT=yes

6 剔除网络组

启用互联网组:nmcli connection up team0

5 网络组配置文件

IPV4_FAILURE_FATAL=no

(1卡塔尔国MASTE中华V配置文件

SLAVEname 钦命连接名,INTname内定互连网接口名(也正是钦定要加盟互联网组的网卡名卡塔尔,TEAMnmae钦命所属网络组。

(2)删除TEAM组成员

1 创造网络组接口

link: up

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

PREFIX=24

[root@centos7 ~]# teamdctl team0 state

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

instance[link_watch_0]:

(2卡塔 尔(阿拉伯语:قطر‎给网路组team0配置IP地址

link: up

能够见见已经停业成功

down count: 0

JSON指定runner方式,格式为:'{"runner":{"name":"METHOD"}}'

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

DEFROUTE=yes

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

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

4 查看互连网组状态

link summary: up

name: ethtool

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

(2卡塔尔国组成员(SLAVE卡塔尔配置文件

ens34

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

DEVICE=ens34

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

link watches:

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

TEAM_MASTER=team0

(1卡塔 尔(英语:State of Qatar)创立网络接口组team0

    这里运用ens34、ens38两块网卡

instance[link_watch_0]:

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

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

DEVICETYPE=Team

[root@centos7 ~]# nmcli connection delete team0

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

NAME UUID TYPE DEVICE

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

BOOTPROTO=none

创办接口组

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

NAME=team0-ens34

down count: 0

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

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

ports:

link watches:

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

link summary: up

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

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

小心:那几个布局文件和网卡配置文件是互相独立的。

DEVICETYPE=TeamPort

[root@centos7 ~]# nmcli connection up team0

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

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

Device "team0" does not exist

(3)删除TEAM组

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

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

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

[root@centos7 ~]# nmcli connection down team0

NAME UUID TYPE DEVICE

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

runner: loadbalance

[互连网组Network Teaming时时app平台注册网站。root@centos7 ~]# nmcli connection up team0-ens38

(1卡塔 尔(英语:State of Qatar)断开连接

启用组成员:nmcli connection up SLAVEname

网络组team:是将多少个网卡聚合在协同,进而达成容错和抓实吞吐量

teamdctl TEAMname state

本文由时时app平台注册网站发布于时时app平台注册网站,转载请注明出处:互连网组Network Teaming时时app平台注册网站

关键词: