How to set MTU size in RHEL 7 and CentOS 7

Dear Friends in this tutorial we will see how to set MTU size in Linux and we will also know what is MTU and why it MTU size is must for Linux? So, let’s start and see steps by steps this process.

We will cover these topics in session:-

  1. What is MTU in Linux?
  2. Why MTU size is must in Linux?
  3. How to set MTU size in Linux with ficonfig command?
  4. How to verify MTU size with ifconfig command?
  5. How to set MTU with IP command?
  6. How to verify MTU with IP command?
  7. How to verify the MTU packet size with ping command?

1. What is MTU in Linux?

MTU stand for (Maximum Transmission Unit) it’s a size of largest protocol data unit that can communicated in single network layer transaction. MTU depends on underlying network capabilities and must be adjusted manually or automatically to not exceed these capabilities.

For more details about MTU you can Click Here

2. Why MTU size is must in Linux?

Large packets occupy a slow link for more time than a smaller packet, causing greater delays to subsequent packets, and increasing network delay and delay variation. For example, a 1500-byte packet, the largest allowed by Ethernet at the network layer, ties up a 14.4k modem for about one second.

3. How to set MTU size in Linux with ifconfig command?

We can set MTU using ifconfig command or ip command. If we don’t have ifconfig command and our Linux is base Operating System, then we can us ip command. Like below: –

First of all we will check current MTU size with ifconfig commands.

In above output you can see MTU size is 1600 on eth0 and eth1 interface.

Now we need to set 1500 MTU on eth0 and eth1. So, we can use below commands.

4. How to verify MTU size with ifconfig command?

Now we can verify with ifconfig command our changes is completed or not?

Set MTU size

You can see in above output we have successfully changed MTU size of eth0 and eth1 from 1600 to 1500 MTU.

5. How to set MTU with IP command?

If don’t have ifconfig tools, then we can use ip command to change MTU size like below.

First, we can verify current MTU size with IP command.

You can see in above output we have 1500 MTU in eth0 and eth1 interface.

Now I am going to change it from 1500 MTU to 1600 MTU with ip command like below: –

6. How to verify MTU with IP command?

Now we can verify our MTU size is changed or not with ip a command like below: –

set MTU

You can see in above output we have successfully changed MTU size with ip command.

7. How to verify the MTU packet size with ping command?

Now I am going to verify MTU packet size with ping commands.

That’s all, in this tutorial we have seen how to set MTU in Linux.

Network configuration after CentOS 7 minimal installation

This Post Has 19 Comments

  1. vreyrolinomit

    Hey, I think your blog might be having browser compatibility issues. When I look at your website in Safari, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, excellent blog!

  2. zortilo nrel

    Hello my friend! I wish to say that this article is awesome, nice written and include almost all vital infos. I’d like to see more posts like this.

  3. froleprotrem

    I got what you intend, thanks for putting up.Woh I am delighted to find this website through google.

  4. Susana

    Good write-up. I absolutely appreciate this site. Keep it
    up!

  5. frolep rotrem

    I was curious if you ever considered changing the structure of your site? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having one or two pictures. Maybe you could space it out better?

  6. Brenna

    certainly like your web site however you need to test the spelling on several
    of your posts. Several of them are rife with spelling problems
    and I to find it very troublesome to inform the truth
    however I’ll surely come again again.

  7. manhwaland

    Thanks-a-mundo for the blog.Really thank you! Great.

  8. Columbus

    These are in fact enormous ideas in about blogging.
    You have touched some fastidious factors here. Any way keep up wrinting.

  9. Djst org

    Please let me know if you’re looking for a writer for your weblog. You have some really great articles and I believe I would be a good asset. If you ever want to take some of the load off, I’d love to write some articles for your blog in exchange for a link back to mine. Please shoot me an email if interested. Thank you!

  10. gralion torile

    I happen to be writing to make you be aware of what a awesome encounter my friend’s daughter obtained browsing the blog. She figured out plenty of pieces, not to mention what it’s like to have a marvelous giving spirit to let men and women with no trouble know selected extremely tough topics. You undoubtedly exceeded visitors’ desires. Many thanks for showing the great, healthy, informative and as well as fun tips about this topic to Ethel.

  11. houston junk car buyer

    Very nice post. I just stumbled upon your blog and
    wished to say that I have really loved surfing around your
    blog posts. After all I’ll be subscribing for your
    feed and I hope you write again very soon!

  12. Google UltraFan:)

    Just desire to say your article is as amazing. The clarity in your post is simply nice and i can assume youre an expert on this subject. Well with your permission allow me to grab your RSS feed to keep updated with forthcoming post. Thanks a million and please continue the gratifying work.

  13. ‏amazfit bip s

    A big thank you for your article.Really looking forward to read more.

  14. zoritoler imol

    I¦ve learn several just right stuff here. Certainly value bookmarking for revisiting. I surprise how a lot effort you set to make this type of fantastic informative web site.

  15. tlovertonet

    An impressive share, I simply given this onto a colleague who was doing a little analysis on this. And he the truth is purchased me breakfast as a result of I discovered it for him.. smile. So let me reword that: Thnx for the deal with! But yeah Thnkx for spending the time to discuss this, I feel strongly about it and love studying extra on this topic. If possible, as you develop into experience, would you mind updating your weblog with more details? It is extremely helpful for me. Massive thumb up for this blog submit!

  16. Pygmalion ai

    I really enjoy the article. Much thanks again. Really Great.

  17. Pygmalion ai

    I am so grateful for your blog. Much thanks again. Really Great.

  18. aasrawco

    I really enjoy the blog. Really looking forward to read more. Keep writing.

  19. aasraw

    Very good article post. Really looking forward to read more. Keep writing.

Leave a Reply