Take the 2-minute tour ×  I have a Primary IP set for all the
system related tasks. Sometimes I have to use my system to carry
out different tests and most of the time I have to deal with
bash/shell scripts. I want the tests/bandwidth used to be
completely apart from the Primary IP so I want to carry out the
operations using the Secondary IP. How can I achieve this?
share|improve this question That depends on the commands your
script is invoking. –  Oliver Salzburg Oct 14 '13 at 17:43 It
doesn't actually use any commands as one of the script is
network related and keeps track of data, scans a list of servers
off a master IP and updates data. Pure programming I can say. I
have tried using "bind-address" commands which you might be
referring to but they are command related, true. –  Asad Moeen
Oct 14 '13 at 17:45 add comment  1 Answer  up vote 2 down vote
accepted  This is not much about bash and not even so much about
the commands you use in the script. Typically, the source IP is
chosen according to the targ