(¾ó¸¶Àü) bondingÁú¹®¿Ã¸°°Å - ÇØ°áÀü 5%ºÎÁ·ÇÑ Á¡¿¡ ´ëÇؼ­....

   Á¶È¸ 9244   Ãßõ 0    

¸¹Àº ºÐµéÀÌ µµ¿ÍÁּż­...

ÀÌ ±ÛÀ» ¸®´ª½º(Æäµµ¶ó10)ÀÇ bonding¼³Á¤µÈ ȯ°æ¿¡¼­ ¾²°í ÀÖ½À´Ï´Ù.

´Ù¸¸, 5%ºÎÁ·ÇÑ Á¡ÀÌ »ý°å½À´Ï´Ù. (Áï ¿ÏÀüÈ÷ ÇØ°áµÈ°Ç ¾Æ´Ï°í....)

¹®Á¦´Â¿ä... bondingÀ» À§ÇÑ ¼³Á¤µéÀ» ÀÚµ¿È£Ãâ ¹× ¸ðµâ¾÷ÇØÁÖ´Â ÀÛ¾÷À» rc.local¿¡ ³Ö¾îÁá´Âµ¥...´ÙÀ½ÀÇ µü ÇÑ lineÀ»

¸®´ª½º¿¡ ·Î±äÇÏ¿© root¿¡¼­ ¶Ç ½ÇÇàÀ» ÇØÁà¾ß¸¸ ³×Æ®¿öÅ©°¡ µÈ´Ù´Â °ÅÁÒ.

/sbin/service network start  <---- ÀÌ °Å ¸»ÀÔ´Ï´Ù. ÀÌ°Ô ÀÌ»óÇÏ°Ô rc.local¿¡ ³Ö¾îÁá´Âµ¥µµ ±×·¸´Ù´Â °ÍÀÌÁÒ.

ÇØ°áÀ» À§ÇØ Á» µµ¿ÍÁֽñ¸¿ä...






Âü°íÀûÀ¸·Î Á¦°¡ ¼³Á¤ÇÑ ³»¿ªµéÀ» ´Ù½Ã ¿Ã¸®°Ú½À´Ï´Ù.  (Ȥ½Ã Á¦°¡ ¼³Á¤À» À߸øÇÑ °ÍÀ̶ó¸é ÁöÀûÇØÁÖ¼¼¿ä)
(1) /etc/rc.d/rc.local
      modprobe bonding
    /sbin/ifconfig bond0 192.168.0.253  netmask 255.255.255.0 broadcast 192.168.0.255 up
    /sbin/ifconfig eth0 up 0.0.0.0
    /sbin/ifconfig eth1 up 0.0.0.0
    /sbin/ifenslave bond0 eth0
    /sbin/ifenslave bond0 eth1
    /sbin/modprobe bonding ${BONDOPTIONS}
    /sbin/service network start

(2) /etc/modules.conf
    alias bod0 bonding
    alias eth0 8139too
    alias eth1 8139too
    BONDOPTIONS = mode=0 miimon=100


(3) /etc/sysconfig/network-scripts/ifcfg-bond0
    DEVICE=bond0
    ONBOOT=yes
    BOOTPROTO=none
    IPADDR=192.168.0.253
    NETMASK=255.255.255.0
    NETWORK=192.168.0.0
    BROADCAST=192.168.0.255
    USERCTL=no
    GATEWAY=192.168.0.1


(4) /etc/sysconfig/network-scripts/ifcfg-eth0
    # Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
    DEVICE=eth0
    #HWADDR=00:4f:4e:17:0f:af
    ONBOOT=yes
    BOOTPROTO=none
    MASTER=bond0
    SLAVE=yes
    IPADDR=192.168.0.253
    NETMASK=255.255.255.0
    GATEWAY=192.168.0.1
    OLDPROTO=static
    BROADCAST=192.168.0.255
    NETWORK=192.168.0.0

