EIGRP stub routing这一特性首次出现在Cisco IOS Release 12.0(7)T中,后来在Release 12.0(15)S中被集成进去.这一特性增加了网络的稳定性,减少资源的占用并且简化了stub router的配置

stub routing一般用在星型(hub and spoke)拓扑结构的网络中.在这样的一个环境中,一个或多个末梢网络(end or stub network)连接到远程的spoke router上,spoke router再连接到distribution router(hub,中心)上.这样的配置通常用于WAN拓扑中:distribution router直接连到WAN上.distribution router可以连接多达100个remote router(spoke).spoke router(remote router)转发非本地(nonlocal)的流量到distribution router上,所以spoke router没有必要保持完整的路由表,而且一般的,distribution router只需发送一条default route给remote router

当使用EIGRP stub routing这一特性的时候,首先在distribution router和remote router上启用EIGRP,然后把remote router配置为stub router.配置完成以后,只有特性的路由信息从stub router上传播出去.stub router对汇总路由 (summary route),直连路由,再发布静态路由(redistributed static route),外部和内部路由的查询(query)作出inaccessible的应答.并且stub router发送特定的对等层(peer)信息包给它的邻居用于报告它的状态为stub router.当邻居接收到该信息包以后,它将不会向这个stub router作出任何的路由查询.stub router对等体之间也不会相互查询.stub router依靠distribution router来发送适当的更新包
 

上图就是一个简单的hub and spoke网络,在这个图中,remote router只能通过distribution router访问到corporate network,并且remote router没有必要保持完整整个网络的路由表,也它只需要知道如何到达distribution router就可以了.这样一来减少了remote router内存和网络带宽资源的占用.remote router不需要接收从其他网络学来的路由,因为它只发送nonlocal流量到distribution router上去,distribution router只需引入一条default route到remote router上去

EIGRP stub routing这一特性不会在distribution router上做自动的路由汇总,多数情况下,管理员可以根据需要在distribution router上做人工的路由汇总

要注意的是,在低版本的IOS上,在distribution router上配置到remote router的default router的时候,记得在remote router上使用ip classless命令.默认情况下,只要支持EIGRP stub routing的IOS版本就无须手动输入ip classless命令了

假如你不把remote router设置为stub router,而在distribution router上启用汇总,过滤等功能,仍然会出现一些问题,比如SIA(stuck in active)状态

[color=green]Pt.2 Dual-Homed Remote[/color]
双宿远程(dual-homed remote)拓扑结构拥有2个或多个distribution router(hub router),但是stub routing的法则和简单的hub and spoke结构是一样的,可以提供冗余.如下图:
 
但是这样的一个结构有可能给EIGRP网络带来不稳定性,如下图:
 
distribution router 1和网段10.3.1.0/24直连,如果distribution router 1上做了汇总或过滤,它会把10.3.1.0/24宣告给它直连的EIGRP邻居distribution router 2和remote router.假如网络10.2.1.0/24出问题了,distribution router 1和distribution router 2之间的连接断开,那么distribution router 2到达网络10.3.1.0/24的最小开销的路径将是经由remote router,再到distribution router 1,如下图:
 

如图,选择低带宽的串行链路到达目标网络,而不能选用高带宽的10.2.1.0/24网络到达目标网络,这样对串行链路带宽超额的利用将带来一系列问题比 如影响整个网络的稳定性和SIA状态的发生等等.除非distribution router 2和remote router之间的带宽足够大,大到能够处理这些突发事件带来的流量,但是在实际中,往往带宽不会那么大.解决办法是,可以在distribution router和remote router上配置适当的路由汇总.并把remote router配置为stub

[color=blue]Pt.3 Benefits, Restrictions & Supported Platforms[/color]
EIGRP stub routing的优点,增加网络的稳定性,有效减少因为带宽低产生的链路拥塞所带来的影响.还有就是简化了hub and spoke结构的网络的配置和维持.当在dual-homed remote环境中启用了stub routing后,就不需要在remote router上来做路由过滤防止这些低带宽的链路成为传输链路,增加链路负荷

该特性的一些限制,比如只能使用在stub router上(stub router的邻居只有distribution router).还有就是只支持多路访问(multi-access)接口,比如ATM,Ethernet,Frame Relay,ISDN PRI和X.25等

支持的一些平台有Cisco 7200系列,7500系列和12000系列等

[color=darkblue]Pt.4 Configuration Tasks[/color]把EIGRP stub routing的配置分成2个步骤:
1.配置EIGRP stub routing(必须)
2.验证EIGRP stub routing(可选)

配置EIGRP stub routing的命令如下:
step 1:
router(config)#router eigrp [as-number]
启用EIGRP
step 2:
router(config-router)#network [network-number]
定义要宣告的网络
step 3:
router(config-router)# eigrp stub [receive-only | connected | static | summary]
把remote router配置为stub router
默认情况下,当remote router被配置成stub router以后,它和邻居享有直连(connected)和汇总(summary)路由信息.其中connected,static和summary参 数可以结合起来一起使用;而一旦使用了receive-only参数,其他3种参数不能组合使用
receive-only参数限制了stub router和在同一AS内的router发送各种路由信息
connected参数允许stub router和邻居之间发送直连的路由信息
static参数允许stub router和邻居之间发送静态路由信息
summary参数允许stub router和邻居之间发送汇总路由

配置完了,验证是否生效和正常,可以在distribution router上使用show ip eigrp neighbor [detail]命令,输出的最后一行将显示remote router的状态,如下图:


使用debug命令对EIGRP stub packet进行跟踪调试,命令如下:
Router#debug eigrp packet stub