CentOS5¿¡¼­ ·£Ä«µå2°³ BondingÇϴ°Å...

   Á¶È¸ 16526   Ãßõ 0    

À¥¿¡¼­ ¸®¾óÅØ·£Ä«µå 2°³¸¦ PC¿¡ ¼³Ä¡ÇÑ ÈÄ ¸®´ª½º¸¦ ¿Ã·Á ÀÌ·¸°Ô ¼³Ä¡µÈ ·£Ä«µå2°³¸¦ ¹­¾î¼­(bond)
´ë¿ªÆø2¹èÀÇ È¿°ú ȤÀº ·£ÄÉÀ̺íÀÌ Çϳª°¡ ºüÁ®µµ µ¿ÀÛÇϴ°ŠÇغ¼·Á°í Çߴµ¥...

ù°·Î Ä¿³Î¿¡¼­ Network device support ¿¡¼­ Bonding driver support °¡ äũµÇ¾î¾ß ÇѴٴµ¥
·¹µåÇÞÀº ±âº»À̶ó°í Çϳ׿ä. CentOS5°¡ ·¹µåÇÞÀÇ Å¬·ÐÀ̶óÇÏ¿© µÉÁپ˾Ҵµ¥...È®ÀÎÀ» Çغ¸·Á°í
make menuconfig ¸¦ Çß´õ´Ï, "º¯°æÇÒ ±ÔÄ¢ÀÌ ¾øÀ½"  ÀÌ·¯¸é¼­ Ä¿³Î¿¡ Á¢¼ÓÀÌ ¾ÈµÇ³×¿ä.

±×·¡¼­ ÀÏ´Ü bonding¼³Á¤À» ´ÙÀ½°ú °°ÀÌ Çß½À´Ï´Ù¸¸... ¹¹°¡ À߸øµÈ °ÍÀÎÁö...±×¸®°í, CentOS5¿¡¼­
Ä¿³Î¿¡ ´ëÇÑ ¼³Á¤À» È®ÀÎÇÏ·Á¸é ¾î¶»°Ô ÇؾßÇÏ´ÂÁö ¾Ë·ÁÁÖ¼¼¿ä...


1. /etc/sysconfig/network ÆÄÀϼöÁ¤
NETWORKING=yes
HOSTNAME=centosx86
GATEWAY=192.168.0.1
GATEWAYDEV=bond0


2. /etc/sysconfig/network-scripts/bond0 »ý¼º ¹× ¼³Á¤
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.251
NETMASK=255.255.255.0
NETWORK=192.168.0.1 <--- gateway¿Í µ¿ÀÏÇÏ°Ô Çß½À´Ï´Ù.

3-1. /etc/sysconfig/network-scripts/ifcfg-eth0 °ú ifcfg-eth1 È­ÀÏÀ» °¢°¢ »ý¼º ¹× ¼³Á¤
DEVICE=eth0
ONBOOT=yes
USERCTL=no
MASTER=bond0
SLAVE=yes
BOOTPROTO=none

3-2. /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
ONBOOT=yes
USERCTL=no
MASTER=bond0
SLAVE=yes
BOOTPROTO=none

4. eth0¿Í eth1¿¡ ´ëÇÑ ¸ðµâ¾÷!!
# alias bond0 bonding <---±×·±µ¥ ¿©±â¼­ ¿¡·¯³². bond0¸¦ ¸¸µé¾îÁá´Âµ¥µµ ¾ø´Ù°í ÇÔ.
# alias eth0 8139too
# alias eth1 8139too


5. ±âŸ ¸ðµâÀÇ ÀνÄ!!!
# modprobe bonding
# ifconfig eth0 up 0.0.0.0
# ifconfig eth1 up 0.0.0.0
# ifenslave bond0 eth0 <--- ÀÌ°Í°ú ¹Ù·Î ¾Æ·¡ºÎºÐÀº ÀÌ¹Ì slave·Î µÇ¾îÀÖ´Ù°í Çϸ鼭 ¿¡·¯¸¦ ¹ß»ý.
# ifenslave bond0 eth1

6. network ½ºÅ©¸³Æ® Àç½ÃÀÛ ¹× È®ÀÎ
./etc/rc.d/init.d/network restart

7. ifconfg
bond0
eth0
eth1
lo
... µÈ°Ç°¡? Çߴµ¥...

