- 论坛徽章:
- 0
|
计算机系统必须是linux OS,需要两块网卡 两个不同网段的ip
10.0.0.1/8
192.168.1.1/24
安装包
zebra-0[1].94.tar.gz
配置:
#ifconfig eth0 192.168.1.1 netmask 255.255.255.0
#ifconfig eth1 10.0.0.1 netmask 255.0.0.0
注意:必须写网卡配置文件
#cd /usr/src
#tar zvxf zebra-0[1].94.tar.gz
#cd zebra-0.94
#./configure
#make
#make install
#cd /usr/local/etc
#cp zebra.conf.sample zebra.conf
#cp ripd.conf.sample ripd.conf
#./zebra –d (定义端口)
#./ripd –d (定义端口)
分别配置zebra(2601) ripd(2602)
#telnet 192.168.1.1 2601
passwd:zebra
router>en
passwd:zebra
router#conf t
router(config)#hostname caolei
router(config)#int eth0
router(config-if)#ip add 192.168.1.1/24
router(config-if)#no shut
router(config-if)#exit
router#int eth1
router(config-if)#ip add 10.0.0.1/8
router(config-if)#no shut
router(config-if)#ctrl+z
router#sh run
router#copy run start
#telnet 192.168.1.1 2602
passwd: zebra
ripd>en
ripd#conf t
ripd(config)#router rip
ripd(config)#network 10.0.0.0/8
ripd(config)#network 192.168.1.0/24
ripd(config)#quit
ripd#sh ip rip
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/55840/showart_447918.html |
|