mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Merge branch 'master' of https://github.com/TOoSmOotH/securityonion-saltstack
This commit is contained in:
@@ -254,12 +254,11 @@ create_bond_nmcli() {
|
|||||||
MTU=1500
|
MTU=1500
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create the bond interface
|
# Create the bond interface
|
||||||
nmcli con add type bond ifname bond0 con-name "bond0" \
|
nmcli con add ifname bond0 con-name "bond0" type bond mode 0 -- \
|
||||||
bond.options "mode=0" \
|
ipv4.method disabled \
|
||||||
802-3-ethernet.mtu $MTU \
|
ipv6.method link-local \
|
||||||
ipv4.method "disabled" \
|
ethernet.mtu $MTU \
|
||||||
ipv6.method "ignore" \
|
|
||||||
connection.autoconnect "yes" \
|
connection.autoconnect "yes" \
|
||||||
>> $SETUPLOG 2>&1
|
>> $SETUPLOG 2>&1
|
||||||
|
|
||||||
@@ -267,10 +266,9 @@ create_bond_nmcli() {
|
|||||||
# Strip the quotes from the NIC names
|
# Strip the quotes from the NIC names
|
||||||
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 con-name "bond0-slave-$BONDNIC" master bond0 -- \
|
||||||
|
ethernet.mtu $MTU \
|
||||||
connection.autoconnect "yes" \
|
connection.autoconnect "yes" \
|
||||||
802-3-ethernet.mtu $MTU \
|
|
||||||
con-name "bond0-slave-$BONDNIC" \
|
|
||||||
>> $SETUPLOG 2>&1
|
>> $SETUPLOG 2>&1
|
||||||
# Bring the slave interface up
|
# Bring the slave interface up
|
||||||
nmcli con up bond0-slave-$BONDNIC >> $SETUPLOG 2>&1
|
nmcli con up bond0-slave-$BONDNIC >> $SETUPLOG 2>&1
|
||||||
|
|||||||
Reference in New Issue
Block a user