quagga官网:http://www.quagga.net/
测试环境:Ubuntu9.10
测试版本:quagga-0.99.16.tar.gz
1、下载源码:http://www.quagga.net/download/
2、解压:tar xzvf quagga-0.99.16.tar.gz
3、配置: ./configure --prefix=/usr
配置输出:
Quagga configuration
--------------------
quagga version : 0.99.16
host operating system : linux-gnu
source code location : .
compiler : gcc
compiler flags : -Os -fno-omit-frame-pointer -g -std=gnu99 -Wall -Wsign-compare -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wchar-subscripts -Wcast-qual
make : make
includes :
linker flags : -lcrypt -lrt -ltermcap -lreadline -lm
state file directory : /var/run
config file directory : /usr/local/etc
example directory : /usr/local/etc
user to run as : root
group to run as : root
group for vty sockets :
config file mask : 0600
log file mask : 0600
The above user and group must have read/write access to the state file
directory and to the config files in the config file directory.
4、编译:make
5、安装:make install
注:上面的安装过程可省略为:sudo apt-get install quagga
6、添加test组和用户
chown test:test /var/run/quagga
Mkdir /var/log/quagga/
9、修改 /etc/services //just for telnet
zebrasrv 2600/tcp # zebra service
ospfapi 2607/tcp # ospfapi
cp /etc/quagga/zebra.conf.example /etc/quagga/zebra.conf
! zebra sample configuration file
enable password zebra
2008/10/22 16:59:22 ZEBRA: Could not lock pid_file /var/run/quagga/zebra.pid, exiting
12、登陆
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Hello, this is Quagga (version 0.99.13).
Copyright 1996-2005 Kunihiro Ishiguro, et al.
User Access Verification
Quagga VTY provides advanced help feature. When you need help,
anytime at the command line please press '?'.
If nothing matches, the help list will be empty and you must backup
until entering a '?' shows the available options.
Two styles of help are provided:
1. Full help is available when you are ready to enter a
command argument (e.g. 'show ?') and describes each possible
argument.
2. Partial help is provided when an abbreviated argument is entered
and you want to know what arguments match the input
(e.g. 'show me?'.)
Router#
13、 使用