LAB8STUB命令参数测试
       
1.STUB Connect 命令测试

EIGRP分解试验部分-LAB8:STUB命令参数测试_EIGRP

试验需求:
R1/R2运行EIGRPR2做为STUB路由器,R2做静态路由指向R3的网络。同时R2R1方向做汇总路由 STUB后面的参数只指定eigrp stub connect .测试有什么现象产生?
配置:
R2
interface Serial1/3
ip address 12.1.1.2 255.255.255.0
ip summary-address eigrp 1 2.2.0.0 255.255.248.0 5
router eigrp 1
redistribute static metric 10000 100 255 1 1500 把静态路由重发布到EIGRP网络,以便EIGRP能够学习到路由
network 2.2.2.0 0.0.0.255
network 12.1.1.0 0.0.0.255
no auto-summary
eigrp stub connected
ip route 3.3.3.0 255.255.255.0 23.1.1.3
测试:R1并没有学习到关于3.3.3.0网络重发布到EIGRP的路由,R2只通告给R1 2.2.2.0的网络
R1#show ip route
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
2.0.0.0/24 is subnetted, 1 subnets
D 2.2.2.0 [90/2297856] via 12.1.1.2, 00:09:27, Serial1/2
12.0.0.0/24 is subnetted, 1 subnets
C 12.1.1.0 is directly connected, Serial1/2
2.stub static 参数测试

EIGRP分解试验部分-LAB8:STUB命令参数测试_EIGRP_02

试验需求:
R1/R2运行EIGRPR2做为STUB路由器,R2做静态路由指向R3的网络。同时R2R1方向做汇总路由 STUB后面的参数只指定eigrp stub static .测试有什么现象产生?
配置:
R2
interface Serial1/3
ip address 12.1.1.2 255.255.255.0
ip summary-address eigrp 1 2.2.0.0 255.255.248.0 5
router eigrp 1
redistribute static metric 10000 100 255 1 1500
network 2.2.2.0 0.0.0.255
network 12.1.1.0 0.0.0.255
no auto-summary
eigrp stub static
ip route 3.3.3.0 255.255.255.0 23.1.1.3
检验:只收到R2重发布进来的路由
R1#show ip route
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
3.0.0.0/24 is subnetted, 1 subnets
D EX 3.3.3.0 [170/2195456] via 12.1.1.2, 00:00:15, Serial1/2
12.0.0.0/24 is subnetted, 1 subnets
C 12.1.1.0 is directly connected, Serial1/2
3.EIGRP receive-only参数测试

EIGRP分解试验部分-LAB8:STUB命令参数测试_试验_03

试验需求:
R1/R2运行EIGRPR2做为STUB路由器,R2做静态路由指向R3的网络。同时R2R1方向做汇总路由,STUB后面的参数只指定eigrp stub receive-only .测试有什么现象产生?
配置:
interface Serial1/3
ip address 12.1.1.2 255.255.255.0
ip summary-address eigrp 1 2.2.0.0 255.255.248.0 5
router eigrp 1
redistribute static metric 10000 100 255 1 1500
network 2.2.2.0 0.0.0.255
network 12.1.1.0 0.0.0.255
no auto-summary
eigrp stub receive-only
ip route 3.3.3.0 255.255.255.0 23.1.1.3
检验:R1没有收到任何关于EIGRP过来的路由
R1#show ip route
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
12.0.0.0/24 is subnetted, 1 subnets
C 12.1.1.0 is directly connected, Serial1/2
4.EIGRP stub summary参数测试

EIGRP分解试验部分-LAB8:STUB命令参数测试_EIGRP_04

试验需求:
R1/R2运行EIGRPR2做为STUB路由器,R2做静态路由指向R3的网络。同时R2R1方向做汇总路由,STUB后面的参数只指定eigrp stub summary .测试有什么现象产生?
配置:
R2
interface Serial1/3
ip address 12.1.1.2 255.255.255.0
ip summary-address eigrp 1 2.2.0.0 255.255.248.0 5
router eigrp 1
redistribute static metric 10000 100 255 1 1500
network 2.2.2.0 0.0.0.255
network 12.1.1.0 0.0.0.255
no auto-summary
eigrp stub summary
ip route 3.3.3.0 255.255.255.0 23.1.1.3
检验:只收到R2发来的汇总
R1#show ip route
Gateway of last resort is not set
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
2.0.0.0/21 is subnetted, 1 subnets
D 2.2.0.0 [90/2297856] via 12.1.1.2, 00:00:03, Serial1/2
12.0.0.0/24 is subnetted, 1 subnets
C 12.1.1.0 is directly connected, Serial1/2
总结:STUB选项
receive-only: 防止STUB路由器发送路由更新
connected: 允许STUB路由器发送直连路由信息
static : 允许STUB路由器发送重发布静态的路由
summary :允许STUB路由器发送汇总路由信息
通过以上测试我们发现,要让R1学习到R2发布过来的重发布路由,以及汇总路由。必须要加上如下参数
R2
eigrp stub connected static summary
Note:默认STUB选项后面是connected summary