Linux modify vlan sub-interface mac address, macvlan virtual interface_wb0r0r’s blog
macvlan is a network card virtualization technology provided by the kernel, which can virtualize multiple interfaces from the network card (not necessarily a real physical network card, but virtual network cards such as virtio). This network card is called a master or parent interface. Communication between the virtual interface and the external environment is through the parent interface. If it works, for example, macvlan cni for k8s. macvlan provides five modes: bridge, vepa, private, passthrough and source private mode: In this mode, sub-interfaces under the same parent interface are isolated from each other and cannot communicate. That is The diversion from the external switch is received by the parent interface again, and it will also be ruthlessly discarded. vepa mode: In this mode, the communication traffic between sub-interfaces needs to be directed to external support 802.1Qbg/VPEA-enabled switch (which can be physical or virtual), Forwarded through the external switch, and then looped back. Note: The 802.1Qbg/VPEA function simply means that the switch must support hairpin (hairpin) function, that is, the data packet can be thrown again after it is received from an interface Go back. bridge mode: In this mode, the function of the Linux bridge is simulated, but it is…