GitHub user joolli edited a comment on the discussion: Host based routing - EVPN-VXLAN to the host - Single VXLAN Device (SVD)
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 ip link set dev br0 type bridge vlan_filtering 1 ip link add dev vxlan0 type vxlan external local [LOOPBACK ADDR] dstport 4789 nolearning ip link set dev vxlan0 master br0 bridge link set dev vxlan0 vlan_tunnel on bridge vlan add dev vxlan0 vid 330 bridge vlan add dev vxlan0 vid 330 tunnel_info id 10330 - Add an SVI if you need one: ip link add link br0 name vlan330 type vlan id 330 protocol 802.1q - Then you would add an SVI IP, otherwise you probably wouldn't need the SVI. - And since you wanted an SVI, you might want an anycast gateway, using macvlan interface, in tandem to the SVI, if you want. ## Create a "cable" (veth) to plug into the switch and the namespace ip link add veth-a type veth peer name veth-b ip link set dev veth-a addrgenmode none # not necessary but prettier for ip addr show ip link set dev veth-a up ## Plug the A side of the "cable" into the "switch" (vlan-aware bridge). ip link set dev veth-a master br0 bridge vlan add vid 300 dev veth-a pvid untagged bridge vlan del vid 1 dev veth-a ## Create the namespace plug the B side of the "cable" into the namespace: ip netns add fakevm ip link set veth-b netns fakevm ip netns exec fakevm ip link set dev lo up ip netns exec fakevm ip link set dev veth-b up ip netns exec fakevm ip addr add 10.1.1.2/24 dev veth-b ip netns exec fakevm ip route add default via 10.1.1.1 GitHub link: https://github.com/apache/cloudstack/discussions/10786#discussioncomment-12982841 ---- This is an automatically sent email for users@cloudstack.apache.org. To unsubscribe, please send an email to: users-unsubscr...@cloudstack.apache.org