From 9e341fbb562a4686c26f3e97b1b82b3c4ca987f2 Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Tue, 12 Nov 2019 22:46:18 +0000 Subject: Initial support for bonding (link aggrigation) in rc.inet1. The bonding code introduces three new variables for use in rc.inet1.conf: BONDNICS[x]="" BONDMODE[x]="" BONDOPTS[x]="" The BONDNICS variable takes a list of interfaces which should be slaved to the bond. BONDMODE sets the mode of the bond. Useful options are 'balance-rr', 'active-backup' and '802.3ad'. A full list of options can be found in /usr/src/linux/Documentation/networking/bonding.txt and README.bonding. BONDOPTS are a pipe (|) separated list of options to apply to the bond after the interfaces have been added. Useful options are 'primary' (which is required when BONDMODE is 'active-backup', 'xmit_hash_policy' (which can be used with 'balance-rr' to choose the hash policy, 'lacp_rate' (which should be used with '802.3ad' mode), and 'miimon' (which should be used with all modes) See the kernel source documentation or README.bonding for more info. --- rc.inet1.conf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'rc.inet1.conf') diff --git a/rc.inet1.conf b/rc.inet1.conf index ce22cd3..e48f5c1 100644 --- a/rc.inet1.conf +++ b/rc.inet1.conf @@ -78,6 +78,23 @@ DEBUG_ETH_UP="no" # ============================================================================= +# Example of how to configure a bond (link aggrigation) interface. + +# IFNAME[0]="bond0" +# BONDNICS[0]="eth0 eth1" +# BONDMODE[0]="balance-rr" +# BONDOPTS[0]="xmit_hash_policy layer2+3 | miimon 100" +# IPADDR[0]="192.168.0.1" +# NETMASK[0]="24" +# IPALIASES[0]="" +# USE_DHCP[0]="" +# DHCP_HOSTNAME[0]="" +# IP6ADDRS[0]="" +# USE_SLAAC[0]="" +# USE_DHCP6[0]="" + +# ============================================================================= + # Example of how to configure a VLAN interface. # The VLAN ID is taken from the full interface name, which is comprised of the # underlying interface name, a period (.) and then the VLAN ID. -- cgit v1.2.3