基于Linux下动态路由协议测试
作者:梁剑
Email:liang@bohuatech.com
2006-1-17
【摘要】
本文主要介绍配置动态路由协议。测试的工具为zebra,测试的协议包括RIPv2、OSPF,其他BGP、BGP-4等协议由于环境原因没有测试。
【关键字】
RIP、OSPF、zebra
【正文】
对于大型网络环境一般需要动态路由协议的支持,尤其是在电信行业,作为汇聚层设备,象Cisco、HuaWei等网络设备厂商都支持。本文介绍的动态路有协议是一个开源项目(zebra),可以和以上厂商的协议兼容。下面分网络环境和测试过程介绍。
网络环境:
说明:
R1、R2、R3三台Linux 机器。
|
设备 |
网络 |
接口地址 |
接口地址 |
|
R1 |
3.3.3.0/24 |
192.168.101.2/30 |
192.168.102.1/30 |
|
R2 |
2.2.2.0/24 |
192.168.101.1/30 |
192.168.100.1/30 |
|
R3 |
4.4.4.0/24 |
192.168.100.2/30 |
192.168.102.2/30 |
测试过程:
1) RIP
-------------------------------------------------------------
R1:
配置文件如下:
ripd# show running-config
Current configuration:
!
hostname ripd
password zebra
log stdout
!
interface lo
!
interface eth0
!
interface eth1
!
interface eth2
!
interface eth3
!
interface tap0
!
router rip
network 3.3.3.0/24
network 192.168.0.0/16
passive-interface eth0
!
line vty
!
End
----------------------------------------------------------------
R2:
配置文件如下:
ipd# show running-config
Current configuration: