当前位置:首页>微思动态 > >详情
全国热线电话 400-881-4699

在线留言

【技术分享】EIGRP的stub配置

发布作者:微思网络   发布时间:2022-10-21   浏览量:0

图片


实验拓扑

图片




配置

配置R1:

Int s1/0
Ip add 12.1.1.1 255.255.255.0
Clock rate 9600
No sh

Int s1/1
Ip add 13.1.1.1 255.255.255.0
Clock rate 9600
No sh

Router eigrp 100
No auto-summary
Net 11.0.0.0
Net 12.0.0.0
Net 13.0.0.0

配置R2:

Int s1/0
Ip add 12.1.1.1 255.255.255.0
Clock rate 9600
No sh

Int E0/0
Ip add 22.1.1.2 255.255.255.0
Clock rate 9600
No sh


Router eigrp 100
No auto-summary
Net 12.0.0.0
Net 22.0.0.0

配置R3:

Int s1/0
Ip add 13.1.1.3 255.255.255.0
Clock rate 9600
No sh

Int E0/0
Ip add 33.1.1.3 255.255.255.0
Clock rate 9600
No sh

Router eigrp 100
No auto-summary
Net 13.0.0.0
Net 33.0.0.0

检查R1、R2、R3路由表:

R1#show ip route eigrp
     33.0.0.0/24 is subnetted, 1 subnets
D       33.1.1.0 [90/2195456] via 13.1.1.3, 00:00:33, Serial1/0
     22.0.0.0/24 is subnetted, 1 subnets
D       22.1.1.0 [90/2195456] via 12.1.1.2, 01:19:55, Serial0/0
R1#

R2#show ip route eigrp
     33.0.0.0/24 is subnetted, 1 subnets
D       33.1.1.0 [90/2707456] via 12.1.1.1, 00:00:04, Serial0/0
     11.0.0.0/24 is subnetted, 1 subnets
D       11.1.1.0 [90/2195456] via 12.1.1.1, 01:19:04, Serial0/0
     13.0.0.0/24 is subnetted, 1 subnets
D       13.1.1.0 [90/2681856] via 12.1.1.1, 01:18:00, Serial0/0
R2#

R3#sho ip route eigrp
     22.0.0.0/24 is subnetted, 1 subnets
D       22.1.1.0 [90/2707456] via 13.1.1.1, 00:00:06, Serial0/0
     11.0.0.0/24 is subnetted, 1 subnets
D       11.1.1.0 [90/2195456] via 13.1.1.1, 00:00:06, Serial0/0
     12.0.0.0/24 is subnetted, 1 subnets
D       12.1.1.0 [90/2681856] via 13.1.1.1, 00:00:06, Serial0/0
R3#




验证EIGRP的stub特性

Router(config-router)#eigrp stub [receive-only | connected | static | summary]

receive-only : 不能和其他3 个参数(connected,static 和summary)一起使用.只接收从邻居路由器发送来的信息.

connected : 指定该路由器可以把和它直接相连的网络信息传递给它的邻居.这个选项默认是开启的.

static : 把静态路由信息传递给它的邻居.

summary : 把汇总路由信息传递给它的邻居.这个选项默认也是开启的

配置R3的EIGRP stub receive-only 特性:

R3#show run | begin router eigrp
router eigrp 100
 network 13.0.0.0
 network 33.0.0.0
 no auto-summary
 eigrp stub receive-only

在R2,R3上用show ip route 验证:

R2#show ip route eigrp               //没有收到33.1.1.0/24的路由
     11.0.0.0/24 is subnetted, 1 subnets
D       11.1.1.0 [90/2195456] via 12.1.1.1, 01:26:24, Serial0/0
     13.0.0.0/24 is subnetted, 1 subnets
D       13.1.1.0 [90/2681856] via 12.1.1.1, 01:25:21, Serial0/0
R2#

R3#show ip route eigrp     //可以接收R1,R2的路由
     22.0.0.0/24 is subnetted, 1 subnets
D       22.1.1.0 [90/2707456] via 13.1.1.1, 00:01:16, Serial0/0
     11.0.0.0/24 is subnetted, 1 subnets
D       11.1.1.0 [90/2195456] via 13.1.1.1, 00:01:16, Serial0/0
     12.0.0.0/24 is subnetted, 1 subnets
D       12.1.1.0 [90/2681856] via 13.1.1.1, 00:01:16, Serial0/0
R3#


验证EIGRP的stub static特性:
 1、现在R3上如下配置:

R3(config)#ip route 44.1.1.0 255.255.255.0 ethernet 0/0   //增加一条静态路由
R3(config)#router eigrp 100
R3(config-router)#redistribute static    //把静态路由发布到EIGRP中
R3(config-router)#

2、在R2上查看路由表:

R2#show ip route eigrp   //有44.1.1.0的路由但没有connect 33.1.1.0的路由
     11.0.0.0/24 is subnetted, 1 subnets
D       11.1.1.0 [90/2195456] via 12.1.1.1, 00:00:35, Serial0/0
     13.0.0.0/24 is subnetted, 1 subnets
D       13.1.1.0 [90/2681856] via 12.1.1.1, 00:00:35, Serial0/0
     44.0.0.0/24 is subnetted, 1 subnets
D EX    44.1.1.0 [170/7801856] via 12.1.1.1, 00:00:05, Serial0/0
R2#

验证EIGRP的stub connect特性:
 1、在R3上no eigrp stub static

R3(config)#router eigrp 100
R3(config-router)#no eigrp stub

2、在R3上增加配置:

R3(config)#router eigrp 100
R3(config-router)#eigrp stub connected

3、在R3手工汇总

R3(config)#int s0/0
R3(config-if)#ip summary-address eigrp 100 33.1.0.0 255.255.255.0

4、在R2上查看路由表

R2#show ip route eigrp   //发现有33.1.1.0的路由而没有44.1.1.0的路由,也没有汇总路由
     33.0.0.0/24 is subnetted, 1 subnets
D       33.1.1.0 [90/2707456] via 12.1.1.1, 00:00:48, Serial0/0
     11.0.0.0/24 is subnetted, 1 subnets
D       11.1.1.0 [90/2195456] via 12.1.1.1, 00:06:02, Serial0/0
     13.0.0.0/24 is subnetted, 1 subnets
D       13.1.1.0 [90/2681856] via 12.1.1.1, 00:06:02, Serial0/0
R2#

5、在R3手工汇总

R3(config)#int s1/0
R3(config-if)#ip summary-address eigrp 100 33.1.0.0 255.255.255.0


验证EIGRP的stub summary特性:
 1、在R3上:

R3(config)#router eigrp 100
R3(config-router)#no eigrp stub
R3(config-router)#eigrp stub summary

2、在R2上查看路由表

R2#show ip route eigrp   //有汇总路由33.1.0.0/16
     33.0.0.0/16 is subnetted, 1 subnets
D       33.1.0.0 [90/2707456] via 12.1.1.1, 00:00:19, Serial0/0
     11.0.0.0/24 is subnetted, 1 subnets
D       11.1.1.0 [90/2195456] via 12.1.1.1, 00:12:09, Serial0/0
     13.0.0.0/24 is subnetted, 1 subnets
D       13.1.1.0 [90/2681856] via 12.1.1.1, 00:12:09, Serial0/0
R2#



返回顶部