Add a Persistent IPv4 Static Route
Use this procedure to add a persistent IPv4 static route.
Before you begin
You must access the appliance operating system to add a static route. For information, see Operating System Access.
Procedure
Log on to the appliance with the user name rsaadmin and the operating system password.
To view the current routing table, type:
sudo ip -4 route show
When you add a persistent IPv4 route entry to a network interface routing file, you can choose to whether to specify a table.
- To add a persistent IPv4 route entry without specifying a table, type:
sudo bash -c "echo 'destination gatewaysubnet_masketh0' >> /etc/sysconfig/network/ifroute-eth0"
where:
- destination specifies the IP address of the network or host for which you are adding a static route. Any network traffic to the destination IP address follows the route defined by the entry.
- gatewayspecifies the IP address of the node that will route traffic to the destination network or host.
- subnet_maskspecifies the specifies the subnet mask associated with the destination IP address.
- eth0 specifies the network interface, for example, eth0 or eth1.
For example, to add a persistent static route that sends all network traffic for any host in the 10.100.212.0 subnet (that uses the subnet mask 255.255.252.0) to the gateway 10.100.219.102, type:
sudo bash -c "echo '10.100.212.0 10.100.219.102 255.255.252.0 eth0' >> /etc/sysconfig/network/ifroute-eth0"
- To add a persistent IPv4 route entry to the corresponding table, type:
sudo bash -c "echo 'destination gatewaysubnet_masketh0 table Teth0' >> /etc/sysconfig/network/ifroute-eth0"
where:
- destination specifies the IP address of the network or host for which you are adding a static route. Any network traffic to the destination IP address follows the route defined by the entry.
- gateway specifies the IP address of the node that will route traffic to the destination network or host.
- subnet_mask specifies the subnet mask associated with the destination IP address.
- eth0 specifies the network interface, for example, eth0 or eth1.
- Teth0 specifies the table in the network interface routing file, such as Teth0 for the interface eth0.
For example, to add a persistent static route that sends all network traffic for any host in the 10.100.212.0 subnet (that uses the subnet mask 255.255.252.0) to the gateway 10.100.219.102, type:
sudo bash -c "echo '10.100.212.0 10.100.219.102 255.255.252.0 eth0 table Teth0' >> /etc/sysconfig/network/ifroute-eth0"
- To add a persistent IPv4 route entry without specifying a table, type:
Restart the network services to apply the new static route. Type:
sudo service network restart
and press ENTER.
Related Articles
Add a Persistent IPv6 Static Route 9Number of Views Add a Non-Persistent IPv4 Static Route 27Number of Views Delete a Persistent IPv4 or IPv6 Static Route 8Number of Views Add a Non-Persistent IPv6 Static Route 7Number of Views Configure a Static Route to RSA Authentication Manager 145Number of Views
Trending Articles
Passwordless Authentication in Windows MFA Agent for Active Directory – Quick Setup Guide RSA Authentication Manager 8.9 Release Notes (January 2026) RSA Authentication Manager Upgrade Process RSA Authentication Manager 8.7 SP2 Setup and Configuration Guide An example of SSO using SAML and ADFS with RSA Identity Management and Governance 6.9.x