Data Domain: Adding a Static Route

Summary: A static route allows the administrator to specify the network interface (NIC) through which network traffic is directed to a target. This article talks about how to add the net and host route using a specific gateway and interface on 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

Adding a Static Net or Host Route

PURPOSE

A static route allows the administrator to specify the network interface (NIC) through which network traffic is directed to a target. This allows the administrator to balance network load across the available NICs.

APPLIES TO

  • All Data Domain models Running DDOS 
  • All Software Releases
  • Replication

SOLUTION

Note: All commands are run from the Data Domain prompt (Data domain: How To Connect to a Data Domain System for Administration)
 
  1.  Adding a route for a specific network to go through a specific interface on DDOS 5.4-5.7 (Non-HA, or fixed routes for individual nodes)
  • Adding a route for a specific subnet on DD
route add -net <network address> netmask <your netmask> gw <IP of your local gateway for the NIC> dev [interface]
Example: 
route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.20.1 dev eth0b

This command adds a network route for the 192.168.1.0/24 network using the gateway 192.16.20.1 over eth0b interface on DDR.

The gateway specified here would be the local gateway for the NIC in question for the required route.
  • Adding a route for a specific host on DD
route add -host <REMOTE IP> gw <IP of your local gateway for the NIC> dev [interface]
Example: 
route add -host 192.168.6.48 gw 10.10.10.1 dev eth1b

This command adds a route for a host 192.168.6.48 on the interface eth1b of the Data Domain. 
  1. Adding a route for a specific network to go through a specific interface on DDOS 6.x+ (non-HA, or fixed routes for individual nodes)
  • Adding a route for a specific subnet on DD
net route add net <network address> netmask <> gw <IP of your local gateway for the NIC> dev [interface]
Example: 
net route add net 192.168.1.0 netmask 255.255.255.0 gw 192.168.20.1 dev eth0b

This command adds a network for the 192.168.1.0/24 network using gateway 192.16.20.1 over the eth0b interface on DDR. 
 
The gateway specified here would be the local gateway for the NIC in question for the required route.
  • Adding a route for a specific host on DD
net route add host <REMOTE IP> gw <IP of your local gateway for the NIC> dev [interface]
Example:
net route add host 192.168.6.48 gw 10.10.10.1 dev eth1a

This command adds a route for the host 192.168.6.48 on the interface eth1a of Data Domain. 

The main difference between the DDOS versions is that in DDOS 6.x+ there is no longer a requirement to use the hyphen in front of the type of route type (net or host).

 

Although the "dev" statement is not required in the older DDOS versions, it has been added to the example here because it is a requirement of DDOS 6.x. 

  1. Adding a route for a specific network to go through a specific interface on DDOS 5.7 (HA)
 
Note: Static routes for HA systems may require that the route be placed on both nodes and associated with the floating IP NICs.

 

  • Adding a route for a specific subnet on DD
route add type floating -net <network address> netmask <your netmask> gw <IP of your local gateway for the NIC> dev [interface]
Example: 
route add type floating -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.20.1 dev eth0b

This command adds a network route for the 192.168.1.0/24 network using the gateway 192.16.20.1 over the eth0b interface on both sides of the HA cluster. 
 
The gateway specified here would be the local gateway for the NIC in question for the required route.
  • Adding a route for a specific host on DD (HA: Floating IP)
route add type floating -host <REMOTE IP> gw <IP of your local gateway for the NIC> dev [interface]
Example: 
route add type floating -host 192.168.6.48 gw 10.10.10.1 dev eth1b

This command adds a route for host 192.168.6.48 on the interface eth1b on both sides of the HA cluster.  
  1. Adding a route for a specific network to go through a specific interface on DDOS 6.x+ (HA)
     
Note: Static routes for HA systems may require that the route be placed on both nodes and associated with the floating IP NICs.

 

  • Adding a route for a specific subnet on DD
net route add type floating net <network address> netmask <> gw <IP of your local gateway for the NIC> dev [interface]
Example: 
net route add type floating net 192.168.1.0 netmask 255.255.255.0 gw 192.168.20.1 dev eth0b

This command adds a network route for the 192.168.1.0 network using the gateway 192.16.20.1 over the eth0b interface on both sides of the HA cluster. 
  • Adding a route for a specific host on DD
net route add type floating host <REMOTE IP> gw <IP of your local gateway for the NIC> dev [interface]
Example: 
net route add type floating host 192.168.6.48 gw 10.10.10.1 dev eth1a

This command adds a route for the host 192.168.6.48 on the interface eth1a on both sides of the HA cluster.

Errors:

Route command system error
RTNETLINK answers: File exists

Indicates that the route already exists or is not allowed because of an existing route
 
Route command system error.
RNETLINK ANSWERS no such process

Indicates the route to the gateway (GW) in the command is not reachable. Confirm that the GW in the command is for the NIC and not the target of the static route.

If the same route is needed from multiple NICs, then consider adding static gateways for the subnet or specific NICs in question.
 
net route add gateway <gateway IP>

-- or -- 

For all the NICs in the same subnet as the gateway, you can add to specific NICs if needed (If NICs are later added to the same subnet, then no configuration changes are required).

net route add gateway <gateway IP> interface <NIC name>

Example: If the required outcome was to add these two routes:

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

(To the subnet that has 192.168.20.x, in the above example, the NICs eth0b and eth1b)

net route add gateway 192.168.20.1

 (To the NICs specifically)

net route add gateway 192.168.20.1 interface eth0b
net route add gateway 192.168.20.1 interface eth1b

Incorrect example:

net route add host 192.168.4.32 gw 192.168.4.2 dev veth0

veth0, in this case, is in the 192.168.20.0/24 subnet and 192.168.4.2 is not reachable from veth0.  

Always use your own gateway for the NIC that the static route is being assigned to.

Correct example:

net route add host 192.168.4.32 gw 192.168.20.1 dev veth0

Additional Information

Affected Products

Data Domain

Products

Data Domain
Article 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.