Reputation: 929
Inside a tmux session on iTerm2, I'm running mininet on vagrant with ubuntu/trusty64
as base box. I'm looking for a solution to start shell on multiple hosts in mininet topology in iTerm2 (ideally as new pane/tab in my existing tmux session).
Example -
# ssh into vagrant box
vagrant ssh
# create minimal topology
sudo mn --topo minimal --controller remote
# opens xterm (XQuartz) window, connected to host1
mininet> xterm h1
# starts bash on host1
mininet> h1 bash
Upvotes: 3
Views: 8496
Reputation: 1
If you want to access all hosts altogether, this answers might be useful https://stackoverflow.com/a/60420439/15135320 . It is also usable for those who can't execute xterm (e.g. those who run mininet in a remote machine and connect to it with ssh, so they don't have access to machine's display)
Upvotes: 0
Reputation: 679
Method one:
You can run shell command and script in the xterm window.
Method two: You can run directly on mininet console.
mininet> h1 bash script.sh
Write sth on h1
mininet>
The script.sh
contains simple echo command.
Upvotes: 3