关于EIGRP Stub可以参考Cisco的网页:
http://www.cisco.com/en/US/docs/ios/12_0s/feature/guide/eigrpstb.html
Parameter |
On by default |
May be combined |
Description |
receive-only |
No |
No |
(optional) Prevents the router from advertising routes. |
connected |
Yes |
Yes |
(optional) Permits advertisement of connected routes. |
static |
No |
Yes |
(optional) Permits redistribution of static routes. |
summary |
Yes |
Yes |
Advertises summary routes. |
上表是从BSCI指南上摘录下来的,不过有一容易引起误解.
正:
eigrp stub=eigrp connected summary
误:
eigrp stub static=eigrp connected summary static
因为上表显示此三项可以组合,而且connected 与summary默认为ON.
以模拟器进行测试
R2:
!
router eigrp 1
redistribute static metric 1000000 10 255 1 1500
network 10.0.0.0
no auto-summary
eigrp stub connected static summary
no eigrp log-neighbor-changes
!
邻居的路由表:
R1:
D EX 3.3.3.3 [170/284160] via 10.1.2.2, 00:32:29, FastEthernet0/0
10.0.0.0/24 is subnetted, 2 subnets
C 10.1.2.0 is directly connected, FastEthernet0/0
D 10.2.3.0 [90/284160] via 10.1.2.2, 00:32:29, FastEthernet0/0
3.3.3.3为R2到R3的静态路由.10.2.3.0为R2直连
更改R2的配置:
!
router eigrp 1
redistribute static metric 1000000 10 255 1 1500
network 10.0.0.0
no auto-summary
eigrp stub static
no eigrp log-neighbor-changes
!
邻居的路由表:
R1:
D EX 3.3.3.3 [170/284160] via 10.1.2.2, 00:00:54, FastEthernet0/0
10.0.0.0/24 is subnetted, 1 subnets
C 10.1.2.0 is directly connected, FastEthernet0/0
可以看到R2不再对外宣告connected网络
所以要同时宣告这些网络需要使用
eigrp stub connected static summary
完!