게시물 261건
   
[redhat6.7] bonding 의 arp_ip_target 설정 방법
글쓴이 : theko 날짜 : 2017-02-09 (목) 10:36 조회 : 4549

 arp_ip_target 방법에 대해서 가이드 



---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Link Monitoring Modes

It is critical that a link monitoring mode, either the miimon or arp_interval and arp_ip_target parameters be specified. Configuring a bond without a link monitoring mode is not a valid use of the bonding driver
ARP monitoring parameters
* arp_interval: Specifies the ARP link monitoring frequency in milliseconds.
* arp_ip_target: Specifies the IP addresses to use as ARP-monitoring peers when arp_interval is > 0. Multiple IP addresses can be separated by a comma. At least one IP address must be given for ARP monitoring to function. The maximum number of targets that can be specified is 16.
* arp_validate: Specifies whether or not ARP probes and replies should be validated in the active-backup mode. This causes the ARP monitor to examine the incoming ARP requests and replies, and only consider a slave to be up if it is receiving the appropriate ARP traffic. This parameter can have the following values:
* 
* none (or 0): This is the default.
* active (or 1): Validation is performed only for the active slave.
* backup (or 2): Validation is performed only for backup slaves.
* all (or 3): Validation is performed for all slaves.


For the active slave, the validation checks ARP replies to confirm that they were generated by an arp_ip_target. Since backup slaves do not typically receive these replies, the validation performed for backup slaves is on the ARP request sent out via the active slave. It is possible that some switch or network configurations may result in situations wherein the backup slaves do not receive the ARP requests; in such a situation, validation of backup slaves must be disabled.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

예제)

file : /etc/sysconfig/network-scripts/ifcfg-bondX  <== X 는 인터페이스 number 입니다.

BONDING_OPTS="mode=1 arp_ip_target=check-ip arp_interval=100 arp_validate=3"


위 옵션을 적용 후 아래 명령을 실행 하세요.

#service network stop
#modprobe -r bonding 
#service network start

모니터링 방법 

# cat /proc/net/bonnding/bondX
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0
ARP Polling Interval (ms): 100   <== this
ARP IP target/s (n.n.n.n form): 172.16.0.1 <== this

validate mode  확인
# cat  /sys/class/net/bondX/bonding/arp_validate


 실제 테스트를 통하여 작동 하는지 테스트가 필요



이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com