How to set MTU value for an Open vSwitch bridge from command line?
I have tried man pages, I failed.
Thank you.
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communityThe 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>
.
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>
May 4, 2016 at 5:57
ifconfig "ovs bridge" mtu $value up
This is a temporary modification, it will reset after reboot
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.
http://docs.openvswitch.org/en/latest/faq/issues/
2nd Q&A from bottom of page