quagga安装

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

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