Search Mailing List Archives
[mininet-discuss] Questions about Mininet
ibrahimmun at hotmail.com
Thu May 24 12:43:05 PDT 2012
You can save your time following the new tutorial here : http://www.openflow.org/wk/index.php/OpenFlow_Tutorial
with the new VM : http://www.openflow.org/downloads/OpenFlowTutorial-101311.zip
> Date: Thu, 24 May 2012 07:56:07 -0400
> From: WEM19 at pitt.edu
> To: mininet-discuss at mailman.stanford.edu
> Subject: [mininet-discuss] Questions about Mininet
> I have some questions about running customized topology in mininet.
> I download OpenFlowVM from
> and run it in VMware Station.
> Then, I create a file called homework1b.topo.py, and place it in the
> folder ~/mininet/custom/
> Here is the content:
> from mininet.net import Mininet
> from mininet.node import Controller
> from mininet.cli import CLI
> from mininet.log import setLogLevel, info
> def homework1b():
> "Create a network with three switches and five hosts."
> net = Mininet( controller=Controller )
> info( '*** Adding controller\n' )
> net.addController( 'c0' )
> info( '*** Adding hosts\n' )
> h1 = net.addHost( 'h1', ip='10.0.0.1' )
> h2 = net.addHost( 'h2', ip='10.0.0.2' )
> info( '*** Adding switch\n' )
> s1 = net.addSwitch( 's1' )
> s2 = net.addSwitch( 's2' )
> s3 = net.addSwitch( 's3' )
> info( '*** Creating links\n' )
> h1.linkTo( s1 )
> s1.linkTo( s2 )
> s2.linkTo( s3 )
> h2.linkTo( s3 )
> info( '*** Starting network\n' )
> info( '*** Running CLI\n' )
> CLI( net )
> info( '*** Stopping network' )
> if __name__ == '__main__':
> setLogLevel( 'info' )
> In VM console, I use command
> sudo python ~/mininet/custom/homework1b_topo.py
> Then, message showed like this:
> *** Removing openvswitch_mod
> *** Loading ofdatapath
> Error inserting ofdatapath – is it installed and available via modprobe?
> Error was: “FATAL: Module ofdatapath not found.”
> Failed to insert ofdatapath – quitting.
> My questions are:
> 1. Where did I do wrong?
> 2. Am I missing module ofdatapath? If so, how should I install it?
> 3. How should I know this Mininet is the newest version? And how to update
> it to the newest version?
> 4. How should I know NOX installed is the newest version? And how to
> update it to the newest version?
> Looking forward to hearing from you.
> Thank you very much.
> Weiyun Mao
> wem19 at pitt.edu
> mininet-discuss mailing list
> mininet-discuss at lists.stanford.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mininet-discuss