XEN Virtualization Set The MTU For xenbr0 Interface

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.

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source & DevOps topics via:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

0 comments… add one

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.