资源来自网络视频,我做笔记  
视频教程请移步此处处http://www.verycd.com/topics/2802335/  

 

 

 

|第二章| 
 ------ 
路由选择协议的分类 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
RIP V2特性 
RIP v2的基本配置 
RIP v2实现VLSM希望划分(可变长子网掩码) 
RIP v2实现CIDR路由汇总 
RIP 2实现等跳路径的负载均衡 
RIP2认证配置 
RIP2配置被动接口抑制路由更新 

------------------

 

 

路由汇总(无类别域间路由CIDR)

(VLSM 引发的问题路由条目剧增,路由爆炸,路由幅单繁重)

命令(在指定接口模式下启用rip路由手工汇总):

router(ocnfig-if)#ip summary-address rip network mask 

  实验(用vlsm实验模型):

192.168.49.0/24网段

(25pc)(49.1)R1(49.97)---------(98)

                                |

(25pc)(49.33)R2(49.101)------(102)R4--------R5(ISP)

                                |

(25pc)(49.65)R3-49.105)------(106)

Router4 S0/0 <----> Router5 S0/0 

Router1 S0/0 <----> Router4 S0/1 

Router2 S0/0 <----> Router4 S0/2 

Router3 S0/0 <----> Router4 S0/3 

VPCS V0/1 <----> Router1 F1/0 

VPCS V0/2 <----> Router2 F1/0 

VPCS V0/3 <----> Router3 F1/0 

VPCS V0/4 <----> Router4 F1/0 

VPCS V0/5 <----> Router5 F1/0 

实验中,用到的ip为:

192.168.49.0--------192.168.49.107

共108个ip.

2`n>=107 得出:n=7  2`n=128>=107

算出路由汇总的网段:

192.168.49.0--127/25

255.255.255.128

配置路由汇总在R4的s0/0接口上:

en

conf t

int s0/0

ip summary-address rip 192.168.49.0 255.255.255.128

end

clear ip route *   (清除路由表信息)

sh ip rou

详细配置:

R1:

en

conf t

hostname R1

no ip domain-lookup

ip classless

ip subnet-zero

int loopback1

ip addr 192.168.49.1 255.255.255.224

no shu

exi

int s0/0

ip addr 192.168.49.97 255.255.255.252

no shu

exi

router rip

version 2

no auto-summary

net 192.168.49.0

net 192.168.49.96

end

sh ip rou

R2:

en

conf t

hostname R2

no ip domain-lookup

ip classless

ip subnet-zero

int loopback1

ip addr 192.168.49.33 255.255.255.224

no shu

exi

int s0/0

ip addr 192.168.49.101 255.255.255.252

no shu

exi

router rip

version 2

no auto-summary

net 192.168.49.32

net 192.168.49.100

end

sh ip rou

R3

en

conf t

hostname R3

no ip domain-lookup

ip classless

ip subnet-zero

int loopback1

ip addr 192.168.49.65 255.255.255.224

no shu

exi

int s0/0

ip addr 192.168.49.105 255.255.255.252

no shu

exi

router rip

version 2

no auto-summary

net 192.168.49.64

net 192.168.49.104

end

sh ip rou

R4

en

conf t

hostname R4

no ip domain-lookup

ip classless

ip subnet-zero

int s0/0

ip addr 202.0.0.2 255.255.255.0

no shu

exi

int s0/1

ip addr 192.168.49.98 255.255.255.252

no shu

exi

int s0/2

ip addr 192.168.49.102 255.255.255.252

no shu

exi

int s0/3

ip addr 192.168.49.106 255.255.255.252

no shu

exi

router rip

version 2

no auto-summary

net 202.0.0.0

net 192.168.49.96      (这里至少要发布两个网段,否则R4两边网络不通)

end

sh ip rou

R5

en

conf t

hostname R5

no ip domain-lookup

ip classless

ip subnet-zero

int s0/0

ip addr 202.0.0.1 255.255.255.0

no shu

exi

router rip

version 2

no auto-summary

net 202.0.0.0

end

sh ip rou

对于R4,做路由汇总:

en

conf t

int s0/0

ip summary-address rip 192.168.49.1 255.255.255.128

end

clear ip route *

sh ip route

ping 192.168.49.1

 

 

完。