You need to emulate Openflow controller and define the flows as mentioned below and push that to switch to forward the packet to controller
dl_type=2048 nw_src=x.x.x.x actions=controller