Data Domain:新增靜態路由
Summary: 靜態路由允許管理員指定網路流量定向到目標的網路介面 (NIC)。本文討論如何使用 Data Domain 上的特定閘道和介面新增網路和主機路由。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
新增靜態網路或主機路由
用途
靜態路由允許管理員指定網路流量定向到目標的網路介面 (NIC)。這可讓系統管理員在可用的 NIC 之間平衡網路負載。
適用於
-
所有執行 DDOS 的 Data Domain 型號
-
所有軟體版本
-
複製
解決方案
注意:所有命令都是從 Data Domain 提示字元執行 (Data Domain:如何連線至 Data Domain 系統以進行管理)
- 新增特定網路的路由,以透過 DDOS 5.4-5.7 上的特定介面 (非 HA 或個別節點的固定路由)
- 在 DD 上為特定子網路新增路由
route add -net <network address> netmask <your netmask> gw <IP of your local gateway for the NIC> dev [interface]
範例:
route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.20.1 dev eth0b
此命令會新增
192.168.1.0/24 使用閘道的網路 192.16.20.1 結束 eth0b DDR 上的介面。
此處指定的閘道為所需路由的相關網路介面卡的本機閘道。
- 在 DD 上為特定主機新增路由
route add -host <REMOTE IP> gw <IP of your local gateway for the NIC> dev [interface]
範例:
route add -host 192.168.6.48 gw 10.10.10.1 dev eth1b
此命令會新增主機的路由
192.168.6.48 在介面上 eth1b 的 Data Domain。
- 為特定網路新增路由,以通過 DDOS 6.x+ 上的特定介面 (非 HA,或個別節點的固定路由)
- 在 DD 上為特定子網路新增路由
net route add net <network address> netmask <> gw <IP of your local gateway for the NIC> dev [interface]
範例:
net route add net 192.168.1.0 netmask 255.255.255.0 gw 192.168.20.1 dev eth0b
此命令新增用於
192.168.1.0/24 使用閘道的網路 192.16.20.1 在 eth0b DDR 上的介面。
此處指定的閘道為所需路由的相關網路介面卡的本機閘道。
- 在 DD 上為特定主機新增路由
net route add host <REMOTE IP> gw <IP of your local gateway for the NIC> dev [interface]
範例:
net route add host 192.168.6.48 gw 10.10.10.1 dev eth1a
此命令會新增主機的路由
192.168.6.48 在介面上 eth1a Data Domain 的內容。
DDOS 版本之間的主要差異是,在 DDOS 6.x+ 中,不再需要在路由類型 (網路或主機) 前面使用連字號。
雖然”dev“ 語句在舊版 DDOS 中不是必需的,已新增至此處的範例中,因為這是 DDOS 6.x 的要求。
- 新增特定網路的路由,以透過 DDOS 5.7 (HA) 上的特定介面
注意:HA 系統的靜態路由可能需要將路由放置在兩個節點上,並與浮動 IP NIC 相關聯。
- 在 DD 上為特定子網路新增路由
route add type floating -net <network address> netmask <your netmask> gw <IP of your local gateway for the NIC> dev [interface]
範例:
route add type floating -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.20.1 dev eth0b
此命令會新增
192.168.1.0/24 使用閘道的網路 192.16.20.1 在 eth0b HA 叢集 兩側 的介面。
此處指定的閘道為所需路由的相關網路介面卡的本機閘道。
- 在 DD (HA:浮動 IP)
route add type floating -host <REMOTE IP> gw <IP of your local gateway for the NIC> dev [interface]
範例:
route add type floating -host 192.168.6.48 gw 10.10.10.1 dev eth1b
此命令在介面上為主機 192.168.6.48 新增路由
eth1b 在HA群集的兩側。
- 新增特定網路的路由,以透過 DDOS 6.x+ (HA) 上的特定介面
注意:HA 系統的靜態路由可能需要將路由放置在兩個節點上,並與浮動 IP NIC 相關聯。
- 在 DD 上為特定子網路新增路由
net route add type floating net <network address> netmask <> gw <IP of your local gateway for the NIC> dev [interface]
範例:
net route add type floating net 192.168.1.0 netmask 255.255.255.0 gw 192.168.20.1 dev eth0b
此命令會新增
192.168.1.0 使用閘道的網路 192.16.20.1 在 eth0b HA 叢集兩側的介面。
- 在 DD 上為特定主機新增路由
net route add type floating host <REMOTE IP> gw <IP of your local gateway for the NIC> dev [interface]
範例:
net route add type floating host 192.168.6.48 gw 10.10.10.1 dev eth1a
此命令會新增主機的路由
192.168.6.48 在介面上 eth1a 在HA群集的兩側。
錯誤:
Route command system error
RTNETLINK answers: File exists
指示路由已存在或由於現有路由而不允許
Route command system error.
RNETLINK ANSWERS no such process
指示無法連線至命令中的閘道 (GW) 路由。確認命令中的 GW 適用於 NIC,而非靜態路由的目標。
如果多個 NIC 需要相同的路由,請考慮為有問題的子網路或特定 NIC 新增靜態閘道。
net route add gateway <gateway IP>
-- 或 --
對於與閘道位於同一子網中的所有 NIC,您可以根據需要添加到特定 NIC(如果稍後將 NIC 添加到同一子網,則無需更改配置)。
net route add gateway <gateway IP> interface <NIC name>
範例:如果所需的結果是添加以下兩個路由:
net route add net 192.168.1.0 netmask 255.255.255.0 gw 192.168.20.1 dev eth0b
net route add net 192.168.1.0 netmask 255.255.255.0 gw 192.168.20.1 dev eth1b
(到具有以下位置的子網: 192.168.20.x,在上面的示例中,網路介面卡 eth0b 和 eth1b)
net route add gateway 192.168.20.1
(特別致 NIC)
net route add gateway 192.168.20.1 interface eth0b
net route add gateway 192.168.20.1 interface eth1b
不正確的範例:
net route add host 192.168.4.32 gw 192.168.4.2 dev veth0
veth0,在本例中,位於 192.168.20.0/24 子網和 192.168.4.2 無法從 veth0。
請務必為要指派靜態路由的 NIC 使用自己的閘道。
正確範例:
net route add host 192.168.4.32 gw 192.168.20.1 dev veth0Additional Information
Affected Products
Data DomainArticle Properties
Article Number: 000011243
Article Type: How To
Last Modified: 21 Jan 2026
Version: 14
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.