LINUX7 network card High-availability team

Source: Internet
Author: User

Team: High Availability

Prepare two network cards first, they have different MAC addresses

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7E/6A/wKiom1b-OiiBiEj9AAAXRGesIcA074.png "title=" Picture 1.png "alt=" Wkiom1b-oiibiej9aaaxrgesica074.png "/>

Create a new connection, type is the team connection name team0.

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7E/6A/wKiom1b-OjXBwyxgAAAJizkgXk8741.png "title=" Picture 2.png "alt=" Wkiom1b-ojxbwyxgaaajizkgxk8741.png "/>

Activebackup indicates hot standby,loadbalance indicates load balancing

For example, change activebackup to loadbalance

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7E/6A/wKiom1b-OkbhdD0VAAAEdil-SLI184.png "title=" Picture 3.png "alt=" Wkiom1b-okbhdd0vaaaedil-sli184.png "/>

Master is configured, you have to configure slave, which will eno16777736 and en o33554960 two Nic joined to Team0

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7E/6A/wKiom1b-OlKB2iVpAAAR4L7Xggg803.png "title=" Picture 4.png "alt=" Wkiom1b-olkb2ivpaaar4l7xggg803.png "/>

Perform nmcli connection show command to view the status of team0-1 and team0-2

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7E/66/wKioL1b-OwKzndCDAAAUQ_fSfa0633.png "title=" Picture 5.png "alt=" Wkiol1b-owkzndcdaaauq_fsfa0633.png "/>

can see team0-1 and team0-2 are not connected, execute the following command to connect team0-1 and team0-2

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7E/6A/wKiom1b-OmyAJOzqAAAjuFGWM5o114.png "title=" Picture 6.png "alt=" Wkiom1b-omyajozqaaajufgwm5o114.png "/>

Execute ifconfigand find that the network card has the same address so that the switch can transfer the packet to the same logical port

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7E/6A/wKiom1b-OnihvBREAAAe5cZtMjg371.png "title=" Picture 7.png "alt=" Wkiom1b-onihvbreaaae5cztmjg371.png "/>

Finally assign an IP address to the team0 (You can also set the IP address directly with the graphical tools )

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7E/67/wKioL1b-OyejoaV3AAAHMC9kEPE606.png "title=" Picture 8.png "alt=" Wkiol1b-oyejoav3aaahmc9kepe606.png "/>

Test it, first look at the current state of Team0

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7E/6A/wKiom1b-OoziawECAAAUvrw0nZ8643.png "title=" Picture 9.png "alt=" Wkiom1b-ooziawecaaauvrw0nz8643.png "/>

Turn off the eno16777736 Connection, switch to the second physical port automatically, and test successfully

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7E/67/wKioL1b-OzrRl7UJAAAOx-Ot2PQ958.png "title=" Picture 10.png "alt=" Wkiol1b-ozrrl7ujaaaox-ot2pq958.png "/>


This article from "Xu Willow Blog" blog, please be sure to keep this source http://xylbk.blog.51cto.com/10543671/1759295

LINUX7 network card High-availability team

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.