(5) /etc/sysconfig/network-scripts/ifcfg-eth1
    # Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
    DEVICE=eth1
    #HWADDR=00:c0:26:70:9c:02
    ONBOOT=yes
    IPADDR=192.168.0.253
    NETMASK=255.255.255.0
    GATEWAY=192.168.0.1
    BROADCAST=192.168.0.255
    NETWORK=192.168.0.0
    USERCTL=no
    MASTER=bond0
    SLAVE=yes
    OLDPROTO=static



(6) ifconfig ÀâÇôÁø °Íµµ ¿Ã¸³´Ï´Ù.
[root@fedora10 ~]# ifconfig | more
bond0    Link encap:Ethernet  HWaddr 00:4F:4E:17:0F:AF 
          inet addr:192.168.0.253  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::24f:4eff:fe17:faf/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:1859 errors:403 dropped:0 overruns:0 frame:0
          TX packets:3129 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1626712 (1.5 MiB)  TX bytes:454481 (443.8 KiB)

eth0      Link encap:Ethernet  HWaddr 00:4F:4E:17:0F:AF 
          inet addr:192.168.0.112  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:153 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1548 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:36039 (35.1 KiB)  TX bytes:226092 (220.7 KiB)
          Interrupt:19 Base address:0xed00

eth1      Link encap:Ethernet  HWaddr 00:4F:4E:17:0F:AF 
          inet addr:192.168.0.112  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:1706 errors:403 dropped:0 overruns:0 frame:0
          TX packets:1581 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1590673 (1.5 MiB)  TX bytes:228389 (223.0 KiB)
          Interrupt:16 Base address:0xc00

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:77 errors:0 dropped:0 overruns:0 frame:0
          TX packets:77 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6576 (6.4 KiB)  TX bytes:6576 (6.4 KiB)
ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.
¼º±â»ç 2009-03
rc.local ÀÇ °æ¿ì¿¡´Â ¸ðµç ºÎÆà ½ºÅ©¸³Æ®µéÀÌ ½ÇÇàµÇ°í ¸Ç ¸¶Áö¸·¿¡ ½ÇÇàÀÌ µÇ´Âµ¥¿ä.
network ½ºÅ©¸³Æ®°¡ µ¹±â Àü¿¡ Ä¿³Î¿¡ ³×Æ®¿öÅ© Ä«µå ¹× º»µù µð¹ÙÀ̽º ¸ðµâÀÌ ¿Ã¶ó¿Í¾ß Á¦´ë·Î ³×Æ®¿öÅ©°¡ ½ÇÇà µÇ°ÚÁÒ.
rc.local¿¡¼­ modprobe ¸¦ ½ÇÇàÇÏ¸é ³×Æ®¿öÅ© ½ºÅ©¸³Æ®°¡ ½ÇÇàµÇ´Â ½ÃÁ¡¿¡¼­´Â Ä¿³Î·Î µð¹ÙÀ̽ºµéÀÌ ¾È¿Ã¶ó¿Í¼­ Á¦´ë·Î ³×Æ®¿öÅ©°¡ ÀâÈ÷Áö ¾ÊÀ» °Í °°³×¿ä.
ºÎÆà ÈÄ¿¡ ´Ù½Ã ½ÇÇàÇϸé ÀÌÁ¦ ¿Ã¶ó¿Í ÀÖÀ¸´Ï ¿Ã¶ó¿À´Â °ÍÀ̱¸¿ä.
Àúµµ Æäµµ¶ó 9¿¡¼­ º»µùÇؼ­ ¾²°í Àִµ¥ modules.conf ¸»°í /etc/modprobe.conf ¸¦ ¼³Á¤ÇØ ³õÀ¸¸é  modprobe ¸¦ µû·Î ½ÇÇà½ÃÅ°Áö ¾Ê¾Æµµ ¿Ã¶ó¿À´õ±º¿ä.
rc.sysinit¿¡¼­ modprobe¸¦ ½ÇÇà½ÃÅ°°í ÀÌ ÆÄÀÏÀÌ modprobe.conf ¸¦ ÂüÁ¶Çϴϱî¿ä.
Àúµµ ¿À·£¸¸¿¡ ±ò¾ÆºÁ¼­ ÀÌ°Í Àú°Í ã¾Æ¼­ ¼³Á¤À» Çß¾ú´Âµ¥¿ä.

