diff --git a/GauntPlexBond.sh b/GauntPlexBond.sh index 23b8283..623d556 100644 --- a/GauntPlexBond.sh +++ b/GauntPlexBond.sh @@ -1,8 +1,8 @@ #!/bin/bash PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin -PRIMARY="enp0s31f6" -SECONDARY="enp1s0f0" +PRIMARY="eno1" +SECONDARY="eno4" BOND="bond0" BOND_SLAVE0="${BOND}-slave0" BOND_SLAVE1="${BOND}-slave1" @@ -16,9 +16,9 @@ nmcli connection delete ${BOND_SLAVE1} # Create the bond nmcli connection add type team con-name ${BOND} ifname ${BOND} config '{"runner":{"name":"activebackup"},"ports":{"'${PRIMARY}'":{"prio":100}}}' -nmcli connection modify ${BOND} ipv4.addresses 10.0.20.28/27 -nmcli connection modify ${BOND} ipv4.gateway 10.0.20.1 -nmcli connection modify ${BOND} ipv4.dns 10.0.20.1 +nmcli connection modify ${BOND} ipv4.addresses 10.0.10.11/26 +nmcli connection modify ${BOND} ipv4.gateway 10.0.10.1 +nmcli connection modify ${BOND} ipv4.dns 10.0.10.1 nmcli connection modify ${BOND} ipv4.method manual nmcli connection modify ${BOND} connection.autoconnect yes @@ -33,4 +33,8 @@ nmcli device connect ${PRIMARY} nmcli device connect ${SECONDARY} # Restart the bond0 connections -nmcli connection down ${BOND} && nmcli connection up ${BOND} \ No newline at end of file +nmcli connection down ${BOND} && nmcli connection up ${BOND} + +# make sure network drives are mounted after the network has come up +sleep 5 +mount -a \ No newline at end of file