'channel bonding'에 해당되는 글 1건

  1. 2011.12.15 ifenslave mode 설정하기
Linux/Ubuntu2011. 12. 15. 22:38
ifenslave를 통한 channel bonding은
modprobe 시에 mode=0 과 같은 옵션을 주어 수행한다는데..
일단 기본값으로는 0번(round robin)이 되어 있고 다음과 같이 숫자를 주어 다른 모드로 시작할 수 있다.
# modprobe bonding mode=6 
# cat /proc/net/bonding/bond0 
Ethernet Channel Bonding Driver: v3.5.0 (November 4, 2008)

Bonding Mode: adaptive load balancing
Primary Slave: None
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth1
MII Status: up
Link Failure Count: 1
Permanent HW addr: 00:00:00:00:00:00

Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:00:00:00:00:00 

만약 작동중에 mode를 변경하고 싶다면
다음과 같이 /sys/class/net/bond0/bonding/mode 파일에 원하는 mode 값을 넣어주면 된다. 
To configure bond0 for balance-alb mode:
# ifconfig bond0 down
# echo 6 > /sys/class/net/bond0/bonding/mode
 - or -
# echo balance-alb > /sys/class/net/bond0/bonding/mode
NOTE: The bond interface must be down before the mode can be changed.

[링크 : http://www.kernel.org/doc/Documentation/networking/bonding.txt



Posted by 구차니