wiki:HowTo/DeleteRoutesInstalledByInstaGENI

Version 5 (modified by lnevers@bbn.com, 7 years ago) (diff)

--

This page describes how to delete routes that are automatically installed by InstaGENI. You may need to do this if your topology has loops; the routes installed by InstaGENI may not be what you want.

For any comments please contact us at help@geni.net.

Delete Routes Installed by InstaGENI

To delete the routes automatically installed by InstaGENI on a node, you need to:

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

The following script will do this for you:

#!/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

A compressed tar version of this script suitable for use as an install/execute script can be downloaded here.

For information on adding and install/execute script to your RSpec, see this page.