Monday, May 17, 2021

[VxLAN] Why is a loopback interface configured as the source interface for VxLAN1 in the documentation?

I'm reading Arista's documentation on VxLAN and I'm trying to adapt it to my network. It has a section with an example of complete configurations where the very first line states:

interface vxlan 1 vxlan source-interface Loopback0

I'm a bit confused as to why it uses the loopback interface. From my understanding, if my switch is connected to other end of the tunnel through eth2, my source interface should be eth2, no? As in the tunnel starts from there. Am I suppose to change it for whatever interface I need? If not, what does the loopback interface do in this case?



No comments:

Post a Comment