XEN Virtualization Set The MTU For xenbr0 Interface

in Categories CentOS, Debian Linux, fedora linux, Gentoo Linux, High performance computing, kernel, Linux, Linux Virtualization, Networking, RedHat/Fedora Linux, xen last updated December 31, 2008

I’ve already written about setting the MTU (Maximum Transmission Unit) under Linux including Jumbo frames (FreeBSD specific MTU information is here).

With this quick tip you can increase MTU size to get a better networking performance.

How do I setup MTU under XEN xenbr0 interface?

You can easily set MTU under XEN (xenbr0) using ifconfig or ip command as follows:
# /sbin/ifconfig xenbr0 mtu 1400
# /sbin/ip link set dev xenbr0 mtu 1400
Replace 1400 with required MTU value such as 1500. You can display current mtu with ip command or by visting /sys/class/net/xenbr0/mtu file:
# cat /sys/class/net/xenbr0/mtu
# /sbin/ip link show xenbr0

Make changes permanent

Append following line to /etc/rc.local:
# vi /etc/rc.local
Add following line, type:
/sbin/ip link set dev xenbr0 mtu 1400
Save and close the file.

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

Share this on (or read 0 comments/add one below):