Updated AL2 MTU article to AL2023
This commit is contained in:
parent
8645a647c7
commit
b0e65727d7
@ -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
|
date: 2024-04-03T17:07:26.0684656+08:00
|
||||||
draft: false
|
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)
|
[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
|
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
|
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.
|
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
|
So the reason we're in this situation is the documentation is relevant to just
|
||||||
older version of Amazon Linux 2.
|
Amazon Linux 2 and 2023 does things differently.
|
||||||
|
|
||||||
This script is the bridge between IMDS and `systemd-networkd`. It creates the
|
This script is the bridge between IMDS and `systemd-networkd`. It creates the
|
||||||
volatile configuration we saw above and sources its defaults from
|
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
|
You may undo any edits you made to `/etc/dhcp/dhclient.conf` and
|
||||||
`/etc/sysconfig/network-scripts/ifcfg-eth0` as these have no effect.
|
`/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.
|
Loading…
Reference in New Issue
Block a user