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官方網站.

ree

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

ree

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

ree

本次範例建立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時可能改變.

ree

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

ree

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

ree

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

ree

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

ree

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

ree

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

ree

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

ree

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

ree

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


Kevin Wang

TEL : 0908081815



18 則留言


davit William
davit William
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
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
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
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

按讚

rhoan lover
rhoan lover
11月02日

If you like, I can fetch the official Crypto support / troubleshooting page for Web login in India, or guide you with exact steps tailored to your situation (error messages, region). Do you want me to fetch that & send you a link? Crypto.com login issue | Crypto.com login issues


按讚
bottom of page