资料-RIP路由协议

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Destination/Mask
Nexthop
Cost Tag
Flags Sec
192.168.2.0/30
192.168.1.2
10
RA
12
10.1.1.1/32
192.168.1.2
20
RA
12
RIP邻居地址,与 邻居相连的接口
无类别路由和变 长的子网掩码
到目的网段的 度量,即跳数
Page11
配置RIP版本
RTA
S0/0/0
S0/0/0
192.168.1.0/30
.1
.2
RTB
[RTA-Serial0/0/0]rip summary-address 172.16.1.0 255.255.255.252
<RTB>display rip 1 route
Route Flags: R - RIP, T - TRIP
192.168.1.1
10
RA
21
172.16.1.3/32
192.168.1.1
10
RA
21
172.16.1.2/32
192.168.1.1
10
RA
21
172.16.1.1/32
192.168.1.1
10
RA
21
Page15
RIP路由手动聚合
L0:172.16.1.1/32 L1:172.16.1.2/32 L2:172.16.1.3/32
P - Permanent, A - Aging, S - Suppressed, G - Garbage-collect
---------------------------------------------------------------------------
Peer 192.168.1.1 on Serial0/0/0
Unused( set to all zeros)
路由 条目
IP address Unused( set to all zeros) Unused( set to all zeros)
Metric
Multiple fields, up to maximum of 25
路由 条目
Address Family Identifier
N1
C
N2
D
N3
E
N4
B
RTA
Response
RTB
Routing Table
目标网络 下一跳
N4
F
路由更 新
RTB
Routing Table
目标网络
下一跳
N1
A
N2
A
N3
A
N4
F
Page5
RIPv1 vs. RIPv2
RIPv1为有类别路由协议,不支持VLSM和CIDR<无类 别域间路由>
以广播的形式发送报文
Page10
显示RIP路由
[RTA]display rip 1 route
Route Flags: R - RIP, T - TRIP
collect
P - Permanent, A - Aging, S - Suppressed, G - Garbage-
---------------------------------------------------------------------Peer 192.168.1.2 on Serial0/0/1
Page2
RIP路由协议概述
RIP:Routing Information Protocol (路由信息协议) 一种距离矢量路由协议,属于IGP协议 RIP协议适用于中小型网络,有RIPv1和RIPv2两个版本 使用UDP进行路由信息的交互,目标端口号520 RIP支持:水平分割、毒性逆转和触发更新
RTA
RTB
192.168.1.0/30
.1
.2
[RTA-rip-1] network 172.16.0.0 [RTA-rip-1] undo summary
[RTB]display rip 1 route
Route Flags: R - RIP, T - TRIP
P - Permanent, A - Aging, S - Suppressed, G - Garbage-collect
[RTA-rip-1] preference ?
INTEGER<1-255> Value of Preference
[RTA-rip-1] preference 150
[RTA-rip-1] display ip routing-table
Routing Table: public net
Destination/Mask Protocol Pre Cost
Destination/Mask
Nexthop
Cost Tag
Flags Sec
192.168.1.0/30
192.168.1.1
10
RA
8
172.16.1.0/24
192.168.1.1
10
RA
8
手动聚合后路由
Page16
RIP协议优先级
更改RIP协议优先级的命令, 优先级大小范围为1~255, 默认为100
Verify-source : Enabled
Networks :
192.168.1.0
172.16.0.0
Biblioteka Baidu
Configured peers : None Triggered updates sent : 2
Number of route changes : 2
Number of replies to queries : 1
L0: 172.16.1.1/32
RTA
RTB
RTC
192.168.1.0/30
.1
.2
192.168.2.0/30
.1
.2
L0: 10.1.1.1/32
[RTA-rip-1]version 2 [RTA-Serial0/0/1]rip version 2 multicast
[Quidway]display rip 1 Public VPN-instance name : RIP process : 1 RIP version : RIP-2
RIP的版本号为2
Page12
RIP路由聚合
路由聚合是指:同一自然网段内的不同子网的路由在向外 (其它网段)发送时聚合成一条自然掩码的路由发送。 路由聚合对RIPv1不起作用。RIPv2支持无类地址域间路由。 缺省情况下,RIPv2启用路由聚合功能;当需要将所有VLSM 路由广播出去时,可关闭RIPv2的路由聚合功能 。
P - Permanent, A - Aging, S - Suppressed, G - Garbage-collect
-------------------------------------------------------------------------
Peer 192.168.1.1 on Serial0/0/0
不支持验证
RIPv2为无类别路由协议,支持VLSM,支持 路由聚合与CIDR
支持以广播或者组播(224.0.0.9)的形式发 送报文
支持明文验证和 MD5 密文验证
Page6
RIPv1报文格式
0
8
16
31
Command
version
Unused( set to all zeros)
Address Family Identifier
Next hop Metric
Route tag
Page8
RIP基本配置举例
L0: 172.16.1.1/32
RTA
RTB
RTC
192.168.1.0/30
.1
.2
192.168.2.0/30
.1
.2
L0: 10.1.1.1/32
[RTA] rip [RTA-rip-1]version 2 [RTA-rip-1] network 192.168.1.0 [RTA-rip-1] network 172.16.0.0
Hostroutes : Enabled
Maximum number of balanced paths : 6
Update time : 30 sec Age time : 180 sec
Suppress time : 0 sec Garbage-collect time : 120 sec
Silent interfaces : None Default routes : Disabled
[RTB]rip [RTB-rip-1]version 2 [RTB-rip-1]network 192.168.1.0 [RTB-rip-1]network 192.168.2.0
[RTC]rip [RTC-rip-1]version 2 [RTC-rip-1]network 192.168.2.0 [RTC-rip-1]network 10.0.0.0
Nexthop
172.16.0.0/16
RIP
150 0
127.0.0.1
192.168.1.0/24 RIP
150 1
192.168.1.2
Interface InLoopBack0 Serial0/0/0
Page17
引入外部路由
L0:172.16.1.1/32 L1:172.16.1.2/32 L2:172.16.1.3/32
Address Family Identifier
Route tag
路由 条目
IP address Subnet mask
Next hop
Metric
Multiple fields, up to maximum of 25
路由 条目
Address Family Identifier
IP address Subnet mask
Page3
RIP路由表的初始化
初始化路由表
----
NET1 RTA
---- ----
Request
初始化路由 表
----
----
NET2
---- RTB
Response
Page4
RIP路由表的更新
Routing Table
目标网络 下一跳
N1
C
N2
D
N3
E
Response
RTA
Routing Table 目标网络 下一跳
RTA
RTB
192.168.1.0/30
.1
.2
[RTA-rip] import-route direct cost 10
引入得到的路由, 开销为11
[RTB-rip-1]dis rip 1 route
Route Flags: R - RIP, T - TRIP
P - Permanent, A - Aging, S - Suppressed, G - Garbage-collect
Page9
显示RIP信息
<[RTA]display rip
Public VPN-instance name :
RIP process : 1
RIP version : RIP-2
Preference : 100
Checkzero : Enabled
Default-cost : 0
Summary : Enabled
前言
RIP路由协议是一种距离矢量路由协议,在小规模网络中应用 较多,本文对RIP路由协议的两个版本RIPv1和RIPv2做了详细 介绍,并介绍了RIP的常用配置命令。
Page1
培训目标
学完本课程后,您应该能:
掌握RIP协议的基本原理 掌握RIPv1和RIPv2的异同 掌握RIP协议的配置
Page13
RIP路由自动有类聚合
L0:172.16.1.1/32 L1:172.16.1.2/32 L2:172.16.1.3/32
RTA
RTB
192.168.1.0/30
.1
.2
[RTA-rip-1] summary
聚合后路由
[RTB-rip-1]display rip 1 route
Route Flags: R - RIP, T - TRIP
----------------------------------------------------------------------------
Peer 192.168.1.1 on Serial0/0/0
Destination/Mask
Nexthop
Cost Tag
Flags Sec
192.168.1.0/30
Unused( set to all zeros)
IP address
Unused( set to all zeros)
Unused( set to all zeros)
Metric
Page7
RIPv2报文格式
0
8
16
31
Command
version
Unused( set to all zeros)
Destination/Mask
Nexthop
Cost Tag
Flags Sec
192.168.1.0/24
192.168.1.1
10
RA
20
172.16.0.0/16
192.168.1.1
10
RA
20
……
Page14
取消RIP路由自动有类聚合
L0:172.16.1.1/32 L1:172.16.1.2/32 L2:172.16.1.3/32
相关文档
最新文档