top of page

如何將UniFi Switch L3 Swith 搭配非UniFi Gateway使用

  • 作家相片: Kevin Wang
    Kevin Wang
  • 2023年1月15日
  • 讀畢需時 1 分鐘

已更新:2023年3月23日

相信在某些情況下,單位既有的防火牆可能無法被替換,在這樣的情況下我們可以使用UniFi Switch作為L3 Swicth嗎?答案是可以的!那些UniFi Switch 具備Layer 3 Routing功能?例如USW-PRO、USW-Aggregation-Pro、USW-Enterprise等系列都可以,詳細規格可參閱UI官方網站.

本次範例採用UCK-G2-PLUS、USW-Pro-48、ER-X進行實作,實作前請先確認UniFi Network application升級到 V5.13.9或更新的版本.

打開Network application \ SETTINGS \ Networks \ Create New Network,輸入Network NameNetwork Name,Router選擇USW-Pro-48,輸入所需的Gateway IP/Subnet,VLAN ID等參數.

本次範例建立VLAN 155及166兩個VLAN,UniFi Switch啟用Layer 3 Routing功能後會自動建立一個Inter-VLAN routing的Network(VLAN 4040),Layer 3 Switch在這個Network的IP預設為10.255.253.2.

*當環境中有多台Layer 3 Switch時可能改變.

USW-Pro-48可以看到有一條預設路由網10.255.253.1送,介面的來源IP為10.255.253.2.

在Router上創建VLAN Virtual Interface (VIF),VLAN ID 4040,IP位址10.255.253.1

設定靜態路由把Layer 3 Switch上的網段指向10.255.253.2

將電腦連接到USW-Pro-48的VLAN 155介面,電腦確實取的192.168.155.0/24網段IP.

經測試電腦可以ping到預設閘道192.168.155.1

經測試電腦可以ping到另一個網段的預設閘道192.168.166.1

經測試電腦可以ping到中華電信的DNS168.95.1.1

透過tracet確認封包經由USW-Pro-48(192.168.155.1)>ER-X(10.255.253.1)最後連上網際網路...


凱文科技,是您UniFi解決方案的不二選擇喔!


Kevin Wang

TEL : 0908081815



19 則留言


Hazel Jones
Hazel Jones
2 天前

This in depth guide explains exactly what aka ms remoteconnect is, why Microsoft uses this short link, and how it helps users securely access remote connection tools.

aka.ms/remoteconnect

按讚

davit William
davit William
2025年11月26日

This comment helps highlight how essential proper document verification is for anyone dealing with international procedures. If you’re planning to work, study, or settle abroad, getting Saudi certificate attestation in Dubai ensures your documents are officially recognized and accepted. For more specialized requirements, Saudi embassy attestation services provide the final layer of authentication needed for government or embassy-level approvals. Both processes help guarantee the legitimacy of your documents and make overseas transitions smoother and stress-free.

按讚

rojosa7294
2025年11月26日

PayPal is one of the most trusted digital payment platforms in the world. It offers fast, secure, and convenient online transactions. To enjoy its features, users must understand the correct PayPal login process. Paypal Login | Paypal Login

按讚

Alex Smith
Alex Smith
2025年11月24日

Struggling to find top leadership talent? Partner with our executive search service in Pakistan to connect with high-impact leaders who drive strategic growth. At HRBS, we specialize in identifying, assessing, and placing top-tier executives aligned with your organization’s vision and goals. https://hrbs.com.pk/executive-search/


按讚

rojosa7294
2025年11月19日

PayPal remains one of the most trusted online payment platforms worldwide. Many users depend on it for secure transactions. However, understanding how to log in safely improves your overall experience. This guide helps you log in smoothly while protecting your account from threats. PayPal Login | PayPal Login

按讚
bottom of page