Applicable Products
QTS, QuTS hero
Overview
In multi-network environments—such as when using separate LANs for management and production, or isolated departments—it is often necessary for a single NAS to communicate with devices across different subnets. QNAP NAS models with multiple LAN ports can be configured to operate on two separate networks, enabling cross-subnet access for data sharing, backups, and service availability. This article guides you through the steps needed to achieve this setup effectively.
Scenario
You want your QNAP NAS to be accessible from two different subnets (e.g., 192.168.1.x and 10.0.0.x), but it is currently only reachable from one of these subnets, or you are facing routing issues.
Solution
QNAP NAS supports multi-LAN connections, allowing you to connect it to two different subnets. Follow these steps to correctly configure your NAS:
1. Physically Connect Both Networks:
Connect LAN1 to the switch/router of Subnet A (e.g., 192.168.1.x).
Connect LAN2 to the switch/router of Subnet B (e.g., 10.0.0.x).
2. Assign Static IP Addresses to Each LAN Interface:
Assigning static IP addresses to each LAN interface is strongly recommended in multi-subnet environments. You can use DHCP temporarily during testing, but we recommend using static IP addresses for production environment for consistency, routing stability, and avoiding IP addresses conflicts.
Best Practice
Assign manual/static IP addresses to both LAN interfaces within their respective subnets (e.g., 192.168.1.100 on LAN1, 10.0.0.100 on LAN2) and ensure only one default gateway is defined.
Go to QTS > Control Panel > Network & Virtual Switch.
Under Interfaces, select LAN1 and assign a static IP address (e.g., 192.168.1.100). (For details, see Configuring IPv4 Settings )
Select LAN2 and assign another static IP address (e.g., 10.0.0.100).
Important
Assign the Default Gateway to only one interface (usually the one with internet access).
3. Verify Routing Between Subnets:
If devices on Subnet A need to reach the NAS IP address on Subnet B (or vice versa), your router/firewall must support inter-subnet routing. On many home or small business routers, this may require enabling static routes or VLAN routing.
4. Disable Interface Service Binding (Optional):
Go to Control Panel > Network & File Services > Network Access > Service Binding.
Make sure key services (like SMB, Web, SSH, etc.) are not limited to only one interface, or bind them to both LAN1 and LAN2. By default, NAS services run on all available network interfaces.
5. Test Both Networks:
From Subnet A, try to access: http://192.168.1.100
From Subnet B, try to access: http://10.0.0.100
Use ping or traceroute to verify packet flows between subnets and NAS.
Note
- QNAP NAS supports only one default gateway at a time.
- If your NAS is unreachable from one subnet, it's likely a routing or firewall issue—not a problem with the NAS.
- Ensure that IP address conflicts do not exist across subnets and both NAS IP addresses are unique and outside DHCP ranges.
Further Reading
Configuring IPv4 Settings
Enabling Service Binding to manage the network interface connections
適用產品
QTS, QuTS hero
概述
在多網路環境中,例如使用獨立的區域網進行管理和生產,或是隔離的部門,通常需要單一的 NAS 與不同子網中的裝置進行通訊。具有多個 LAN 埠的 QNAP NAS 型號可以配置為在兩個獨立的網路上執行,從而實現跨子網的資料共享、備份和服務可用性。本文將指導您完成有效設定此配置的步驟。
情境
您希望您的 QNAP NAS 可以從兩個不同的子網訪問(例如,192.168.1.x和10.0.0.x),但目前只能從其中一個子網訪問,或者您面臨路由問題。
解決方案
QNAP NAS 支援多 LAN 連線,允許您將其連線到兩個不同的子網。請按照以下步驟正確配置您的 NAS:
1. 實體連線兩個網路:
2. 為每個 LAN 介面分配靜態 IP 位址:
在多子網 環境中,強烈建議為每個 LAN 介面分配靜態 IP 位址。您可以在測試期間暫時使用 DHCP,但我們建議在生產環境中使用靜態 IP 位址,以確保一致性、路由穩定性和避免 IP 位址衝突。
最佳實踐
在各自的子網中為兩個 LAN 介面分配手動/靜態 IP 位址(例如,192.168.1.100在 LAN1,10.0.0.100在 LAN2)並確保僅定義一個預設閘道。
重要
將預設閘道僅分配給一個介面(通常是具有網際網路存取的那個)。
3. 驗證子網之間的路由:
4. 停用介面 服務連結(可選):
5. 測試兩個網路:
從子網 A 嘗試訪問:http://192.168.1.100
從子網 B 嘗試訪問:http://10.0.0.100
使用ping或traceroute來驗證子網和 NAS 之間的資料包流。
注意
- QNAP NAS 僅支援一次一個預設閘道。
- 如果您的 NAS 無法從一個子網訪問,這可能是路由或 防火牆 問題,而不是 NAS 的問題。
- 確保子網之間不存在 IP 地址衝突,並且兩個 NAS IP 地址是唯一的且不在 DHCP 範圍內。
進一步閱讀
配置 IPv4 設定
啟用 服務連結 來管理網路介面連接