Add a Persistent IPv6 Static RouteAdd a Persistent IPv6 Static Route
Use this procedure to add a persistent IPv6 static route to support IPv6-compliant agents.
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.
-
View the current routing table, type:
sudo ip -6 route show
-
When you add a persistent IPv6 route entry to a network interface routing file, you can choose to whether to specify a table.
- To add a persistent IPv6 route entry without specifying a table, type:
sudo bash -c "echo 'destinationgateway prefix_length - -' >> /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.
- prefix_length specifies the prefix length associated with the destination IP address.
- eth0 specifies the network interface, for example, eth0 or eth1.
IPv6 special notation can be used. For example, to add a persistent static route that sends all network traffic for IPv6-compliant agents in the 2005::0/64 network to the gateway 2001::2, type:
sudo bash -c "echo '2005::0 2001::2 64 - -' >> /etc/sysconfig/network/ifroute-eth0"
- To add a persistent IPv6 route entry to the corresponding table, type:
sudo bash -c "echo 'destinationgateway prefix_length - -' >> /etc/sysconfig/network/ifroute-eth0 table Teth0"
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.
- prefix_length specifies the prefix length associated with the destination IP address.
- eth0 specifies the network interface, for example, eth0 or eth1.
- Teth0 specifies the the table in the network interface routing file, such as Teth0 for the interface eth0.
IPv6 special notation can be used. For example, to add a persistent static route that sends all network traffic for IPv6-compliant agents in the 2005::0/64 network to the gateway 2001::2, type:
sudo bash -c "echo '2005::0 2001::2 64 - -' >> /etc/sysconfig/network/ifroute-eth0 table Teth0"
- To add a persistent IPv6 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.