Search Mailing List Archives
[mininet-discuss] Node names in xterm, multiple Mininet CLIs
tomergod at post.bgu.ac.il
Thu Mar 5 03:52:02 PST 2015
Thanks for the ideas.
I hadn't thought of adding them to the hosts file.
It would indeed be a solution, but I'd rather use Mininet's Python API -
but how do I invoke a Mininet Python command / script from an xterm?
In other words, I have no problem writing a script that would do what I
need, but for that I need the 'net' variable that the running Mininet has.
And when I open an xterm window, I get the standard bash shell on the host,
and not the Mininet CLI.
Alternatively, if I run a script from within the Mininet CLI, I'd be able
to use the 'net' variable, but then the script would run from within the
terminal on which the Mininet CLI is running, and not on another xterm.
I'm currently trying to look into how xterms windows are created in
Mininet, hoping that I'd be able to figure out how to open them myself in a
Any information on the subject would be appreciated.
On Thu, Mar 5, 2015 at 3:48 AM, Bob Lantz <rlantz at cs.stanford.edu> wrote:
> The best way to do this is to use Mininet’s python API to run your
> Alternately, you could add your Mininet host IP addresses to /etc/hosts or
> to a local DNS server in the VM (e.g. dnsmasq.)
> On Mar 4, 2015, at 7:50 AM, Tomer Godinger <tomergod at post.bgu.ac.il>
> > Hi,
> > Is it possible to open an xterm window for a host where node names (h1,
> s2, etc.) would be recognized?
> > Alternatively, if I could open the Mininet CLI on multiple screens (can
> I ssh into it, for example?), this would also be adequate.
> > Basically I wish to run blocking scripts and pass the IPs of nodes to
> them, and I'd very much rather not look them up and enter them manually
> every time.
> > Thanks,
> > Tomer Godinger.
> > _______________________________________________
> > mininet-discuss mailing list
> > mininet-discuss at lists.stanford.edu
> > https://mailman.stanford.edu/mailman/listinfo/mininet-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mininet-discuss