Packet loss or dropping Internet connection
The Maximum Transmission Unit (MTU) feature is an advanced configuration that allows you to determine the largest data size permitted on your connection. Generally, if your MTU is too large for the connection, your computer will experience packet loss, RDP issue or dropping Internet connection.
To determine the correct MTU size for your network, you’ll have to do a specific ping test on the destination you’re trying to go to like using another computer or a web address.
Once you get the correct MTU value, you can change it on your server using the below steps:
On Windows:
C:\Windows\system32>netsh
netsh>interface ipv4
netsh interface ipv4>show subinterface
MTU MediaSenseState Bytes In Bytes Out Interface
------ --------------- --------- --------- -------------
4123495 1 0 81224 Loopback Pseudo-Interface 1
1500 1 11252355840 6937787731 Local Area Connection 7
netsh interface ipv4>set subinterface "Local Area Connection 7" mtu=1300 store=persistent
Ok.
netsh interface ipv4>show subinterface
MTU MediaSenseState Bytes In Bytes Out Interface
------ --------------- --------- --------- -------------
4294967295 1 0 81224 Loopback Pseudo-Interface 1
1300 1 11252459748 6937853509 Local Area Connection 7
To determine the correct MTU size for your network, you’ll have to do a specific ping test on the destination you’re trying to go to like using another computer or a web address.
Once you get the correct MTU value, you can change it on your server using the below steps:
On Windows:
C:\Windows\system32>netsh
netsh>interface ipv4
netsh interface ipv4>show subinterface
MTU MediaSenseState Bytes In Bytes Out Interface
------ --------------- --------- --------- -------------
4123495 1 0 81224 Loopback Pseudo-Interface 1
1500 1 11252355840 6937787731 Local Area Connection 7
netsh interface ipv4>set subinterface "Local Area Connection 7" mtu=1300 store=persistent
Ok.
netsh interface ipv4>show subinterface
MTU MediaSenseState Bytes In Bytes Out Interface
------ --------------- --------- --------- -------------
4294967295 1 0 81224 Loopback Pseudo-Interface 1
1300 1 11252459748 6937853509 Local Area Connection 7
On Linux (Redhat):
Check your current MTU value using the below command:
# ifconfig
Or,
# ip link list
Now change it as follows:
# ifconfig eth0 mtu 1300
Or,
# ip link set dev eth0 mtu 1300
To make the setting permanent for eth0, edit/add the MTU value in below configuration file:
/etc/sysconfig/network-scripts/ifcfg-eth0
Save the file and restart network service:
# service network restart
Nicely you explained everything in your article. Thanks for your information; this is nice and helpful… Definitely going to share this article to my friends.
ReplyDeleteGermany VPS Hosting
This comment has been removed by the author.
ReplyDeleteNice blog
ReplyDeleteThanks for your reach-out efforts. Your tips and tricks about Linux are always awesome. Keep sharing these types of tips and tricks. Here I also want to share some of the best USA VPS Hosting services for your website at a very cheap price.