pythonmininetpox

How to access created nodes in a mininet topology?


I am new in mininet. I created a custom topology with 2 linear switches and 4 nodes. I need to write a python module accessing each nodes in that topology and do something but I don't know how.

Any idea please?


Solution

  • try the following:

    s1.cmd('ifconfig s1 192.168.1.0')

    h1.cmd('ifconfig h1 192.168.2.0')