Vswitches do not have addresses. When you create a new external vSwitch the internet protocols are removed from the adapter and the Hyper-V Extensible Switch protocol is added turning that physical port into a multi-port virtual switch. Connect your VMs to this switch and on each VM use configure the vEthernet by assigning address, gateway, subnet, DNS servers in the same manner as if it were a physical adapter.
--please don't forget to Accept as answer if the reply is helpful--