PageRenderTime 1261ms CodeModel.GetById 42ms RepoModel.GetById 2ms app.codeStats 0ms

/Documentation/networking/bonding.txt

https://bitbucket.org/sammyz/iscream_thunderc-2.6.35-rebase
Plain Text | 2440 lines | 1890 code | 550 blank | 0 comment | 0 complexity | ffdf001caaddba204fc0f794117cd8c4 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0

Large files files are truncated, but you can click here to view the full file

  1. Linux Ethernet Bonding Driver HOWTO
  2. Latest update: 23 September 2009
  3. Initial release : Thomas Davis <tadavis at lbl.gov>
  4. Corrections, HA extensions : 2000/10/03-15 :
  5. - Willy Tarreau <willy at meta-x.org>
  6. - Constantine Gavrilov <const-g at xpert.com>
  7. - Chad N. Tindel <ctindel at ieee dot org>
  8. - Janice Girouard <girouard at us dot ibm dot com>
  9. - Jay Vosburgh <fubar at us dot ibm dot com>
  10. Reorganized and updated Feb 2005 by Jay Vosburgh
  11. Added Sysfs information: 2006/04/24
  12. - Mitch Williams <mitch.a.williams at intel.com>
  13. Introduction
  14. ============
  15. The Linux bonding driver provides a method for aggregating
  16. multiple network interfaces into a single logical "bonded" interface.
  17. The behavior of the bonded interfaces depends upon the mode; generally
  18. speaking, modes provide either hot standby or load balancing services.
  19. Additionally, link integrity monitoring may be performed.
  20. The bonding driver originally came from Donald Becker's
  21. beowulf patches for kernel 2.0. It has changed quite a bit since, and
  22. the original tools from extreme-linux and beowulf sites will not work
  23. with this version of the driver.
  24. For new versions of the driver, updated userspace tools, and
  25. who to ask for help, please follow the links at the end of this file.
  26. Table of Contents
  27. =================
  28. 1. Bonding Driver Installation
  29. 2. Bonding Driver Options
  30. 3. Configuring Bonding Devices
  31. 3.1 Configuration with Sysconfig Support
  32. 3.1.1 Using DHCP with Sysconfig
  33. 3.1.2 Configuring Multiple Bonds with Sysconfig
  34. 3.2 Configuration with Initscripts Support
  35. 3.2.1 Using DHCP with Initscripts
  36. 3.2.2 Configuring Multiple Bonds with Initscripts
  37. 3.3 Configuring Bonding Manually with Ifenslave
  38. 3.3.1 Configuring Multiple Bonds Manually
  39. 3.4 Configuring Bonding Manually via Sysfs
  40. 4. Querying Bonding Configuration
  41. 4.1 Bonding Configuration
  42. 4.2 Network Configuration
  43. 5. Switch Configuration
  44. 6. 802.1q VLAN Support
  45. 7. Link Monitoring
  46. 7.1 ARP Monitor Operation
  47. 7.2 Configuring Multiple ARP Targets
  48. 7.3 MII Monitor Operation
  49. 8. Potential Trouble Sources
  50. 8.1 Adventures in Routing
  51. 8.2 Ethernet Device Renaming
  52. 8.3 Painfully Slow Or No Failed Link Detection By Miimon
  53. 9. SNMP agents
  54. 10. Promiscuous mode
  55. 11. Configuring Bonding for High Availability
  56. 11.1 High Availability in a Single Switch Topology
  57. 11.2 High Availability in a Multiple Switch Topology
  58. 11.2.1 HA Bonding Mode Selection for Multiple Switch Topology
  59. 11.2.2 HA Link Monitoring for Multiple Switch Topology
  60. 12. Configuring Bonding for Maximum Throughput
  61. 12.1 Maximum Throughput in a Single Switch Topology
  62. 12.1.1 MT Bonding Mode Selection for Single Switch Topology
  63. 12.1.2 MT Link Monitoring for Single Switch Topology
  64. 12.2 Maximum Throughput in a Multiple Switch Topology
  65. 12.2.1 MT Bonding Mode Selection for Multiple Switch Topology
  66. 12.2.2 MT Link Monitoring for Multiple Switch Topology
  67. 13. Switch Behavior Issues
  68. 13.1 Link Establishment and Failover Delays
  69. 13.2 Duplicated Incoming Packets
  70. 14. Hardware Specific Considerations
  71. 14.1 IBM BladeCenter
  72. 15. Frequently Asked Questions
  73. 16. Resources and Links
  74. 1. Bonding Driver Installation
  75. ==============================
  76. Most popular distro kernels ship with the bonding driver
  77. already available as a module and the ifenslave user level control
  78. program installed and ready for use. If your distro does not, or you
  79. have need to compile bonding from source (e.g., configuring and
  80. installing a mainline kernel from kernel.org), you'll need to perform
  81. the following steps:
  82. 1.1 Configure and build the kernel with bonding
  83. -----------------------------------------------
  84. The current version of the bonding driver is available in the
  85. drivers/net/bonding subdirectory of the most recent kernel source
  86. (which is available on http://kernel.org). Most users "rolling their
  87. own" will want to use the most recent kernel from kernel.org.
  88. Configure kernel with "make menuconfig" (or "make xconfig" or
  89. "make config"), then select "Bonding driver support" in the "Network
  90. device support" section. It is recommended that you configure the
  91. driver as module since it is currently the only way to pass parameters
  92. to the driver or configure more than one bonding device.
  93. Build and install the new kernel and modules, then continue
  94. below to install ifenslave.
  95. 1.2 Install ifenslave Control Utility
  96. -------------------------------------
  97. The ifenslave user level control program is included in the
  98. kernel source tree, in the file Documentation/networking/ifenslave.c.
  99. It is generally recommended that you use the ifenslave that
  100. corresponds to the kernel that you are using (either from the same
  101. source tree or supplied with the distro), however, ifenslave
  102. executables from older kernels should function (but features newer
  103. than the ifenslave release are not supported). Running an ifenslave
  104. that is newer than the kernel is not supported, and may or may not
  105. work.
  106. To install ifenslave, do the following:
  107. # gcc -Wall -O -I/usr/src/linux/include ifenslave.c -o ifenslave
  108. # cp ifenslave /sbin/ifenslave
  109. If your kernel source is not in "/usr/src/linux," then replace
  110. "/usr/src/linux/include" in the above with the location of your kernel
  111. source include directory.
  112. You may wish to back up any existing /sbin/ifenslave, or, for
  113. testing or informal use, tag the ifenslave to the kernel version
  114. (e.g., name the ifenslave executable /sbin/ifenslave-2.6.10).
  115. IMPORTANT NOTE:
  116. If you omit the "-I" or specify an incorrect directory, you
  117. may end up with an ifenslave that is incompatible with the kernel
  118. you're trying to build it for. Some distros (e.g., Red Hat from 7.1
  119. onwards) do not have /usr/include/linux symbolically linked to the
  120. default kernel source include directory.
  121. SECOND IMPORTANT NOTE:
  122. If you plan to configure bonding using sysfs, you do not need
  123. to use ifenslave.
  124. 2. Bonding Driver Options
  125. =========================
  126. Options for the bonding driver are supplied as parameters to the
  127. bonding module at load time, or are specified via sysfs.
  128. Module options may be given as command line arguments to the
  129. insmod or modprobe command, but are usually specified in either the
  130. /etc/modules.conf or /etc/modprobe.conf configuration file, or in a
  131. distro-specific configuration file (some of which are detailed in the next
  132. section).
  133. Details on bonding support for sysfs is provided in the
  134. "Configuring Bonding Manually via Sysfs" section, below.
  135. The available bonding driver parameters are listed below. If a
  136. parameter is not specified the default value is used. When initially
  137. configuring a bond, it is recommended "tail -f /var/log/messages" be
  138. run in a separate window to watch for bonding driver error messages.
  139. It is critical that either the miimon or arp_interval and
  140. arp_ip_target parameters be specified, otherwise serious network
  141. degradation will occur during link failures. Very few devices do not
  142. support at least miimon, so there is really no reason not to use it.
  143. Options with textual values will accept either the text name
  144. or, for backwards compatibility, the option value. E.g.,
  145. "mode=802.3ad" and "mode=4" set the same mode.
  146. The parameters are as follows:
  147. ad_select
  148. Specifies the 802.3ad aggregation selection logic to use. The
  149. possible values and their effects are:
  150. stable or 0
  151. The active aggregator is chosen by largest aggregate
  152. bandwidth.
  153. Reselection of the active aggregator occurs only when all
  154. slaves of the active aggregator are down or the active
  155. aggregator has no slaves.
  156. This is the default value.
  157. bandwidth or 1
  158. The active aggregator is chosen by largest aggregate
  159. bandwidth. Reselection occurs if:
  160. - A slave is added to or removed from the bond
  161. - Any slave's link state changes
  162. - Any slave's 802.3ad association state changes
  163. - The bond's administrative state changes to up
  164. count or 2
  165. The active aggregator is chosen by the largest number of
  166. ports (slaves). Reselection occurs as described under the
  167. "bandwidth" setting, above.
  168. The bandwidth and count selection policies permit failover of
  169. 802.3ad aggregations when partial failure of the active aggregator
  170. occurs. This keeps the aggregator with the highest availability
  171. (either in bandwidth or in number of ports) active at all times.
  172. This option was added in bonding version 3.4.0.
  173. arp_interval
  174. Specifies the ARP link monitoring frequency in milliseconds.
  175. The ARP monitor works by periodically checking the slave
  176. devices to determine whether they have sent or received
  177. traffic recently (the precise criteria depends upon the
  178. bonding mode, and the state of the slave). Regular traffic is
  179. generated via ARP probes issued for the addresses specified by
  180. the arp_ip_target option.
  181. This behavior can be modified by the arp_validate option,
  182. below.
  183. If ARP monitoring is used in an etherchannel compatible mode
  184. (modes 0 and 2), the switch should be configured in a mode
  185. that evenly distributes packets across all links. If the
  186. switch is configured to distribute the packets in an XOR
  187. fashion, all replies from the ARP targets will be received on
  188. the same link which could cause the other team members to
  189. fail. ARP monitoring should not be used in conjunction with
  190. miimon. A value of 0 disables ARP monitoring. The default
  191. value is 0.
  192. arp_ip_target
  193. Specifies the IP addresses to use as ARP monitoring peers when
  194. arp_interval is > 0. These are the targets of the ARP request
  195. sent to determine the health of the link to the targets.
  196. Specify these values in ddd.ddd.ddd.ddd format. Multiple IP
  197. addresses must be separated by a comma. At least one IP
  198. address must be given for ARP monitoring to function. The
  199. maximum number of targets that can be specified is 16. The
  200. default value is no IP addresses.
  201. arp_validate
  202. Specifies whether or not ARP probes and replies should be
  203. validated in the active-backup mode. This causes the ARP
  204. monitor to examine the incoming ARP requests and replies, and
  205. only consider a slave to be up if it is receiving the
  206. appropriate ARP traffic.
  207. Possible values are:
  208. none or 0
  209. No validation is performed. This is the default.
  210. active or 1
  211. Validation is performed only for the active slave.
  212. backup or 2
  213. Validation is performed only for backup slaves.
  214. all or 3
  215. Validation is performed for all slaves.
  216. For the active slave, the validation checks ARP replies to
  217. confirm that they were generated by an arp_ip_target. Since
  218. backup slaves do not typically receive these replies, the
  219. validation performed for backup slaves is on the ARP request
  220. sent out via the active slave. It is possible that some
  221. switch or network configurations may result in situations
  222. wherein the backup slaves do not receive the ARP requests; in
  223. such a situation, validation of backup slaves must be
  224. disabled.
  225. This option is useful in network configurations in which
  226. multiple bonding hosts are concurrently issuing ARPs to one or
  227. more targets beyond a common switch. Should the link between
  228. the switch and target fail (but not the switch itself), the
  229. probe traffic generated by the multiple bonding instances will
  230. fool the standard ARP monitor into considering the links as
  231. still up. Use of the arp_validate option can resolve this, as
  232. the ARP monitor will only consider ARP requests and replies
  233. associated with its own instance of bonding.
  234. This option was added in bonding version 3.1.0.
  235. downdelay
  236. Specifies the time, in milliseconds, to wait before disabling
  237. a slave after a link failure has been detected. This option
  238. is only valid for the miimon link monitor. The downdelay
  239. value should be a multiple of the miimon value; if not, it
  240. will be rounded down to the nearest multiple. The default
  241. value is 0.
  242. fail_over_mac
  243. Specifies whether active-backup mode should set all slaves to
  244. the same MAC address at enslavement (the traditional
  245. behavior), or, when enabled, perform special handling of the
  246. bond's MAC address in accordance with the selected policy.
  247. Possible values are:
  248. none or 0
  249. This setting disables fail_over_mac, and causes
  250. bonding to set all slaves of an active-backup bond to
  251. the same MAC address at enslavement time. This is the
  252. default.
  253. active or 1
  254. The "active" fail_over_mac policy indicates that the
  255. MAC address of the bond should always be the MAC
  256. address of the currently active slave. The MAC
  257. address of the slaves is not changed; instead, the MAC
  258. address of the bond changes during a failover.
  259. This policy is useful for devices that cannot ever
  260. alter their MAC address, or for devices that refuse
  261. incoming broadcasts with their own source MAC (which
  262. interferes with the ARP monitor).
  263. The down side of this policy is that every device on
  264. the network must be updated via gratuitous ARP,
  265. vs. just updating a switch or set of switches (which
  266. often takes place for any traffic, not just ARP
  267. traffic, if the switch snoops incoming traffic to
  268. update its tables) for the traditional method. If the
  269. gratuitous ARP is lost, communication may be
  270. disrupted.
  271. When this policy is used in conjuction with the mii
  272. monitor, devices which assert link up prior to being
  273. able to actually transmit and receive are particularly
  274. susceptible to loss of the gratuitous ARP, and an
  275. appropriate updelay setting may be required.
  276. follow or 2
  277. The "follow" fail_over_mac policy causes the MAC
  278. address of the bond to be selected normally (normally
  279. the MAC address of the first slave added to the bond).
  280. However, the second and subsequent slaves are not set
  281. to this MAC address while they are in a backup role; a
  282. slave is programmed with the bond's MAC address at
  283. failover time (and the formerly active slave receives
  284. the newly active slave's MAC address).
  285. This policy is useful for multiport devices that
  286. either become confused or incur a performance penalty
  287. when multiple ports are programmed with the same MAC
  288. address.
  289. The default policy is none, unless the first slave cannot
  290. change its MAC address, in which case the active policy is
  291. selected by default.
  292. This option may be modified via sysfs only when no slaves are
  293. present in the bond.
  294. This option was added in bonding version 3.2.0. The "follow"
  295. policy was added in bonding version 3.3.0.
  296. lacp_rate
  297. Option specifying the rate in which we'll ask our link partner
  298. to transmit LACPDU packets in 802.3ad mode. Possible values
  299. are:
  300. slow or 0
  301. Request partner to transmit LACPDUs every 30 seconds
  302. fast or 1
  303. Request partner to transmit LACPDUs every 1 second
  304. The default is slow.
  305. max_bonds
  306. Specifies the number of bonding devices to create for this
  307. instance of the bonding driver. E.g., if max_bonds is 3, and
  308. the bonding driver is not already loaded, then bond0, bond1
  309. and bond2 will be created. The default value is 1. Specifying
  310. a value of 0 will load bonding, but will not create any devices.
  311. miimon
  312. Specifies the MII link monitoring frequency in milliseconds.
  313. This determines how often the link state of each slave is
  314. inspected for link failures. A value of zero disables MII
  315. link monitoring. A value of 100 is a good starting point.
  316. The use_carrier option, below, affects how the link state is
  317. determined. See the High Availability section for additional
  318. information. The default value is 0.
  319. mode
  320. Specifies one of the bonding policies. The default is
  321. balance-rr (round robin). Possible values are:
  322. balance-rr or 0
  323. Round-robin policy: Transmit packets in sequential
  324. order from the first available slave through the
  325. last. This mode provides load balancing and fault
  326. tolerance.
  327. active-backup or 1
  328. Active-backup policy: Only one slave in the bond is
  329. active. A different slave becomes active if, and only
  330. if, the active slave fails. The bond's MAC address is
  331. externally visible on only one port (network adapter)
  332. to avoid confusing the switch.
  333. In bonding version 2.6.2 or later, when a failover
  334. occurs in active-backup mode, bonding will issue one
  335. or more gratuitous ARPs on the newly active slave.
  336. One gratuitous ARP is issued for the bonding master
  337. interface and each VLAN interfaces configured above
  338. it, provided that the interface has at least one IP
  339. address configured. Gratuitous ARPs issued for VLAN
  340. interfaces are tagged with the appropriate VLAN id.
  341. This mode provides fault tolerance. The primary
  342. option, documented below, affects the behavior of this
  343. mode.
  344. balance-xor or 2
  345. XOR policy: Transmit based on the selected transmit
  346. hash policy. The default policy is a simple [(source
  347. MAC address XOR'd with destination MAC address) modulo
  348. slave count]. Alternate transmit policies may be
  349. selected via the xmit_hash_policy option, described
  350. below.
  351. This mode provides load balancing and fault tolerance.
  352. broadcast or 3
  353. Broadcast policy: transmits everything on all slave
  354. interfaces. This mode provides fault tolerance.
  355. 802.3ad or 4
  356. IEEE 802.3ad Dynamic link aggregation. Creates
  357. aggregation groups that share the same speed and
  358. duplex settings. Utilizes all slaves in the active
  359. aggregator according to the 802.3ad specification.
  360. Slave selection for outgoing traffic is done according
  361. to the transmit hash policy, which may be changed from
  362. the default simple XOR policy via the xmit_hash_policy
  363. option, documented below. Note that not all transmit
  364. policies may be 802.3ad compliant, particularly in
  365. regards to the packet mis-ordering requirements of
  366. section 43.2.4 of the 802.3ad standard. Differing
  367. peer implementations will have varying tolerances for
  368. noncompliance.
  369. Prerequisites:
  370. 1. Ethtool support in the base drivers for retrieving
  371. the speed and duplex of each slave.
  372. 2. A switch that supports IEEE 802.3ad Dynamic link
  373. aggregation.
  374. Most switches will require some type of configuration
  375. to enable 802.3ad mode.
  376. balance-tlb or 5
  377. Adaptive transmit load balancing: channel bonding that
  378. does not require any special switch support. The
  379. outgoing traffic is distributed according to the
  380. current load (computed relative to the speed) on each
  381. slave. Incoming traffic is received by the current
  382. slave. If the receiving slave fails, another slave
  383. takes over the MAC address of the failed receiving
  384. slave.
  385. Prerequisite:
  386. Ethtool support in the base drivers for retrieving the
  387. speed of each slave.
  388. balance-alb or 6
  389. Adaptive load balancing: includes balance-tlb plus
  390. receive load balancing (rlb) for IPV4 traffic, and
  391. does not require any special switch support. The
  392. receive load balancing is achieved by ARP negotiation.
  393. The bonding driver intercepts the ARP Replies sent by
  394. the local system on their way out and overwrites the
  395. source hardware address with the unique hardware
  396. address of one of the slaves in the bond such that
  397. different peers use different hardware addresses for
  398. the server.
  399. Receive traffic from connections created by the server
  400. is also balanced. When the local system sends an ARP
  401. Request the bonding driver copies and saves the peer's
  402. IP information from the ARP packet. When the ARP
  403. Reply arrives from the peer, its hardware address is
  404. retrieved and the bonding driver initiates an ARP
  405. reply to this peer assigning it to one of the slaves
  406. in the bond. A problematic outcome of using ARP
  407. negotiation for balancing is that each time that an
  408. ARP request is broadcast it uses the hardware address
  409. of the bond. Hence, peers learn the hardware address
  410. of the bond and the balancing of receive traffic
  411. collapses to the current slave. This is handled by
  412. sending updates (ARP Replies) to all the peers with
  413. their individually assigned hardware address such that
  414. the traffic is redistributed. Receive traffic is also
  415. redistributed when a new slave is added to the bond
  416. and when an inactive slave is re-activated. The
  417. receive load is distributed sequentially (round robin)
  418. among the group of highest speed slaves in the bond.
  419. When a link is reconnected or a new slave joins the
  420. bond the receive traffic is redistributed among all
  421. active slaves in the bond by initiating ARP Replies
  422. with the selected MAC address to each of the
  423. clients. The updelay parameter (detailed below) must
  424. be set to a value equal or greater than the switch's
  425. forwarding delay so that the ARP Replies sent to the
  426. peers will not be blocked by the switch.
  427. Prerequisites:
  428. 1. Ethtool support in the base drivers for retrieving
  429. the speed of each slave.
  430. 2. Base driver support for setting the hardware
  431. address of a device while it is open. This is
  432. required so that there will always be one slave in the
  433. team using the bond hardware address (the
  434. curr_active_slave) while having a unique hardware
  435. address for each slave in the bond. If the
  436. curr_active_slave fails its hardware address is
  437. swapped with the new curr_active_slave that was
  438. chosen.
  439. num_grat_arp
  440. Specifies the number of gratuitous ARPs to be issued after a
  441. failover event. One gratuitous ARP is issued immediately after
  442. the failover, subsequent ARPs are sent at a rate of one per link
  443. monitor interval (arp_interval or miimon, whichever is active).
  444. The valid range is 0 - 255; the default value is 1. This option
  445. affects only the active-backup mode. This option was added for
  446. bonding version 3.3.0.
  447. num_unsol_na
  448. Specifies the number of unsolicited IPv6 Neighbor Advertisements
  449. to be issued after a failover event. One unsolicited NA is issued
  450. immediately after the failover.
  451. The valid range is 0 - 255; the default value is 1. This option
  452. affects only the active-backup mode. This option was added for
  453. bonding version 3.4.0.
  454. primary
  455. A string (eth0, eth2, etc) specifying which slave is the
  456. primary device. The specified device will always be the
  457. active slave while it is available. Only when the primary is
  458. off-line will alternate devices be used. This is useful when
  459. one slave is preferred over another, e.g., when one slave has
  460. higher throughput than another.
  461. The primary option is only valid for active-backup mode.
  462. primary_reselect
  463. Specifies the reselection policy for the primary slave. This
  464. affects how the primary slave is chosen to become the active slave
  465. when failure of the active slave or recovery of the primary slave
  466. occurs. This option is designed to prevent flip-flopping between
  467. the primary slave and other slaves. Possible values are:
  468. always or 0 (default)
  469. The primary slave becomes the active slave whenever it
  470. comes back up.
  471. better or 1
  472. The primary slave becomes the active slave when it comes
  473. back up, if the speed and duplex of the primary slave is
  474. better than the speed and duplex of the current active
  475. slave.
  476. failure or 2
  477. The primary slave becomes the active slave only if the
  478. current active slave fails and the primary slave is up.
  479. The primary_reselect setting is ignored in two cases:
  480. If no slaves are active, the first slave to recover is
  481. made the active slave.
  482. When initially enslaved, the primary slave is always made
  483. the active slave.
  484. Changing the primary_reselect policy via sysfs will cause an
  485. immediate selection of the best active slave according to the new
  486. policy. This may or may not result in a change of the active
  487. slave, depending upon the circumstances.
  488. This option was added for bonding version 3.6.0.
  489. updelay
  490. Specifies the time, in milliseconds, to wait before enabling a
  491. slave after a link recovery has been detected. This option is
  492. only valid for the miimon link monitor. The updelay value
  493. should be a multiple of the miimon value; if not, it will be
  494. rounded down to the nearest multiple. The default value is 0.
  495. use_carrier
  496. Specifies whether or not miimon should use MII or ETHTOOL
  497. ioctls vs. netif_carrier_ok() to determine the link
  498. status. The MII or ETHTOOL ioctls are less efficient and
  499. utilize a deprecated calling sequence within the kernel. The
  500. netif_carrier_ok() relies on the device driver to maintain its
  501. state with netif_carrier_on/off; at this writing, most, but
  502. not all, device drivers support this facility.
  503. If bonding insists that the link is up when it should not be,
  504. it may be that your network device driver does not support
  505. netif_carrier_on/off. The default state for netif_carrier is
  506. "carrier on," so if a driver does not support netif_carrier,
  507. it will appear as if the link is always up. In this case,
  508. setting use_carrier to 0 will cause bonding to revert to the
  509. MII / ETHTOOL ioctl method to determine the link state.
  510. A value of 1 enables the use of netif_carrier_ok(), a value of
  511. 0 will use the deprecated MII / ETHTOOL ioctls. The default
  512. value is 1.
  513. xmit_hash_policy
  514. Selects the transmit hash policy to use for slave selection in
  515. balance-xor and 802.3ad modes. Possible values are:
  516. layer2
  517. Uses XOR of hardware MAC addresses to generate the
  518. hash. The formula is
  519. (source MAC XOR destination MAC) modulo slave count
  520. This algorithm will place all traffic to a particular
  521. network peer on the same slave.
  522. This algorithm is 802.3ad compliant.
  523. layer2+3
  524. This policy uses a combination of layer2 and layer3
  525. protocol information to generate the hash.
  526. Uses XOR of hardware MAC addresses and IP addresses to
  527. generate the hash. The formula is
  528. (((source IP XOR dest IP) AND 0xffff) XOR
  529. ( source MAC XOR destination MAC ))
  530. modulo slave count
  531. This algorithm will place all traffic to a particular
  532. network peer on the same slave. For non-IP traffic,
  533. the formula is the same as for the layer2 transmit
  534. hash policy.
  535. This policy is intended to provide a more balanced
  536. distribution of traffic than layer2 alone, especially
  537. in environments where a layer3 gateway device is
  538. required to reach most destinations.
  539. This algorithm is 802.3ad compliant.
  540. layer3+4
  541. This policy uses upper layer protocol information,
  542. when available, to generate the hash. This allows for
  543. traffic to a particular network peer to span multiple
  544. slaves, although a single connection will not span
  545. multiple slaves.
  546. The formula for unfragmented TCP and UDP packets is
  547. ((source port XOR dest port) XOR
  548. ((source IP XOR dest IP) AND 0xffff)
  549. modulo slave count
  550. For fragmented TCP or UDP packets and all other IP
  551. protocol traffic, the source and destination port
  552. information is omitted. For non-IP traffic, the
  553. formula is the same as for the layer2 transmit hash
  554. policy.
  555. This policy is intended to mimic the behavior of
  556. certain switches, notably Cisco switches with PFC2 as
  557. well as some Foundry and IBM products.
  558. This algorithm is not fully 802.3ad compliant. A
  559. single TCP or UDP conversation containing both
  560. fragmented and unfragmented packets will see packets
  561. striped across two interfaces. This may result in out
  562. of order delivery. Most traffic types will not meet
  563. this criteria, as TCP rarely fragments traffic, and
  564. most UDP traffic is not involved in extended
  565. conversations. Other implementations of 802.3ad may
  566. or may not tolerate this noncompliance.
  567. The default value is layer2. This option was added in bonding
  568. version 2.6.3. In earlier versions of bonding, this parameter
  569. does not exist, and the layer2 policy is the only policy. The
  570. layer2+3 value was added for bonding version 3.2.2.
  571. 3. Configuring Bonding Devices
  572. ==============================
  573. You can configure bonding using either your distro's network
  574. initialization scripts, or manually using either ifenslave or the
  575. sysfs interface. Distros generally use one of two packages for the
  576. network initialization scripts: initscripts or sysconfig. Recent
  577. versions of these packages have support for bonding, while older
  578. versions do not.
  579. We will first describe the options for configuring bonding for
  580. distros using versions of initscripts and sysconfig with full or
  581. partial support for bonding, then provide information on enabling
  582. bonding without support from the network initialization scripts (i.e.,
  583. older versions of initscripts or sysconfig).
  584. If you're unsure whether your distro uses sysconfig or
  585. initscripts, or don't know if it's new enough, have no fear.
  586. Determining this is fairly straightforward.
  587. First, issue the command:
  588. $ rpm -qf /sbin/ifup
  589. It will respond with a line of text starting with either
  590. "initscripts" or "sysconfig," followed by some numbers. This is the
  591. package that provides your network initialization scripts.
  592. Next, to determine if your installation supports bonding,
  593. issue the command:
  594. $ grep ifenslave /sbin/ifup
  595. If this returns any matches, then your initscripts or
  596. sysconfig has support for bonding.
  597. 3.1 Configuration with Sysconfig Support
  598. ----------------------------------------
  599. This section applies to distros using a version of sysconfig
  600. with bonding support, for example, SuSE Linux Enterprise Server 9.
  601. SuSE SLES 9's networking configuration system does support
  602. bonding, however, at this writing, the YaST system configuration
  603. front end does not provide any means to work with bonding devices.
  604. Bonding devices can be managed by hand, however, as follows.
  605. First, if they have not already been configured, configure the
  606. slave devices. On SLES 9, this is most easily done by running the
  607. yast2 sysconfig configuration utility. The goal is for to create an
  608. ifcfg-id file for each slave device. The simplest way to accomplish
  609. this is to configure the devices for DHCP (this is only to get the
  610. file ifcfg-id file created; see below for some issues with DHCP). The
  611. name of the configuration file for each device will be of the form:
  612. ifcfg-id-xx:xx:xx:xx:xx:xx
  613. Where the "xx" portion will be replaced with the digits from
  614. the device's permanent MAC address.
  615. Once the set of ifcfg-id-xx:xx:xx:xx:xx:xx files has been
  616. created, it is necessary to edit the configuration files for the slave
  617. devices (the MAC addresses correspond to those of the slave devices).
  618. Before editing, the file will contain multiple lines, and will look
  619. something like this:
  620. BOOTPROTO='dhcp'
  621. STARTMODE='on'
  622. USERCTL='no'
  623. UNIQUE='XNzu.WeZGOGF+4wE'
  624. _nm_name='bus-pci-0001:61:01.0'
  625. Change the BOOTPROTO and STARTMODE lines to the following:
  626. BOOTPROTO='none'
  627. STARTMODE='off'
  628. Do not alter the UNIQUE or _nm_name lines. Remove any other
  629. lines (USERCTL, etc).
  630. Once the ifcfg-id-xx:xx:xx:xx:xx:xx files have been modified,
  631. it's time to create the configuration file for the bonding device
  632. itself. This file is named ifcfg-bondX, where X is the number of the
  633. bonding device to create, starting at 0. The first such file is
  634. ifcfg-bond0, the second is ifcfg-bond1, and so on. The sysconfig
  635. network configuration system will correctly start multiple instances
  636. of bonding.
  637. The contents of the ifcfg-bondX file is as follows:
  638. BOOTPROTO="static"
  639. BROADCAST="10.0.2.255"
  640. IPADDR="10.0.2.10"
  641. NETMASK="255.255.0.0"
  642. NETWORK="10.0.2.0"
  643. REMOTE_IPADDR=""
  644. STARTMODE="onboot"
  645. BONDING_MASTER="yes"
  646. BONDING_MODULE_OPTS="mode=active-backup miimon=100"
  647. BONDING_SLAVE0="eth0"
  648. BONDING_SLAVE1="bus-pci-0000:06:08.1"
  649. Replace the sample BROADCAST, IPADDR, NETMASK and NETWORK
  650. values with the appropriate values for your network.
  651. The STARTMODE specifies when the device is brought online.
  652. The possible values are:
  653. onboot: The device is started at boot time. If you're not
  654. sure, this is probably what you want.
  655. manual: The device is started only when ifup is called
  656. manually. Bonding devices may be configured this
  657. way if you do not wish them to start automatically
  658. at boot for some reason.
  659. hotplug: The device is started by a hotplug event. This is not
  660. a valid choice for a bonding device.
  661. off or ignore: The device configuration is ignored.
  662. The line BONDING_MASTER='yes' indicates that the device is a
  663. bonding master device. The only useful value is "yes."
  664. The contents of BONDING_MODULE_OPTS are supplied to the
  665. instance of the bonding module for this device. Specify the options
  666. for the bonding mode, link monitoring, and so on here. Do not include
  667. the max_bonds bonding parameter; this will confuse the configuration
  668. system if you have multiple bonding devices.
  669. Finally, supply one BONDING_SLAVEn="slave device" for each
  670. slave. where "n" is an increasing value, one for each slave. The
  671. "slave device" is either an interface name, e.g., "eth0", or a device
  672. specifier for the network device. The interface name is easier to
  673. find, but the ethN names are subject to change at boot time if, e.g.,
  674. a device early in the sequence has failed. The device specifiers
  675. (bus-pci-0000:06:08.1 in the example above) specify the physical
  676. network device, and will not change unless the device's bus location
  677. changes (for example, it is moved from one PCI slot to another). The
  678. example above uses one of each type for demonstration purposes; most
  679. configurations will choose one or the other for all slave devices.
  680. When all configuration files have been modified or created,
  681. networking must be restarted for the configuration changes to take
  682. effect. This can be accomplished via the following:
  683. # /etc/init.d/network restart
  684. Note that the network control script (/sbin/ifdown) will
  685. remove the bonding module as part of the network shutdown processing,
  686. so it is not necessary to remove the module by hand if, e.g., the
  687. module parameters have changed.
  688. Also, at this writing, YaST/YaST2 will not manage bonding
  689. devices (they do not show bonding interfaces on its list of network
  690. devices). It is necessary to edit the configuration file by hand to
  691. change the bonding configuration.
  692. Additional general options and details of the ifcfg file
  693. format can be found in an example ifcfg template file:
  694. /etc/sysconfig/network/ifcfg.template
  695. Note that the template does not document the various BONDING_
  696. settings described above, but does describe many of the other options.
  697. 3.1.1 Using DHCP with Sysconfig
  698. -------------------------------
  699. Under sysconfig, configuring a device with BOOTPROTO='dhcp'
  700. will cause it to query DHCP for its IP address information. At this
  701. writing, this does not function for bonding devices; the scripts
  702. attempt to obtain the device address from DHCP prior to adding any of
  703. the slave devices. Without active slaves, the DHCP requests are not
  704. sent to the network.
  705. 3.1.2 Configuring Multiple Bonds with Sysconfig
  706. -----------------------------------------------
  707. The sysconfig network initialization system is capable of
  708. handling multiple bonding devices. All that is necessary is for each
  709. bonding instance to have an appropriately configured ifcfg-bondX file
  710. (as described above). Do not specify the "max_bonds" parameter to any
  711. instance of bonding, as this will confuse sysconfig. If you require
  712. multiple bonding devices with identical parameters, create multiple
  713. ifcfg-bondX files.
  714. Because the sysconfig scripts supply the bonding module
  715. options in the ifcfg-bondX file, it is not necessary to add them to
  716. the system /etc/modules.conf or /etc/modprobe.conf configuration file.
  717. 3.2 Configuration with Initscripts Support
  718. ------------------------------------------
  719. This section applies to distros using a recent version of
  720. initscripts with bonding support, for example, Red Hat Enterprise Linux
  721. version 3 or later, Fedora, etc. On these systems, the network
  722. initialization scripts have knowledge of bonding, and can be configured to
  723. control bonding devices. Note that older versions of the initscripts
  724. package have lower levels of support for bonding; this will be noted where
  725. applicable.
  726. These distros will not automatically load the network adapter
  727. driver unless the ethX device is configured with an IP address.
  728. Because of this constraint, users must manually configure a
  729. network-script file for all physical adapters that will be members of
  730. a bondX link. Network script files are located in the directory:
  731. /etc/sysconfig/network-scripts
  732. The file name must be prefixed with "ifcfg-eth" and suffixed
  733. with the adapter's physical adapter number. For example, the script
  734. for eth0 would be named /etc/sysconfig/network-scripts/ifcfg-eth0.
  735. Place the following text in the file:
  736. DEVICE=eth0
  737. USERCTL=no
  738. ONBOOT=yes
  739. MASTER=bond0
  740. SLAVE=yes
  741. BOOTPROTO=none
  742. The DEVICE= line will be different for every ethX device and
  743. must correspond with the name of the file, i.e., ifcfg-eth1 must have
  744. a device line of DEVICE=eth1. The setting of the MASTER= line will
  745. also depend on the final bonding interface name chosen for your bond.
  746. As with other network devices, these typically start at 0, and go up
  747. one for each device, i.e., the first bonding instance is bond0, the
  748. second is bond1, and so on.
  749. Next, create a bond network script. The file name for this
  750. script will be /etc/sysconfig/network-scripts/ifcfg-bondX where X is
  751. the number of the bond. For bond0 the file is named "ifcfg-bond0",
  752. for bond1 it is named "ifcfg-bond1", and so on. Within that file,
  753. place the following text:
  754. DEVICE=bond0
  755. IPADDR=192.168.1.1
  756. NETMASK=255.255.255.0
  757. NETWORK=192.168.1.0
  758. BROADCAST=192.168.1.255
  759. ONBOOT=yes
  760. BOOTPROTO=none
  761. USERCTL=no
  762. Be sure to change the networking specific lines (IPADDR,
  763. NETMASK, NETWORK and BROADCAST) to match your network configuration.
  764. For later versions of initscripts, such as that found with Fedora
  765. 7 (or later) and Red Hat Enterprise Linux version 5 (or later), it is possible,
  766. and, indeed, preferable, to specify the bonding options in the ifcfg-bond0
  767. file, e.g. a line of the format:
  768. BONDING_OPTS="mode=active-backup arp_interval=60 arp_ip_target=192.168.1.254"
  769. will configure the bond with the specified options. The options
  770. specified in BONDING_OPTS are identical to the bonding module parameters
  771. except for the arp_ip_target field when using versions of initscripts older
  772. than and 8.57 (Fedora 8) and 8.45.19 (Red Hat Enterprise Linux 5.2). When
  773. using older versions each target should be included as a separate option and
  774. should be preceded by a '+' to indicate it should be added to the list of
  775. queried targets, e.g.,
  776. arp_ip_target=+192.168.1.1 arp_ip_target=+192.168.1.2
  777. is the proper syntax to specify multiple targets. When specifying
  778. options via BONDING_OPTS, it is not necessary to edit /etc/modules.conf or
  779. /etc/modprobe.conf.
  780. For even older versions of initscripts that do not support
  781. BONDING_OPTS, it is necessary to edit /etc/modules.conf (or
  782. /etc/modprobe.conf, depending upon your distro) to load the bonding module
  783. with your desired options when the bond0 interface is brought up. The
  784. following lines in /etc/modules.conf (or modprobe.conf) will load the
  785. bonding module, and select its options:
  786. alias bond0 bonding
  787. options bond0 mode=balance-alb miimon=100
  788. Replace the sample parameters with the appropriate set of
  789. options for your configuration.
  790. Finally run "/etc/rc.d/init.d/network restart" as root. This
  791. will restart the networking subsystem and your bond link should be now
  792. up and running.
  793. 3.2.1 Using DHCP with Initscripts
  794. ---------------------------------
  795. Recent versions of initscripts (the versions supplied with Fedora
  796. Core 3 and Red Hat Enterprise Linux 4, or later versions, are reported to
  797. work) have support for assigning IP information to bonding devices via
  798. DHCP.
  799. To configure bonding for DHCP, configure it as described
  800. above, except replace the line "BOOTPROTO=none" with "BOOTPROTO=dhcp"
  801. and add a line consisting of "TYPE=Bonding". Note that the TYPE value
  802. is case sensitive.
  803. 3.2.2 Configuring Multiple Bonds with Initscripts
  804. -------------------------------------------------
  805. Initscripts packages that are included with Fedora 7 and Red Hat
  806. Enterprise Linux 5 support multiple bonding interfaces by simply
  807. specifying the appropriate BONDING_OPTS= in ifcfg-bondX where X is the
  808. number of the bond. This support requires sysfs support in the kernel,
  809. and a bonding driver of version 3.0.0 or later. Other configurations may
  810. not support this method for specifying multiple bonding interfaces; for
  811. those instances, see the "Configuring Multiple Bonds Manually" section,
  812. below.
  813. 3.3 Configuring Bonding Manually with Ifenslave
  814. -----------------------------------------------
  815. This section applies to distros whose network initialization
  816. scripts (the sysconfig or initscripts package) do not have specific
  817. knowledge of bonding. One such distro is SuSE Linux Enterprise Server
  818. version 8.
  819. The general method for these systems is to place the bonding
  820. module parameters into /etc/modules.conf or /etc/modprobe.conf (as
  821. appropriate for the installed distro), then add modprobe and/or
  822. ifenslave commands to the system's global init script. The name of
  823. the global init script differs; for sysconfig, it is
  824. /etc/init.d/boot.local and for initscripts it is /etc/rc.d/rc.local.
  825. For example, if you wanted to make a simple bond of two e100
  826. devices (presumed to be eth0 and eth1), and have it persist across
  827. reboots, edit the appropriate file (/etc/init.d/boot.local or
  828. /etc/rc.d/rc.local), and add the following:
  829. modprobe bonding mode=balance-alb miimon=100
  830. modprobe e100
  831. ifconfig bond0 192.168.1.1 netmask 255.255.255.0 up
  832. ifenslave bond0 eth0
  833. ifenslave bond0 eth1
  834. Replace the example bonding module parameters and bond0
  835. network configuration (IP address, netmask, etc) with the appropriate
  836. values for your configuration.
  837. Unfortunately, this method will not provide support for the
  838. ifup and ifdown scripts on the bond devices. To reload the bonding
  839. configuration, it is necessary to run the initialization script, e.g.,
  840. # /etc/init.d/boot.local
  841. or
  842. # /etc/rc.d/rc.local
  843. It may be desirable in such a case to create a separate script
  844. which only initializes the bonding configuration, then call that
  845. separate script from within boot.local. This allows for bonding to be
  846. enabled without re-running the entire global init script.
  847. To shut down the bonding devices, it is necessary to first
  848. mark the bonding device itself as being down, then remove the
  849. appropriate device driver modules. For our example above, you can do
  850. the following:
  851. # ifconfig bond0 down
  852. # rmmod bonding
  853. # rmmod e100
  854. Again, for convenience, it may be desirable to create a script
  855. with these commands.
  856. 3.3.1 Configuring Multiple Bonds Manually
  857. -----------------------------------------
  858. This section contains information on configuring multiple
  859. bonding devices with differing options for those systems whose network
  860. initialization scripts lack support for configuring multiple bonds.
  861. If you require multiple bonding devices, but all with the same
  862. options, you may wish to use the "max_bonds" module parameter,
  863. documented above.
  864. To create multiple bonding devices with differing options, it is
  865. preferrable to use bonding parameters exported by sysfs, documented in the
  866. section below.
  867. For versions of bonding without sysfs support, the only means to
  868. provide multiple instances of bonding with differing options is to load
  869. the bonding driver multiple times. Note that current versions of the
  870. sysconfig network initialization scripts handle this automatically; if
  871. your distro uses these scripts, no special action is needed. See the
  872. section Configuring Bonding Devices, above, if you're not sure about your
  873. network initialization scripts.
  874. To load multiple instances of the module, it is necessary to
  875. specify a different name for each instance (the module loading system
  876. requires that every loaded module, even multiple instances of the same
  877. module, have a unique name). This is accomplished by supplying multiple
  878. sets of bonding options in /etc/modprobe.conf, for example:
  879. alias bond0 bonding
  880. options bond0 -o bond0 mode=balance-rr miimon=100
  881. alias bond1 bonding
  882. options bond1 -o bond1 mode=balance-alb miimon=50
  883. will load the bonding module two times. The first instance is
  884. named "bond0" and creates the bond0 device in balance-rr mode with an
  885. miimon of 100. The second instance is named "bond1" and creates the
  886. bond1 device in balance-alb mode with an miimon of 50.
  887. In some circumstances (typically with older distributions),
  888. the above does not work, and the second bonding instance never sees
  889. its options. In that case, the second options line can be substituted
  890. as follows:
  891. install bond1 /sbin/modprobe --ignore-install bonding -o bond1 \
  892. mode=balance-alb miimon=50
  893. This may be repeated any number of times, specifying a new and
  894. unique name in place of bond1 for each subsequent instance.
  895. It has been observed that some Red Hat supplied kernels are unable
  896. to rename modules at load time (the "-o bond1" part). Attempts to pass
  897. that option to modprobe will produce an "Operation not permitted" error.
  898. This has been reported on some Fedora Core kernels, and has been seen on
  899. RHEL 4 as well. On kernels exhibiting this problem, it will be impossible
  900. to configure multiple bonds with differing parameters (as they are older
  901. kernels, and also lack sysfs support).
  902. 3.4 Configuring Bonding Manually via Sysfs
  903. ------------------------------------------
  904. Starting with version 3.0.0, Channel Bonding may be configured
  905. via the sysfs interface. This interface allows dynamic configuration
  906. of all bonds in the system without unloading the module. It also
  907. allows for adding and removing bonds at runtime. Ifenslave is no
  908. longer required, though it is still supported.
  909. Use of the sysfs interface allows you to use multiple bonds
  910. with different configurations without having to reload the module.
  911. It also allows you to use multiple, differently configured bonds when
  912. bonding is compiled into the kernel.
  913. You must have the sysfs filesystem mounted to configure
  914. bonding this way. The examples in this document assume that you
  915. are using the standard mount point for sysfs, e.g. /sys. If your
  916. sysfs filesystem is mounted elsewhere, you will need to adjust the
  917. example paths accordingly.
  918. Creating and Destroying Bonds
  919. -----------------------------
  920. To add a new bond foo:
  921. # echo +foo > /sys/class/net/bonding_masters
  922. To remove an existing bond bar:
  923. # echo -bar > /sys/class/net/bonding_masters
  924. To show all existing bonds:
  925. # cat /sys/class/net/bonding_masters
  926. NOTE: due to 4K size limitation of sysfs files, this list may be
  927. truncated if you have more than a few hundred bonds. This is unlikely
  928. to occur under normal operating conditions.
  929. Adding and Removing Slaves
  930. --------------------------
  931. Interfaces may be enslaved to a bond using the file
  932. /sys/class/net/<bond>/bonding/slaves. The semantics for this file
  933. are the same as for the bonding_masters file.
  934. To enslave interface eth0 to bond bond0:
  935. # ifconfig bond0 up
  936. # echo +eth0 > /sys/class/net/bond0/bonding/slaves
  937. To free slave eth0 from bond bond0:
  938. # echo -eth0 > /sys/class/net/bond0/bonding/slaves
  939. When an interface is enslaved to a bond, symlinks between the
  940. two are created in the sysfs filesystem. In this case, you would get
  941. /sys/class/net/bond0/slave_eth0 pointing to /sys/class/net/eth0, and
  942. /sys/class/net/eth0/master pointing to /sys/class/net/bond0.
  943. This means that you can tell quickly whether or not an
  944. interface is enslaved by looking for the master symlink. Thus:
  945. # echo -eth0 > /sys/class/net/eth0/master/bonding/slaves
  946. will free eth0 from whatever bond it is enslaved to, regardless of
  947. the name of the bond interface.
  948. Changing a Bond's Configuration
  949. -------------------------------
  950. Each bond may be configured individually by manipulating the
  951. files located in /sys/class/net/<bond name>/bonding
  952. The names of these files correspond directly with the command-
  953. line parameters described elsewhere in this file, and, with the
  954. exception of arp_ip_target, they accept the same values. To see the
  955. current setting, simply cat the appropriate file.
  956. A few examples will be given here; for specific usage
  957. guidelines for each parameter, see the appropriate section in this
  958. document.
  959. To configure bond0 for balance-alb mode:
  960. # ifconfig bond0 down
  961. # echo 6 > /sys/class/net/bond0/bonding/mode
  962. - or -
  963. # echo balance-alb > /sys/class/net/bond0/bonding/mode
  964. NOTE: The bond interface must be down before the mode can be
  965. changed.
  966. To enable MII monitoring on bond0 with a 1 second interval:
  967. # echo 1000 > /sys/class/net/bond0/bonding/miimon
  968. NOTE: If ARP monitoring is enabled, it will disabled when MII
  969. monitoring is enabled, and vice-versa.
  970. To add ARP targets:
  971. # echo +192.168.0.100 > /sys/class/net/bond0/bonding/arp_ip_target
  972. # echo +192.168.0.101 > /sys/class/net/bond0/bonding/arp_ip_target
  973. NOTE: up to 16 target addresses may be specified.
  974. To remove an ARP target:
  975. # echo -192.168.0.100 > /sys/class/net/bond0/bonding/arp_ip_target
  976. Example Configuration
  977. ---------------------
  978. We begin with the same example that is shown in section 3.3,
  979. executed with sysfs, and without using ifenslave.
  980. To make a simple bond of two e100 devices (presumed to be eth0
  981. and eth1), and have it persist across reboots, edit the appropriate
  982. file (/etc/init.d/boot.local or /etc/rc.d/rc.local), and add the
  983. following:
  984. modprobe bonding
  985. modprobe e100
  986. echo balance-alb > /sys/class/net/bond0/bonding/mode
  987. ifconfig bond0 192.168.1.1 netmask 255.255.255.0 up
  988. echo 100 > /sys/class/net/bond0/bonding/miimon
  989. echo +eth0 > /sys/class/net/bond0/bonding/slaves
  990. echo +eth1 > /sys/class/net/bond0/bonding/slaves
  991. To add a second bond, with two e1000 interfaces in
  992. active-backup mode, using ARP monitoring, add the following lines to
  993. your init script:
  994. modprobe e1000
  995. echo +bond1 > /sys/class/net/bonding_masters
  996. echo active-backup > /sys/class/net/bond1/bonding/mode
  997. ifconfig bond1 192.168.2.1 netmask 255.255.255.0 up
  998. echo +192.168.2.100 /sys/class/net/bond1/bonding/arp_ip_target
  999. echo 2000 > /sys/class/net/bond1/bonding/arp_interval
  1000. echo +eth2 > /sys/class/net/bond1/bonding/slaves
  1001. echo +eth3 > /sys/class/net/bond1/bonding/slaves
  1002. 4. Querying Bonding Configuration
  1003. =================================
  1004. 4.1 Bonding Configuration
  1005. -------------------------
  1006. Each bonding device has a read-only file residing in the
  1007. /proc/net/bonding directory. The file contents include information
  1008. about the bonding configuration, options and state of each slave.
  1009. For example, the contents of /proc/net/bonding/bond0 after the
  1010. driver is loaded with parameters of mode=0 and miimon=1000 is
  1011. generally as follows:
  1012. Ethernet Channel Bonding Driver: 2.6.1 (October

Large files files are truncated, but you can click here to view the full file