NS3(1)---dce及quagga的安装

介绍安装ns3,ns3-dce,ns3-dce-quagga的方法及如何添加对isis协议的支持.

  • 安装必要packages
    运行123.sh及234.sh两个sh脚本文件
---123.sh---
sudo apt-get install gcc g++ python -y
sudo apt-get install gcc g++ python python-dev -y
sudo apt-get install mercurial -y
sudo apt-get install bzr -y
sudo apt-get install gdb valgrind -y
sudo apt-get install gsl-bin libgsl0-dev libgsl0ldbl -y
sudo apt-get install flex bison libfl-dev -y
sudo apt-get install g++-4.6 gcc-4.6 -y
sudo apt-get install tcpdump -y
sudo apt-get install sqlite sqlite3 libsqlite3-dev -y
sudo apt-get install libxml2 libxml2-dev -y
sudo apt-get install libgtk2.0-0 libgtk2.0-dev -y
sudo apt-get install vtun -y
sudo apt-get install uncrustify -y
sudo apt-get install doxygen graphviz imagemagick -y
sudo apt-get install texlive texlive-extra-utils texlive-latex-extra -y
sudo apt-get install python-sphinx dia -y
sudo apt-get install python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev -y
sudo apt-get install libboost-signals-dev libboost-filesystem-dev -y
sudo apt-get install openmpi* -y
sudo apt-get install python-pygccxml -y
sudo apt-get install python-dev -y
sudo apt-get install python-pygraphviz -y
sudo apt-get install python-kiwi -y
sudo apt-get install python-pygoocanvas -y
sudo apt-get install python-gnome2 -y
sudo apt-get install python-gnome-desktop -y
sudo apt-get install python-rsvg -y
---234.sh---
sudo apt-get install autoconf -y
sudo apt-get install automake -y
sudo apt-get install flex -y
sudo apt-get install git-core -y
sudo apt-get install wget -y
sudo apt-get install g++ -y
sudo apt-get install libc-dbg -y
sudo apt-get install bison -y
sudo apt-get install indent -y
sudo apt-get install pkgconf -y
sudo apt-get install libssl-dev -y
sudo apt-get install libsysfs-dev -y
sudo apt-get install gawk -y
  • 输入配置命令

    $ hg clone http://code.nsnam.org/bake bake
    $ export BAKE_HOME=`pwd`/bake
    $ export PATH=$PATH:$BAKE_HOME
    $ export PYTHONPATH=$PYTHONPATH:$BAKE_HOME
    mkdir dce
    cd dce
    bake.py configure -e dce-ns3-|version| -e dce-quagga-|version|
    bake.py download
    bake.py build

    目前最新ns3-dce与ns3-dce-quagga版本都为1.7

    注意事项

    1. 在bake.py download时,可能会遇到一些找不到环境的情况,例如qt4,libc等.解决方法为,sudo apt-get install ..(百度:ubuntu软件包…)
    sudo apt-get install python-setuptools
    sudo apt-get install libpcap-dev
    sudo apt-get install libqt4-dev
    1. 修改两个bakefile.xml中关于quagga module 的配置选项,在./configure中加入–enable-isisd与–enable-multipath=0,在post_installation 中加入/bin/cp isisd/isisd $INSTALLDIR/bin_dce;
  • 修改quagga-helper.cc与quagga-helper.h,添加dce-quagga-isisd.cc示例
    FIXME
    如何解决对isis协议的完全支持尚未完成.

参考:ns3-dce-quagga官方安装文档

你可能感兴趣的:(ns3,ns3,quagga)