Lao Tse
Lao Tse

Reputation: 191

How to execute python scripts on mininet nodes?

I am just playing a little bit with mininet. I created a topology and now I want to execute a http server on one of the nodes and simulate connections to it from the other nodes.

How can I do that?

Upvotes: 1

Views: 1981

Answers (1)

aousterh
aousterh

Reputation: 118

You can use the mininet command line interface to execute commands on nodes. For example, h1 <cmd> runs the command <cmd> on h1. You can also spawn an xterm for each host by running mininet with the -x parameter (sudo mn -x). Either method allows you to run commands (including python scripts) on mininet nodes.

Upvotes: 0

Related Questions