diff --git a/content/blog/amazon-linux-2-custom-mtu.md b/content/blog/amazon-linux-2-custom-mtu.md index e9d9357..96fe33e 100644 --- a/content/blog/amazon-linux-2-custom-mtu.md +++ b/content/blog/amazon-linux-2-custom-mtu.md @@ -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 @@ -126,4 +126,7 @@ to your desired value and make sure to document your changes as it'll probably 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. \ No newline at end of file +`/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. \ No newline at end of file