´ë¿ªÆø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°¡ ¾ÈµÇ°í ÀÖ½À´Ï´Ù.
½ºÅ©¸³Æ® ÆÄÀϸíÀ» ifcfg-bond0 ·Î ÇÏ½Ã¸é µË´Ï´Ù.
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)
# alias bond0 bonding <---±×·±µ¥ ¿©±â¼ ¿¡·¯°¡ ³³´Ï´Ù.
bash : alias bond0 : not found
bash : alias bonding : not found
¹èÆ÷ÆÇ Ã¼Å©
µÎ°¡Áö Á¤µµ ¿øÀÎÀϼö ÀÖ½À´Ï´Ù.
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
¹º°¡ ó¸®ÇØ¾ß ÇÒ°Ô ¸¹ÀºµíÇϳ׿ä. Æäµµ¶ó¸¦ ½á¼µµ ÇѹøÇغ¸°í..±×·¡¾ß °Ú³×¿ä.ÀÏ´Ü ÀÌ ÀÛ¾÷Àº ÇÑ ¸çÄ¥°¥°Å
°°½À´Ï´Ù.