LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 741|回复: 0

在QuickLinux AS4上安装Zebra

[复制链接]
发表于 2005-4-25 10:33:11 | 显示全部楼层 |阅读模式
================== 文章作者:haijd ==================
================= 转载时请保留此信息 ================

朋友想用QuickLinux做个代理服务器,要带六百多台电脑。本来QuickLinux AS4已经有了Shorewall,但朋友说在论坛上看到有人用Shorewall做的代理服务器出过一些问题,所以想找一个像Cisco路由器一样的软件来做个路由器。
这样就只能选择Zebra了,但不知道用Zebra做代理的话性能上怎么样,还希望了解的朋友给我说一下。

1、安装gcc
    因为QL AS4默认没有包含gcc,所以我们还要先装上gcc。

  1. #apt-get updata
  2. #apt-get install gcc
复制代码


2、下载、解压、安装Zebra
    Zebra的最新版本号是0.95,我们先将它下载下来:

  1. wget [url]ftp://ftp.zebra.org/pub/zebra/zebra-0.95.tar.gz[/url]
  2. tar xzvf zebra-0.95.tar.gz
  3. cd zebra-0.95
  4. ./configure
  5. make
  6. make install
  7. make clean
复制代码


3、设置相关文件
    编辑services文件:

  1. vi /etc/services
复制代码

    加入以下内容:

  1. # GNU Zebra services
  2. #
  3. zebrasrv  2600/tcp
  4. zebra  2601/tcp
  5. ripd  2602/tcp
  6. ripng  2603/tcp
  7. ospfd  2604/tcp
  8. bgpd  2605/tcp
  9. ospf6d  2606/tcp
复制代码


    创建zebra.con:

  1. #cd /usr/local/etc
  2. #cp zebra.conf.sample zebra.conf
复制代码


4、运行、测试

  1. /usr/local/sbin/zebra -d
  2. telnet 127.0.0.1 2601
复制代码


    可以了吧,Zebra会提示输入口令,我们通过/usr/local/etc/zebra.conf可以看到口令是zebra,enable口令也是zebra。输 入口令zebra,得到路由器用户模式提示符:

  1. Router>
复制代码

    进入特权模式:

  1. Router> en
  2. Password:
  3. Router#
复制代码

    输入一个问号,看看Zebra提供了多少路由命令:

  1. Router #?
  2.   configure  Configuration from vty interface
  3.   copy       Copy configuration
  4.   debug      Debugging functions (see also 'undebug')
  5.   disable    Turn off privileged mode command
  6.   end        End current mode and change to enable mode.
  7.   exit       Exit current mode and down to previous mode
  8.   help       Description of the interactive help system
  9.   list       Print command list
  10.   no         Negate a command or set its defaults
  11.   quit       Exit current mode and down to previous mode
  12.   show       Show running system information
  13.   terminal   Set terminal line parameters
  14.   who        Display who is on vty
  15.   write      Write running configuration to memory, network, or terminal
复制代码


    可以了,慢慢研究吧!


参考文章:
用Zebra0.95把ML配置成路由器
作者:tip2002
出自:http://www.linuxfans.org/nuke/mo ... amp;highlight=zebra
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表