AR1: e 0/0 12.1.1.1 24 lo 0 1.1.1.1 24
AR2: e 0/1 23.1.1.1.24 lo 0 2.2.2.2 24 e 0/0 12.1.1.2 24
AR3: e 0/0 23.1.1.2 24 lo 0 3.3.3.3 24
本次实验使用环回口模拟PC。
每台路由器配置对应的地址。命令如下图自己配置一下。
R1启用EIGRP
R1(config)#router eigrp 90开启eigrp 进程号90
R1(config-router)#eigrp router-id 1.1.1.1给router设置ID 有没有RID,无所谓(同一进程内不要有相同的RID)会造成同一RID的设备,彼此之间获悉不到路由。
R1(config-router)#no auto-summary关闭自动汇总
R1(config-router)#network 12.1.1.1 0.0.0.0宣告接口加反码
R1(config-router)#network 1.1.1.1 0.0.0.0
R2起为64位EIGRP(仅为大家演示)
注意:64位EIGRP和32位一样可以建立邻居。但是32位的进程号要和64位的AS号一致
R2(config)#router eigrp ccie创建进程名为 ccie
R2(config-router)#address-family ipv4 unicast autonomous-system 90设置进程AS 90
R2(config-router-af)#eigrp router-id 2.2.2.2
R2(config-router-af)#topology base进入base
R2(config-router-af-topology)#no auto-summary关闭自动汇总
R2(config-router-af-topology)#exit
R2(config-router-af)#no shutdown
R2(config-router-af)#network 2.2.2.2 0.0.0.0
R2(config-router-af)#network 12.1.1.2 0.0.0.0
R2(config-router-af)#network 23.1.1.1 0.0.0.0
这个时候在R2提示出了一条日志。有一个邻居连接的e0/0口 地址 12.1.1.1 是ipv4 EIGRP进程号90
R2(config-router-af)#
*Dec 18 03:22:57.342: %DUAL-5-NBRCHANGE: EIGRP-IPv4 90: Neighbor 12.1.1.1 (Ethernet0/0) is up: new adjacency
R3启用EIGRP
R3#show run | section eigrp查看EIGRP的配置。
R2#show ip eigrp neighbors 查看EIGRP的邻居
R2#show eigrp address-family ipv4 neighbors查看EIGRP IPv4邻居详细信息
上图信息:
当前关于AS 90我们建立了2个邻居, H 为邻居的序列号从0开始越来越大
Address: 为直连的邻居的接口地址
Interface: 指本地连接邻居的接口是那个接口
Hold: 3倍的hello时间
Uptime: 指邻居建立多长时间,
SRTT: 平滑的往返时间,测试router之间链路的质量,从发送数据到返还ACK所需要的时间
RTO: 重传超时计时器,多久没有回复ACK 我就要重传。
Q: 队列的计数器 0代表OK,不是0就是链路有报文在拥塞排队
Seq: 序列号的值,给邻居发送最后一个报文序列号是多少 防止攻击
Show命令补充:
R2#show ip eigrp neighbors查看邻居表
R2#show ip eigrp topology查看topo表,标记为P的路由代表可用
R2#show ip eigrp topology all-links查看topo内所有路由。包含(最优、次有、备份路由)
R2#show ip rou查看路由表,标记为D的是Eigrp路由
测试:R1 Ping R3环回口,OK完成实验。