Mikrotik trunk with OpenWRT

 最近因為想把Server區的網路與家用的無線網路架構進行分離,可以因此想透過Mikrotik的RouterOS當切割兩種不同Vlan的流量,並同時讓不同樓層的OpenWrt AP在串接時,可以允許不同Port導出不同的Vlan。

Mikrotik

  1. Vlan介面:針對要開啟Trunk的Port先建立兩個Vlan介面附加於其上
  2. 增加Vlan橋接
  3. 將Vlan與Bridge串在一起

OpenWRT

  1. Switch控制Vlan的分佈:OpenWRT的規劃,需要先跳出Lan與Wan的觀念,不然會一直被卡住,因此建議直接以某Lan孔,直接給其具有Trunk的能力,之後再於其它孔根據需求調整對應的Vlan Tag
  2. Interface透過Bridge串接Vlan與介面:針對要使用的某些孔或WIFI產生不同的SSID介面,與Switch的Vlan透過Bridge來串接

參考資料:

Mikrotik

  1. https://blog.downager.com/2017/03/26/RouterOS-%E5%AF%A6%E4%BD%9C-VLAN-Trunk-%E8%AE%93-MOD-%E6%B5%81%E9%87%8F%E9%80%9A%E9%81%8E-Switch-%E4%B8%A6%E9%9A%94%E9%9B%A2%E5%85%B6%E4%BB%96%E4%B8%8A%E7%B6%B2%E6%B5%81%E9%87%8F/

OpenWrt

  1. https://openwrt-nctu.gitbook.io/project/experiment-sdn/openwrt-vlan-framework
  2. https://forum.openwrt.org/t/openwrt-as-managed-switch-with-vlans-and-wan-as-trunk-port/71528/5
  3. https://openwrt.org/docs/guide-user/network/vlan/switch_configuration

留言

熱門文章