How to set MTU value for an Open vSwitch bridge from command line?
I have tried man pages, I failed.
Thank you.
How to set MTU value for an Open vSwitch bridge from command line?
I have tried man pages, I failed.
Thank you.
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>
.
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