Re: Leak map + stub command!!!

From: Narbik Kocharians <narbikk_at_gmail.com>
Date: Fri, 10 Apr 2009 12:48:37 -0700

First of all i am sorry about a long post, but if you lab this up, it will
hopefully clear all doubts and questions, let me know if you need more help.

This is part of my new Boot Camp 2.0 labs, enjoy..................

*Topology*

* *

*R1 is configured with three Frame-relay point-to-point connections, one to
R2, one to R3 and the third one to R4.*

* *

*R4 has a connection (Any type) to R5.*

* *

*IP Addressing:*

* *

*R1s S0/0.12 (10.1.12.1/24) connection to R2s S0/0.21 (10.1.12.2/24)*

*R1s S0/0.13 (10.1.13.1/24) connection to R3s S0/0.31 (10.1.13.3/24)*

*R1s S0/0.14 (10.1.14.1/24) connection to R4s S0/0.41 (10.1.14.4/24)*

*R1s Loopback 1.1.1.1/24*

*R4s S0/0.45 (10.1.45.4/24) connection to R5s S0/0.54 (10.1.45.5/24)*

* *

*R5 has two loopback interfaces lo0 (2.2.2.2/24) and Lo1 (3.3.3.3/24)*

* *

* *

*Task 1*

* *

Configure OSPF area 0 on the following routers/interfaces; ensure that the
loopback interfaces are advertised with their correct mask:

*On R4*

R4(config)#router ospf 1

R4(config-router)#netw 10.1.45.4 0.0.0.0 area 0

*On R5*

R5(config)#int lo2

R5(config-if)#ip ospf netw point-to-point

R5(config-if)#int lo3

R5(config-if)#ip ospf netw point-to-point

R5(config)#router ospf 1

R5(config-router)#netw 10.1.45.5 0.0.0.0 area 0

R5(config-router)#netw 2.2.2.2 0.0.0.0 area 0

R5(config-router)#netw 3.3.3.3 0.0.0.0 area 0

* *

*To verify the configuration:*

* *

*On R4*

*R4#Show ip route ospf*

     2.0.0.0/24 is subnetted, 1 subnets

O 2.2.2.0 [110/65] via 10.1.45.5, 00:01:18, Serial0/0.45

     3.0.0.0/24 is subnetted, 1 subnets

O 3.3.3.0 [110/65] via 10.1.45.5, 00:01:18, Serial0/0.45

*Task 2*

Configure Eigrp 100 on the following routers/interfaces, disable auto
summarization:

R1s S0/0.12, S0/0.13 and S0/0.14

R2s S0/0.21

R3s S0/0.31

R4s S0/0.41

*On R1*

R1(config)#router eigrp 100

R1(config-router)#no au

R1(config-router)#netw 10.1.12.1 0.0.0.0

R1(config-router)#netw 10.1.13.1 0.0.0.0

R1(config-router)#netw 10.1.14.1 0.0.0.0

R1(config-router)#netw 1.1.1.1 0.0.0.0

*On R2*

R2(config)#router eigrp 100

R2(config-router)#no au

R2(config-router)#netw 10.1.12.2 0.0.0.0

*On R3*

R3(config)#router eigrp 100

R3(config-router)#no au

R3(config-router)#netw 10.1.13.3 0.0.0.0

*On R4*

R4(config)#router eigrp 100

R4(config-router)#no au

R4(config-router)#netw 10.1.14.4 0.0.0.0

*To verify the configuration:*

* *

*On R4*

*R4#Show ip route eigrp *

     1.0.0.0/24 is subnetted, 1 subnets

D 1.1.1.0 [90/2297856] via 10.1.14.1, 00:04:29, Serial0/0.41

     10.0.0.0/24 is subnetted, 4 subnets

D 10.1.13.0 [90/2681856] via 10.1.14.1, 00:14:24, Serial0/0.41

D 10.1.12.0 [90/2681856] via 10.1.14.1, 00:14:24, Serial0/0.41

*On R3*

*R3#Show ip route eigrp *

    1.0.0.0/24 is subnetted, 1 subnets

D 1.1.1.0 [90/2297856] via 10.1.13.1, 00:03:58, Serial0/0.31

     10.0.0.0/24 is subnetted, 3 subnets

