A prior layer-2 routing algorithm-D2ENDIST demonstrates advantages in throughput improvement, reroute period and failure recovery. Moreover, with the invention of software-defined networking (SDN), a revolutionary networking concept, dynamic routing protocols can embrace more flexible policy on per-flow basis. However, due to runtime complexity of dynamic routing, many issues on the practicality emerge and await to be resolved. Therefore, in this paper, we first apply D2ENDIST to a SDN architecture and compare performances between dynamic-routing and flow-control mechanisms in a OpenFlow-based cloud network. Then, the flow-migration (FM) scheme, showing a better flow-control management, can be combined with D 2ENDIST, and evolved into D2ENDIST-FM. At last, experimental results demonstrate that D2ENDIST-FM enables better feasibility in real-world applications, throughput improvement, sensitivity to reroute period and reduction in failure recovery time.