On Sun, Oct 13, 2024 at 11:56:25PM -0700, Zhongzhou Cai via discuss wrote: > Hi folks: > > I have a question about the OVS access port tag. If an OVS access port has > a specified tag, say 201, will the packets ingressing the port be added > VLAN 201 into the header? And if the packets later egress the OVS bridge, > will they carry the VLAN 201 tag in the header? Any answer is appreciated! >
It depends on the output port. From the manual [1]: "It’s useful to think of a VLAN as a metadata property of a packet, separate from how the VLAN is encoded." So if a port has tag 201 in access mode,it will not be automatically pushed the 802.1Q header. If it goes out through another port on access mode and VLAN id 201, no header will ever be pushed to the packet. If the packet goes out though, say, a trunk port, the 802.1Q header will be pushed. [1] For more details, search for "VLAN Configuration:" in ovs-vswitchd.conf.db(5). Thanks. Adrián > Thanks, > Zhongzhou Cai > _______________________________________________ > discuss mailing list > disc...@openvswitch.org > https://mail.openvswitch.org/mailman/listinfo/ovs-discuss _______________________________________________ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss