UbuntuBonding - Community Help Wiki
Ubuntu 14.04.2 Serverでbondingインターフェイスを作って色々と難儀してしまったのでメモ。
そもそもbondingとはなんぞや、という方は以下を参照。
参考情報
https://h50146.www5.hpe.com/products/software/oe/linux/mainstream/support/doc/option/nic/bonding_diff.html
http://tomoyo.osdn.jp/cgi-bin/lxr/source/Documentation/networking/bonding.txt
Linux Bonding mode=0の恐怖 – テックセンター – Blog – テックセンター – Dell コミュニティ /
http://ja.community.dell.com/techcenter/b/weblog/archive/2014/05/16/linux-bonding-mode-0
べっ、別に・・・あんたの(以下略) | ネットワーク構築の注意点
そういうことです
インターフェイス、およびmodeの説明についてはWeb等の資料があるので割愛。
個人的に今更知って関心したのは、Bondingインターフェイスのパラメータは一時的にでもオンラインで変更が可能だったということです。
2012-04-12
ほげー
たとえばxmit_hash_policy
。balance-xor
及び802.3ad
のときの送信ポリシーはデフォルトではlayer2(0)が指定されますが、これだと使用NICに偏りができるので、layer2+3(2)にしたい、というときは以下の様な感じで設定するようです。
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011) Bonding Mode: IEEE 802.3ad Dynamic link aggregation Transmit Hash Policy: layer2 (0) MII Status: up MII Polling Interval (ms): 100 Up Delay (ms): 0 Down Delay (ms): 0 802.3ad info LACP rate: fast Min links: 0 Aggregator selection policy (ad_select): stable Active Aggregator Info: Aggregator ID: 1 Number of ports: 1 Actor Key: 17 Partner Key: 1 Partner Mac Address: 00:00:00:00:00:00 Slave Interface: eth1 MII Status: up Speed: 1000 Mbps Duplex: full Link Failure Count: 0 Permanent HW addr: 60:eb:69:07:d9:a1 Aggregator ID: 1 Slave queue ID: 0 Slave Interface: eth3 MII Status: up Speed: 1000 Mbps Duplex: full Link Failure Count: 0 Permanent HW addr: 00:15:17:48:2c:77 Aggregator ID: 2 Slave queue ID: 0
% echo 2| sudo tee /sys/class/net/bond1/bonding/xmit_hash_policy 2
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011) Bonding Mode: IEEE 802.3ad Dynamic link aggregation Transmit Hash Policy: layer2+3 (2) MII Status: up MII Polling Interval (ms): 100 Up Delay (ms): 0 Down Delay (ms): 0 802.3ad info LACP rate: fast Min links: 0 Aggregator selection policy (ad_select): stable Active Aggregator Info: Aggregator ID: 1 Number of ports: 1 Actor Key: 17 Partner Key: 1 Partner Mac Address: 00:00:00:00:00:00 Slave Interface: eth1 MII Status: up Speed: 1000 Mbps Duplex: full Link Failure Count: 0 Permanent HW addr: 60:eb:69:07:d9:a1 Aggregator ID: 1 Slave queue ID: 0 Slave Interface: eth3 MII Status: up Speed: 1000 Mbps Duplex: full Link Failure Count: 0 Permanent HW addr: 00:15:17:48:2c:77 Aggregator ID: 2 Slave queue ID: 0
他にもmode、bondingのmasterインターフェイスの指定、miimon
の時間の変更なども出来るようです。
Red Hat Customer Portal - Access to 24x7 support and knowledge
頻繁にオンラインで変更することは無いとは思いますが、環境設定時にあれこれするときなんかは覚えておくと便利かもしれません。