分类: 系统运维
2009-02-20 17:26:46
首先,我先说一下实验环境:工大瑞普CCNA模拟器。实验的拓扑图如上。
本次实验的目的:
分析无类路由协议发送的路由信息内容。
实验步骤:
按照拓扑图对路由器的各个接口配置
每台路由器上开启RIPv1
开启debug ip rip
以下是三台路由器的RIP的debug信息:
London的RIP信息:
00:06:36: RIP: received v1 update from
00:06:36: 172.16.
00:06:36: 192.168.
00:06:52: RIP: sending v1 update to 255.255.255.255 via Serial1/1 (
00:06:52: RIP: build update entries
00:06:52: subnet
00:06:52: RIP: sending v1 update to 255.255.255.255 via Loopback0 (
00:06:52: RIP: build update entries
00:06:52: subnet
00:06:52: network 172.16.0.0 metric 2
00:06:52: network 192.168.1.0 metric 2
00:06:52: RIP: sending v1 update to 255.255.255.255 via Loopback1 (
00:06:52: RIP: build update entries
00:06:52: network 172.16.0.0 metric 2
00:06:52: network 192.168.1.0 metric 2
Florence的RIP信息:
00:06:30: RIP: received v1 update from 172.16.3.1 on Serial1/1
00:06:30: 172.16.
00:06:35: RIP: sending v1 update to 255.255.255.255 via Serial1/0 (
00:06:35: RIP: build update entries
00:06:35: network 172.16.0.0 metric 1
00:06:35: network 192.168.1.0 metric 1
00:06:35: RIP: sending v1 update to 255.255.255.255 via Serial1/1 (172.16.3.2)
00:06:35: RIP: build update entries
00:06:35: network
00:06:35: network 192.168.1.0 metric 1
00:06:35: RIP: sending v1 update to 255.255.255.255 via Loopback0 (192.168.1.1)
00:06:35: RIP: build update entries
00:06:35: network
00:06:35: network 172.16.0.0 metric 1
00:06:51: RIP: received v1 update from
00:06:51:
Denver的RIP信息:
00:06:32: RIP: received v1 update from 172.16.3.2 on Serial1/0
00:06:32:
00:06:32: 192.168.
00:06:54: RIP: sending v1 update to 255.255.255.255 via Serial1/0 (172.16.3.1)
00:06:54: RIP: build update entries
00:06:54: subnet 172.16.1.0 metric 1
00:06:54: RIP: sending v1 update to 255.255.255.255 via Loopback0 (172.16.1.1)
00:06:54: RIP: build update entries
00:06:54: network
00:06:54: subnet 172.16.3.0 metric 1
00:06:54: network 192.168.1.0 metric 2
00:06:54: RIP: sending v1 update to 255.255.255.255 via Loopback1 (172.16.2.1)
00:06:54: RIP: build update entries
00:06:54: network
00:06:54: network 192.168.1.0 metric 2
我们以London路由器为例来进行分析:
London路由器有3个接口,1个串口,2个回环接口,其中loopback0接口和s1接口具有相同的子网掩码,而loopback1与这两个接口的子网掩码不同,但是这三个接口的主网络号是相同的。从debug的信息来看,对于s1接口,RIP对其发布了一个网络,即loopback0所在的网络,而并没有发布loopback1所在的网络。对于loopback0接口,RIP对其发布了3个网络,两个从s1学来的网络和s1所在的网络。对于loopback1接口,RIP对其发布了两个从s1学到的网络,其余的网络均没有。
从以上的信息我们可以分析出RIP对各个接口通告的特性:
1. 通告与该接口主网络号一致,并且子网掩码一致的网络
2. 通告与该接口主网络号不一致的其他接口。
到此,我们的实验结束。
另外,我附上路由器收到关于某网络的信息时,对数据包的子网掩码的匹配方法:
1. 如果接收信息的接口所属主类网络与这个网络相同但分属不同子网,那么路由器就应用配置在接口上的掩码。
2. 如果接收信息的接口所属主类网络与此网络不同,那么路由器就应用缺省的有类别子网掩码。