Skip to content

Commit 68cf6d9

Browse files
francesco-giordanoenrico-usai
authored andcommitted
Set MTU to 9001 when multiple nic are configured in the instance
The change flollows the best practice described in the official guide https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/network_mtu.html
1 parent 1083b1b commit 68cf6d9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

cookbooks/aws-parallelcluster-config/files/default/network_interfaces/configure_nw_interface.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ BOOTPROTO=none
3333
IPADDR=${DEVICE_IP_ADDRESS}
3434
PREFIX=${CIDR_PREFIX_LENGTH}
3535
GATEWAY=${GW_IP_ADDRESS}
36+
MTU="9001"
3637
IPV4_FAILURE_FATAL=yes
3738
NAME="System ${DEVICE_NAME}"
3839
EOF

cookbooks/aws-parallelcluster-config/files/ubuntu/network_interfaces/configure_nw_interface.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ network:
4747
ethernets:
4848
${DEVICE_NAME}:
4949
$STATIC_IP_CONFIG
50+
mtu: '9001'
5051
routes:
5152
- to: 0.0.0.0/0
5253
via: ${GW_IP_ADDRESS} # Default gateway

0 commit comments

Comments
 (0)