bonding
interface/bonding
Type: Directory
Bonding is used in High Availability Solutions.
| Flag | Name | Description |
|---|---|---|
| X | disabled | disabled. |
| R | running | running. |
| Argument | Type | Description |
|---|---|---|
| name | string | Name of the bonding interface. |
| mtu | num | Maximum Transmit Unit in bytes. Must be smaller or equal to the smallest L2MTU value of a bonding slave. |
| forced-mac-address | macAddr | By default, the bonding interface will use the MAC address of the first selected slave interface. This property allows to configure static MAC address for the bond interface (all zeros, broadcast or multicast addresses will not apply). RouterOS will automatically change the MAC address for slave interfaces and it will be visible in /interface/ethernet configuration export |
| arp | enum (disabled | enabled | proxy-arp | reply-only | local-proxy-arp) { disabled:0, enabled:1, proxy-arp:2, reply-only:3, local-proxy-arp:4 } | Address Resolution Protocol mode. |
| arp-timeout | alt { arp-timeout: enum (auto) { auto:0 } , arp-timeout: time } | How long the ARP record is kept in the ARP table after no packets are received from IP. Value auto equals the value of arp-timeout in IP/Settings, default is 30s. |
| slaves | multi { array-id, slave: iface_enum } | At least two ethernet-like interfaces separated by a comma, which will be used for bonding. |
| mode | enum (balance-rr | active-backup | balance-xor | broadcast | 802.3ad | balance-tlb | balance-alb) { balance-rr:0, active-backup:1, balance-xor:2, broadcast:3, 802.3ad:4, balance-tlb:5, balance-alb:6 } | Specifies one of the bonding policies.
MikroTik devices with Marvell Prestera switch and 88E6393X, 88E6191X, 88E6190 switch chips support bridge hardware offloading with bonding interfaces. |
| primary | iface_enum { none:0 } | Controls the primary interface between active slave ports, works only for active-backup, balance-tlb and balance-alb modes. For active-backup mode, it controls which running interface is supposed to send and receive the traffic. For balance-tlb mode, it controls which running interface is supposed to receive all the traffic, but for balance-alb mode, it controls which interface is supposed to receive the unbalanced traffic (the non-IPv4 traffic). When none of the interfaces are selected as primary, device will automatically select the interface that is configured as the first one. |
| link-monitoring | enum (none | arp | mii) { none:0, arp:1, mii:2 } | Method to use for monitoring the link. Some bonding modes require specific link monitoring to work properly.
|
| arp-interval | time | Time in milliseconds defines how often to monitor ARP requests. |
| arp-ip-targets | multi { array-id, arp-target: ipAddr } | IP target address which will be monitored if link-monitoring is set to arp. Multiple IP addresses can be specified, separated by a comma. |
| mii-interval | time | How often to monitor the link for failures (used only if link-monitoring is mii). |
| down-delay | time | If a link failure has been detected, the bonding interface is disabled for a down-delay time. Only has effect when link-monitoring is set to mii. |
| up-delay | time | If a link has been brought up, the bonding interface is disabled for up-delay time. Only has effect when link-monitoring is set to mii. |
| lacp-rate | enum (30secs | 1sec) { 30secs:0, 1sec:1 } | LACP rate specifies how often to exchange LACPDUs between bonding peers. 1sec - short timeout. 30secs - long timeout. |
| transmit-hash-policy | enum (layer-2 | layer-3-and-4 | layer-2-and-3 | encap-2-and-3 | encap-3-and-4) { layer-2:0, layer-3-and-4:1, layer-2-and-3:2, encap-2-and-3:3, encap-3-and-4:4 } | Selects the transmit hash policy for slave selection in balance-xor and 802.3ad modes.
|
| min-links | num | How many active slave links needed for bonding to become active. |
| mlag-id | num | Changes MLAG ID for bonding interface. The same MLAG ID should be used on both peer devices to successfully create a single MLAG. The mlag-peer-port should not be configured with the MLAG ID. |
| lacp-user-key | num | Specifies the upper 10 bits of the port key. The lower 6 bits are automatically assigned based on individual port link speed and duplex. |
| lacp-mode | enum (passive | active) { passive:0, active:1 } | Specifies whether ports actively or passively participates in the LACP.
|
| lacp-system-id | macAddr | Specifies the LACP system ID used for LACP negotiations. |
| lacp-system-priority | num | Specifies the LACP system priority used for LACP negotiations. |
| Read-only Argument | Type | Description |
|---|---|---|
| mac-address | macAddr | MAC address of the bonding interface. |