http://blog.chinaunix.net/uid-25513153-id-212328.html
http://download.savannah.gnu.org/releases/quagga/quagga-1.2.1.tar.gz
$ ./configure --enable-vtysh --enable-user=root --enable-group=root --enable-vty-group=root
$ sudo apt-get install gawk
$ sudo apt-get install libreadline6 libreadline6-dev
$ sudo apt-get install libc-ares-dev
$ make
$ sudo apt-get install automake
$ sudo apt-get install texinfo
$ sudo make install
$ cd /usr/local/etc
$ sudo cp zebra.conf.sample zebra.conf
$ sudo zebra -d
If zebra: error while loading shared libraries: libzebra.so.1: cannot open shared object file: No such file or directory
$ cd /usr/local/lib
$ sudo cp libzebra.* /lib
$ sudo rm libzebra.*
$ telnet localhost 2601
$ cd /usr/local/etc
$ cp zebra.conf.sample r1zebra.conf
$ cp zebra.conf.sample r2zebra.conf
$ cd /usr/local/etc
$ cp ospfd.conf r1ospfd.conf
$ cp ospfd.conf r2ospfd.conf
hostname r1_ospfd
password 123
enable password 123
router ospf
ospf router-id 10.0.3.10
network 10.0.3.0/24 area 0
network 10.0.1.0/24 area 0
debug ospf event
log file /usr/local/etc/r1ospfd.log
hostname r2_ospfd
password 123
enable password 123
router ospf
ospf router-id 10.0.3.20
network 10.0.3.0/24 area 0
network 10.0.2.0/24 area 0
debug ospf event
log file /usr/local/etc/r2ospfd.log
$ sudo python QuaggaOSPF.py
mininet> pingall
$ sudo python QuaggaOSPF (hybrid).py
$ cp zebra.conf.sample zebra.conf
$ cd /usr/local/etc
$ cp ospfd.conf.sample ospfd.conf
$ nano ospfd.conf
hostname hp2_ospfd
password 123
enable password 123
router ospf
ospf router-id 10.0.3.20
network 10.0.3.0/24 area 0
network 10.0.2.0/24 area 0
$ sudo zebra -d
$ sudo ospfd -d
$ sudo ifconfig eth0 10.0.2.100/24
$ sudo route add default gw 10.0.2.20
mininet> h1 ping 10.0.2.100
$ cd /usr/local/etc
$ sudo nano r1ospfd.conf
hostname r1_ospfd
password 123
enable password 123
router ospf
ospf router-id 10.0.3.10
network 10.0.3.0/24 area 0
network 10.0.1.0/24 area 0
network 10.0.4.0/24 area 0
debug ospf event
log file /usr/local/etc/r1ospfd.log
$ sudo nano r2ospfd.conf
hostname r2_ospfd
password 123
enable password 123
router ospf
ospf router-id 10.0.3.20
network 10.0.3.0/24 area 0
network 10.0.2.0/24 area 0
network 10.0.5.0/24 area 0
debug ospf event
log file /usr/local/etc/r2ospfd.log
$ sudo python QuaggaOSPF (SDN+NONSDN).py
mininet> pingall