Skip to content

Commit 9d5b7b7

Browse files
committed
MTU should be put on storage network: eth3, instead of eth1 Reviewed-by: Frank
1 parent b6d8ced commit 9d5b7b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

systemvm/patches/debian/config/etc/init.d/cloud-early-config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,7 @@ setup_storage_network() {
11311131
echo "auto eth3" >> /etc/network/interfaces
11321132

11331133
setup_interface "3" "$STORAGE_IP" "$STORAGE_NETMASK"
1134+
[ -n "$MTU" ] && ifconfig eth3 mtu $MTU
11341135
#ip route add "$STORAGE_CIDR" via "$STORAGE_IP"
11351136
log_it "Successfully setup storage network with STORAGE_IP:$STORAGE_IP, STORAGE_NETMASK:$STORAGE_NETMASK, STORAGE_CIDR:$STORAGE_CIDR"
11361137
}
@@ -1141,7 +1142,6 @@ setup_secstorage() {
11411142
local hyp=$1
11421143
setup_common eth0 eth1 eth2
11431144
setup_storage_network
1144-
[ -n "$MTU" ] && ifconfig eth1 mtu $MTU
11451145
sed -i /gateway/d /etc/hosts
11461146
public_ip=$ETH2_IP
11471147
[ "$ETH2_IP" == "0.0.0.0" ] && public_ip=$ETH1_IP

0 commit comments

Comments
 (0)