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 h2and then in xterm
# ifconfig lo upnow you can run scapy. In invoked xterm type:
#scapy