5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2025-01-20 22:03:33 +03:00

fix #4547: set MTU on dynamically created vlan bridges

Otherwise the created vlan bridge has the default MTU, which is
unexpected when the original bridge has some other MTU configured.

We already do this for the firewall bridges, so we should do so too for
the vlan bridges.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2023-02-24 12:06:21 +01:00 committed by Thomas Lamprecht
parent ea9813cecf
commit d8a0dff1b5

View File

@ -620,6 +620,9 @@ sub activate_bridge_vlan {
iface_create($bridgevlan, 'bridge');
}
my $bridgemtu = read_bridge_mtu($bridge);
eval { run_command(['/sbin/ip', 'link', 'set', $bridgevlan, 'mtu', $bridgemtu]) };
# for each physical interface (eth or bridge) bind them to bridge vlan
foreach my $iface (@ifaces) {
activate_bridge_vlan_slave($bridgevlan, $iface, $tag);