summaryrefslogtreecommitdiffstats
path: root/rc.inet1
diff options
context:
space:
mode:
authorDarren 'Tadgy' Austin <darren@afterdark.org.uk>2019-11-14 06:18:24 +0000
committerDarren 'Tadgy' Austin <darren@afterdark.org.uk>2019-11-14 06:18:24 +0000
commit74a3127d8b2c7fdfb7692334acf3ce6594e5a508 (patch)
tree5bb6efaf8af970333515bc3957dbfda38d985351 /rc.inet1
parentb60bfb27a37211c62548bc7cc7dcc16f63271c11 (diff)
downloadslacknetsetup-74a3127d8b2c7fdfb7692334acf3ce6594e5a508.tar.xz
Update documentation. Default BONDMODE to balance-rr. Update rc.inet1.conf.
Diffstat (limited to 'rc.inet1')
-rw-r--r--rc.inet14
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.inet1 b/rc.inet1
index 55ac726..60116d0 100644
--- a/rc.inet1
+++ b/rc.inet1
@@ -189,8 +189,8 @@ bond_create() {
info_log "${IFNAME[$1]}: creating bond"
debug_log "/sbin/ip link add name ${IFNAME[$1]} type bond"
/sbin/ip link add name ${IFNAME[$1]} type bond
- debug_log "/sbin/ip link set dev ${IFNAME[$1]} type bond mode ${BONDMODE[$1]}"
- /sbin/ip link set dev ${IFNAME[$1]} type bond mode ${BONDMODE[$1]}
+ debug_log "/sbin/ip link set dev ${IFNAME[$1]} type bond mode ${BONDMODE[$1]:-balance-rr}"
+ /sbin/ip link set dev ${IFNAME[$1]} type bond mode ${BONDMODE[$1]:-balance-rr}
for BONDIF in ${BONDNICS[$1]}; do
debug_log "/sbin/ip address flush dev $BONDIF"
/sbin/ip address flush dev $BONDIF