lab 5 EIGRP stub

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#

 

 

 

 

 





转载于:https://www.cnblogs.com/faerl/p/8253758.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值