Skip to content

Commit

Permalink
Fix MTU on bond interface.
Browse files Browse the repository at this point in the history
The MTU is only being set on the slave devices and the MTU of the
bonding master is not being updated. This updates the bonding master and
also changes the MTU on the slaves as expected.

Signed-Off-By: Robert LeBlanc <robert@leblancnet.us>

Cherry-picked from: d0eabca
Resolves: #1494265
  • Loading branch information
Robert LeBlanc authored and lnykryn committed Nov 3, 2017
1 parent 50d75a5 commit 50c3405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules.d/40network/ifup.sh
Expand Up @@ -250,7 +250,7 @@ if [ -z "$NO_BOND_MASTER" ]; then
done

# Set mtu on bond master
[ -n "$bondmtu" ] && ip link set mtu $bondmtu dev $netif
[ -n "$bondmtu" ] && ip link set mtu $bondmtu dev $bondname

# add the bits to setup the needed post enslavement parameters
for arg in $bondoptions ; do
Expand Down

0 comments on commit 50c3405

Please sign in to comment.