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. ...
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
- 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]
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]
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.
- 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]
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.
- 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]
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.
- Adding a route for a specific network to go through a specific interface on DDOS 5.7 (HA)
- 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]
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.
- 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]
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.
- Adding a route for a specific network to go through a specific interface on DDOS 6.x+ (HA)
- 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]
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]
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