# Running simple\_switch\_grpc?

**URL:** <https://forum.p4.org/t/running-simple-switch-grpc/599>\
**Category:** Getting Started with P4\
**Created:** [January 11, 2023, 1:33am UTC](https://forum.p4.org/t/running-simple-switch-grpc/599 "2023-01-11T01:33:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kspimparkar](https://avatars.discourse-cdn.com/v4/letter/k/eb8c5e/32.png) [@kspimparkar](https://forum.p4.org/u/kspimparkar)\
**Post date:** [January 11, 2023, 1:33am UTC](https://forum.p4.org/t/running-simple-switch-grpc/599/1 "2023-01-11T01:33:21Z")

</div>

I had a quick question I am very sorry if it is basic but I could not find the answer over internet anywhere. I wanted to know if simple\_switch\_grpc (behavioral\_model) supports only veth interfaces? I was planning on adding wlan and eth as two interfaces to the switch and wanted to know if it would work? Thank you for all the help!

---

<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:** [January 11, 2023, 8:50am UTC](https://forum.p4.org/t/running-simple-switch-grpc/599/2 "2023-01-11T08:50:52Z")

</div>

Hi @kspimparkar ,  
the `simple_switch_grp` can be configured/initialized like the `simple_switch`, in other word you can assign to the switch real interfaces.

---

<div class="post-metadata">

**Author:** ![kspimparkar](https://avatars.discourse-cdn.com/v4/letter/k/eb8c5e/32.png) [@kspimparkar](https://forum.p4.org/u/kspimparkar)\
**Post date:** [January 11, 2023, 9:07am UTC](https://forum.p4.org/t/running-simple-switch-grpc/599/3 "2023-01-11T09:07:23Z")

</div>

Hi @DavideS,

Thanks for your reply. Can I also assign wlan to the switch? I was getting a bit confused. What exactly happens when we assign these interfaces to the switch? Do they stop forwarding the packets to the linux network stack and use P4 pipeline instead automatically? What exactly assigning mean here in terms of how packets are processed? Please forgive me for so many questions here I am newbie to this

---

<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:** [January 11, 2023, 9:26am UTC](https://forum.p4.org/t/running-simple-switch-grpc/599/4 "2023-01-11T09:26:01Z")

</div>

I never tried with wlan, but I suppose that the switch can handle them. Once the switch acquire the interfaces they “entered” promiscuos mode. All the packets recieved by those interfces are managed by your P4 pipeline, in other word they entered in the P4 switch and they trverse the pipeline according the flow rules that you install.

---

<div class="post-metadata">

**Author:** ![kspimparkar](https://avatars.discourse-cdn.com/v4/letter/k/eb8c5e/32.png) [@kspimparkar](https://forum.p4.org/u/kspimparkar)\
**Post date:** [January 11, 2023, 9:38am UTC](https://forum.p4.org/t/running-simple-switch-grpc/599/5 "2023-01-11T09:38:28Z")

</div>

okay. thank you for your reply @DavideS. It gives me a lot of insight. thank again!
