How to Change MTU Size — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Note!! Please register for a free account to access the full content and also to participate in Q&A in the community
Get Started with Redwood: Oracle Cloud SCM and Purchasing

How to Change MTU Size

edited Jul 18, 2023 4:32AM in Linux

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        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!