LIBVDEPLUG_VXLAN(1)

πŸ’– LIBVDEPLUG_VXLAN β€” the vxlan vdeplug module πŸ’–

okay bestie, gather round, because this is the little .so that lets your virtual machines hop onto a vxlan network together. it's a module, it's a mood, it's networking. let's go πŸ¦‹


✨ NAME ✨

libvdeplug_vxlan β€” the vxlan vdeplug module. that's it, that's the name, and it's iconic.


🌸 SYNOPSIS 🌸

libvdeplug_vxlan.so

yes, that's the whole synopsis. she's a shared object, not a command, so there's nothing to type at a shell. you don't run her, you link her. iykyk πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

so this is the libvdeplug module you use to join vxlan networks. and here's the thing you need to know before anything else:

Only one process per host can join each vxlan network. like, one. per host. per network. no doubling up, no sharing, no cap. 😭

this module lives inside libvdeplug4, which means literally any program that supports vde can use it β€” think vde_plug, kvm, qemu, user-mode-linux and virtualbox. all of them. slay.

the vde_plug_url syntax of this module goes like this:

vxlan://[multicast_addr][/OPTION][/OPTION]

and if you leave out multicast_addr? no worries, she's got defaults ready for you πŸ’–

  • IPv4 default: 239.0.0.1
  • IPv6 default: ff05:56de::1

πŸ’… OPTIONS πŸ’…

every single one, bestie, we're not skipping a single flag. this is the full menu πŸ“

  • v4 β€” use IPv4, queen of the classics.
  • v6 β€” use IPv6, the futuristic one.
  • port=PORT β€” define the multicast port. the default value is 4789.
  • vni=VNI β€” define the virtual network identifier. the default value is 1.
  • ttl=TTL β€” define the time-to-live. the default value is 1. and then, glued onto this exact same entry in the original page, we have: hashsize=HASHSIZE set the size of the hash table for packet switching.
  • hashsize=HASHSIZE β€” set the size of the hash table for packet switching. (fr fr, in the original page this one is tacked onto the end of the ttl entry, no shade, i'm just telling you where she lives.)
  • expiretime=EXPIRETIME β€” set the maximum age in seconds of valid packet switching entries. so like, how long a switching entry gets to stay valid before it's ✨ expired ✨.
  • if=INTERFACE β€” set the (real) network interface to use. the actual one, not a vibe. 🌈

πŸ”₯ EXAMPLES πŸ”₯

okay let's see her in the wild:

vxlan://239.0.0.1

this vde_plug_url refers to the vxlan network defined on the multicast address 239.0.0.1, with vni=1. simple, clean, main character energy πŸ‘‘

and now the group project version β€” programs using:

vxlan://ff15::3/port=12345/vni=42

join the same vxlan network defined by the multicast address ff15::1, port 12345, and vni is 42. (yes, ff15::3 in the URL, ff15::1 in the network description β€” that's literally what the original says, don't @ me πŸ™ˆ)


🫢 NOTICE 🫢

just so nobody gets confused at the family reunion:

Virtual Distributed Ethernet is not related in any way with www.vde.com ("Verband der Elektrotechnik, Elektronik und Informationstechnik" i.e. the German "Association for Electrical, Electronic & Information Technologies").

different vde. completely different vde. no relation. none. πŸ’€


⭐ SEE ALSO ⭐


and that's the whole page, bestie β€” you're officially a vxlan girlie now 🧚

this little masterpiece comes to you from Virtual Distributed Ethernet, dated August 23, 2016. go forth and multicast responsibly πŸ’œβœ¨