https://www.mathworks.com/help/slrealtime/io_ref/modeling-ethernet-networks-on-target-computer.html
Apply 802.1Q VLAN Tag by Using Ethernet Send and Receive Blocks - MATLAB & Simulink
This example shows how to use Ethernet blocks to send and receive Ethernet packets.
802 1q vlan tag