如何在LINUX下安装Quagga

来源:本站原创 软件 超过围观 0条评论

考虑到quagga能模拟cisco路由器效果 所以安装使用体验下效果

 

对应的官方使用文档:

http://www.nongnu.org/quagga/docs/docs-info.html#VTY-shell-integrated-configuration

下载最新版本quagga-0.99.17.tar.gz

 

  • 安装过程:

[root@nagios quagga-0.99.17]# ./configure –prefix=/etc/quagga –disable-ipv6 –enable-user=root –enable-group=root –enable-vty-group=root  -enable-vtysh –with-libpam

[root@nagios quagga-0.99.17]# make

[root@nagios quagga-0.99.17]# make install

[root@nagios ~]#  cd /etc/quagga/etc
[root@nagios etc]#  cp zebra.conf.sample  zebra.conf

变更/etc/service文件

zebrasrv      2600/tcp            # zebra service
zebra         2601/tcp            # zebra vty
ripd          2602/tcp            # RIPd vty
ripngd        2603/tcp            # RIPngd vty
ospfd         2604/tcp            # OSPFd vty
bgpd          2605/tcp            # BGPd vty
ospf6d        2606/tcp            # OSPF6d vty
ospfapi       2607/tcp            # ospfapi
isisd         2608/tcp            # ISISd vty

 

  • 运行方式:

[root@nagios etc]#   /etc/quagga/sbin/zebra -h
Usage : zebra [OPTION…]

Daemon which manages kernel routing table management and redistribution between different routing protocols.

-b, –batch        Runs in batch mode
-d, –daemon       Runs in daemon mode
-f, –config_file  Set configuration file name
-i, –pid_file     Set process ide

[root@nagios etc]#  /etc/quagga/sbin/zebra -d
[root@nagios etc]#   ps -ef | grep zebra
root     27881     1  0 16:13 ?        00:00:00 /etc/quagga/sbin/zebra -d

 

  • 使用方式: telnet 127.0.0.1 2601  (密码在zebra.conf文件内)

telnet 127.0.0.1 2601
Trying 127.0.0.1…
Connected to nagios.JF.com (127.0.0.1).
Escape character is ‘^]’.

Hello, this is Quagga (version 0.99.17).
Copyright 1996-2005 Kunihiro Ishiguro, et al.
User Access Verification

Password:
Router> en
Password:
Router#

wKioL1QkDXDyh7CEAABsv78sgDc119.jpg

 

试验环境做两台测试环境

 

服务启动方式

wKioL1QkHIuxzA21AADr_HpIoUA094.jpg

 

注:

管理接口telnet 127.0.0.1 2601

RIP进程  telnet 127.0.0.1 2602

ospf 进程 telnet 127.0.0.1 2604

版权信息:原创文章:万维网
本文链接:http://www.wan-wei.net/?p=36转载请注明转自万维网
如果喜欢:点此订阅本站

13106025453
咨询客服