Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to bind multiple network cards in ceph cluster

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly shows you "how to bind multiple network cards in ceph cluster". The content is easy to understand and clear. I hope it can help you solve your doubts. Let me lead you to study and learn this article "how to bind multiple network cards in ceph cluster".

Environment: ubuntu16.04 LTS four 10 Gigabit fiber ports, build ceph cluster, ceph cluster network binds two network cards, ceph public network binds two network cards, binding mode mode=4, Huawei 10 Gigabit S6720 switch

Configure the server network port configuration file

1. Install ifenslave

Apt-get install ifenslave-2.6

2. The network port configuration file is as follows

# The primary network interface

Auto enP2p1s0f1

Iface enP2p1s0f1 inet manual

Bond-master bond0

Iface enP2p1s0f2 inet manual

Bond-master bond0

Auto enP2p1s0f3

Iface enP2p1s0f3 inet manual

Bond-master bond1

Auto enP2p1s0f4

Iface enP2p1s0f4 inet manual

Bond-master bond1

Auto bond0

Iface bond0 inet static

Address 10.33.0.40

Netmask 255.255.0.0

Network 10.33.0.0

Broadcast 10.33.255.255

Gateway 10.33.0.254

Dns-nameservers 172.16.2.1

Bond-mode 4

Bond-miimon 100

Bond-lacp-rate 1

Bond-slaves enP2p1s0f1 enP2p1s0f2

Auto bond1

Iface bond1 inet static

Address 192.168.3.40

Netmask 255.255.255.0

Network 192.168.3.0

Broadcast 192.168.3.255

Bond-mode 4

Bond-miimon 100

Bond-lacp-rate 1

Bond-slaves enP2p1s0f3 enP2p1s0f4

3. Restart the network

Systemctl restart networking

4. View network status

With ip addr, you can see that bond0 and bond1 also have the same mac address for the slave Nic.

5. Check the status of the bound Nic

Cat / proc/net/bonding/bond0

Cat / proc/net/bonding/bond1

If the configuration is correct, you can see that the Nic is up in the output.

Reference https://help.ubuntu.com/community/UbuntuBonding

II. Switch configuration

1. The switch needs to enable lacp and configure trunk. One of the ports is configured as follows:

Interface Eth-Trunk1

Port link-type access

Port default vlan 330

Mode lacp

These are all the contents of the article "how to bind multiple network cards in ceph clusters". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report