본문 바로가기
IT/LINUX

[LINUX][RHEL6] NIC Bonding(본딩) - 네트워크 이중화

by 양눈 2016. 12. 18.
반응형
[LINUX][RHEL6] NIC Bonding(본딩) - 네트워크 이중화

 

1. 링크 up 되는 디바이스 확인

[root@rhel6-test ~]# ethtool eth0 | grep Link

        Link detected: yes
[root@rhel6-test ~]# ethtool eth1 | grep Link
        Link detected: yes
[root@rhel6-test ~]# ethtool eth2 | grep Link
        Link detected: no

 

확인결과 eth0, eth1 디바이스가 링크 UP되어있다.

 

2. bonding 디바이스설정

- bond0(본딩마스터)
[root@rhel6-test ~]# vi /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
IPADDR=192.168.0.65
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
ONBOOT=yes
BONDING_OPTS="mode=1 miimon=100"
TYPE=BOND
USERCTL=no

- eth0,eth1 (본딩슬래이브)
[root@rhel6-test ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:0c:29:4c:15:06
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL= no
TYPE= Ethernet
[root@rhel6-test ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
BOOTPROTO=none
HWADDR=00:0c:29:4c:15:10
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL= no
TYPE= Ethernet

 

3. NetworkManager 데몬 STOP
- 해당 데몬 살아있을시 bonding device 에러 (중요함)
[root@rhel6-test ~]# service NetworkManager stop
[root@rhel6-test ~]# chkconfig NetworkManager off

 

4. network service 재시작
[root@rhel6-test ~]# service network restart

 

5.Bonding Interface 확인
[root@rhel6-test ~]#  cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.6.0 (September 26, 2009)
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
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:0c:29:4c:15:06
Slave queue ID: 0
Slave Interface: eth1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:0c:29:4c:15:10
Slave queue ID: 0
 
반응형

댓글