본문 바로가기

운영_설치/리눅스_유닉스

젠투 본딩 설정

** 일단 커널의 지원


Network device support
    [*] Network core driver support
    <*>     Bonding driver support




** net-misc/ifenslave 설치


emerge -u net-misc/ifenslave




** 네트워크 디바이스 명 확인


# lspci

...

03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)

...

05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 01)



# ls /sys/class/net

...

lrwxrwxrwx  1 root root    0  1월 14  2017 enp3s0 -> ../../devices/pci0000:00/0000:00:1c.1/0000:03:00.0/net/enp3s0

lrwxrwxrwx  1 root root    0  1월 14  2017 enp5s0 -> ../../devices/pci0000:00/0000:00:1c.4/0000:05:00.0/net/enp5s0

...


03:00.0 랜카드의 경우 디바이스 명이 enp3s0 되고 05:00.0 의 경우 enp5s0가 되는 걸로 봐서

아마도 lspci 출력화면의 첫 컬럼 숫자가 디바이스명을 좌우하는 듯




* 본딩 설정

/etc/conf.d/net 파일에서

기존
config_enp3s0="..."
routes_enp3s0="..."
위 두줄은 코멘트 처리

config_enp3s="null"
config_enp5s="null"
slaves_bond0="enp3s0 enp5s0"

config_bond0="192.168.0.40/24"
routes_bond0="default via 192.168.0.1"

mode_bond0="balance-rr"




** 확인

# ls /sys/class/net
...
lrwxrwxrwx  1 root root    0  1월 13 22:39 bond0 -> ../../devices/virtual/net/bond0
-rw-r--r--  1 root root 4096  1월 13 22:39 bonding_masters
lrwxrwxrwx  1 root root    0  1월 14  2017 enp3s0 -> ../../devices/pci0000:00/0000:00:1c.1/0000:03:00.0/net/enp3s0
lrwxrwxrwx  1 root root    0  1월 14  2017 enp5s0 -> ../../devices/pci0000:00/0000:00:1c.4/0000:05:00.0/net/enp5s0




# ifconfig


enp3s0 와 enp5s0 외에 bond0가 더 생겨났으며 enp3s0, enp5s0는 ip가 할당되지 않았고

bond0만 ip가 할당되어 있다.





%%%%%%%%%%%%%%%%%

/etc/conf.d/net 파일의 내용중에


mode_bond0="" 설정 방법이 바뀐듯 하다


    #mode_bond0="0"         #"balance_rr"
    #mode_bond0="1"         #"active_backup"
    #mode_bond0="2"         #balance-xor"
    #mode_bond0="3"         #"broadcast"
    #mode_bond0="4"         #"802.3ad"
    #mode_bond0="5"         #"balance_tlb"
    mode_bond0="6"          #"balance_alb"


문자대신 숫자로...


참고로 각각의 의미는..


0. balance-rr : (Round Robin) Load Balancing, 송신할 패킷마다 사용하는 NIC을 바꾼다.
1. active-backup: Failover, bond내에서 한개의 Slave만 사용, 포트문제가 생길경우 다른 Slave가 Enable
2. balance-xor : Load Balancing, 소스와 목적지의 MAC을 XOR 연산을 통해 사용할 NIC를 결정하여 분배
3. Broadcast : Fault-Tolerance, 모든 Slave으로 데이터전송(failover), 일반적으로는 잘 사용안함.
4. 802.3ad : Dynamic Link Aggregation, IEEE 802.3ad 프로토콜을 이용하여 동적 Aggregation 작성 대역폭 상승, 부하 분산, Failover 지원
5. balance-tlb(TLB) : 적응형 송신 부하 분산, 송신패킷 로드밸런싱, 송신시 부하가 낮은 NIC이용 수신은 특정 NIC이용
6. balance-alb(ALB) : 적응형 부하 분산, 송수신패킷 로드밸런싱, 송수신시 부하가 낮은 NIC를 사용



이라고.. 인터넷 어딘가에서 얘기함...




'운영_설치 > 리눅스_유닉스' 카테고리의 다른 글

젠투 - 포티지 sync 시간  (0) 2018.05.11
젠투 - 포티지 git으로 관리  (0) 2018.04.14
fstab 각 필드 설명  (0) 2017.01.11
Plex Media Server  (0) 2015.07.08
transmission 설정방법  (0) 2015.07.01


Calendar
«   2024/05   »
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
Archives
Visits
Today
Yesterday