Updated AL2 MTU article to AL2023

This commit is contained in:
brayden 2024-04-30 14:28:55 +08:00
parent 8645a647c7
commit b0e65727d7
Signed by: brayden
GPG Key ID: D73DC8941D3B65BC

View File

@ -1,10 +1,10 @@
---
title: "Custom MTU on Amazon Linux 2"
title: "Custom MTU on Amazon Linux 2023"
date: 2024-04-03T17:07:26.0684656+08:00
draft: false
---
A quick search for "How to set MTU for Amazon Linux 2" would lead you straight
A quick search for "How to set MTU for Amazon Linux" would lead you straight
[here](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/network_mtu.html#set_mtu)
and you might think to yourself "This is easy! No problemo!" but upon following
the instructions, you'll be shocked to learn your MTU is still 9001 and asking
@ -112,8 +112,8 @@ The information on GitHub is enlightening:
The version 1.x branch of the amazon-ec2-net-utils package was used in Amazon Linux 2 and earlier releases. It has a long history and is tightly coupled to ISC dhclient and initscripts network configuration. Both of these components are deprecated and will not make up the primary network configuration framework in future releases of Amazon Linux or other distributions. The 2.x branch (released from the main branch in git) represents a complete rewrite targeting a more modern network management framework. The rest of this document describes the 2.x branch.
```
So the reason we're in this situation is the documentation is relevant to an
older version of Amazon Linux 2.
So the reason we're in this situation is the documentation is relevant to just
Amazon Linux 2 and 2023 does things differently.
This script is the bridge between IMDS and `systemd-networkd`. It creates the
volatile configuration we saw above and sources its defaults from
@ -127,3 +127,6 @@ come to haunt you next time `amazon-ec2-net-utils` updates.
You may undo any edits you made to `/etc/dhcp/dhclient.conf` and
`/etc/sysconfig/network-scripts/ifcfg-eth0` as these have no effect.
p.s. This article was updated to correct references to AL2 as I didn't realise
that AL2023 is an entirely different version from AL2.