1. An apparatus, comprising: a processor; and a memory, at least one of the processor or the memory being configured for: receiving a data frame at an ingress port of a switch, the data frame transmitted from a first host device assigned to operate in a first virtual network; determining that the data frame originated from the first host device operating in the first virtual network; rewriting an initial virtual network identifier in the data frame with a replacement virtual network identifier that corresponds to the first virtual network, thereby facilitating routing of the data frame to an intended destination host device, wherein the initial network identifier corresponds to a second virtual network; and forwarding the data frame to the destination host device having a destination address in the first virtual network.