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



15 則留言


rojosa7294
1 天前

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


按讚

Simon Jack
Simon Jack
10月15日

Every athlete I know who’s tried on cloud us has fallen in love with them. The comfort level is insane, and the performance boost is real. Even for people who stand for long hours at work, these shoes can make a huge difference in how your feet feel by the end of the day.


按讚

Simon Jack
Simon Jack
10月15日

I switched to on cloud Mexico shoes a few months ago, and I can confidently say they are worth every penny. They feel durable and lightweight at once, and I’ve noticed how my runs have become smoother and faster. Definitely one of the smartest footwear investments I’ve made.


按讚

Simon Jack
Simon Jack
10月15日

If you care about both performance and aesthetics, on cloud is the brand to go for. They’ve mastered the art of crafting shoes that feel soft on your feet yet provide incredible grip. Plus, the color combinations they offer are stylish enough for everyday use.


按讚
bottom of page