1.下载源码包,编译,安装 #tar xzvf quagga-0.99-20.tar.gz
#cd quagga-0.99.20
#./configure
#make
#make install安装好后,可执行文件在目录 /usr/local/sbin, 配置文件在/usr/local/etc2. 拷贝zebra配置文件: #sudo cp /usr/local/etc/zebra.conf.sample /usr/local/etc/zebra.conf3. 运行: #/usr/local/sbin/zebra -h //查看命令行选项
#sudo /usr/local/sbin/zebra -d -u root //-u 以root用户运行!!4.登录zebra的TTY: #telnet localhost 2601
//或者
#telnet localhost zebra默认密码:zebra====================================说明:1) 如果不能使用telnet, 则安装:#sudo yum install telnet2) selinux会影响zebra运行,关闭之:/etc/selinux/config文件中,设置为:disable# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
#SELINUX=enforcing
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted3) 如果使用非特权用户运行zebra, 则按如下操作:编译时指定 localstatdir #./configure --localstatedir=/var/run/quagga --sysconfdir=/etc/quagga
#make
#make install //添加quagga用户
#sudo useradd -r -d /usr/local/sbin -s /sbin/nologin quagga
//拷贝配置文件
#sudo cp /etc/quagga/zebra.conf.sample /etc/quagga/zebra.conf //设置localstatdir目录
#sudo mkdir /var/run/quagga
#sudo chown quagga /var/run/quagga
#sudo chgrp quagga /var/run/quagga
//运行
#sudo /usr/local/sbin/zebra -d //以quagga用户运行zebraLinux/Unix下pid文件作用浅析CentOS 6.0 源码 编译 安装 Bochs相关资讯 Quagga Quagga安装
- 如何在Quagga BGP路由器中过滤BGP (09/05/2015 19:45:27)
- Quagga上使用验证加固BGP会话安全 (05/27/2015 17:47:48)
- Quagga ospfd栈缓冲区溢出漏洞(CVE (07/05/2013 16:25:10)
| - Linux下使用Quagga(Zebra)搭建路由 (07/21/2015 09:48:50)
- 想玩路由器吗?使用 Quagga 将你的 (11/16/2014 18:51:45)
- Quagga OSPFv3实现拒绝服务漏洞 (09/17/2012 08:27:22)
|
本文评论 查看全部评论 (0)