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:
parent
ea9813cecf
commit
d8a0dff1b5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user