您好,登錄后才能下訂單哦!
這篇文章主要為大家展示了“ceph集群如何綁定多網(wǎng)卡”,內(nèi)容簡而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領(lǐng)大家一起研究并學(xué)習(xí)一下“ceph集群如何綁定多網(wǎng)卡”這篇文章吧。
環(huán)境:ubuntu16.04 LTS 四個(gè)萬兆光纖網(wǎng)口,搭建ceph集群,ceph集群網(wǎng)綁定兩個(gè)網(wǎng)卡,ceph公共網(wǎng)綁定兩個(gè)網(wǎng)卡,綁定模式mode=4,交換機(jī)用華為萬兆S6720
一、配置服務(wù)端網(wǎng)口配置文件
1、安裝ifenslave
apt-get install ifenslave-2.6
2、網(wǎng)口配置文件如下
# 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、重啟網(wǎng)絡(luò)
systemctl restart networking
4、查看網(wǎng)絡(luò)狀態(tài)
用ip addr可以看到bond0和bond1也slave網(wǎng)卡有相同的mac地址。
5、查看綁定網(wǎng)卡狀態(tài)
cat /proc/net/bonding/bond0
cat /proc/net/bonding/bond1
如果配置正確的話在輸出內(nèi)容中可以看到網(wǎng)卡是up狀態(tài)。
參考 https://help.ubuntu.com/community/UbuntuBonding
二、交換機(jī)配置
1、交換機(jī)需要使能lacp功能,并配置trunk,其中一個(gè)端口配置如下:
interface Eth-Trunk1
port link-type access
port default vlan 330
mode lacp
以上是“ceph集群如何綁定多網(wǎng)卡”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對(duì)大家有所幫助,如果還想學(xué)習(xí)更多知識(shí),歡迎關(guān)注億速云行業(yè)資訊頻道!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請(qǐng)聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。