To add the MPLS header, we need to include it before adding the IPv4 header.
Below are the steps,
1. Create Raw Streamblock - Frame tab - Create new Frame - Select Ethernet II in Data Link Layer & None in Upper Layer Protocols - MPLS in the category.
2. Now add the IPv4 header
Follow the same steps for IPv6 too.