Delete a Non-Persistent IPv4 or IPv6 Static Route

Use this procedure to remove a non-persistent IPv4 or IPv6 static route.

Before you begin

You must access the appliance operating system to delete a static route. For information, see Operating System Access.

Procedure

  1. Log on to the appliance with the user name rsaadmin and the operating system password.

  2. For a list of the available static routes, you can view the current routing tables.

    • For IPv4, do the following:

      • To show the main routing table, type:

        sudo ip -4 route show

      • To show the table in the network interface routing file, type:

        sudo ip -4 route show table Tetho

        where:

        Teth0 specifies the table in the network interface routing file, such as Teth0 for the interface eth0.

    • For IPv6, do the following:

      • To show the main routing table, type:

        sudo ip -6 route show

      • To show the table in the network interface routing file, type:

        sudo ip -6 route show table Tetho

        where:

        Teth0 specifies the table in the network interface routing file, such as Teth0 for the interface eth0.

  3. Choose one of the following options:

    • To manually delete a non-persistent IPv4 static route, without restarting network services or rebooting the Authentication Manager instance, do the following:

      1. Delete the route from the interface. Type the following, and press ENTER:

        sudo ip route del destination/nn via gateway dev eth0

        where:

        • destination specifies the the IP address of the network or host for which you are deleting the static route.

        • /nn is the prefix length notation used to specify the subnet mask associated with the destination IP address.

        • gateway specifies the IP address of the node that will route traffic to the destination network or host.

        • eth0 specifies the network interface, for example, eth0 or eth1.

      2. Delete the route from the interface table. Type the following, and press ENTER:

        sudo ip route del destination/nn via gateway dev eth0 table Teth0

        where:

        • destination specifies the the IP address of the network or host for which you are deleting the static route.

        • /nn is the prefix length notation used to specify the subnet mask associated with the destination IP address.

        • gateway specifies the IP address of the node that will route traffic to the destination network or host.

        • 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.

    • To manually delete a non-persistent IPv6 static route, without restarting network services or rebooting the Authentication Manager instance, do the following:

      1. Delete the route from the interface. Type the following, and press ENTER:

        sudo ip -6 route del destination/nn via gateway dev eth0

        where:

        • destination specifies the IP address for the network or host for which you are deleting the static route.

        • /nn is the prefix length notation used to specify the subnet mask associated with the destination IP address.

        • gateway specifies the IP address of the node that will route traffic to the destination network or host.

        • eth0 specifies the network interface, for example, eth0 or eth1.

      2. Delete the route from the interface table. Type the following, and press ENTER:

        sudo ip -6 route del destination/nn via gateway dev eth0 table Teth0

        where:

        • destination specifies the IP address for the network or host for which you are deleting the static route.

        • /nn is the prefix length notation used to specify the subnet mask associated with the destination IP address.

        • gateway specifies the IP address of the node that will route traffic to the destination network or host.

        • 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.

    • To automatically delete all non-persistent IPv4 and IPv6 static routes, you can restart the network services on the Authentication Manager instance. Network services will not be available for several seconds. Type:

      sudo service network restart

      and press ENTER.