首页 > 代码库 > LINUX下安装Quagga

LINUX下安装Quagga

考虑到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

 

后续使用cisco设备经验操作即可;该设备路由更新可以做到动态解决内核所有路由问题。

LINUX下安装Quagga