Home Operation and Maintenance Linux Operation and Maintenance Detailed explanation of the steps to implement network groups

Detailed explanation of the steps to implement network groups

Jun 29, 2017 am 11:19 AM
network network

Network group team: It aggregates multiple network cards together to achieve fault tolerance and improve throughput

1 Create a network group interface

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

TEAMname specifies the connection name, INname specifies the interface name,

JSON specifies the runner mode, the format is: '{" runner":{"name":"METHOD"}}'

METHOD can be broadcast, roundrobin, activebackup, loadbalance, lacp

(1) Create network interface group 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.

(2) Configure the IP address for network group team0

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

2 Create port interface (SLAVE)

is to generate group TEAM group members configuration file.

Note: This configuration file and the network card configuration file are independent of each other.

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

SLAVEname specifies the connection name, INTname specifies the network interface name (equivalent to specifying the name of the network card to join the network group), TEAMnmae specifies the network group it belongs to.

If the connection name is not specified, the default is team-slave-IFACE

Create an interface group

Two network cards, ens34 and ens38, are used here

[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.

3 Enable network group

Enable network group: nmcli connection up team0

Enable group members: 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)

4 Check the network group status

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

5 Network group configuration file

(1) MASTER configuration file

[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

(2) Group member (SLAVE) configuration file

[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

6 Delete network group

(1) Disconnect

[root@centos7 ~]# nmcli connection down team0

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

Check the status

[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-bf 61 -413d-a2c7-289966bee1a7 802-3-ethernet --

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

You can see that it has been closed successfully

(2) Delete TEAM group members

[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) Delete TEAM group

[root@centos7 ~]# nmcli connection delete team0

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

Check it

[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

No team0 related content can be seen, indicating that the deletion was successful

The above is the detailed content of Detailed explanation of the steps to implement network groups. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to adjust MTU size on Windows 11 How to adjust MTU size on Windows 11 Aug 25, 2023 am 11:21 AM

If you're suddenly experiencing a slow internet connection on Windows 11 and you've tried every trick in the book, it might have nothing to do with your network and everything to do with your maximum transmission unit (MTU). Problems may occur if your system sends or receives data with the wrong MTU size. In this post, we will learn how to change MTU size on Windows 11 for smooth and uninterrupted internet connection. What is the default MTU size in Windows 11? The default MTU size in Windows 11 is 1500, which is the maximum allowed. MTU stands for maximum transmission unit. This is the maximum packet size that can be sent or received on the network. every support network

PlayStation network login fails, but internet connection succeeds PlayStation network login fails, but internet connection succeeds Feb 19, 2024 pm 11:33 PM

Some players are experiencing a strange issue on PS4 or PS5 at launch. For example, this can cause distress when their PlayStation Network login fails, but their internet connection is fine. You may encounter errors when entering your login information and may not be able to join PSParty chat. If you encounter a similar problem, this guide may help you solve it. Next to PlayStationNetworkSign-in, you will see the error message ‘AnErrorHaveAreAre’ and it will say ‘Failure’. Other parameters like getting IP address, internet connection and connection speed were successful. So, what could be the problem here? I will give you a job

WLAN expansion module has stopped [fix] WLAN expansion module has stopped [fix] Feb 19, 2024 pm 02:18 PM

If there is a problem with the WLAN expansion module on your Windows computer, it may cause you to be disconnected from the Internet. This situation is often frustrating, but fortunately, this article provides some simple suggestions that can help you solve this problem and get your wireless connection working properly again. Fix WLAN Extensibility Module Has Stopped If the WLAN Extensibility Module has stopped working on your Windows computer, follow these suggestions to fix it: Run the Network and Internet Troubleshooter to disable and re-enable wireless network connections Restart the WLAN Autoconfiguration Service Modify Power Options Modify Advanced Power Settings Reinstall Network Adapter Driver Run Some Network Commands Now, let’s look at it in detail

How to solve win11 DNS server error How to solve win11 DNS server error Jan 10, 2024 pm 09:02 PM

We need to use the correct DNS when connecting to the Internet to access the Internet. In the same way, if we use the wrong dns settings, it will prompt a dns server error. At this time, we can try to solve the problem by selecting to automatically obtain dns in the network settings. Let’s take a look at the specific solutions. How to solve win11 network dns server error. Method 1: Reset DNS 1. First, click Start in the taskbar to enter, find and click the "Settings" icon button. 2. Then click the "Network & Internet" option command in the left column. 3. Then find the "Ethernet" option on the right and click to enter. 4. After that, click "Edit" in the DNS server assignment, and finally set DNS to "Automatic (D

Fix 'Failed Network Error' downloads on Chrome, Google Drive and Photos! Fix 'Failed Network Error' downloads on Chrome, Google Drive and Photos! Oct 27, 2023 pm 11:13 PM

What is the "Network error download failed" issue? Before we delve into the solutions, let’s first understand what the “Network Error Download Failed” issue means. This error usually occurs when the network connection is interrupted during downloading. It can happen due to various reasons such as weak internet connection, network congestion or server issues. When this error occurs, the download will stop and an error message will be displayed. How to fix failed download with network error? Facing “Network Error Download Failed” can become a hindrance while accessing or downloading necessary files. Whether you are using browsers like Chrome or platforms like Google Drive and Google Photos, this error will pop up causing inconvenience. Below are points to help you navigate and resolve this issue

Fix: WD My Cloud doesn't show up on the network in Windows 11 Fix: WD My Cloud doesn't show up on the network in Windows 11 Oct 02, 2023 pm 11:21 PM

If WDMyCloud is not showing up on the network in Windows 11, this can be a big problem, especially if you store backups or other important files in it. This can be a big problem for users who frequently need to access network storage, so in today's guide, we'll show you how to fix this problem permanently. Why doesn't WDMyCloud show up on Windows 11 network? Your MyCloud device, network adapter, or internet connection is not configured correctly. The SMB function is not installed on the computer. A temporary glitch in Winsock can sometimes cause this problem. What should I do if my cloud doesn't show up on the network? Before we start fixing the problem, you can perform some preliminary checks:

What should I do if the earth is displayed in the lower right corner of Windows 10 when I cannot access the Internet? Various solutions to the problem that the Earth cannot access the Internet in Win10 What should I do if the earth is displayed in the lower right corner of Windows 10 when I cannot access the Internet? Various solutions to the problem that the Earth cannot access the Internet in Win10 Feb 29, 2024 am 09:52 AM

This article will introduce the solution to the problem that the globe symbol is displayed on the Win10 system network but cannot access the Internet. The article will provide detailed steps to help readers solve the problem of Win10 network showing that the earth cannot access the Internet. Method 1: Restart directly. First check whether the network cable is not plugged in properly and whether the broadband is in arrears. The router or optical modem may be stuck. In this case, you need to restart the router or optical modem. If there are no important things being done on the computer, you can restart the computer directly. Most minor problems can be quickly solved by restarting the computer. If it is determined that the broadband is not in arrears and the network is normal, that is another matter. Method 2: 1. Press the [Win] key, or click [Start Menu] in the lower left corner. In the menu item that opens, click the gear icon above the power button. This is [Settings].

How to enable/disable Wake on LAN in Windows 11 How to enable/disable Wake on LAN in Windows 11 Sep 06, 2023 pm 02:49 PM

Wake on LAN is a network feature on Windows 11 that allows you to remotely wake your computer from hibernation or sleep mode. While casual users don't use it often, this feature is useful for network administrators and power users using wired networks, and today we'll show you how to set it up. How do I know if my computer supports Wake on LAN? To use this feature, your computer needs the following: The PC needs to be connected to an ATX power supply so that you can wake it from sleep mode remotely. Access control lists need to be created and added to all routers in the network. The network card needs to support the wake-up-on-LAN function. For this feature to work, both computers need to be on the same network. Although most Ethernet adapters use

See all articles