rip eigrp 和ospf之间的路由重发布
版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://sky551.blog.51cto.com/368705/106399 |
在前面已经做个了一个简单的路由重发布实验,这一次呢增加一点难度。
实验的拓扑图在附件中的,还有简单的说明。
实验环境:4台路由器,三台主机,ip为top中分配的。
实验概要:在网络中运行了不同的路由协议,那么两个运行了不同的路由协议的路由器是不能够交换路由表的,这样网络中的每一个路由器都不能拥有整个网络的路由路径,所以这里我们就用到了路由重发布技术。
router0的配置好下:
Router#show running-config
Building configuration... Current configuration : 1003 bytes
! version 12.2 no service password-encryption ! hostname Router ! ! ! ! ! ip ssh version 1 ! ! interface FastEthernet0/0 no ip address duplex auto speed auto shutdown ! interface FastEthernet0/1 no ip address duplex auto speed auto shutdown ! interface Serial1/0 ip address 11.0.0.1 255.255.255.252 clock rate 64000 ### 在dce设备上封装时钟频率 interface Serial1/1 ip address 10.0.0.2 255.255.255.252 clock rate 64000 ! interface Serial1/2 ip address 12.0.0.1 255.255.255.252 clock rate 64000 ! interface Serial1/3 no ip address shutdown ! router eigrp 10 redistribute rip metric 1544 5 255 1 1500 redistribute ospf 11 metric 1544 5 255 1 1500 network 10.0.0.0 0.0.0.3 no auto-summary ! router ospf 11 ########在发布为ospf时不配置metric log-adjacency-changes redistribute rip subnets redistribute eigrp 10 subnets network 11.0.0.0 0.0.0.3 area 0 ! router rip version 2 redistribute eigrp 10 metric 2 redistribute ospf 11 metric 3 network 12.0.0.0 no auto-summary ########不要忘了这个命令,取消自动汇总 ip classless ! ! ! ! ! line con 0 line vty 0 4 login ! ! end 在router2路由器上要配置的就是让直连的两个网络运行在eigrp 10 上,并对相应的串口和以太网口配置ip地址。部分配置好下:
#interface FastEthernet0/0
#ip address 192.168.0.1 255.255.255.0 #interface Serial1/1
#ip address 10.0.0.1 255.255.255.252 #router eigrp 10
#network 192.168.0.0 #network 10.0.0.0 0.0.0.3 #no auto-summary router1路由器的部分配置好下:
#interface FastEthernet0/0
#ip address 13.155.0.1 255.255.255.192 #interface Serial1/2
#ip address 12.0.0.2 255.255.255.252 #router rip
#version 2 #network 12.0.0.0 #network 13.0.0.0 #no auto-summary router3的配置好下:
#interface FastEthernet0/0
#ip address 172.16.0.1 255.255.255.0 #interface Serial1/0
#ip address 11.0.0.2 255.255.255.252 #outer ospf 11
#etwork 11.0.0.0 0.0.0.3 area 0
#etwork 172.16.0.0 0.0.0.255 area 0 接下来我们可以通过对各个路由器的路由表进行查看,下面是router2的路由表,我们可以清楚的看到它已经了解了整个网络了。
Gateway of last resort is not set
10.0.0.0/30 is subnetted, 1 subnets
C 10.0.0.0 is directly connected, Serial1/1 12.0.0.0/30 is subnetted, 1 subnets D EX 12.0.0.0 [170/20513280] via 10.0.0.2, 01:03:24, Serial1/1 13.0.0.0/8 is variably subnetted, 2 subnets, 2 masks D EX 13.0.0.0/8 [170/20513280] via 10.0.0.2, 00:54:18, Serial1/1 D EX 13.155.0.0/26 [170/20513280] via 10.0.0.2, 00:00:25, Serial1/1 172.16.0.0/24 is subnetted, 1 subnets D EX 172.16.0.0 [170/20513280] via 10.0.0.2, 01:03:05, Serial1/1 C 192.168.0.0/24 is directly connected, FastEthernet0/0 实验最后在各个主机之间进行ping命令测试就行了:
pc0---ping---pc1
PC>ping 172.16.0.2
Pinging 172.16.0.2 with 32 bytes of data:
Reply from 172.16.0.2: bytes=32 time=125ms TTL=125
Reply from 172.16.0.2: bytes=32 time=111ms TTL=125 Reply from 172.16.0.2: bytes=32 time=125ms TTL=125 Reply from 172.16.0.2: bytes=32 time=125ms TTL=125 Ping statistics for 172.16.0.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 111ms, Maximum = 125ms, Average = 121ms pc0--ping--pc2
PC>ping 192.168.0.2
Pinging 192.168.0.2 with 32 bytes of data:
Reply from 192.168.0.2: bytes=32 time=156ms TTL=125
Reply from 192.168.0.2: bytes=32 time=109ms TTL=125 Reply from 192.168.0.2: bytes=32 time=109ms TTL=125 Reply from 192.168.0.2: bytes=32 time=125ms TTL=125 Ping statistics for 192.168.0.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 109ms, Maximum = 156ms, Average = 124ms 看看,实验成功了。。我在做的时候也出现了这样那样的问题,最后还是做成功了,坚持,仔细就是成功!!!!!!!
本文出自 “一生学习!” 博客,请务必保留此出处http://sky551.blog.51cto.com/368705/106399 本文出自 51CTO.COM技术博客 |
附件下载:
实验top
实验top

sky_551
博客统计信息
热门文章
最新评论
友情链接