728x90
1. bond0 만들기
[root@localhost network-scripts]#cd /etc/sysconfig/network-scripts
[root@localhost network-scripts]# vi ifcfg-bond0
=====================================
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
TYPE=Ethernet
IPADDR=192.168.100.100
NETMAST=255.255.255.0
BONDING_MASTER=yes
BONDING_OPTS="mode=4 miimon=100"
======================================
Bonding Mode 설명
mode=0
- round robine : NIC를 통한 분배 (부하분산)
mode=1
- active-standy : active상태의 NIC 문제 발생 시 standby 활성화
mode=2
- Balance-XOR : 0과 비슷 하지만 xor연산을 이용한 Mac을 이용한 분배
mode=3
- Broadcast 정책 : 2개의 NIC에 어떤 규칙 없이 데이터 통신
mode=4
- 802.3ad : 이 기능을 사용 하기 위해서는 switch에서 aggregation 그룹 생성이 필요
대역폭 상승 기능
2. ifcfg-XXXX 장치 master = bond0 등록
장치명 p3p1,p3p2,p3p3,p3p4 MASTER=bond0
[root@localhost network-scripts]# cat ifcfg-p3p1
==============================================
DEVICE=p3p1
MASTER=bond0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp
USERCTL=no
PEERDNS=yes
IPV6INIT=no
SLAVE=yes
==============================================
3. bonding 환경 설정 값 변경
[root@localhost network-scripts]# vi /etc/modprobe.d/bonding.conf
==========================================
alias bond0 bonding
options bonding mode=4 miimon=100
==========================================
4. network restart
# service network restart
5. bonding 확인
[root@localhost network-scripts]# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer2 (0)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0
802.3ad info
LACP rate: slow
Min links: 0
Aggregator selection policy (ad_select): stable
Active Aggregator Info:
Aggregator ID: 1
Number of ports: 1
Actor Key: 9
Partner Key: 1
Partner Mac Address: 00:00:00:00:00:00
Slave Interface: p3p1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Aggregator ID: 1
Slave queue ID: 0
Slave Interface: p3p2
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Aggregator ID: 2
Slave queue ID: 0
Slave Interface: p3p3
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Aggregator ID: 3
Slave queue ID: 0
Slave Interface: p3p4
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Aggregator ID: 4
Slave queue ID: 0
6. Ip 확인
[root@localhost network-scripts]# ifconfig
bond0 Link encap:Ethernet HWaddr E4:1F:13:FA:10:21
inet addr:192.168.100.100 Bcast:192.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::e61f:13ff:fefa:1021/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:5012828 errors:0 dropped:0 overruns:0 frame:0
TX packets:161180 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:480495149 (458.2 MiB) TX bytes:20630056 (19.6 MiB)
728x90
'IT > LINUX' 카테고리의 다른 글
Centos7.8 iftop 설치 (0) | 2020.11.10 |
---|---|
LINUX 명령어 반복 실행 시키는 간단한 방법 (3) | 2020.11.06 |
Centos7 rc.local 실행 안될 경우 (0) | 2020.10.26 |
Centos7 ssh port 변경 (0) | 2020.10.22 |
Tomcat 종료 지연 현상 (0) | 2020.10.22 |