quagga是一款開源的軟件。
先將下載好的quagga解壓,然後進入目錄。
1.檢查環境,下發makefile
./configure --enable-vtysh --enable-user=root --enable-group=root --enable-vty-group=root
如果沒有權限,請進入root或者sudo執行;chmod 777 configure //確保有執行權限
2. make
3. make install
4.進入命令行配置
vtysh 或 telnet localhost 2601
5.安裝完成後默認的可執行文件在目錄 /usr/local/sbin, 配置文件在/usr/local/etc中
安裝時遇到的錯誤總結:以centos爲例:
1.未安裝gcc :yum -y install gcc
2.未安裝支持包: configure: error: vtysh needs libreadline but was not found and usable on your system
yum -y install ncurses-devel
yum –y installreadline-devel
3.configure錯誤:checking whetherbuild environment is sane... configure: error: newly created file is older thandistributed files!
cp configure configure.bak
rm configure
cp configure.bak configure
4.未啓用zebra配置:
進入/usr/local/etc目錄,cp zebra.conf.sample zebra.conf
啓用其他模塊時,也要啓用相應的配置文件,如啓用OSPF,就需要cp ospf.conf.sample ospf.conf