wiki:HowTo/DeleteRoutesInstalledByInstaGENI

Version 3 (modified by pjayanth@bbn.com, 3 years ago) (diff)

--

This page describes how to delete routes that are automatically installed by InstaGENI. For any comments please contact us at help@geni.net.

Delete Routes Installed by InstaGENI

To overcome issues faced by topologies with loops due to the way routes are installed by Instageni, you need to delete the routes. In order to delete the routes automatically installed by InstaGENI on a node, you need to do the following things.

(1) Turn off all the interfaces on the node except eth0.
(2) Turn on all the interfaces on the node that were shut down.

The following script was created to Delete Routes Installed by InstaGENI:

#!/bin/bash
#shut down the interfaces except eth0
ifconfig -a | grep eth | awk '{ if (substr($1,4,4) !=0) { print "sudo ifconfig " $1 " down"}}' |sh
#bring up the interfaces except eth0
ifconfig -a | grep eth | awk '{ if (substr($1,4,4) !=0) { print "sudo ifconfig " $1 " up"}}' |sh

The script to do this task can be found at http://www.gpolab.bbn.com/experiment-support/Utilities/ClearRoutesIG.tar.gz .

If you are using JACKS to create your slice, follow the following steps to Delete Routes Installed by InstaGENI:

1) Click on the node to be configured
(2) Scroll down till you see Install Tarball and click on Add.
(3) Enter the url http://www.gpolab.bbn.com/experiment-support/Utilities/ClearRoutesIG.tar.gz. Enter /local as the Install Path.
(4) Scroll down till you see Execute Command and click on Add. Enter sh /local/ClearRoutesIG.sh in the box.