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 ~]# 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
[root@rhel6-test ~]# service NetworkManager stop
'IT > OS' 카테고리의 다른 글
리눅스에서 문자열 치환하기 (0) | 2020.07.08 |
---|---|
Linux OS내 특정 계정 보안정책(PAM) 예외 (0) | 2020.07.05 |
Web 서버와 Was 서버의 차이에 대해서 알아보자. (1) | 2016.09.08 |
'무손실음원'? MP3랑 뭐가 다를까 봤더니... (0) | 2016.05.08 |
자동차 필수 어플 BEST ! (0) | 2016.05.06 |