Tuesday, February 26, 2013

Scapy in mininet

Scapy is a packet forging tool/library for python.
Mininet is a network emulator.
It would be nice to use them together, however when trying to use scapy in mininet namespace it throws an exception:
*IOError: [Errno 99] Cannot assign requested address*
The solution is to bring loopback interface up. Just type
mininet> xterm h2
and then in xterm
# ifconfig lo up
now you can run scapy. In invoked xterm type:
#scapy 


No comments:

Post a Comment