'In l2 vxlan, why the VNI of different VTEPs must be the same to communicate?

Observing the BGP packet structure, it can be found that the VNI is passed along with the MAC. Why doesn't the local device add the VNI passed by the peer end when forwarding traffic? For example:

CE1--PE1----------------PE2--CE2

PE1: VNI 222 RT ex/im 222:222

PE2: VNI 111 RT ex/im 222:222

I think PE1 can accept PE2's information through RT. Since it has been judged to be accepted, it should communicate(CE1 ping CE2 can pass)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source