ã¯ããã«
ã¨ããç°å¢ã®è©±ãinternalã®Linuxãµã¼ãã§bonding(ãã³ãã£ã³ã°)ãçµãã§ãã¾ãããmodeã¯4ã802.3ad(LACP)æºæ ã®ãªã³ã¯ã¢ã°ãªã±ã¼ã·ã§ã³ãªã¢ã¼ãã§ãã
ã¡ãªã¿ã«ãbondingã¨ã¯ã»ã»ã»
ã¡ãªã¿ã«ã"bonding"ã¨ã¯ããããã¯ã¼ã¯ã¤ã³ã¿ã¼ãã§ã¼ã¹ãåé·å(ã¾ãã¯è² è·åæ£)ããæ¹æ³ã§ãè¤æ°ã®NICãæãã¦1æ¬ã«è¦ãããã¨ãã§ãã¾ãããã¼ãã³ã°(teaming)ã¨å¼ã°ãããããã¾ããã
ã§ãLinuxã§ã¯bondingã«ãããã¤ãã¢ã¼ãããã£ã¦ãè¤æ°ã®ããªã·ã¼ã®ä¸ããé¸æãããã¨ãã§ãã¾ãã
25.7.2. チャンネルボンディングの使用 Red Hat Enterprise Linux 6 | Red Hat Customer Portal
- balance-rr å㯠0 - èé害æ§ã¨ãã¼ããã©ã³ã·ã³ã°ã®ããã©ã¦ã³ãããã³ããªã·ã¼ãè¨å®ãã¾ããå©ç¨å¯è½ãªç¬¬ 1 ã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ããããããã®ãã³ãã£ã³ã°ãããã¹ã¬ã¼ãã¤ã³ã¿ã¼ãã§ã¼ã¹ã§éåä¿¡ãé 次è¡ããã¾ãã
- active-backup å㯠1 - èé害æ§ã®ããã¢ã¯ãã£ããªããã¯ã¢ããããªã·ã¼ãè¨å®ãã¾ããå©ç¨å¯è½ãªç¬¬ 1 ã®ãã³ãã£ã³ã°ãããã¹ã¬ã¼ãã¤ã³ã¿ã¼ãã§ã¼ã¹ã«ããéåä¿¡ãè¡ããã¾ããå¥ã®ãã³ãã£ã³ã°ãããã¹ã¬ã¼ãã¤ã³ã¿ã¼ãã§ã¼ã¹ã¯ãã¢ã¯ãã£ããªãã³ãã£ã³ã°ãããã¹ã¬ã¼ãã¤ã³ã¿ã¼ãã§ã¼ã¹ã失æããå ´åã«ã®ã¿ä½¿ç¨ããã¾ãã
- balance-xor å㯠2 - èé害æ§ã¨ãã¼ããã©ã³ã·ã³ã°ã®ãã XOR (æä»çè«çå) ããªã·ã¼ãè¨å®ãã¾ãããã®æ¹æ³ã使ç¨ããã¨ãã¤ã³ã¿ã¼ãã§ã¼ã¹ã«ãã£ã¦åä¿¡è¦æ±ã® MAC ã¢ãã¬ã¹ã¨ã¹ã¬ã¼ã NIC ã® 1 ã¤ã® MAC ã¢ãã¬ã¹ãä¸è´ãã¾ãããã®ãªã³ã¯ã確ç«ããã¨ãå©ç¨å¯è½ãªç¬¬ 1 ã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ããéä¿¡ãé 次è¡ããã¾ãã
- broadcast å㯠3 - èé害æ§ã®ããããã¼ããã£ã¹ãããªã·ã¼ãè¨å®ãã¾ããå ¨ã¦ã®éä¿¡ã¯ãå ¨ã¦ã®ã¹ã¬ã¼ãã¤ã³ã¿ã¼ãã§ã¼ã¹ã§è¡ããã¾ãã
- 802.3ad å㯠4 - IEEE 802.3ad åçãªã³ã¯ã¢ã°ãªã²ã¼ã·ã§ã³ã®ããªã·ã¼ãè¨å®ãã¾ããåä¸ã®é度ã¨ãã¥ãã¬ãã¯ã¹è¨å®ãå ±æããã¢ã°ãªã²ã¼ã·ã§ã³ã°ã«ã¼ããä½æãã¾ããã¢ã¯ãã£ããªã¢ã°ãªã²ã¼ã¿ã¼ã®å ¨ã¦ã®ã¹ã¬ã¼ãã§éåä¿¡ãè¡ãã¾ãã802.3ad ã«å¯¾å¿ããã¹ã¤ãããå¿ è¦ã§ãã
- balance-tlb å㯠5 - èé害æ§ã¨ãã¼ããã©ã³ã·ã³ã°ã®ããéä¿¡ãã¼ããã©ã³ã·ã³ã° (TLB) ããªã·ã¼ãè¨å®ãã¾ããçºä¿¡ãã©ãã£ãã¯ã¯ãåã¹ã¬ã¼ãã¤ã³ã¿ã¼ãã§ã¼ã¹ã®ç¾å¨ã®è² è·ã«å¾ã£ã¦åæ£ããã¾ããåä¿¡ãã©ãã£ãã¯ã¯ãç¾å¨ã®ã¹ã¬ã¼ãã«ããåä¿¡ããã¾ããåä¿¡ãã¦ããã¹ã¬ã¼ãã失æããã¨ãå¥ã®ã¹ã¬ã¼ãã失æããã¹ã¬ã¼ãã® MAC ã¢ãã¬ã¹ãå¼ãç¶ãã¾ãã
- balance-alb å㯠6 - èé害æ§ã¨ãã¼ããã©ã³ã·ã³ã°ã®ããã¢ã¯ãã£ããã¼ããã©ã³ã·ã³ã° (ALB) ããªã·ã¼ãè¨å®ãã¾ããIPV4 ãã©ãã£ãã¯ç¨ã®éåä¿¡ãã¼ããã©ã³ã·ã³ã°ãå«ã¾ãã¾ããARP ãã´ã·ã¨ã¼ã·ã§ã³ã«ãããåä¿¡ãã¼ããã©ã³ã·ã³ã°ãå¯è½ã§ãã
ã¯ããããã¾ã§ãããããã
é話ä¼é¡ãã¨ãããµã¼ãã§ã»ã»ã»
ã¢ã¼ã4ã®bondingã®(éä¿¡æ)è² è·åæ£ã¢ã«ã´ãªãºã 㯠XOR ã¹ã¿ã¤ã«ã¨ãªãã®ã§ãããã¾ã§ãå¤å°åã£ã¦ãããµã¼ãã¯ãããªãã«è¦ã¦ãã¾ããã
é§èåèåï¼
ä»åã¯éã£ãã®ã§ããåãæ¹ã®ã¬ãã«ãã»ã»ã»ï¼ï¼
ã¾ãã¯ã°ã©ããè¦ã¦ãã ãã
以ä¸ã¯ããã®ãµã¼ãã®eth0ã¨eth1ã®ãã©ãã£ãã¯ã®ã°ã©ãã§ãã
ãã©ãã£ãã¯ã®åããããªãï½
ããã¾ã§ããã£ããåã£ãã®ã¯åãã¦è¦ãã®ã§ããããã«é©ãã¾ãããããç¬ã£ã¡ããã¬ãã«ï½
çæ¹ã920Mbpsãããçæ¹ã40Mbpsã¨ãã»ã»ã»ï½
ã¨ãããã¨ã§ãçé¢ç®ã«éä¿¡ã®ããã·ã¥ããªã·ã¼ã調ã¹ã¦ã¿ãã¨ããã
- 0 å㯠layer2 - ããã©ã«ãè¨å®ã§ãããã®ãã©ã¡ã¼ã¿ã¼ã¯ããã¼ãã¦ã§ã¢ MAC ã¢ãã¬ã¹ã® XOR ã使ç¨ãã¦ããã·ã¥ãçæãã¾ãã使ç¨ããå ¬å¼ã¯ä»¥ä¸ã®ã¨ããã§ã:
(<source_MAC_address> XOR <destination_MAC>) MODULO <slave_count>25.7.2. チャンネルボンディングの使用 Red Hat Enterprise Linux 6 | Red Hat Customer Portal
ããã©ã«ãã¯Layer 2ã¨ãªã£ã¦ããããã§ããã
ã¨ããããã§ã主ãªéä¿¡å
ã®MACã¢ãã¬ã¹ã調ã¹ã¦ã¿ã¾ãã
$ tomahawk -t 10 -u username -c -f server.list '/sbin/ifconfig | grep "bond0 "' [email protected] % /sbin/ifconfig | grep "bond0 " bond0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:50 [email protected] % /sbin/ifconfig | grep "bond0 " bond0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:8C [email protected] % /sbin/ifconfig | grep "bond0 " bond0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:96 [email protected] % /sbin/ifconfig | grep "bond0 " bond0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:26 [email protected] % /sbin/ifconfig | grep "bond0 " bond0 Link encap:Ethernet HWaddr XX:XX:XX:XX:YY:AE [email protected] % /sbin/ifconfig | grep "bond0 " bond0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:68 [email protected] % /sbin/ifconfig | grep "bond0 " bond0 Link encap:Ethernet HWaddr XX:XX:XX:XX:YY:E0 [email protected] % /sbin/ifconfig | grep "bond0 " bond0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:18 [email protected] % /sbin/ifconfig | grep "bond0 " bond0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:A0 [email protected] % /sbin/ifconfig | grep "bond0 " bond0 Link encap:Ethernet HWaddr XX:XX:XX:XX:ZZ:E0 [email protected] % /sbin/ifconfig | grep "bond0 " bond0 Link encap:Ethernet HWaddr XX:XX:XX:XX:ZZ:60 [email protected] % /sbin/ifconfig | grep "bond0 " bond0 Link encap:Ethernet HWaddr XX:XX:XX:YY:XX:34 [email protected] % /sbin/ifconfig | grep "bond0 " bond0 Link encap:Ethernet HWaddr XX:XX:XX:YY:XX:30 ã»ã»ã»ã»ã»ä»¥ä¸ãçç¥ã»ã»ã»ã»ã»
éä¿¡å
(ã¨ãããµã¼ã)ã®MACã¢ãã¬ã¹ã¨ã®æä»çè«çå(XOR)ããã»ã£ã¨ãã©"å½"ã¨ããçµæã«ï½ï½
ã¨ããããã§ããã©ãã£ãã¯ãNICã«ãã£ã¦åã£ã¦ãã¾ãã®ã¯å½ç¶ã®çµæã§ãã£ãããã§ãã
802.3ad(LACP)ã¢ã¼ãã§ã®éä¿¡ããã·ã¥ããªã·ã¼
調ã¹ã¦ããã¨éä¿¡ããã·ã¥ããªã·ã¼ã¯"layer2"ã"layer3+4"ã"layer2+3"ã®3種é¡ããé¸æã§ãããã¨ããããã¾ãã
ã¨ãããã¨ã§ãä»åã¯"layer2+3"ã«éä¿¡ããã·ã¥ããªã·ã¼ãå¤æ´ãã¦ã¿ã¾ããã
- 2 å㯠layer2+3 - layer2 åã³ layer3 ãããã³ã«æ å ±ã®çµã¿åããã使ç¨ãã¦ãããã·ã¥ãçæãã¾ãããã¼ãã¦ã§ã¢ MAC ã¢ãã¬ã¹åã³ IP ã¢ãã¬ã¹ã® XOR ã使ç¨ãã¦ãããã·ã¥ãçæãã¾ããå ¬å¼ã¯ä»¥ä¸ã®ã¨ããã§ã:
(((<source_IP> XOR <dest_IP>) AND 0xffff) XOR ( <source_MAC> XOR <destination_MAC> )) MODULO <slave_count>25.7.2. チャンネルボンディングの使用 Red Hat Enterprise Linux 6 | Red Hat Customer Portal
è¨å®ã¯ã"/etc/modprobe.conf"ã«ä»¥ä¸ã®ãããªæãã§è¨è¼ãã¦ã(念ã®ãã)ãªãã¼ããã¾ããã
# cat /etc/modprobe.conf ã»ã»ã»ååçç¥ã»ã»ã» alias bond0 bonding options bond0 mode=4 lacp_rate=1 miimon=200 xmit_hash_policy=layer2+3
ããã¨ããããªãã¾ããï¼
以ä¸ããä¸è¨è¨å®å¾ã®åãããã¯ã¼ã¯ã¤ã³ã¿ã¼ãã§ã¼ã¹ã§ã®ãã©ãã£ãã¯ã®ã°ã©ãã§ãã
ã¡ãã£ã¨è¦è¾ãã§ãããeth0ã¨eth1ã®ãã©ãã£ãã¯ãå¥éºã«åæ£ã§ãã¦ãããã¨ããããã¾ãã
ãããã«
bondingã®è¨å®ãã©ã¡ã¼ã¿ã¯ãããããã®ç¨®é¡ãããã®ã§ããã£ããèªãã§ãããæ¹ãããã§ãããåçã
ã¡ãªã¿ã«ã(ããã¾ã§ãç´¹ä»ãã¦ãã¾ããã)以ä¸ã®RedHatããã®ããã¥ã¡ã³ããçµæ§è©³ããã§ãã
- 24.7.2. ãã£ã³ãã«ãã³ãã£ã³ã°ã®ä½¿ç¨
- http://docs.redhat.com/docs/ja-JP/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/sec-Using_Channel_Bonding.html
ããã§ã¯ï¼ =͟͟͞͞(๑•̀=͟͟͞͞(๑•̀д•́=͟͟͞͞(๑•̀д•́๑)=͟͟͞͞(๑•̀д•́
ãããã¦èªã¿ãã
- Linux で bonding の active な interface を変更するコマンド - 元RX-7乗りの適当な日々
- Linux で bonding のモード変更時の反映 - 元RX-7乗りの適当な日々
- mode=4 (802.3ad(LACP)) の bonding 動作確認 - 元RX-7乗りの適当な日々
Linuxãããã¯ã¼ã¯ç®¡ç 第3ç
- ä½è : Tony Bautts,Terry Dawson,Gregor N. Purdy,é«æ©æµ©å(ç£è¨³),ä¼è¤ç浩(ç£è¨³),ä¸å¥½å人
- åºç社/ã¡ã¼ã«ã¼: ãªã©ã¤ãªã¼ã¸ã£ãã³
- çºå£²æ¥: 2005/11/17
- ã¡ãã£ã¢: 大åæ¬
- è³¼å ¥: 1人 ã¯ãªãã¯: 13å
- ãã®ååãå«ãããã° (7件) ãè¦ã