Replies: 5 comments 28 replies
-
Interesting! I have not tried it yet. Do you have some example commands of "ip" and "bridge" on how to do this? I know that vlan-aware exists, but I wasn't aware you can do this with VXLAN as well. |
Beta Was this translation helpful? Give feedback.
-
Sure... Here are the iproute2 commands to create that type of setup with one namespace (to imitate a VM) on VNI 10330: Create the vlan-aware bridge, add a VLAN (330) to it and MAP a VNI (10330) to the VLAN.ip link add dev br0 type bridge
Create a "cable" (veth) to plug into the switch and the namespaceip link add veth-a type veth peer name veth-b Plug the A side of the "cable" into the "switch" (vlan-aware bridge).ip link set dev veth-a master br0 Create the namespace and plug the B side of the "cable" into the namespace:ip netns add fakevm |
Beta Was this translation helpful? Give feedback.
-
Interesting. So you add a virtual switch (veth) to the bridge and you also tell how to map the VLAN to a VNI. In your case you use 330 and 10330, but in the CS case these would be identical. How would this work with libvirt? Because right now we use an XML definition where we just plug the VM into a bridge. In this it seems we also need to know the VNI when creating the VM, this means you would need to make more adjustments to CloudStack. And my last question: Super cool, but what is the true benefit? Performance? Scale? |
Beta Was this translation helpful? Give feedback.
-
I'll leave this here... |
Beta Was this translation helpful? Give feedback.
-
@wido I have added to your script the possibility of using SVD mode. It's not intended as a final solution but it's comparable with the current solution, which is designed for a libvirt that doesn't support VLANS for Linux Bridges. I don't have a lab using the traditional mode, so I haven't tested to see if my changes break that type of setup... It shouldn't, as I didn't change those functions, but better test it. Would you be willing to try it out? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys,
I want to try out host based routing with Cloudstack and I'm in the process of setting it up... One thing I notice is that the EVPN-VXLAN setup uses the "Traditional mode" of VXLAN setup, where there is a bridge and an associated vxlan device. The new way of doing it is the SVD (Single VXLAN Device) where there is a vlan-aware bridge and a vlan-aware VXLAN device and there is no need for additional devices, just add a VLAN to both of those devices and you have another VNI and add VMs to the vlan aware bridge and associate them with the VLAN, just like a switch. Scales better and less clutter in "ip addr show".
Has anyone tried this method by adjusting the modifyvxlan.sh script to accommodate that type of setup?
Beta Was this translation helpful? Give feedback.
All reactions