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] Scapy error

Liyuan Wang wangliyuan316 at
Wed Jan 9 12:51:08 PST 2013

Hi all,

I saw this previous post(as below).
I encountered the same problem.
Anyone know the answer?



Hi all,

I'm attempting to use Scapy, a python library,
( to do some pretty simple
injection from end-hosts in Mininet.  However, scapy encounters an error
when starting in mininet.  The output I get using the default topology and
controller when I attempt to start scapy is at the end of this email (error
in bold).  Note that this error does not occur when I try to start scapy
outside of mininet, so it's not a problem with scapy/my VM in general.

Any suggestions?  Alternately, any suggestions for a simple way to do packet
injection in mininet?




*** Adding controller
*** Creating network
*** Adding hosts:
h2 h3
*** Adding switches:
*** Adding links:
(s1, h2) (s1, h3)
*** Configuring hosts
h2 h3
*** Starting controller
*** Starting 1 switches
*** Starting CLI:
mininet> h2 scapy
/var/lib/python-support/python2.5/ Warning: 'with' will become
a reserved keyword in Python 2.6
/var/lib/python-support/python2.5/ Warning: 'with' will become
a reserved keyword in Python 2.6
INFO: did not find python gnuplot wrapper . Won't be able to plot
INFO: Can't import PyX. Won't be able to use psdump() or pdfdump()
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/", line 12958, in <module>
    class Conf(ConfClass):
  File "/var/lib/python-support/python2.5/", line 13009, in Conf
    route = Route()
  File "/var/lib/python-support/python2.5/", line 917, in __init__
  File "/var/lib/python-support/python2.5/", line 926, in resync
    self.routes = read_routes()
  File "/var/lib/python-support/python2.5/", line 1241, in
    ifreq = ioctl(s, SIOCGIFADDR,struct.pack("16s16x","lo"))
*IOError: [Errno 99] Cannot assign requested address*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the mininet-discuss mailing list