How to Change MTU Size
Applies To:
Oracle Cloud Infrastructure - Version N/A and later
Linux OS - Version Oracle Linux 6.0 and later
Linux x86-64
Goal:
This document details steps to change MTU size of a network interface on Oracle Linux 6/7/8.
Solution:
With NetworkManager
This method is suitable for interfaces created/configured using NetworkManager
(e.g. nmcli(1)
). Here is an example.
[root@host ~]# nmcli connection NAME UUID TYPE DEVICE enp0s3 e8412b71-6588-4ccf-9acc-b70b923fb415 ethernet enp0s3 [root@host ~]# [root@host ~]# date ; nmcli connection add type ethernet ifname enp0s8 con-name enp0s8 autoconnect yes save yes mtu 1500 ip4 <ip_address>/24 Fri Aug 12 21:06:35 AEST 2022 Connection 'enp0s8' (d5873ce6-6022-4bc0-96e7-c901ff1d34f8) successfully added. [root@host ~]# [root@host ~]# nmcli connection NAME UUID
Tagged:
0