°Ô½Ã¹° 259°Ç
   
[RedHat] Bonding ±¸¼º
±Û¾´ÀÌ : ÃÖÀå¼· ³¯Â¥ : 2013-11-21 (¸ñ) 10:12 Á¶È¸ : 5064
¸®´ª½º º»µù - (Linux Bonding)
 
  • ½ºÀ§Ä¡´Â Ether ä³Î¸µÀ» Áö¿øÇÏ´Â ½ºÀ§Ä¡°¡ ÇÊ¿äÇϸç, ¼­¹öÀÇ ¸®´ª½º Ä¿³Î¿¡¼­ bonding À» Áö¿øÇÏ´Â NIC Ä«µå°¡ 2Àå ÀÖ¾î¾ß ÇÑ´Ù.

  • Bonding ÀÛ¾÷Àº º»µù NIC ÀÌ¿ÜÀÇ NIC ·Î ÀÛ¾÷ ÇØ¾ß Çϸç, º»µù NIC ·Î Á¢¼ÓµÇ¾î ÀÖ´Ù¸é, Á¢¼ÓÀÌ ²÷¾îÁö¸ç ÀÛ¾÷¿¡ ¹®Á¦°¡ ¹ß»ýÇÑ´Ù.
    (¿¹ - eth0 ·Î Á¢¼Ó ÈÄ eth0 ¿Í eth1 ·Î Bonding ÇÏ¸é ¿¬°áÀÌ ÇØÁ¦ µÈ´Ù. eth2 ÀÌÈÄÀÇ NIC ·Î ÀÛ¾÷ ÇØ¾ß ÇÑ´Ù.)

  • Oracle Linux ¿¡¼­´Â ifcfg-ethxx ÆÄÀÏ ³»¿¡ HW MAC ÁÖ¼Ò°¡ Æ÷ÇÔ µÇ¾î ÀÖÁö ¾Ê´Ù¸é, ÀçºÎÆà ÈÄ¿¡ HBA Ä«µåÀÇ bus-info Á¤º¸°¡ º¯°æµÇ¹Ç·Î ¹Ýµå½Ã ÀÛ¾÷ Áß¿¡ HW MAC ÁÖ¼Ò °ªÀ» ³Ö¾î ÁÖ¾î¾ß ÇÑ´Ù.
  1. ¿ì¼± ÀÛ¾÷ ÁøÇà Àü¿¡ lscpi ¸í·É¾î¸¦ ÀÌ¿ëÇÏ¿© HBA Ä«µåÀÇ bus-info Á¤º¸¸¦ È®ÀÎ ÇÑ´Ù.

    06:00.0 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter (rev 42)
    06:00.1 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter (rev 42)
    09:00.0 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter (rev 42)
    09:00.1 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter (rev 42)

    ¿©±â¼­ 06:00.0 ºÎºÐÀÌ HBA Ä«µå°¡ ¿¬°áµÈ Æ÷Æ®ÀÇ ¹øÈ£ ÀÌ´Ù.
      
  2. ethtool -i NIC¸í À¸·Î Bus-info ¸¦ È®ÀÎ ÇÑ´Ù.

    [root@testServer network-scripts]# ethtool -i eth4
    driver: netxen_nic
    version: 4.0.65
    firmware-version: 4.0.585
    bus-info: 0000:09:00.0

    [root@testServer network-scripts]# ethtool -i eth6
    driver: netxen_nic
    version: 4.0.65
    firmware-version: 4.0.585
    bus-info: 0000:06:00.0

  3. Bus-info Á¤º¸¸¦ Åä´ë·Î Bonding ÇÒ NIC È®ÀÎ ÈÄ¿¡ ifconfig ¸í·É¾î¸¦ ÅëÇؼ­ ÇØ´ç NIC ÀÇ MAC ÁÖ¼Ò °ªÀ» È®ÀÎ ÇÑ´Ù.
    (¿©±â¼­´Â eth4, eth6 ¹øÀ» Bonding ÇÑ´Ù.)

    eth4      Link encap:Ethernet  HWaddr 80:C1:6E:A9:E3:F8 
              UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
              RX packets:82 errors:0 dropped:0 overruns:0 frame:0
              TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:4920 (4.8 KiB)  TX bytes:4750 (4.6 KiB)
              Interrupt:202

    eth6      Link encap:Ethernet  HWaddr E8:39:35:02:5F:00
              UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
              RX packets:266 errors:0 dropped:0 overruns:0 frame:0
              TX packets:208 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:25406 (24.8 KiB)  TX bytes:31242 (30.5 KiB)
              Interrupt:83

  4. ifcfg-eth4 ÆÄÀÏÀ» ¿­¾î ÆÄÀÏ ³»ºÎ¸¦ ¼öÁ¤ ÇÑ´Ù.
    [root@testServer network-scripts]# cat ifcfg-eth4
    # NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter
    DEVICE=eth4
    BOOTPROTO=none
    HWADDR=80:C1:6E:A9:E3:F8
    onBOOT=yes
    HOTPLUG=no
    MASTER=bond0
    SLAVE=yes
    USERCTL=no

    [root@testServer network-scripts]# cat ifcfg-eth6
    # NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter
    DEVICE=eth6
    BOOTPROTO=none
    HWADDR=E8:39:35:02:5F:00
    onBOOT=yes
    HOTPLUG=no
    MASTER=bond0
    SLAVE=yes
    USERCTL=no

  5. ifcfg-bond0 °¡»ó NIC ¸¦ ¸¸µé¾î ÁØ´Ù.
    [root@testServer network-scripts]# cat ifcfg-bond0
    DEVICE=bond0
    IPADDR=10.217.45.73
    NETMASK=255.255.255.0
    GATEWAY=10.217.45.1

  6. /etc/modprobe.conf ÆÄÀÏÀ» ¼öÁ¤
    - options bond0 miimon=100 mode=1 // Bonding µ¿ÀÛ ¿É¼ÇÀ» Ãß°¡ÇÑ´Ù.
    - alias bond0 bonding ³»¿ëÀ¸·Î Ãß°¡ÇØÁØ´Ù.

  7. service network restart ¸í·É¾î·Î ³×Æ®¿öÅ© ¼­ºñ½º¸¦ Àç ½ÃÀÛ ÇØÁØ´Ù.

  8. /proc/net/bonding/bond0 ÆÄÀÏ·Î Bonding ÀÌ Á¤»óÀûÀ¸·Î ÀÛµ¿ÇÏ´ÂÁö È®ÀÎÇÑ´Ù.

    [root@testServer network-scripts]# cat /proc/net/bonding/bond0
    Ethernet Channel Bonding Driver: v3.4.0 (October 7, 2008)
    Bonding Mode: fault-tolerance (active-backup)
    Primary Slave: None
    Currently Active Slave: eth6
    MII Status: up
    MII Polling Interval (ms): 100
    Up Delay (ms): 0
    Down Delay (ms): 0
    Slave Interface: eth4
    MII Status: up
    Link Failure Count: 0
    Permanent HW addr: 80:c1:6e:a9:e3:f8
    Slave Interface: eth6
    MII Status: up
    Link Failure Count: 0
    Permanent HW addr: e8:39:35:02:5f:00

  9. À§ ó·³ Bonding Mode ¿Í Currently Active Slave , MII Status »óŸ¦ È®ÀÎ ÇÑ´Ù.

  10. Bondig ÀÛ¾÷ÀÌ ¿Ï·á°¡ µÇ¸é, Bonding ÀÌ Á¤»óÀûÀ¸·Î µÇ¾ú´ÂÁö È®ÀÎÇÑ´Ù.

    1) ethttool -i ÀåÄ¡¸í À¸·Î Æß¿þ¾î ¹öÀüÀ» È®ÀÎÇÑ´Ù.
    2) dmesg | grep -i flash version ¹öÀüÀ¸·Î ÇØ´ç ¹öÀü È®ÀÎ ÈÄ dmesg ³»¿¡¼­ ¹öÀüÀ¸·Î °Ë»öÇÏ¿© È®ÀÎÇÑ´Ù.


theko 2014-07-21 (¿ù) 16:53
# RHEL 6 ¹öÀü

[root@rhel6 ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
IPADDR=192.168.184.128
NETMASK=255.255.255.0
GATEWAY=192.168.184.1
BONDING_OPTS="miimon=100 mode=1"    

¶Ç´Â

[root@rhel6 ~]# cat /etc/modprobe.d/modprobe.conf       // 5 ¿Í ´Þ¸® modprobe.d ¾È¿¡ µé¾î°£´Ù.
options bond0 miimon=100 mode=1
alias bond0 bonding

theko 2016-03-23 (¼ö) 14:39
options bonding mode=1 miimon=100 primary=eth0
À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com