°á·ÐÀûÀ¸·Î ÀÏ´ÜÀº rc.local¿¡ Ưº°È÷ Áý¾î ³ÖÀ» ÇÊ¿ä¾øÀÌ modules.conf ÆÄÀÏÀ» /etc/modprobe.conf ·Î ÆÄÀϸíÀ» ¹Ù²ãÁÖ½ÅÈÄ¿¡ ¸®ºÎÆÃÇÏ¸é ¹®Á¦ ¾øÀÌ µ¿ÀÛÇÒ °ÍÀ¸·Î º¸À̳׿ä.
rc.local¿¡ ³Ö¾îÁֽŠÇàµéÀº Áö¿öÁֽñ¸¿ä.
¹Ú¿ì¿­ 2009-03
# vi /etc/sysconfig/network
----------------------------
NETWORKING=yes
HOSTNAME=test
GATEWAY=192.168.0.1
GATEDEV=bond0
----------------------------

gatedev Ç׸ñÀ» ³Ö¾îº¸¼¼¿ä.
¸ðµâÀÌ ¿Ã¶ó¿À¸é rc.local ¿¡ ¾È³Ö¾îÁ൵ Àß µÉ°Çµ¥¿ä,,,
1¹øÀº »©¼Åµµ µÉ°Å °°½À´Ï´Ù.
±è°Ç¿ì 2009-03
³×...°¨»çÇÕ´Ï´Ù. Åð±Ù ÈÄ Áý¿¡°¡¼­ ¶Ç Çغ¸°Ú½À´Ï´Ù....
±è°Ç¿ì 2009-03
modules.conf¸¦ modprobe.conf·Î ¹Ù²Ù°í Á¦°¡ À§¿¡½è´ø rc.localÀÇ ³»¿ëµéÀº ¸ðµÎ ÁÖ¼®À¸·Î ó¸® ÈÄ ¸®º×
ÇÏ°í ·Î±ä-> ifconfig·Î È®Àνà ³×Æ®¿öÅ©´Â µÇ´Âµ¥(µÎ°³ÀÇ ·£Ä«µå´Â ÀâÈ÷´Âµ¥) bond°¡ ¾ÈµÇ¾ú½À´Ï´Ù.
rc.localÀÇ ³»¿ëÀ» ¸ðµÎ modprobe.conf¿¡ ³Ö¾îÁÖ°í ¸®º×->·Î±ä->ifconfig -> bond (X)
º°¼ö¾øÀÌ rc.localÀ» ´Ù½Ã »ì·Á³õ°í,
¸®º×->·Î±ä-> /sbin/service network start -> ifconfig -> bond (O) + Åë½Å (o)
....
À߾ȵdz׿ä...¼º½Ãâ´ÔÀÌ ¼³Á¤ÇϽŠȭÀϵéÀ» Á» º¸¿©ÁÖ½Ç ¼ö´Â ¾øÀ»±î¿ä?
¼º±â»ç 2009-03
¾Æ·¡Ã³·³ µÇ¾îÀÖ½À´Ï´Ù. Âü°íÇϼ¼¿ä.

"/etc/sysconfig/network"
NETWORKING=yes
HOSTNAME=XXX.co.kr
GATEWAY=XXX.XXX.XXX.255
GATEWAYDEV=bond0