¸®º×À» Çغ¸´Ï....bond0ÀåÄ¡(ÀÎÅÍÆäÀ̽º)°¡ ¾ø´Â °Å °°½À´Ï´Ù. ÀÎÅÍÆäÀ̽º ÃʱâÈ­¸¦ Áö¿¬ÇÕ´Ï´Ù.
¶ó´Â ¸Þ¼¼Áö¸¦ ¶ç¿ö¹ö¸®¸é¼­ bond°¡ ¾ÈµÇ°í ÀÖ½À´Ï´Ù.
ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.
ÀÌÁö¿µ 2009-03
Ƽ¹ÖÀ̳ª º»µùÀº Áö¿ø ±âÁ¾¸¸ °¡´ÉÇÕ´Ï´Ù. ´ëÇ¥ÀûÀÎ ¿¹·Î ÀÎÅÚÀÇ ¼­¹ö±º ·£Ä«µå°¡ Ƽ¹ÖÀ» Áö¿øÇÕ´Ï´Ù.
±è°Ç¿ì 2009-03
¿À...ÀÌÁö¿µ´Ô... Ƽ¹ÖÀ» ÇÑ°Ô ¾Æ´Ï¶ø´Ï´Ù. ±×¸®°í À¥¿¡¼­ ÀÌ¹Ì ¸®¾óÅØ·£Ä«µå·Î ¼¼ÆÃÇߴٴºÐÀÇ ±ÛÀ» º¸°í ÀÛ¾÷ÇѰŶó´Â ....
¹Ú¿ì¿­ 2009-03
2. /etc/sysconfig/network-scripts/bond0 »ý¼º ¹× ¼³Á¤
½ºÅ©¸³Æ® ÆÄÀϸíÀ» ifcfg-bond0 ·Î ÇÏ½Ã¸é µË´Ï´Ù.
¹Ú¿ì¿­ 2009-03
Âü°í·Î ä³Îº»µùÀº Ÿ¸ðµ¨·Îµµ ´ÙµË´Ï´Ù.
±è°Ç¿ì 2009-03
¾Æ..¹Ú¿ì¿­´Ô. ¿À´Ã Áý¿¡°¡¼­ ÇÔ Çغ¸°Ú½À´Ï´Ù.
ÀÌÇöÈ£K 2009-03
À­ºÐ ¸»¾¸Ã³·³ ifcfg-bond0 rename ÇÏ½Ã¸é µÉ°Í °°½À´Ï´Ù. 
Script ·ÎµùÀÌ Á¦´ë·Î ¾ÈµÇ½Ç°æ¿ì, ±×³É /etc/rc.d/rc.local¿¡´Ù°¡ ¼ø¼­´ë·Î ½ºÅ©¸³Æ® µ¹¸®¼Åµµ µË´Ï´Ù.
ÃÖÁ¾ ³×Æ®¿öÅ© ¿Â¶óÀÎ »óÅ¿¡¼­ ¸¶Áö¸· ¾÷µ¥ÀÌÆ®·Î 󸮸¸ Çϸé Àû¿ëÀÌ µË´Ï´Ù.

ÀÎÅÚÀº ÀÚü ÀÚ±â³× VLAN ¸ðµâ ¾²±â¸¦ ±ÇÀåÇؼ­ ¼Óµµ´Â Á» ³º°ÚÁÒ. ¾óÅØÀ¸·Î ¸ÂÃ߽÷Á¸é ±×³É
»É?µù. °Å½Ã¸é µË´Ï´Ù. ¿ë¾î°¡ Ƽ¹Ö°ú º»µùÀ̶õ ¿ë¾î·Î ¼¯¾î¾²´Âµ¥ Ƽ¹ÖÀº ¾÷üÂÊ ¾ê±ä°Í °°±¸¿ä.
º»µùÀº LINUX GNU µå¶óÀ̹ö °³¹ßÀÚµéÀÌ ±×³É ¿ë¾î¸¦ ±×·¸°Ô Á¤ÀÇÇÑ°Í °°½À´Ï´Ù.

Á¦°¡ ¾²°í ÀÖ´Â º»µù ±¸¼ºÁ¤º¸ ¿Ã·Á º¾´Ï´Ù.


[root@Spring update]# cat ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.10.200
NETMASK=255.255.255.0
NETWORK=
BROADCAST=
USERCTL=no
GATEWAY=192.168.10.1


[root@Spring update]# cat ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.10.200
NETMASK=255.255.255.0
GATEWAY=192.168.10.1
OLDPROTO=static


[root@Spring update]# cat ifcfg-eth1
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.10.1
NETMASK=255.255.255.0
GATEWAY=192.168.10.1
USERCTL=no
MASTER=bond0
SLAVE=yes
OLDPROTO=static



BONDMODE = 1
MIIMON = 100

BONDOPTIONS = mode=1 miimon=100

mode=0 (balance-rr)
mode=1 (active-backup) (* fail-over)
mode=2 (balance-xor)
mode=3 (broadcast)
mode=4 (802.3ad)
mode=5 (balance-tlb)
mode=6 (balance-alb)


# /sbin/modprobe bonding ${BONDOPTIONS}


# /sbin/service network start
# /sbin/ifenslave bond0 eth0
# /sbin/ifenslave bond0 eth1


[root@Spring update]# lsmod 
Module                  Size  Used by
bonding                86516  0


3°³ÀÇ MacAddress°¡ µ¿ÀÏÇÑÁö È®ÀÎ HWaddr 00:15:17:50:C1:3D 

