# Connecting bmv2 switches with controllers pox, onos, etc

**URL:** <https://forum.p4.org/t/connecting-bmv2-switches-with-controllers-pox-onos-etc/1091>\
**Category:** P4 Dev\
**Created:** [February 15, 2024, 12:28am UTC](https://forum.p4.org/t/connecting-bmv2-switches-with-controllers-pox-onos-etc/1091 "2024-02-15T00:28:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![absuarez](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@absuarez](https://forum.p4.org/u/absuarez)\
**Post date:** [February 15, 2024, 12:28am UTC](https://forum.p4.org/t/connecting-bmv2-switches-with-controllers-pox-onos-etc/1091/1 "2024-02-15T00:28:20Z")

</div>

Hello,

I was wondering whether there are tutorials and general steps to connect a bmv2 switch with SDN controllers, for example, I would like to do something similar to what OVS does when there is no match in a table and sends the packets to the controller for evaluation, how can I do that with bmv2 switches and with other switches that leverage P4, in general?

Currently, I am working with POX and ONOS controllers, and I aim to connect them with my bmv2 switch.

I’d appreciate any help/guidance.

best regards,  
Anthony

---

<div class="post-metadata">

**Author:** ![DavideS](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.p4.org/davides/32/120_2.png) [@DavideS](https://forum.p4.org/u/DavideS)\
**Post date:** [February 15, 2024, 8:07am UTC](https://forum.p4.org/t/connecting-bmv2-switches-with-controllers-pox-onos-etc/1091/2 "2024-02-15T08:07:40Z")

</div>

Hi @absuarez ,

Here some tutorials to control P4 switches via ONOS:

- [onos/apps/p4-tutorial/README.md at master · opennetworkinglab/onos · GitHub](https://github.com/opennetworkinglab/onos/blob/master/apps/p4-tutorial/README.md)
- [GitHub - opennetworkinglab/ngsdn-tutorial: Hands-on tutorial to learn the building blocks of the Next-Gen SDN architecture](https://github.com/opennetworkinglab/ngsdn-tutorial)
