<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux Archives - MyRandomTechBlog.com</title>
	<atom:link href="https://myrandomtechblog.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://myrandomtechblog.com/category/linux/</link>
	<description></description>
	<lastBuildDate>Tue, 24 Dec 2019 16:54:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://myrandomtechblog.com/wp-content/uploads/2018/04/cropped-Profile-Logo-32x32.png</url>
	<title>Linux Archives - MyRandomTechBlog.com</title>
	<link>https://myrandomtechblog.com/category/linux/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to change MTU in Linux</title>
		<link>https://myrandomtechblog.com/linux/how-to-change-mtu-in-linux/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 02 Nov 2019 22:27:33 +0000</pubDate>
				<category><![CDATA[CryptoMining]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[MTU]]></category>
		<guid isPermaLink="false">https://myrandomtechblog.com/?p=1681</guid>

					<description><![CDATA[<p>How to change your interface MTU in Linux Here is how to change your interface MTU size in Linux os. My example below is from &#8230; </p>
<p>The post <a href="https://myrandomtechblog.com/linux/how-to-change-mtu-in-linux/">How to change MTU in Linux</a> appeared first on <a href="https://myrandomtechblog.com">MyRandomTechBlog.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h1>How to change your interface MTU in Linux</h1>
<p>Here is how to change your interface MTU size in Linux os. My example below is from an Ubuntu VM.</p>
<ol>
<li>Open the Terminal program to get a command line prompt.</li>
<li> Type the command<span style="color: #000080;"> <strong>ifconfig</strong></span> into terminal to see current interface info. You may see something like <strong>eth0</strong> for the interface. But in my example from a VM below I am seeing <strong>enp0s3</strong>. ( You may be asking what is enp0s3? This is a part of a standard for Predictable Network Interface Names. (You can find more info on that <a href="https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/">here</a>  if your interested or more detail at the bottom of this post. )</li>
<li><img fetchpriority="high" decoding="async" class="aligncenter size-full wp-image-1682" src="https://myrandomtechblog.com/wp-content/uploads/2019/11/Change-MTU-linux-1.jpg" alt="Chane MTU size in Linux ifconfig command" width="741" height="351" srcset="https://myrandomtechblog.com/wp-content/uploads/2019/11/Change-MTU-linux-1.jpg 741w, https://myrandomtechblog.com/wp-content/uploads/2019/11/Change-MTU-linux-1-300x142.jpg 300w" sizes="(max-width: 741px) 100vw, 741px" /></li>
<li> To change the MTU size to 1518 in my example, I am going to use the command<span style="color: #000080;"> <strong>sudo ifconfig enp0s3 mtu 1518 </strong></span>, this will change the MTU size to 1518 on the specific interface I identify in the command (for me this is interface enp0s3).</li>
<li> Here you can see the MTU size has now been changed to 1518.</li>
</ol>
<p><img decoding="async" class="aligncenter size-full wp-image-1683" src="https://myrandomtechblog.com/wp-content/uploads/2019/11/Change-MTU-linux-2.jpg" alt="using ifconfig to change MTU size in ubuntu. " width="738" height="272" srcset="https://myrandomtechblog.com/wp-content/uploads/2019/11/Change-MTU-linux-2.jpg 738w, https://myrandomtechblog.com/wp-content/uploads/2019/11/Change-MTU-linux-2-300x111.jpg 300w, https://myrandomtechblog.com/wp-content/uploads/2019/11/Change-MTU-linux-2-735x272.jpg 735w" sizes="(max-width: 738px) 100vw, 738px" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h3>Why is the interface called enp0s3 ?</h3>
<p>Basically it breaks down to &#8220;<strong>en</strong>&#8221; Ethernet &#8220;<strong>p &lt;bus&gt; s &lt;slot&gt;</strong>&#8221; which is how my interface got named enp0s3.</p>
<p>You can find the full naming information in the comments section <a href="https://github.com/systemd/systemd/commit/0b1e5b6ed8c6b9a2bc53709eb75e381d360f05bf#diff-6b3292374fa2202636f29787988d9e07">HERE</a>. But here is short summary of it.</p>
<div>
<div><strong>Two character prefixes based on the type of interface:</strong><br />
<strong>en</strong> — Ethernet<br />
<strong>ib</strong> — InfiniBand<br />
<strong>sl</strong> — serial line IP (slip)<br />
<strong>wl</strong> — wlan<br />
<strong>ww</strong> — wwan</div>
<div></div>
<div><strong>Type of names:</strong><br />
<strong>b</strong>&lt;number&gt;                         — BCMA bus core number<br />
<strong>c</strong>&lt;bus_id&gt;                             — bus id of a grouped CCW or CCW device,<br />
with all leading zeros stripped [s390]<br />
<strong>o</strong>&lt;index&gt;[n&lt;phys_port_name&gt;|d&lt;dev_port&gt;]<br />
— on-board device index number<br />
<strong>s</strong>&lt;slot&gt;[f&lt;function&gt;][n&lt;phys_port_name&gt;|d&lt;dev_port&gt;]<br />
— hotplug slot index number<br />
<strong>x</strong>&lt;MAC&gt;                               — MAC address<br />
[<strong>P</strong>&lt;domain&gt;]<strong>p</strong>&lt;bus&gt;<strong>s</strong>&lt;slot&gt;[<strong>f</strong>&lt;function&gt;][<strong>n</strong>&lt;phys_port_name&gt;|<strong>d</strong>&lt;dev_port&gt;]<br />
— PCI geographical location<br />
[<strong>P</strong>&lt;domain&gt;]<strong>p</strong>&lt;bus&gt;<strong>s</strong>&lt;slot&gt;[<strong>f</strong>&lt;function&gt;][<strong>u</strong>&lt;port&gt;][..][<strong>c</strong>&lt;config&gt;][<strong>i</strong>&lt;interface&gt;]<br />
— USB port number chain<br />
<strong>v</strong>&lt;slot&gt;                               &#8211; VIO slot number (IBM PowerVM)<br />
<strong>a</strong>&lt;vendor&gt;&lt;model&gt;<strong>i</strong>&lt;instance&gt;           — Platform bus ACPI instance id<br />
<strong>i</strong>&lt;addr&gt;<strong>n</strong>&lt;phys_port_name&gt;        — Netdevsim bus address and port name</div>
</div>
<div></div>
<div></div>
<h5>Changing MTU in Windows</h5>
<p><span style="display: inline !important; float: none; background-color: #ffffff; color: #404040; cursor: text; font-family: 'Lato',sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;">If you would like to see how to change the MTU size in windows, you can see that in this post </span><a href="https://myrandomtechblog.com/cryptomining/change-mtu-size-in-windows-10/">here</a><span style="display: inline !important; float: none; background-color: #ffffff; color: #404040; cursor: text; font-family: 'Lato',sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;">.</span></p>
<p>&nbsp;</p>
<p>The post <a href="https://myrandomtechblog.com/linux/how-to-change-mtu-in-linux/">How to change MTU in Linux</a> appeared first on <a href="https://myrandomtechblog.com">MyRandomTechBlog.com</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
