Linux/Ubuntu2010. 12. 18. 22:01
intel pro/100+ 가 intel PROset 에서 intel PRO server adaptor가 마스터로 존재하지 않으면
teaming(티밍)이 안되자 좌절한 구차니군 =_=

혹시나 리눅스 채널 본딩을 찾아보니 무언가 나온다.
우분투 10.04에서는
$ ifenslave
'ifenslave' 프로그램은 현재 설치되어 있지 않습니다.  다음을 입력하여 이를 설치할 수 있습니다:
sudo apt-get install ifenslave-2.6
이라고 입력하면 해당 프로그램이 설치되고

 $ sudo modprobe bonding
이라고 치면, 자동으로 인식된다.

설정은 직접해보고 추가예정



$ sudo modprobe bonding

$ dmesg | tail -15
[  325.324377] Ethernet Channel Bonding Driver: v3.5.0 (November 4, 2008)
[  325.324388] bonding: Warning: either miimon or arp_interval and arp_ip_target module parameters must be specified, otherwise bonding will not detect link failures! see bonding.txt for details.

$ ll /proc/net/bonding/bond0
-r--r--r-- 1 root root 0 2010-12-19 00:29 /proc/net/bonding/bond0

$ cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.5.0 (November 4, 2008)

Bonding Mode: load balancing (round-robin)
MII Status: down
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0

$ ifconfig
eth0      Link encap:Ethernet  HWaddr 11:11:11:11:11:11 
          UP BROADCAST 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)
          Interrupt:23 Base address:0x8000

eth1      Link encap:Ethernet  HWaddr 11:11:11:11:11:11 
          inet addr:192.168.0.198  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::207:e9ff:fe13:38fc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13 errors:0 dropped:0 overruns:0 frame:0
          TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3491 (3.4 KB)  TX bytes:7120 (7.1 KB)

eth2      Link encap:Ethernet  HWaddr 11:11:11:11:11:11 
          inet addr:192.168.0.155  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::207:e9ff:fe13:378d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1525 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1250 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1394038 (1.3 MB)  TX bytes:196987 (196.9 KB)

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:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:480 (480.0 B)  TX bytes:480 (480.0 B)

$ sudo ip addr add 192.168.0.254/24 brd + dev bond0

$ sudo ip link set dev bond0 up

$ ifconfig
bond0     Link encap:Ethernet  HWaddr 00:00:00:00:00:00 
          inet addr:192.168.0.254  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MASTER 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:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth0      Link encap:Ethernet  HWaddr 11:11:11:11:11:11 
          UP BROADCAST 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)
          Interrupt:23 Base address:0x8000

eth1      Link encap:Ethernet  HWaddr 11:11:11:11:11:11 
          inet addr:192.168.0.198  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::207:e9ff:fe13:38fc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13 errors:0 dropped:0 overruns:0 frame:0
          TX packets:33 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3491 (3.4 KB)  TX bytes:7120 (7.1 KB)

eth2      Link encap:Ethernet  HWaddr 11:11:11:11:11:11 
          inet addr:192.168.0.155  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::207:e9ff:fe13:378d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3038 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2100 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3396837 (3.3 MB)  TX bytes:352314 (352.3 KB)

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:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:480 (480.0 B)  TX bytes:480 (480.0 B)

$ sudo ifenslave bond0 eth1 eth2

나가는게 안됨.. 라우팅 문제가 있는듯?

에러모음 - 권한문제
$ ip link set dev bond0 up
RTNETLINK answers: Operation not permitted

$ ifenslave bond0 eth1 eth2
Slave 'eth1': Error: bring interface down failed
Master 'bond0', Slave 'eth1': Error: Enslave failed
Slave 'eth2': Error: bring interface down failed
Master 'bond0', Slave 'eth2': Error: Enslave failed

[링크 : http://linux.die.net/man/8/ifenslave]
[링크 : http://linux-ip.net/html/ether-bonding.html]
[링크 : http://www.linuxfoundation.org/collaborate/workgroups/networking/bonding]
    [링크 : http://www.linuxfoundation.org/collaborate/workgroups/networking/bonding#Potential_Sources_of_Trouble]
[링크 : http://georgia.ubuntuforums.org/showthread.php?t=99668]

[링크 : http://ubuntuforums.org/showthread.php?t=201713]
[링크 : http://ubuntuforums.org/showthread.php?t=864657]
[링크 : http://www.smallnetbuilder.com/lanwan/lanwan-howto/30575-how-to-set-up-server-nic-teaming]

[링크 : http://linuxchannel.net/docs/ethernet-channel-bonding.txt]
[링크 : https://help.ubuntu.com/community/UbuntuBonding]
[링크 : https://help.ubuntu.com/community/LinkAggregation]
Posted by 구차니