"/etc/sysconfig/network-scripts/ifcfg-bond0"
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=none
IPADDR=211.XXX.XXX.XXX
NETMASK=255.255.255.0
NETWORK=211.XXX.XXX.0
GATEWAY=211.XXX.XXX.255
USERCTL=no
BONDING_SLAVE0="eth0"
BONDING_SLAVE1="eth1"

"/etc/sysconfig/network-scripts/ifcfg-eth0"
DEVICE=eth0
BOOTPROTO=none
ONBOOT=no
MASTER=bond0
SLAVE=yes
USERCTL=no

"/etc/sysconfig/network-scripts/ifcfg-eth1"
DEVICE=eth1
BOOTPROTO=none
ONBOOT=no
MASTER=bond0
SLAVE=yes
USERCTL=no
±è°Ç¿ì 2009-03
°¨»çÇÕ´Ï´Ù. Áý¿¡°¡¼­ ¶Ç µµÀüÇÕ´Ï´Ù.~~~
¹Ú¿ì¿­ 2009-03
³×ÀÌÆ®¿Â ¿ø°ÝÇϽÃÁÒ. ³¯»õ°Í³×¿ä. calsse@³×ÀÌÆ®
¾Æ´Ï¸é ¿ø°Ý¿¡¼­ Á¢¼Ó°¡´ÉÇÏ°Ô À¯ÀúÇϳª ¸Í±Û¾îÁֽôø°¡¿ä.
±è°Ç¿ì 2009-03
¾Æ...³×. ¹Ú¿ì¿­´Ô °¨»ç!!! ±×·¯³ª ÀÏÇÏ´Â °÷ÀÌ ³×ÀÌÅæÀ»¸·¾Æ³ù±¸¿ä... ´õ¿ì±â Áý¿¡ ÀÖ´Â ÄÄÀ» ¼¼ÆÃÇÏ´Â °ÍÀ̶ó
¿ø°Ý¿ÀÇÂÀ» ÇÏ·Á¸é °øÀ¯±â¼³Á¤ ¹× ÄÄÀÇ WOL¼³Á¤À» ÇؾßÇϴµ¥ ..¿À´Ã¾Æħ¿¡ °øÀ¯±â¼³Á¤Àº Çߴµ¥, WOL±â´ÉÀÌ ÀÖ´Â ·£Ä«µåÀε¥µµ ÀÌ»óÇÏ°Ô WOLÀÌ ¾ÈµÇ¾î¼­ ¹Ù·Î ¾Ë·Áµå¸®Áö ¸øÇÏ°Ú½À´Ï´Ù. ¼³Á¤À» ¿Ï·áÇϸé ÂÊÁöµå¸®°Ú½À´Ï´Ù.

±×¸®°í, ¼º½Ãâ´ÔÀÌ Áֽż³Á¤À» ±×´ë·Î ½è°í, rc.local¿¡ ÀÖ´Â ¸ðµç ³»¿ëÀ» modprobe.conf¿¡ ´Ù ³Ö¾úÁö¸¸
½ÇÆÐÇß½À´Ï´Ù.
¼º±â»ç 2009-03
rc.local ³»¿ëÀ» modprobe.conf ·Î Ç϶ó´Â ¾ê±â´Â ¾ø¾ú´Âµ¥¿ä.
modules.conf ¸¦ modprobe.conf ·Î ¹Ù²Ù½Ã¶ó°í´Â Çß¾ú½À´Ï´Ù.
±è°Ç¿ì 2009-03
¾Æ..¿¹..¼º½Ãâ´Ô. ¸»ÀÌ Á»»ý·«µÇ¾î¼­ Àü´ÞÀÌ À߸øµÈµí...

Á¦°¡ È°¿ëÇß´ø modules.conf(³»¿ëÆ÷ÇÔ)Çؼ­ modprobe.conf·Î rename(move)ÇßÁö¸¸,

¾ÈµÇ¾î¼­(bond0(x), eth0(o), eth1(O))

