Wednesday, 28 December 2016

CCNP ROUTE REDISTRIBUTION : BASIC REDISTRIBUTION LAB ONE

YouTube Link: https://www.youtube.com/watch?v=4ihZ5-QP-IY

Redistribution is when a routing protocol is used to advertise routes that are learned by some other means, such as static routes, directly connected routes, or by another routing protocol.
While it is desirable to run a single routing protocol throughout your entire IP internetwork, multi-protocol routing is common for a  number of reasons, including company mergers, multiple departments managed by multiple network administrators, and  multi-vendor environments. Often, running different routing protocols is part of a network design.

A multiple protocol environment makes redistribution a necessity. Differences in routing protocol 
characteristics (such as metrics, administrative distance classful, and classless capabilities) can affect redistribution.

RIP and OSPF Redistribution
Note: When redistributing routes into OSPF, a common mistake is to omit the subnets keyword from the redistribution statement. This prevents redistribution from taking place. When there is mutual redistribution between routing protocols, there is the possibility of creating routing loops. A routing loop is when one routing protocol announces a route learned by another routing protocol through redistribution. To avoid this, never announce the information originally received from routing process x back into routing process x. This can be done with the use of distribution lists or route maps.

Redistribution Lab:
This section of the document explains how to use distribution lists or route maps to avoid redistribution problems.
Lab on  Redistribution:



IOU1#sh run | se rip
 redistribute rip subnets route-map RIPPOL
router rip
 version 2
 redistribute ospf 1 metric 3
 network 10.0.0.0
 no auto-summary
IOU1#sh run | se ospf
router ospf 1
 redistribute rip subnets route-map RIPPOL
 network 10.1.12.0 0.0.0.255 area 0
 redistribute ospf 1 metric 3
IOU1#sh run | se eigrp
IOU1#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is not set

      3.0.0.0/32 is subnetted, 3 subnets
R        3.3.3.1 [120/1] via 10.1.13.3, 00:00:28, Serial2/0
R        3.3.3.2 [120/1] via 10.1.13.3, 00:00:28, Serial2/0
R        3.3.3.3 [120/1] via 10.1.13.3, 00:00:28, Serial2/0
      10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C        10.1.12.0/24 is directly connected, Serial2/1
L        10.1.12.1/32 is directly connected, Serial2/1
C        10.1.13.0/24 is directly connected, Serial2/0
L        10.1.13.1/32 is directly connected, Serial2/0

------> route-map and access-list configuration

IOU1#sh ip access
IOU1#sh ip access-lists
Standard IP access list DENY3
    20 permit 3.3.3.2 (1 match)
    10 permit 3.3.3.1 (1 match)
IOU1#sh run | se route-map
 redistribute rip subnets route-map RIPPOL
route-map RIPPOL permit 10
 match ip address DENY3
 set metric 3434


IOU2#sh run | se ospf
router ospf 1
 network 10.1.12.0 0.0.0.255 area 0
IOU2#sh run | se eigrp
router eigrp 100
 network 10.0.0.0
IOU2#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is not set

      3.0.0.0/32 is subnetted, 2 subnets
O E2     3.3.3.1 [110/3434] via 10.1.12.1, 00:19:09, Serial2/1
O E2     3.3.3.2 [110/3434] via 10.1.12.1, 00:19:09, Serial2/1
      4.0.0.0/27 is subnetted, 1 subnets
D EX     4.4.2.0 [170/2560512256] via 10.1.25.5, 00:09:16, Serial2/2
      10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
C        10.1.12.0/24 is directly connected, Serial2/1
L        10.1.12.2/32 is directly connected, Serial2/1
C        10.1.25.0/24 is directly connected, Serial2/2
L        10.1.25.2/32 is directly connected, Serial2/2
D        10.1.45.0/24 [90/2681856] via 10.1.25.5, 00:24:50, Serial2/2


IOU3#sh run | se rip
router rip
 version 2
 network 3.0.0.0
 network 10.0.0.0
 no auto-summary
IOU3#sh run | se ospf
IOU3#sh run | se eigrp
IOU3#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is not set

      3.0.0.0/32 is subnetted, 3 subnets
C        3.3.3.1 is directly connected, Loopback1
C        3.3.3.2 is directly connected, Loopback2
C        3.3.3.3 is directly connected, Loopback3
      10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
R        10.1.12.0/24 [120/1] via 10.1.13.1, 00:00:07, Serial2/0
C        10.1.13.0/24 is directly connected, Serial2/0
L        10.1.13.3/32 is directly connected, Serial2/0


IOU4#sh run | se rip
router rip
 version 2
 network 4.0.0.0
 network 10.0.0.0
 no auto-summary
IOU4#sh run | se ospf
IOU4#sh run | se eigrp
IOU4#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is not set

      4.0.0.0/8 is variably subnetted, 6 subnets, 4 masks
C        4.4.1.0/30 is directly connected, Loopback3
L        4.4.1.1/32 is directly connected, Loopback3
C        4.4.2.0/27 is directly connected, Loopback2
L        4.4.2.1/32 is directly connected, Loopback2
C        4.4.3.0/24 is directly connected, Loopback1
L        4.4.3.1/32 is directly connected, Loopback1
      10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
R        10.1.25.0/24 [120/1] via 10.1.45.5, 00:00:07, Serial2/3
C        10.1.45.0/24 is directly connected, Serial2/3
L        10.1.45.4/32 is directly connected, Serial2/3


IOU5#sh run | se rip
 redistribute rip route-map RIP4
router rip
 version 2
 network 10.0.0.0
 no auto-summary
IOU5#sh run | se ospf
router ospf 1
IOU5#sh run | se eigrp
router eigrp 100
 network 10.0.0.0
 redistribute rip route-map RIP4
IOU5#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is not set

      4.0.0.0/8 is variably subnetted, 3 subnets, 3 masks
R        4.4.1.0/30 [120/1] via 10.1.45.4, 00:00:18, Serial2/3
R        4.4.2.0/27 [120/1] via 10.1.45.4, 00:00:18, Serial2/3
R        4.4.3.0/24 [120/1] via 10.1.45.4, 00:00:18, Serial2/3
      10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
D        10.1.12.0/24 [90/2681856] via 10.1.25.2, 00:24:50, Serial2/2
C        10.1.25.0/24 is directly connected, Serial2/2
L        10.1.25.5/32 is directly connected, Serial2/2
C        10.1.45.0/24 is directly connected, Serial2/3
L        10.1.45.5/32 is directly connected, Serial2/3

Route-map and prefix-list configuration

IOU5#sh run | se route-map
 redistribute rip route-map RIP4
route-map RIP4 permit 10
 match ip address prefix-list DENY4
 set metric 1 1 1 1 1
IOU5#sh run | se ip prefix-list
ip prefix-list DENY seq 20 deny 4.4.1.0/30
ip prefix-list DENY4 seq 10 permit 4.4.2.0/27
ip prefix-list DENY4 seq 20 deny 4.4.1.0/30
ip prefix-list DENY4 seq 30 deny 4.4.3.0/24


---------------

No comments:

Post a Comment