MVRP on proxmox

Habgdnv

New Member
Jul 8, 2024
2
0
1
Hello,
I use Mikrotik switches and after a recent update, they added support for MVRP. This is a cool protocol that allows for vlans to be auto-configured on the switches.
Unfortunately, Proxmox does not have this in it. Also I was unable to find any proper documentation on how this protocol should work, what is the packet format, etc.
Even more unfortunately, i do not know c++, perl, python, etc. Well, I know some, but not enough for this, to add proper support.
Fortunately I know at least some programming language - c# and so I decided to add such support, and because I am so happy with it and with Proxmox - which I receive for free, I think that I should give you something back. I want to share what I created here with the only hope that this will be at least somehow useful for someone.
As a side note I almost decided to just use it myself because it took me 5 minutes (50 retries) to solve the registration captcha here.

So about the app:
It uses shell command "qm list" to see a list of VMs that are running. The stopped ones are ignored (config option).
Then it will read each {vmid}.conf in /etc/pve/nodes/{HOSTNAME}/qemu-server directory and search for network interfaces that contain tag={vlan id}
It will then send frames on each network card that you choose, with these vlan IDs in a MVRP packet.
It will also re-run "qm list" to see for new running or stopped machines and update the vlan list if it changes.
Config file: /etc/mvrptrunkassist/appsettings.json
The application itself does not listen to network packets and the packet it sends is in no way complete. Do not use in production! Only in home lab.
In my tests it works as intended, but as I said I was unable to find the protocol documentation and I construct the packet based on packets I captured from my switches.
Also I am not sure where to share the .deb file and this is the first thing i found on google.
I am posting the hash sums here and if you choose to test it, please check them.
If at least some people find this useful, I can migrate the source to a git repo with proper build pipeline.

And as a side bonus, I also created a .deb file for this:
https://filetransfer.io/data-package/sfeSDp3F#link
MD5: 8BB7BB10D750F6A4224092F7A4956257
SHA1: 2CECBBDBF1011E9D929C14D029667E3883DA37A5
 

Attachments

Last edited:
Hello, everything ok? Cool, could you provide the updated .deb link, I would like to test this function.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!