一、安安装zebra
Configuring RIP with Quagga Routing Suite in Fedora
1.download quagga quagga-0.99.16.tar.gz
2.解压缩 #tar zxvf quagga-0.99.16.tar.gz
3.配置 #
cd quagga-0.99.16 #
./configure --prefix=/usr/local/zebra --enable-vtysh --enable-user=root --enable-group=root --enable-vty-group=root
在运行./configure后会出现 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 -lcap -ltermcap -lreadline -lm
state file directory : /var/run
config file directory : /home/kevinjzw/quagga/etc
example directory : /home/kevinjzw/quagga/etc
user to run as : kevinjzw
group to run as : kevinjzw
group for vty sockets : kevinjzw
config file mask : 0600
log file mask : 0600
4.编译
#make
5.安装
#make install
6. 编辑配置文件 更改将*.conf. .sample文件生成*.conf文件
#cd /home/kevinjzw/quagga/etc
# ls
bgpd.conf.sample isisd.conf.sample ripd.conf.sample zebra.conf.sample bgpd.conf.sample2 ospfd.conf.sample vtysh.conf.sample
# mv bgpd.conf.sample bgpd.conf
# cp isisd.conf.sample isisd.conf
其它类似……(mv/cp都可以)
把zebra下的bin和sbin加入$PATH /root/.bash_profile
PATH=$PATH:/usr/local/zebra/bin/:/usr/local/zebra/sbin/
7.运行zebra进程及路由进程
zebra -d
ospfd -d
bgpd -d
8、使用脚本刷配置
编辑广本文件bjlt
config terminal
router bgp 56009
network 122.115.57.3/32 route-map bgp_out1
network 218.245.2.76/32 route-map bgp_out1
end
wr
Quit
vtysh < bjlt