LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-04-2019, 06:53 AM   #1
bradvan
Member
 
Registered: Mar 2009
Posts: 367

Rep: Reputation: 61
MTU not what is set in ifcfg file


Our kickstart server sets the MTU of active interfaces to 9000. This works fine on all of our existing locations. Recently we expanded to a new remote site. They don't want to support jumbo frames, so we have to keep the default MTU setting. In a post script, I edit the ifcfg file to change the MTU setting to 1500. I can see that the setting is changed from the actual file and the post log. NetworkManager has been disabled. However, after the system reboots, the NIC MTU is set to 9000. If I get on the console and do an ifdown eno1;ifup eno1, then the MTU changes to 1500. However, if I then do a systemctl restart network or simply reboot, MTU is back to 9000. Does anyone have a clue what keeps setting the MTU to 9000?

System has CentOS 7.4 installed.
 
Old 04-04-2019, 07:37 AM   #2
bradvan
Member
 
Registered: Mar 2009
Posts: 367

Original Poster
Rep: Reputation: 61
Found the answer. Even though we disabled NetworkManger, it was up and running at kickstart time and MTU was set to 9000 then. Not sure why after it has been disabled it still affects things? I restarted NetworkManager and ran:
Code:
# nmcli connection show eno1 | grep mtu
802-3-ethernet.mtu:       9000
802-3-ethernet.mtu:       1500
Not sure why there are two entries? I then ran:
Code:
# nmcli connection modify eno1 802-3-ethernet.mtu 1500
# nmcli connection show eno1 | grep mtu
802-3-ethernet.mtu:       1500
802-3-ethernet.mtu:       1500
# systemctl stop NetworkManager
# systemctl restart network
# ifconfig eno1
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
Not sure why NetworkManager should be affecting things when it has been disabled? I will have to add that to the post script.
 
Old 04-04-2019, 07:45 AM   #3
tyler2016
Member
 
Registered: Sep 2018
Distribution: Debian, CentOS, FreeBSD
Posts: 243

Rep: Reputation: Disabled
I have never used kickstart, but is there some reason you can't configure it to not install the NetworkManager* packages?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Client does not set DHCP server's MTU DBLouis Slackware 3 03-03-2018 02:36 PM
I am Not able to set MTU size of interface(say eth0/eth1) using Netlink Sockets Sekhar417 Linux - Networking 0 10-05-2012 12:43 AM
How to change ifcfg-ethX names to a new name like ifcfg-switchname rabbit1101 Linux - Newbie 3 12-14-2008 04:09 PM
Why my ifcfg-eth1 file have the extension .bak (ifcfg-eth1.bak) cmx08 Linux - Networking 4 08-23-2008 07:28 AM
fedora/redhat: ifcfg-eth0 and ifcfg-eth1 Shaun2222 Linux - Networking 9 01-23-2008 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration