'ifenslave'에 해당되는 글 2건

  1. 2011.12.15 ifenslave mode 설정하기
  2. 2011.12.04 ifenslave 상황별 에러
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 구차니
Linux/Ubuntu2011. 12. 4. 23:23
modprobe bonding을 하지 않고 추가할 경우
$ sudo ifconfig bond0 192.168.12.1 netmsk 255.255.255.0
SIOCSIFADDR: No such device
bond0: ERROR while getting interface flags: No such device
SIOCSIFADDR: No such device
bond0: ERROR while getting interface flags: No such device
SIOCSIFADDR: No such device
bond0: ERROR while getting interface flags: No such device 

modprobe bonding을 하지 않았고 interface를 잘못입력한 경우
$ sudo ifenslave eth0 eth1
Master 'eth0': Error: handshake with driver failed. Aborting 

modprobe bonding을 하지 않았을 경우
$ sudo ifenslave bond0 eth0 eth1
Master 'bond0': Error: handshake with driver failed. Aborting  
 
interface 입력 오류시
$ sudo ifenslave bond0 eth0 eht1
Slave 'eht1': Error: get settings failed: No such device. Skipping
 

---
# modprobe bonding
# ifconfig bond0 192.168.0.1 netmask 255.255.0.0
# ifenslave bond0 eth0 eth1
[링크 : http://linux.die.net/man/8/ifenslave



'Linux > Ubuntu' 카테고리의 다른 글

ubuntu server 로그인 화면  (0) 2011.12.11
Ubuntu 릴리즈별 이름  (0) 2011.12.11
ubuntu server howto  (0) 2011.12.04
ubuntu server / desktop edition의 차이점  (0) 2011.12.03
ubuntu 64bit server 10.04 LTS 부팅이 안돼!  (0) 2011.12.03
Posted by 구차니