分类:
2012-05-24 08:25:48
router(config-router)#
eigrp stub [receive-only | connected | static | summary ]
--receive-only : prevents the stub from sending any type of route
--connected : permits stub send connceted routes(need redistribute)
--static : permits stub to send static routes (need redistribute)
--summary : permits stub to send summary routes
default is connects and summary
Router A
|
|
|10.2.2.2/31
|
|
Router B 10.1.3.0/24
|
|
|
| 10.1.2.0/24
routerB
ip route 10.1.4.0 255.255.255.0 10.1.1.10
int s0
ip summary-address eigrp 10.1.2.0 255.255.254.0
rotuer eigrp 100
redistribute static 1000 1 255 1 1500
network 10.2.2.2 0.0.0.1
network 10.1.2.0 0.0.0.255
eigrp stub connected
eigrp stub summary
If connects :
B will advertise 10.1.2.0/24 to A
B will not advertise 10.1.2.0/23(汇总), 10.1.3.0/24(没有network),10.1.4.0/24(static)
If summary:
B will advertise 10.1.2.0/23 to A
B will not adverse 10.1.2.0/24,10.1.3.0/24 or 10.1.4.0/24
If static :
B will only adverse 10.1.4.0/24 to A
If receive-only :
B will not advertise anything to A ,so A needs to have a static route to the networks behind B to reach them.