One embodiment of the present invention provides a switch. The switch includes a forwarding module configured to determine an output port for a packet encapsulated based on a first protocol. The switch further includes a control module which is configured to run a control plane based on a second protocol, and form a logical switch based on the control plane. The logical switch is assigned an identifier. The control module is further configured to join a virtual cluster switch based on the formed logical switch.