EIGRP Stub
为了减少⽹络不稳定的⻛险,抑制某些设备查询报⽂过多,引起“卡在活动状态”的情形发⽣,可以将某些设备配置为Stub路由器
看如下的场景:
这里假设在 R1,R3 和 R5 之间已经建立了 EIGRP 的邻居关系后,突然 R1 到 R3 的网络不可用,而此时没有 FS (后继路由器),所以 R3 就会给 R5 发送 Query 消息,获取后继路由器。
但这时 R5 并没给出回复,R3 一直等待,但 R1 和 R3 之间的网络突然有恢复了,但此时 R3 到 R1 的拓扑表中依然是 Active 状态。也是是说,即使⽹络恢复了,也依然不 Passive 稳定的状态。
为了解决这样的问题,通常会在末节路由器(即边缘设备)配置成 Stub 设备。
Stub 的特性:
⼀台具有EIGRP Stub邻居的路由器,将不会向它的 Stub 邻居发送查询。
查询也没有意义,因为在边缘
配置为Stub的路由器与⾮Stub路由器邻居关系不受影响,只影响路由的传递。
配置为Stub路由器后,默认只发送本地路由和汇总路由。
配置:
R1(config)#router eigrp 100
# 隐含了connected summary, 也就是说默认发送 connected 和 summary 路由
R1(config-router)#eigrp stub
Router#show running-config | s router
router eigrp 1
network 12.1.1.0 0.0.0.255
network 13.1.1.0 0.0.0.255
network 14.1.1.0 0.0.0.255
eigrp stub connected summary
# 如果想要开启 stub 的设备传递静态路由
Router(config-router)#eigrp stub redistributed
# 如果想要开启直连,汇总,重分布需要一起
Router(config-router)#eigrp stub summary connected redistributed
# 查看 stub 邻居
R3# show ip eigrp neighbor detail
Router#show ip eigrp neighbor detail
EIGRP-IPv4 Neighbors for AS(1)
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
1 13.1.1.1 Et0/0 13 00:02:07 15 100 0 32
Version 23.0/2.0, Retrans: 0, Retries: 0, Prefixes: 2
Topology-ids from peer - 0
Topologies advertised to peer: base
Stub Peer Advertising (CONNECTED SUMMARY ) Routes
Suppressing queries
0 35.1.1.2 Et0/1 12 02:15:20 272 1632 0 33
Version 23.0/2.0, Retrans: 1, Retries: 0, Prefixes: 3
Topology-ids from peer - 0
Topologies advertised to peer: base
Top
命名 EIGRP
在某些较新的IOS版本⽀持命名EIGRP配置,名字区分⼤⼩写。
相⽐较传统EIGPR配置,命名版有以下优点:
所有配置在⼀个地⽅完成
IPv4、IPv6版本的 EIGRP 配置统⼀,向后兼容
⽀持⾼速链路(更宽范围的Metric)
新的 Metric 计算方式
(K1 × Bandwidth + K2 × Bandwidth / (256 - load) + K3 × delay + K6 × Extended Attributes) × K5 / (Reliability+K4) × 65536
系数 K1-K6 是可配置的加权值,缺省值为:K1=K3=1,K2=K4=K5=K6=0
公式简化:
(K1 × Bandwidth + K2 × Bandwidth / (256 - load) + K3 × delay) × 65536 =
(Bandwidth + delay) × 65536 EIGRP_Bandwidth = 10^7 / min_Bandwidth
EIGRP_Dealy = Sum(Link_Delay / 10000000)
命名EIGRP延迟单位为⽪秒(Picosecond),1000000ps=1μ
配置
地址族下配置, 为了适应多个 IP 版本:
R1(config)#router eigrp cisco
R1(config-router)#address-family ipv4 unicast autonomous-system 100
R1(config-router-af)#network 12.1.1.1 0.0.0.0
R1(config-router-af)#network 13.1.1.1 0.0.0.0
R1(config-router-af)#network 14.1.1.1 0.0.0.0
R1(config-router-af)#eigrp stub connected summary
地址族接⼝配置模式:
R1(config-router-af)#af-interface e0/0
R1(config-router-af-interface)#summary-address 10.1.0.0 255.255.252.0
R1(config-router-af-interface)#authentication mode md5
R1(config-router-af-interface)#authentication key-chain cisco
R1(config-router-af-interface)#exit
R1(config-router-af)#af-interface loopback 0
R1(config-router-af-interface)#passive-interface
R1(config-router-af-interface)#exit
地址族拓扑库配置模式:
R1(config-router-af)#topology base
R1(config-router-af-topology)#variance 6
R1(config-router-af-topology)#exit
可以发现由之前的分开配置,变成现在的全在 #address-family ipv4 unicast autonomous-system 100 下进行配置。 |