Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[mininet-discuss] setARP not taking effect?

Giannis Sapountzis johnsub1985 at
Thu Oct 31 05:14:08 PDT 2013

I'll upgrade to 2.1.0 at some point where this should be working as Bob said.

In the meantime i followed your suggestion and moved everything into my test method where i build my net topology. Here is what it looks like now and it seems to work:

    net = Mininet(controller=RemoteController, switch=OVSKernelSwitch, link=TCLink)

    c0 = net.addController('c0', ip='', port=6633)

    h1 = net.addHost('h1', ip="")

    # h1.setIP("", 24, "h1-eth0") # this does not work when at this point, e.g if i do  h1 = net.addHost('h1') and then try to set the IP at this point.

    h1.setMAC("00:00:00:00:00:01", "h1-eth0")

    print "\nInstalling ARP entries"

    h1.setARP("", "00:00:00:00:00:02")

    print "Dumping host connections"

Question: It seems that some of the set methods take no effect if you apply then before starting your network (net.start ) (e.g setARP, setIP). Why is that?


On Oct 29, 2013, at 8:42 PM, Gregory Gee <gee.developer at> wrote:

>  Instead of using my_topo to make your network, try putting it all in this section.  Or maybe move all the 'set' actions into my_topo. I find using topo parameter does all the building during constructor which can't be changed after.  Just use the mininet/examples/ as a starting point.
> On 29/10/2013 1:51 PM, Giannis Sapountzis wrote:
>> Hi everyone.
>> I'm trying to set up some static arp entries for my hosts (Mininet 2.0.0) but it seems that when i start up my topology the entries are not there and my hosts still send arp requests.
>> Here is what i have done so far (for simplicity just for one host):
>> net = Mininet(controller=RemoteController, switch=OVSKernelSwitch, topo=my_topo, link=TCLink)
>> h1 = net.get('h1')
>> h1.setIP("", 24, "h1-eth0")
>> h1.setMAC("00:00:00:00:00:01", "h1-eth0")
>> h1.setARP("", "00:00:00:00:00:02")
>> h1.setARP("", "00:00:00:00:00:03")
>> h1.setARP("", "00:00:00:00:00:04")
>> # or use
>> # h1.cmd('arp -s 00:00:00:00:00:
>> # h1.cmd('arp -s 00:00:00:00:00:03')
>> # h1.cmd('arp -s 00:00:00:00:00:04')
>> # which also does not work for me
>> h1.setDefaultRoute("h1-eth0")
>> net.start()
>> print "Dumping host connections"
>> dumpNodeConnections(net.hosts)
>> CLI(net)
>> net.stop()
>> I have also tried net = Mininet(controller=RemoteController, switch=OVSKernelSwitch, topo=my_topo, link=TCLink, autoStaticArp=True) and running net.staticArp() before net.start()
>> Obviously i'm missing something. Any suggestions?
>> _______________________________________________
>> mininet-discuss mailing list
>> mininet-discuss at
> _______________________________________________
> mininet-discuss mailing list
> mininet-discuss at

More information about the mininet-discuss mailing list