XEN Virtualization Set The MTU For xenbr0 Interface

by on December 31, 2008 · 0 comments· LAST UPDATED December 31, 2008

in , ,

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
OR
# /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
or
# /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.



If you would like to be kept up to date with our posts, you can follow us on Twitter, Facebook, Google+, or even by subscribing to our RSS Feed.


{ 0 comments… add one now }

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 11 + 9 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.

Tagged as: , , , , , , , ,

Previous post:

Next post: