今天来讲一下cisco的私有协议EIGRP,全称“增强型内部网关协议”。
首先说一下EIGRP的优点
1.快速收敛:hello时间是5秒。每5秒刷新一次。
2.基于可靠的协议(RTP)的通信,RTP是cisco开发的传输层协议。由EIGRP报文里的序列号和确认号来完成。
3.支持多种上层协议,IP 、IPX:协议相关模块。
4.支持非等级啊负载均衡,其他的路由协议只支持等价
5.支持VLSM(变长子网掩码)和CIDR(变短子网掩码)
6.多播和单播代替IGRP的广播224.0.0.10
7.任意节点进行路由汇总:相对于OSPF来说,OSPF只能在abr上汇总
好了,废话不多说!直接上拓扑图。
R0:
en
conf t
int loopback 0
ip add 1.1.1.1 255.255.255.0
int f0/0
ip add 192.168.12.1 255.255.255.0
no sh
ex
router eigrp 100(AS号,随便写)
no auto-summary(关闭自动汇总)
network 1.1.1.0 0.0.0.255(反掩码)
network 192.168.12.0 0.0.0.255
end
R1、2、3我就不具体配置了,相信大家这些大家都能配出来,我就偷个懒。
配好之后查看路由表如下:
R0:
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
4.0.0.0/24 is subnetted, 1 subnets
D 4.4.4.0 [90/161280] via 192.168.12.2, 00:07:44, FastEthernet0/0
C 192.168.12.0/24 is directly connected, FastEthernet0/0
D 192.168.23.0/24 [90/30720] via 192.168.12.2, 00:09:34, FastEthernet0/0
D 192.168.34.0/24 [90/33280] via 192.168.12.2, 00:08:43, FastEthernet0/0
D是直连路由,C则是EIGRP。
R1:
1.0.0.0/24 is subnetted, 1 subnets
D 1.1.1.0 [90/156160] via 192.168.12.1, 00:11:39, FastEthernet0/0
4.0.0.0/24 is subnetted, 1 subnets
D 4.4.4.0 [90/158720] via 192.168.23.3, 00:09:14, FastEthernet0/1
C 192.168.12.0/24 is directly connected, FastEthernet0/0
C 192.168.23.0/24 is directly connected, FastEthernet0/1
D 192.168.34.0/24 [90/30720] via 192.168.23.3, 00:10:13, FastEthernet0/1
R2:
D 1.1.1.0 [90/158720] via 192.168.23.2, 00:10:52, FastEthernet0/0
4.0.0.0/24 is subnetted, 1 subnets
D 4.4.4.0 [90/156160] via 192.168.34.4, 00:09:42, FastEthernet0/1
D 192.168.12.0/24 [90/30720] via 192.168.23.2, 00:10:52, FastEthernet0/0
C 192.168.23.0/24 is directly connected, FastEthernet0/0
C 192.168.34.0/24 is directly connected, FastEthernet0/1
R3:
1.0.0.0/24 is subnetted, 1 subnets
D 1.1.1.0 [90/161280] via 192.168.34.3, 00:00:10, FastEthernet0/0
4.0.0.0/24 is subnetted, 1 subnets
C 4.4.4.0 is directly connected, Loopback0
D 192.168.12.0/24 [90/33280] via 192.168.34.3, 00:00:10, FastEthernet0/0
D 192.168.23.0/24 [90/30720] via 192.168.34.3, 00:00:10, FastEthernet0/0
C 192.168.34.0/24 is directly connected, FastEthernet0/0
可以看到每个路由的路由表所有的网段都有,肯定已达到全网互通。大家可以做着试试看。
一起学习,一起进步。我也是一网络菜鸟,希望大家多指点,多交流。