리눅스 channel bonding 방법
[root@test101 etc]# more modprobe.conf
alias bond0 bonding
alias eth0 e100
alias eth1 e100
options bonding mode=0
options bond0 miimon=100
[Bonding 모드 종류]
0 : balance-round robine ( 2개의 NIC를 통한 분배 + Fault Tolerance )
1 : active-standby ( Active상태의 NIC에 문제 발생시 Fault Tolerance )
2 : balance-xor ( 0과 비슷하지만 xor연산을 이용한 목적지 Mac과 근원지 Mac을 이용한
분배 + Fault tolerance)
3 : broadcast ( 2개의 NIC에 어떤 규칙 없이 데이터 통신 + Fault Tolerace)
4 : 802.3ad (link aggregation) – switch 에 aggregation 그룹생성이 필요
[root@test101 sysconfig]# more network
NETWORKING=yes
HOSTNAME=test101
GATEWAYDEV=bond0
[root@test101 network-scripts]# cat ifcfg-bond0 // 기존 사용중인 eth0파일을 카피해서 쓰면 됨.
DEVICE=bond0
BOOTPROTO=static
BROADCAST=192.168.10.255
IPADDR=192.168.10.101
NETMASK=255.255.255.0
NETWORK=192.168.10.0
ONBOOT=yes
TYPE=Ethernet
[root@test101 network-scripts]# cat ifcfg-eth0
DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
[root@test101 network-scripts]# cat ifcfg-eth1
DEVICE=eth1
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
위와 같이 수정한 다음 reboot 했더니 잘 올라왔음..ㅎㅎ ==> /etc/init.d/network restart 해도 됨..
[root@test101 bonding]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v2.6.0 (January 14, 2004)
Bonding Mode: fault-tolerance (active-backup)
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: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:30:6e:11:b0:2d
Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:30:6e:11:b0:2e
4 Responses
… [Trackback]
[…] Find More on that Topic: nblog.syszone.co.kr/archives/3151 […]
… [Trackback]
[…] Information to that Topic: nblog.syszone.co.kr/archives/3151 […]
… [Trackback]
[…] Read More Info here to that Topic: nblog.syszone.co.kr/archives/3151 […]
… [Trackback]
[…] Find More to that Topic: nblog.syszone.co.kr/archives/3151 […]