# OpenWrt as Switch

**URL:** <https://forum.openwrt.org/t/openwrt-as-switch/31857>\
**Category:** Network and Wireless Configuration\
**Created:** [February 21, 2019, 3:26pm UTC](https://forum.openwrt.org/t/openwrt-as-switch/31857 "2019-02-21T15:26:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pippo](https://forum.openwrt.org/letter_avatar/pippo/32/5_5575768a8748004e209b776fc1b2916d.png) [@Pippo](https://forum.openwrt.org/u/Pippo)\
**Post date:** [February 21, 2019, 3:26pm UTC](https://forum.openwrt.org/t/openwrt-as-switch/31857/1 "2019-02-21T15:26:30Z")

</div>

Hi

Was wondering is there a way to use openwrt to turn a five port commercial modem router into a manage or unmanaged switch ? My idea is to put it between modem and actual router and create a mirror port to see watch goes out to ISP from my network

---

<div class="post-metadata">

**Author:** ![lleachii](https://forum.openwrt.org/letter_avatar/lleachii/32/5_5575768a8748004e209b776fc1b2916d.png) [@lleachii](https://forum.openwrt.org/u/lleachii)\
**Post date:** [February 21, 2019, 3:35pm UTC](https://forum.openwrt.org/t/openwrt-as-switch/31857/2 "2019-02-21T15:35:26Z")

</div>

To make a managed switch:

- Go to **Network \> Switch**
- Turn VLAN 2 on WAN to **"off"**
- Turn VLAN 1 on WAN to **"untagged"**

 ![Screenshot%20from%202019-02-21%2010-35-18](https://forum.openwrt.org/uploads/default/original/2X/c/c1e2e8e183d40b3803cc17baa4e259162613305d.png)

* * *

To mirror a port, set the following as appropriate in your scenario:

![Screenshot%20from%202019-02-21%2010-34-14](https://forum.openwrt.org/uploads/default/original/2X/d/da691eee7ccd85dbdf90793030f5c64d17ec09cb.png)
