|
By default vxlan.calico is built on top of default route's interface. |
Replies: 3 comments 1 reply
|
I don't think it is the default route interface. I needs to be the interface that has the IP that is used as the node IP within the cluster https://github.com/projectcalico/calico/blob/release-v3.30/felix/dataplane/linux/vxlan_mgr.go#L650 This depends on your mode ip auto detection. If you need something more complex like using the vxlan overlay over multiple interfaces, that is currently not possible, but will be with 3.31 and eBPF dataplane. |
Check my config:
From above, I can see vxlan.calico is buit ontop of default rout's interface, not node ip's interface |
|
Any more lights from community? |
What you are saying is correct in your env. Clearly, VXLAN tunnels are using the default route. But it does not mean the behavior is baked into Calico. Baiscally, this is a factor of what address should be used for routing, and it can be configured. This is what we call IP Autodection: https://docs.tigera.io/calico/latest/reference/configure-calico-node#ip-autodetection-methods