D 10.1.14.0 [90/2681856] via 10.1.13.1, 00:14:48, Serial0/0.31

D 10.1.12.0 [90/2681856] via 10.1.13.1, 00:14:48, Serial0/0.31

*On R2*

*R2#Show ip route eigrp*

     1.0.0.0/24 is subnetted, 1 subnets

D 1.1.1.0 [90/2297856] via 10.1.12.1, 00:03:08, Serial0/0.21

     10.0.0.0/24 is subnetted, 3 subnets

D 10.1.14.0 [90/2681856] via 10.1.12.1, 00:15:16, Serial0/0.21

D 10.1.13.0 [90/2681856] via 10.1.12.1, 00:15:16, Serial0/0.21

*Task 3*

Configure mutual redistribution between OSPF and EIGRP on R4; use a metric
of your choice.

*On R4*

R4(config)#router ospf 1

R4(config-router)#redistribute eigrp 100 subnets

R4(config)#router eigrp 100

R4(config-router)#redistribute ospf 1 metric 1 1 1 1 1

*To verify the configuration:*

* *

*On R5*

* *

*R5#Show ip route ospf | Inc O*

O E2 1.1.1.0 [110/20] via 10.1.45.4, 00:06:00, Serial0/0.54

O E2 10.1.14.0 [110/20] via 10.1.45.4, 00:07:39, Serial0/0.54

O E2 10.1.13.0 [110/20] via 10.1.45.4, 00:07:39, Serial0/0.54

O E2 10.1.12.0 [110/20] via 10.1.45.4, 00:07:39, Serial0/0.54

*On R1*

*R1#Show ip route eigrp*

     2.0.0.0/24 is subnetted, 1 subnets

D EX 2.2.2.0 [170/2560512256] via 10.1.14.4, 00:01:00, Serial0/0.14

     3.0.0.0/24 is subnetted, 1 subnets

D EX 3.3.3.0 [170/2560512256] via 10.1.14.4, 00:01:00, Serial0/0.14

     10.0.0.0/24 is subnetted, 4 subnets

D EX 10.1.45.0 [170/2560512256] via 10.1.14.4, 00:01:00, Serial0/0.14

*On R2*

*R2#Show ip route eigrp*

* *

     1.0.0.0/24 is subnetted, 1 subnets

D 1.1.1.0 [90/2297856] via 10.1.12.1, 00:07:33, Serial0/0.21

* 2.0.0.0/24 is subnetted, 1 subnets*

*D EX 2.2.2.0 [170/2561024256] via 10.1.12.1, 00:01:51, Serial0/0.21*

* 3.0.0.0/24 is subnetted, 1 subnets*

* *

*D EX 3.3.3.0 [170/2561024256] via 10.1.12.1, 00:01:51, Serial0/0.21*

     10.0.0.0/24 is subnetted, 4 subnets

D 10.1.14.0 [90/2681856] via 10.1.12.1, 00:19:41, Serial0/0.21

D 10.1.13.0 [90/2681856] via 10.1.12.1, 00:19:41, Serial0/0.21

D EX 10.1.45.0 [170/2561024256] via 10.1.12.1, 00:01:51, Serial0/0.21

*On R3*

*R3#Show ip route eigrp*

     1.0.0.0/24 is subnetted, 1 subnets

D 1.1.1.0 [90/2297856] via 10.1.13.1, 00:10:45, Serial0/0.31

     *2.0.0.0/24 is subnetted, 1 subnets*

*D EX 2.2.2.0 [170/2561024256] via 10.1.13.1, 00:05:02, Serial0/0.31*

* 3.0.0.0/24 is subnetted, 1 subnets*

*D EX 3.3.3.0 [170/2561024256] via 10.1.13.1, 00:05:02, Serial0/0.31*

     10.0.0.0/24 is subnetted, 4 subnets

D 10.1.14.0 [90/2681856] via 10.1.13.1, 00:21:34, Serial0/0.31

D 10.1.12.0 [90/2681856] via 10.1.13.1, 00:21:34, Serial0/0.31

D EX 10.1.45.0 [170/2561024256] via 10.1.13.1, 00:05:02, Serial0/0.31

*Task 4*

Configure Eigrp stub on R1 such that R1 ONLY advertises its directly
connected interfaces that are advertised with a network command to its
Eigrp neighbors.

*On R1*

