I'm willing to bet that - being as your question doesn't mention any Cisco device whatsoever, your mileage with this one is limited.
If I am wrong, however, and you just "forgot" to mention Cisco in your question above - which BTW, included the effort to name/describe products unrelated to anything that warrants a reply - a Starting Point would be:
-Create WAN vSwitch and WAN Port Group
-Create LAN vSwitch and LAN Port Group
-Google "how to opnsense on esxi physical switch" or some derivative thereof
----->> Here you go: