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
½ÇÁ¦ Å×½ºÆ®¸¦ ÅëÇÏ¿© ÀÛµ¿ ÇÏ´ÂÁö Å×½ºÆ®°¡ ÇÊ¿ä