rc.local¿¡ ÀÖ´ø ³»¿ëÀ» modprobe.conf¿¡ ³Ö¾îºÃ½À´Ï´Ù. Áï,´ÙÀ½°ú °°ÀÌ...

    modprobe bonding
    alias bod0 bonding
    alias eth0 8139too
    alias eth1 8139too
    BONDOPTIONS = mode=0 miimon=100
    /sbin/ifconfig bond0 192.168.0.253  netmask 255.255.255.0 broadcast 192.168.0.255 up
    /sbin/ifconfig eth0 up 0.0.0.0
    /sbin/ifconfig eth1 up 0.0.0.0
    /sbin/ifenslave bond0 eth0
    /sbin/ifenslave bond0 eth1
    /sbin/modprobe bonding ${BONDOPTIONS}
    /sbin/service network start


ÀÌ·¸°Ô Çß´õ´Ï¸¸, ¿ª½Ã bond0(o), eth0(o), eth1(o) but Åë½Åno!!!
--> /sbin/service network start (enter)
--> bond0(o), eth0(o), eth1(o) but Åë½Å yes!!!

¿´´ø°ÍÀÔ´Ï´Ù.

¸¹ÀÌ µµ¿ÍÁֽôµ¥, ½Ç¸Á½º·± °á°ú¸¦ º¸¿©µå·Á Àúµµ ¸¾ÀÌ ¾ÆÇÅ´Ï´Ù¸¸... ²À Çѹø Çغ¸°í ½Í½À´Ï´Ù.
µÉ¶§±îÁö Çغ¸°íÀÚ ÇÕ´Ï´Ù. ÁöÄѺÁÁÖ¼¼¿ä...
¹Ú¿ì¿­ 2009-03
°í»ýÀÌ ¸¹À¸½Ã³×¿ä. °è¼Ó °í»ýÇϽʽÿä...^^
¾ÈÁ©·Î 2009-03
¸¾ ÆíÇÏ°Ô ±×³É rc.local ¿¡ ÇÑÁÙ ´õ Ãß°¡ ÇϽÉÀº ¾î¶°½Ç±î¿ä.

/etc/init.d/network restart
¾ÈÁ©·Î 2009-03
¾Æ´Ï½Ã¸é, bonding ¸ðµâ ¿Ã¸®½ÅÈÄ boot img¸¦ Àç»ý¼º ÇÏ½Ã´Â°Ô ÆíÇϽǵí Çϳ׿ä.

mkintrd ÀÌ¿ëÇؼ­ ¸ðµâ¿Ã¸° À̹ÌÁö¸¸ Çϳª »ý¼ºÇϼżŠÀÛ¾÷ÇϽÉÀº ¾î¶°½Ç±î¿ä?


QnA
Á¦¸ñPage 4160/5684
2014-05   4957563   Á¤ÀºÁØ1
2015-12   1494002   ¹é¸Þ°¡
2009-03   9304   Å丶¼ÕValue
2009-03   6135   ±è°Ç¿ì
2009-03   12808   ÇØÇÇ¿£Á©
2009-03   10212   ¹Ú³ë¼º
2009-03   11571   ±èÁø¿ì
2009-03   6089   ÀϹÝÀ¯Àú
2009-03   9245   ±è°Ç¿ì
2009-03   5134   Ǫ¸ªÀÌ
2009-03   5058   chis
2009-03   5361   À̽¿±
2009-03   6685   ¼±Ã¶
2009-03   6988   ¹Ú³ë¼º
2009-03   5950   ¹æoÈ¿o¹®
2009-03   5414   ÇÑ°æµµ
2009-03   8475   ±èÁÖ¿ës
2009-03   5280   ¹æoÈ¿o¹®
2009-03   6966   ¿À¼º±â
2009-03   8351   Á¤Èñ¼·
2009-03   10574   ÀϹÝÀ¯Àú
2009-03   5365   ¹Ú