|
|
================== 文章作者:haijd ==================
================= 转载时请保留此信息 ================
朋友想用QuickLinux做个代理服务器,要带六百多台电脑。本来QuickLinux AS4已经有了Shorewall,但朋友说在论坛上看到有人用Shorewall做的代理服务器出过一些问题,所以想找一个像Cisco路由器一样的软件来做个路由器。
这样就只能选择Zebra了,但不知道用Zebra做代理的话性能上怎么样,还希望了解的朋友给我说一下。
1、安装gcc
因为QL AS4默认没有包含gcc,所以我们还要先装上gcc。
- #apt-get updata
- #apt-get install gcc
复制代码
2、下载、解压、安装Zebra
Zebra的最新版本号是0.95,我们先将它下载下来:
- wget [url]ftp://ftp.zebra.org/pub/zebra/zebra-0.95.tar.gz[/url]
- tar xzvf zebra-0.95.tar.gz
- cd zebra-0.95
- ./configure
- make
- make install
- make clean
复制代码
3、设置相关文件
编辑services文件:
加入以下内容:
- # GNU Zebra services
- #
- zebrasrv 2600/tcp
- zebra 2601/tcp
- ripd 2602/tcp
- ripng 2603/tcp
- ospfd 2604/tcp
- bgpd 2605/tcp
- ospf6d 2606/tcp
复制代码
创建zebra.con:
- #cd /usr/local/etc
- #cp zebra.conf.sample zebra.conf
复制代码
4、运行、测试
- /usr/local/sbin/zebra -d
- telnet 127.0.0.1 2601
复制代码
可以了吧,Zebra会提示输入口令,我们通过/usr/local/etc/zebra.conf可以看到口令是zebra,enable口令也是zebra。输 入口令zebra,得到路由器用户模式提示符:
进入特权模式:
- Router> en
- Password:
- Router#
复制代码
输入一个问号,看看Zebra提供了多少路由命令:
- Router #?
- configure Configuration from vty interface
- copy Copy configuration
- debug Debugging functions (see also 'undebug')
- disable Turn off privileged mode command
- end End current mode and change to enable mode.
- exit Exit current mode and down to previous mode
- help Description of the interactive help system
- list Print command list
- no Negate a command or set its defaults
- quit Exit current mode and down to previous mode
- show Show running system information
- terminal Set terminal line parameters
- who Display who is on vty
- write Write running configuration to memory, network, or terminal
复制代码
可以了,慢慢研究吧!
参考文章:
用Zebra0.95把ML配置成路由器
作者:tip2002
出自:http://www.linuxfans.org/nuke/mo ... amp;highlight=zebra |
|