R1(config)#router eigrp 100

R1(config-router)#*eigrp stub connected*

*To verify the configuration:*

* *

*On R2*

*R2#Show ip route eigrp *

    1.0.0.0/24 is subnetted, 1 subnets

D 1.1.1.0 [90/2297856] via 10.1.12.1, 00:02:01, Serial0/0.21

     10.0.0.0/24 is subnetted, 3 subnets

D 10.1.14.0 [90/2681856] via 10.1.12.1, 00:02:01, Serial0/0.21

D 10.1.13.0 [90/2681856] via 10.1.12.1, 00:02:01, Serial0/0.21

*On R3*

* *

*R3#Show ip route eigrp*

     1.0.0.0/24 is subnetted, 1 subnets

D 1.1.1.0 [90/2297856] via 10.1.13.1, 00:02:41, Serial0/0.31

     10.0.0.0/24 is subnetted, 3 subnets

D 10.1.14.0 [90/2681856] via 10.1.13.1, 00:02:41, Serial0/0.31

D 10.1.12.0 [90/2681856] via 10.1.13.1, 00:02:41, Serial0/0.31

*On R1*

*R1#Show ip route eigrp*

     2.0.0.0/24 is subnetted, 1 subnets

D EX 2.2.2.0 [170/2560512256] via 10.1.14.4, 00:03:25, Serial0/0.14

     3.0.0.0/24 is subnetted, 1 subnets

D EX 3.3.3.0 [170/2560512256] via 10.1.14.4, 00:03:25, Serial0/0.14

     10.0.0.0/24 is subnetted, 4 subnets

D EX 10.1.45.0 [170/2560512256] via 10.1.14.4, 00:03:25, Serial0/0.14

*Note R2 and R3 do NOT get the redistributed routes, because of R1s stub
connected configuration.*

* *

*Task 5*

Configure R1 such that routers R2 and R3 have networks 2.2.2.0 /24 and
3.3.3.0 /24 in their routing table. DO NOT remove the Eigrp stub connected
configuration from R1 to accomplish this task.

*To accomplish this task a leak-map is referenced in the Eigrp stub
connected command. The leak-map references a route-map called TST, the
route-map references an access-list. Any IP address/es that are permitted in
the access-list is leaked along the connected networks.*

*On R1*

R1(config)#access-list *1* permit 2.2.2.0 0.0.0.255

R1(config)#access-list *1* permit 3.3.3.0 0.0.0.255

R1(config)#route-map *TST* permit 10

R1(config-route-map)#*match ip addr 1*

R1(config)#router eigrp 100

R1(config-router)#eigrp stub connected *leak-map* *TST*

*To verify the configuration:*

* *

*On R2*

* *

*R2#Show ip route eigrp | Inc EX*

*D EX 2.2.2.0* [170/2561024256] via 10.1.12.1, 00:04:29, Serial0/0.21

*D EX 3.3.3.0* [170/2561024256] via 10.1.12.1, 00:04:29, Serial0/0.21

* *

*On R3*

*R3#Show ip route eigrp | Inc EX*

*D EX 2.2.2.0* [170/2561024256] via 10.1.13.1, 00:00:13, Serial0/0.31

*D EX 3.3.3.0* [170/2561024256] via 10.1.13.1, 00:00:13, Serial0/0.31

*Note both R2 and R3 have both networks 2.2.2.0 /24 and 3.3.3.0 /24 in their
routing table.*

* *

On Fri, Apr 10, 2009 at 9:47 AM, Salah ElShekeil
<salah.elshekeil_at_gmail.com>wrote:

> Hi everybody,
>
>
>
> can anyone please tell me what is the benefit of using stub command with
> leak-map
>
>
>
> I tried to lab it up but I think I'm missing something,
>
>
>
> can anyone explain it plz
>
>
>
>
>
>
>
> Salah
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
>
>
>
>
>
>
>

--
Narbik Kocharians
CCSI#30832, CCIE# 12410 (R&S, SP, Security)
www.MicronicsTraining.com
www.Net-Workbooks.com
Sr. Technical Instructor
Blogs and organic groups at http://www.ccie.net
Received on Fri Apr 10 2009 - 12:48:37 ART

This archive was generated by hypermail 2.2.0 : Mon May 04 2009 - 07:39:11 ART