일반적으로 설정하는 본딩 모듈 로드는 아래의 방법을 이용한다.
# cat /etc/modprobe.conf
alias bond0 bonding
options bond0 miimon=100 mode=1

그리고 multi bonding의 경우에도 위와 동일한 방법으로 모듈을 로드할 수 있다.
# cat /etc/modprobe.conf
alias bond0 bonding
alias bond1 bonding
options bond0 miimon=100 mode=1
options bond1 miimon=100 mode=1
options bonding max_bonds=2

하지만 위의 방법을 통해서 본딩 모듈을 로드하는 경우에는 본딩의 한개의 본딩 모듈만 로드할 수 있으며 한개의 본딩 모듈은 항상 1개의 정책만을 사용하게된다.
따라서 다수의 본딩 모듈 정책을 사용할 경우 아래와 같은 방법으로 개별의 본딩 모듈을 로드해 주어야 한다.
# cat /etc/modprobe.conf
install bond0 /sbin/modprobe bonding -o bonding0 mode=balance-rr miimon=100
install bond1 /sbin/modprobe bonding -o bonding1 mode=active-backup miimon=100

각 개별에 대하여 모듈을 로드하여 bonding0과 bonding1의 서로 다른 정책을 가진 본딩 모듈을 로드하여 사용할 수 있다.
# /sbin/modprobe bond0
# /sbin/modprobe bond1

다수의 본딩 모듈을 사용하는 경우 유용하다.

위의 방법은 RHEL4 버전까지만 적용 가능하다 즉 RHEL5에서는 위의 방법이 불가능하다.
RHEL5부터는 "ifcfg-디바이스명" 파일에 아래의 파라미터로 설정하게 된다.
BONDING_OPTS="bra~~~"

또는 다른 방법으로 bonding에 대하여 /sys의 정보를 직접 수정하는 방식을 사용할 수도 있다.
아래의 방법으로 등록이 가능하다.

# cat /etc/modprobe.conf
options bonding max_bonds=2

# modprobe bonding
# echo balance-rr > /sys/class/net/bond0/bonding/mode
# echo 100 >/sys/class/net/bond0/bonding/miimon
# echo active-backup > /sys/class/net/bond1/bonding/mode
# echo 100 >/sys/class/net/bond1/bonding/miimon

위의 방법으로 본딩을 추가할 수도 있다. 별도의 "ifcfg-디바이스명"로 권리하지 않을 때 설정하는 내용으로 사용할 수 있다

'rhel' 카테고리의 다른 글

hp장비 - RHEL  (0) 2010.09.24
rhel euc_kr 설정  (0) 2010.03.06
rhel5 | apache2.2.4,php5.2.3,mysql-6.0.0,j2sdk1.6.0,tomcat-6.0.13 설치  (0) 2007.08.24

+ Recent posts