Increase and Decrease MTU in Linux

if you want to increase mtu on your linux just simply execute the below command

#ifconfig <dev> mtu 1500

sample

#ifconfig eth0 mtu 1500

if you want to decrease mtu simply execute

#ifconfig eth0 mtu 1400

Network MTU(Bytes)
16 Mbit/Sec Token Ring 17914
4 Mbits/Sec Token Ring 4464
FDDI 4352
Ethernet 1500
IEEE 802.3/802.2 1492
X.25 576

 

what is the impact ?? simple this is how big packet can thru your network if the size of packet more than this it’s will split maximum to mtu size that you set

 

pernah kejadian internet di kantor upload sering putus ternyata waktu di cek di salah satu routing kantor ke luar dari traceroute ada mtu yang tidak bisa terima di atas 1500 akhirnya mtu di turunkan jadi 1400, nah sekarang upload dah ngak putus2 lagi tapi ada kendala baru muncul waktu ekekusi perintah “top” atau “htop” di linux ngak muncul malah linuxnya yang di cloud ngak bisa di eksekusi command apa2 lagi. akhirnya

 

eth0 yang ke outside mtunya di jadikan 1400 dan eth1 yang ke internal nat di jadikan 1500 kini semua berjalan lancar.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s