Fixed issues around ipv4/v6 flags being set incorrectly

This commit is contained in:
William Wernert
2019-05-31 16:37:10 -04:00
parent 21a144248e
commit 1b0bf5a0d3

View File

@@ -258,7 +258,7 @@ create_bond_nmcli() {
bond.options "mode=0" \ bond.options "mode=0" \
802-3-ethernet.mtu $MTU \ 802-3-ethernet.mtu $MTU \
ipv4.method "disabled" \ ipv4.method "disabled" \
ipv6.method "disabled" \ ipv6.method "ignore" \
connection.autoconnect "yes" \ connection.autoconnect "yes" \
>> ~/sosetup.log 2>&1 >> ~/sosetup.log 2>&1
@@ -267,10 +267,8 @@ create_bond_nmcli() {
BONDNIC="$(echo -e "${BNIC}" | tr -d '"')" BONDNIC="$(echo -e "${BNIC}" | tr -d '"')"
# Create the slave interface and assign it to the bond # Create the slave interface and assign it to the bond
nmcli con add type ethernet ifname $BONDNIC master bond0 \ nmcli con add type ethernet ifname $BONDNIC master bond0 \
connection.autoconnect yes \ connection.autoconnect "yes" \
802-3-ethernet.mtu $MTU \ 802-3-ethernet.mtu $MTU \
ipv4.method "disabled" \
ipv6.method "disabled" \
con-name "bond0-slave-$BONDNIC" \ con-name "bond0-slave-$BONDNIC" \
>> ~/sosetup.log 2>&1 >> ~/sosetup.log 2>&1
# Bring the slave interface up # Bring the slave interface up