If you have a Linux box (like a Raspberry PI) that can talk to both VLANs you can use socat
to forward the broadcast using this command:
socat -u UDP4-RECVFROM:2021,fork,so-bindtodevice=eth0.2,broadcast UDP4-SENDTO:192.168.178.255:2021,broadcast
Replace eth0.2
with the interface name for the VLAN which contains your printer and 192.168.178.255
with the broadcast address of the VLAN in which your computer is.
I put this in a small systemd service file in /etc/systemd/system/bambu-broadcast.service
:
[Unit]
Description=Forward Bambulab Broadcast
After=network.target
[Service]
Type=exec
ExecStart=/usr/bin/socat -u UDP4-RECVFROM:2021,fork,so-bindtodevice=eth0.2,broadcast UDP4-SENDTO:192.168.178.255:2021,broadcast
Restart=on-failure
[Install]
WantedBy=default.target
RequiredBy=network.target