|
实验 20:配置EIGRP自动汇总和手工汇总
汇总IP地址首先将IP换算成二进制,取不同位的最小值.
实验目标:
1.理解自动汇总和手工汇总的区别.
2.学会配置EIGRP的手工汇总.
实验步骤:
1.开启所有路由器EIGRP默认自动汇总,观察路由表.
2.关闭所有路由器的自动汇总.
3.在R1上配置手工汇总.
4.在R1上配置超网汇总:172.0.0.0/8
5.对比总结自动汇总和手工汇总的区别.
1.开启所有路由器EIGRP默认自动汇总,观察路由表.
R1(config)#router eigrp 100
R1(config-router)#auto-summary
R2(config)#router eigrp 100
R2(config-router)#auto-summary
R3(config)#router eigrp 100
R3(config-router)#auto-summary
R1#show ip route eigrp
172.16.0.0/16 is variably subnetted, 5 subnets, 2 masks
D 172.16.0.0/16 is a summary, 00:05:41, Null0
Null0这个值是EIGRP的防环机制.
2.关闭所有路由器的自动汇总.
R1(config)#router eigrp 100
R1(config-router)#no auto-summary
R2(config)#router eigrp 100
R2(config-router)#no auto-summary
R3(config)#router eigrp 100
R3(config-router)#no auto-summary
3.在R1上配置手工汇总.
EIGRP手工汇总要在出口上做汇总.
R1(config)#inter range f0/0-1
R1(config-if-range)#ip summary-address eigrp 100 172.16.0.0 255.255.252.0
4.在R1上配置超网汇总:172.0.0.0/8 EIGRP支持超网汇总.
R1(config-if-range)#ip summary-address eigrp 100 172.16.0.0 255.0.0.0
删除所有路由条目,重新收liang R3#clear ip route *
R1(config-if-range)#no ip summary-address eigrp 100 172.16.0.0 255.0.0.0
R1和R3关闭自动汇总,在R2查看路由条目
5.对比总结自动汇总和手工汇总的区别.
EIGRP自动汇总仅汇总自己的路由条目.
|
-
|