Multi-card team to do

Concise that is bound to multiple physical NICs into a logical network card, to increase bandwidth, or implement standby function, increased hardware redundancy to achieve higher system stability, there are mainly two team bond and a practice, while bond is mainly the case for dual-card, the team and can support up to eight network cards do bindings, this article mainly introduce dual-card team to lead the logic card practices:

1. Review the current system of two network cards, ok hardware description condition is satisfied, because I opened dhcp, so the two card has its own ip address.

2.Centos7 system directory under /usr/share/doc/teamd-1.27/example_ifcfgs/1/ team has the relevant configuration file, we like a direct copy, copy to / etc / sysconfig / network-scripts / directory

3. Go to the directory replication, ls can see that we copied template file with the original NIC configuration file

4. We will be the original card system configuration file backups, and change the name to see the two ifconfig NIC ifcfg-eth1 and ifcfg-eth2 two profile name: ifcfg-ens33 and ifcfg-ens37

5. Modify the ifcfg-ens33 ifcfgens37 content files, modify the name of two, increasing NAME =

 

6. Modify the ifcfg-team_test0 contents of the file, modify the place more, modifying or adding a place marked by a red frame, is a change in the name, the new network card configuration attributes, etc.

It is worth mentioning that, roundrobin showing the main functions of the logic card team, currently load balancing, if a dual card standby call the shots, then the roundrobin modified to activebackup, you can complete the conversion function.

ok, all the work is done, we restart the network: systemctl restart network

7. Use ping to test our team logic card. ok, no problem, but also be able to ping the gateway, the configuration is successful.

8. Finally, we look at changes in the network card configuration information, you can see the new logic card, ok, no problem for themselves.

 

Guess you like

Origin www.cnblogs.com/xiaoyuxixi/p/11320908.html