码迷,mamicode.com
首页 > 其他好文 > 详细

lab 5 EIGRP stub

时间:2018-01-09 22:09:30      阅读:202      评论:0      收藏:0      [点我收藏+]

标签:work   color   family   mit   sub   soft   ext   over   address   

技术分享图片

EIGRP Stub

A stub router sends a special peer information packet to all neighboring routers to report its status as a stub router.

Any neighbor that receives a packet informing it of the stub status does not query the stub router for any routes.

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

 

 
  • receive-only: Prevents the stub from sending any type of route.

  • connected: Permits stub to send connected routes (may still need to redistribute).

  • static: Permits stub to send static routes (must still redistribute).

  • summary: Permits stub to send summary routes.

  • Default is connectedand summary.

 

 

基本网络配置

 

 

R1#
interface Loopback0
 ip address 172.16.1.1 255.255.255.0

interface FastEthernet0/0
 ip address 10.1.1.1 255.255.255.0
 ip summary-address eigrp 100 172.16.0.0 255.255.0.0

router eigrp 100
 network 10.1.1.1 0.0.0.0
 network 172.16.1.1 0.0.0.0
 redistribute static metric 100000 1 255 1 1500

ip route 172.16.11.0 255.255.255.0 Null0
R2#
interface Loopback0
 ip address 172.16.2.1 255.255.255.0

interface FastEthernet0/0
 ip address 10.1.1.2 255.255.255.0

router eigrp 100
 network 10.1.1.2 0.0.0.0
 network 172.16.2.1 0.0.0.0

 

 

interface Loopback0 ip address 172.16.1.1 255.255.255.0 (connected)

interface FastEthernet0/0 ip address 10.1.1.1 255.255.255.0 ip summary-address eigrp 100 172.16.0.0 255.255.0.0 (summary)

router eigrp 100 network 10.1.1.1 0.0.0.0 network 172.16.1.1 0.0.0.0 redistribute static metric 100000 1 255 1 1500

ip route 172.16.11.0 255.255.255.0 Null0 (static)

 

 

 

EIGRP Stub connected配置

R1向R2只发布直连路由 172.16.1.0

 

R1#
router eigrp 100
 network 10.1.1.1 0.0.0.0
 network 172.16.1.1 0.0.0.0
 redistribute static metric 100000 1 255 1 1500
 
eigrp stub connected

 

 

验证

R2#show ip route eigrp | begin Gateway
Gateway of last resort is not set

      172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
D 172.16.1.0/24 [90/156160] via 10.1.1.1, 00:01:22, FastEthernet0/0

 

 

 

EIGRP Stub  summary配置

R1向R2只发布汇总路由 172.16.0.0

 

R1#
router eigrp 100
 network 10.1.1.1 0.0.0.0
 network 172.16.1.1 0.0.0.0
 redistribute static metric 100000 1 255 1 1500
 
eigrp stub summary

 

 

验证

R2#show ip route eigrp | begin Gateway
Gateway of last resort is not set

      172.16.0.0/16 is variably subnetted, 3 subnets, 3 masks
D 172.16.0.0/16 [90/28416] via 10.1.1.1, 00:00:01, FastEthernet0/0

 

 

EIGRP Stub static配置

R1向R2只发布静态路由 172.16.11.0

 

R1#
router eigrp 100
 network 10.1.1.1 0.0.0.0
 network 172.16.1.1 0.0.0.0
 redistribute static metric 100000 1 255 1 1500
 
eigrp stub static

 

 

验证

R2#show ip route eigrp | begin Gateway
Gateway of last resort is not set

      172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
D EX 172.16.11.0/24 [170/28416] via 10.1.1.1, 00:00:09, FastEthernet0/0

 

 

EIGRP Stub  receive-only配置

R1不向R2发布路由

 

R1#
router eigrp 100
 network 10.1.1.1 0.0.0.0
 network 172.16.1.1 0.0.0.0
 redistribute static metric 100000 1 255 1 1500
 
eigrp stub receive-only

 

验证

R2#show ip route eigrp | begin Gateway
Gateway of last resort is not set

R2#

 

 

 

 

 





lab 5 EIGRP stub

标签:work   color   family   mit   sub   soft   ext   over   address   

原文地址:https://www.cnblogs.com/faerl/p/8253758.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!