You could make vlan tag 802.1Q each sub interface
That configure works on Ubuntu 20.04 LTS Server. should be work on Ubuntu 18 and 20
You could see vlan tag result via url https://www.asimmisirli.com/ubuntu-20-0-vlag-yapilandirmasi-802-1q/
End of post you will see wireshark screenshot.