brctl 과 bonding 사용법

출처 : http://home.regit.org/?page_id=8

Use nas interface with standard bridging

You can use standard bridging capability of the linux kernel to bind together different interfaces, including nas interfaces. Let see an example, we will bridge eth0 and nas0. There’s no need ta have an adress on the interfaces nas0 and eth0. You just need to bring them up with ifconfig INTF up.
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 nas0
ifconfig br0 up

Use nas interfaces with bonding

As nas interface encapsulate ethernet in ATM, you can use bonding to aggregate nas interfaces.
First, you just have to set up your nas interfaces with br2684ctl. Then, you can set up a bonding interface using them :
modprobe bonding
ifconfig bond0 194.54.32.13 netmask 255.255.255.252
ifconfig nas1 up
ifconfig nas2 up
ifenslave bond0 nas1
ifenslave bond0 nas2

And you’re done, the bond0 interface is ready to serve.

The problem is that you must have the control of both ends of the ATM network to be able to use the aggregated link. So, it’s useless if your ISP does not help you and even more useless if you’ve got two ISPs.


### Bonding 추가 자료 ###

출처 : http://blog.naver.com/ktwist?Redirect=Log&logNo=20013961140

작성자 요청시 자삭함.


channel bonding

하나의 노드에서 여래개의 네트웍 카드를 하나의 ip로 묶는 방법이다.
묶는 이유는 크게 두가지로 나눌수 있는데
첫번째는 네트웍카드 고장이 발생할때 대비할 수 있는 것(Fault tolerence)
두번째는 여러개의 네트웍카드를 이용하여 속도를 향상시키는 것(Load balance)
이다.

bonding을 하기 위해서는 관련 모듈이 필요하다.
ifenslave.c라는 모듈로써 래드햇을 everything으로 설치할때 자동으로 인스톨 된다.
그러면 설정파일을 우선 먼저 설정한다.
설정파일은 ifcfg-bond0와 각 네트웍카드의 파일인 ifcfg-ethX로 나눌수 있다.
이것들의 위치는 /etc/sysconfig/network-script/ 이다.
여기에 ifcfg-bond0를 만들어서 다음과 같은 내용으로 구성한다.

DEVICE=bond0
USERCTL=no
ONBOOT=yes
BROADCAST=192.168.1.255
NETWORK=192.168.1.0
NETMASK=255.255.255.0
IPADDR=192.168.1.10

그리고 ifcfg-ethX는 다음고 같이 구성한다.

DEVICE=ethX
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none

이렇게 구성을 한 후 모듈을 인서트 한다.

/sbin/insmod /lib/modules/`uname -r`/kernel/drivers/net/bonding/bonding.ko miimon=1000 mode=6

이 후 자동으로 모듈이 올라오게 하기 위해서는
/etc/modprobe.conf에

alias bond0 bonding
options bonding miimon=1000 mode=6

를 삽입한다.

주의할 점은 페도라 코어3인 커널버젼 2.6 에서는 /etc/modprobe.conf
이고 커널버젼 2.4에서는 /etc/modules.conf이고 그 이하에서는
/etc/conf.modules 이다.


여기서 miimon옵션은 interval time 를 의미한다 mii status 를 체크하는 시간
mode는 안정성이냐 속도냐에 따라 틀려지는데
0 일때가 속도 지원으로 transmit 패킷을 차례대로 밸런싱한다.(라운드 로빈방식으로)
  또한 Fault tolerence기능도 지원이 된다.
1 일때가 active-backup 으로써 Fault tolerence 기능만을 지원한다.
5 일때가 transmit load 밸런스로써 보내는 패킷만 밸런스 한다.
6 일때가 receive와 transmit 패킷을 밸런스 한다.

이때 5,6은 하나의 스위치에 있을때만 동작한다.
따라서 여기서는 6번을 선택하였다.

여기에 대한 참고 자료는 다음과 같다.
http://www.redhat.com/docs/manuals/enterprise/RHEL-3-Manual/cluster-suite/s1-hardware-connect.html

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 삐꾸강아쥐

2007/03/27 11:47 2007/03/27 11:47
,
Response
0 Trackbacks , 0 Comments
RSS :
http://blog.blog.n-nuri.com/rss/response/269

Trackback URL : http://blog.blog.n-nuri.com/trackback/269

Leave a comment
[로그인][오픈아이디란?]

블로그 이미지

http://blog.n-nuri.com 이 접속이 안 될경우 http://x2x.dnip.net 으로 접속해 주세요 공유하지 않는 지식은 썩은 물과 같다~~~!!!

- 삐꾸강아쥐

Archives

Recent Trackbacks

Calendar

«   2009/01   »
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Site Stats

Total hits:
227673
Today:
24
Yesterday:
279
free counters