This repository contains a set of libraries and scripts that build on top of Mininet to construct topologies that include L3 routing elements. Quagga is used to construct routes that support a variety of routing protocols.
sudo apt-get install mininet
sudo apt-get install quagga
sudo pip install ipaddress
(if that doesn't work use sudo apt-get install python-pip
)