cisco学习笔记

      CCIE之路中。。。。其实我是一个天才,可惜天妒英才!o(∩_∩)o...哈哈

  IT博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  39 随笔 :: 5 文章 :: 36 评论 :: 0 Trackbacks

一:RIP 边界汇总实验

 

注意:RIP V1 V2以及RIPng 都会边界汇总,只不过V2以及RIPng能关闭,但是 V1是不能关闭的,想不要汇总只能将V1升级到V2

 

前面的标配就不配置了

R2#sh ip route

     172.16.0.0/24 is subnetted, 4 subnets

C       172.16.4.0 is directly connected, Loopback0

C       172.16.1.0 is directly connected, FastEthernet0/0

R       172.16.2.0 [120/1] via 172.16.1.1, 00:00:03, FastEthernet0/0

R       172.16.3.0 [120/1] via 172.16.1.1, 00:00:03, FastEthernet0/0

R    10.0.0.0/8 [120/1] via 172.16.1.1, 00:00:03, FastEthernet0/0

是汇总过的路由条目

R1向外发更新时与发送端口匹配看是否与该发送端口在同一网络,若是久不汇总发送子网信息给R2,若不是则汇总成汇总路由发给R2

解决方法:升级到V2

R1(config)#router rip

R1(config-router)#ver 2

R1(config-router)#no auto-summary

 

R2(config)#router rip

R2(config-router)#ver 2

R2(config-router)#no auto-summary

在看路由表发现已是子网信息了

R2#sh ip route

     172.16.0.0/24 is subnetted, 4 subnets

C       172.16.4.0 is directly connected, Loopback0

C       172.16.1.0 is directly connected, FastEthernet0/0

R       172.16.2.0 [120/1] via 172.16.1.1, 00:00:29, FastEthernet0/0

R       172.16.3.0 [120/1] via 172.16.1.1, 00:00:29, FastEthernet0/0

     10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

R       10.1.1.0/24 [120/1] via 172.16.1.1, 00:00:29, FastEthernet0/0

 

 

二:RIP v1不支持VLSM实验:

 

R1 R2 都运行V1版本

拓扑图与上面的图基本一致,只是在R1上再模拟出一个loopback 3

R1(config)#int loopback 3

R1(config-if)#ip add 172.16.5.1 255.255.255.128

注意掩码是25位的了不是24位的了

此时R2 是不会学到这一路由的,

查看路由表,果然没有次路由条目

R2#sh ip route

C       172.16.4.0 is directly connected, Loopback0

C       172.16.1.0 is directly connected, FastEthernet0/0

R       172.16.2.0 [120/1] via 172.16.1.1, 00:00:02, FastEthernet0/0

R       172.16.3.0 [120/1] via 172.16.1.1, 00:00:02, FastEthernet0/0

解决方法只有将V1升级到V2

R1(config)#router rip

R1(config-router)#ver 2

R1(config-router)#no auto-summary

 

R2(config)#router rip

R2(config-router)#ver 2

R2(config-router)#no auto-summary

 

再查看路由表发现已学到了

R2#sh ip route

     172.16.0.0/16 is variably subnetted, 5 subnets, 2 masks

C       172.16.4.0/24 is directly connected, Loopback0

R       172.16.5.0/25 [120/1] via 172.16.1.1, 00:00:05, FastEthernet0/0

C       172.16.1.0/24 is directly connected, FastEthernet0/0

R       172.16.2.0/24 [120/1] via 172.16.1.1, 00:00:05, FastEthernet0/0

R       172.16.3.0/24 [120/1] via 172.16.1.1, 00:00:05, FastEthernet0/0

posted on 2008-09-09 15:27 cisco交流平台 阅读(1054) 评论(0)  编辑 收藏 引用 所属分类: RIP
只有注册用户登录后才能发表评论。