[root@Spring update]# ifconfig
bond0    Link encap:Ethernet  HWaddr 00:15:17:50:C1:3D 
          inet addr:192.168.10.200  Bcast:192.168.10.255  Mask:255.255.255.0
          inet6 addr: fe80::215:17ff:fe50:c13d/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:1452 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1545 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:228641 (223.2 KiB)  TX bytes:484094 (472.7 KiB)

eth0      Link encap:Ethernet  HWaddr 00:15:17:50:C1:3D 
          UP BROADCAST RUNNING ALLMULTI SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:1452 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1547 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:228641 (223.2 KiB)  TX bytes:484410 (473.0 KiB)

eth1      Link encap:Ethernet  HWaddr 00:15:17:50:C1:3D 
          UP BROADCAST SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:371 errors:0 dropped:0 overruns:0 frame:0
          TX packets:371 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:121651 (118.7 KiB)  TX bytes:121651 (118.7 KiB)
ÀÌÇöÈ£K 2009-03
±âÁØÀÌ µÇ´Â nic eth0°¡ ¹Ýµå½Ã? StaticÀ¸·Î ÀâÀ¸¼Å¾ß ÇÕ´Ï´Ù. dhcp·Î µÇ¾î ÀÖÀ¸¸é À߾ȵ˴ϴÙ.
±è°Ç¿ì 2009-03
4. eth0¿Í eth1¿¡ ´ëÇÑ ¸ðµâ¾÷!!
# alias bond0 bonding <---±×·±µ¥ ¿©±â¼­ ¿¡·¯°¡ ³³´Ï´Ù.
bash : alias bond0 : not found
bash : alias bonding : not found
ÀÌÇöÈ£K 2009-03
¹èÆ÷ÆÇ¿¡ µû¶ó¼­ ´Ù¼Ò ¹ö±×°¡ ÀÖÀ»¼öµµ ÀÖ½À´Ï´Ù. Bug Item<Script/Driver/Kernel>
¹èÆ÷ÆÇ Ã¼Å©

µÎ°¡Áö Á¤µµ ¿øÀÎÀϼö ÀÖ½À´Ï´Ù.
1) #modprobe bonding  <Manual ·Îµù µÈ´Ù¸é Ä¿³Î µå¶óÀ̹ö ¹®Á¦´Â ¾Æ´Ñµí>
  or
  #insmod /lib/modules/xxxkernel/net/?/bonding.ko   

2) #rpm -qa |grep modpr <modprobe ¹öÀüÀ» üũÇØ º¸½Ê½Ã¿À. ¹ö±×°¡ À־ modprobe¸¸ ÆÐÄ¡Çؾß
    ÇÒ¼öµµ ÀÖ½À´Ï´Ù. rpm find¿¡¼­ modutil·Î ã¾Æ º¸½Ã¸é µË´Ï´Ù.

Bonding ±¸¼º¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ ¼³¸íÀº ¾Æ·¡ ÁÖ¼Ò°¡ Á» ÀÚ¼¼È÷ ±â¼úµÇ¾î ÀÖ½À´Ï´Ù.
http://www.linuxfoundation.org/en/Net:Bonding
±è°Ç¿ì 2009-03
³×..Á»´õÇغÁ¾ß°Ú½À´Ï´Ù... centos°¡ final¹öÁ¯À¸·Î µÇ¾îÀÖ¾î ¾ÈÁ¤ÀûÀÌ°í ÀßµÉÁپ˾Ҵµ¥...
¹º°¡ ó¸®ÇØ¾ß ÇÒ°Ô ¸¹ÀºµíÇϳ׿ä. Æäµµ¶ó¸¦ ½á¼­µµ ÇѹøÇغ¸°í..±×·¡¾ß °Ú³×¿ä.ÀÏ´Ü ÀÌ ÀÛ¾÷Àº ÇÑ ¸çÄ¥°¥°Å
°°½À´Ï´Ù.


QnA
Á¦¸ñPage 4165/5686
2015-12   1512044   ¹é¸Þ°¡
2014-05   4975905   Á¤ÀºÁØ1
2018-06   3668   ±è°Ç¿ì
2018-06   3668   ¹Ú³²±Ô
2015-03   3668   ±èÁ¦¿¬
2015-09   3668   À嵿°Ç2014
2017-03   3668   À¯Æ÷¸®¾Æ
2017-10   3667   ¼·ÀÌ´Ô
2020-03   3667   ½ÃÇ»¸Ç
2016-07   3667   ÇѹæÀλý
2022-06   3667   akfalles
2014-07   3667   isaiah
2017-08   3667   ³Ä¾Æ¾Æ¾Æ¾Ï
2013-12   3667   ±ÝÄáÄ¿ÇÇ
2013-12   3667   ´ëÇѹα¹
2016-01   3667   À©µµ¿ì10
2015-11   3667   Áñ°Å¿îÀÌ
2018-01   3667   ºí·ç¸ð¼Ç
2014-03   3667   ¹æoÈ¿o¹®
2019-05   3666   »ßµ¹À̽½ÇÄÀÌ
2016-10   3666   plqa01
2016-12   3666   Psychophysi¡¦