Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Launching shell on mininet hosts in terminal

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
like image 579
system64 Avatar asked Nov 27 '25 20:11

system64


1 Answers

Method one: You can run shell command and script in the xterm window. enter image description here

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.

like image 157
Ehsan Ab Avatar answered Nov 29 '25 12:11

Ehsan Ab



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!