How to set MTU value for an Open vSwitch bridge from command line?

I have tried man pages, I failed.

Thank you.

3 Answers 3



ovs-vsctl set int br0 mtu_request=1450

This will make the change persist in the DB. Changes made through ip or ifconfig will not persist

The mtu_request column can be used to configure MTU even for physical interfaces (e.g. eth0).

OVS sets the Bridge MTU to that of the lowest Port. So you may have to adjust the MTU on other Bridge Ports before you get the result you want.

2nd Q&A from bottom of page


The bridge MTU is automatically set to the smallest port MTU. So you just have to set the MTU of each port of the bridge. You can get a list of them via ovs-vsctl list-ports <BRIDGENAME>.

  • So glad that you posted this answer. I had been scouring the net for a while in search of an answer. I found that I had the MTU unset on one of my ports in the br-ex in my OpenStack environment and even though that port wasn't being used, it kept the MTU at the default 1500. After you use the ovs-vsctl list-ports <BRIDGENAME> you could create a quick bash loop to change the MTUs to 9000 (or whatever value supported by the card). My bash script would look like this: for i in $(ovs-vsctl list ports <BRIDGENAME>);do ip link set mtu 9000 dev $i;done;ip a show <BRIDGENAME> Commented May 4, 2016 at 5:57

ifconfig "ovs bridge" mtu $value up

This is a temporary modification, it will reset after reboot

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .