network | loopback | serial |
| Config | Config | Config |
CCNP Route : Redistribution
This is my personal lab, based on
CBT nuggets CCNP Route-18 redistribution studies. Any questions , please be free to
contact me at ohhhvictor@gmail.com
Advanced Redistribution Lab
1.-Configure
EIGRP and OSPF for the network shown. Advertise all the network on all
the routers. Do not implement any summarization feature for EIGRP or
OSPF.Routes should never be advertised in both OSPF and
EIGRP routing domains.
2.- Enable full, mutual redistribution on R2 and R3 between OSPF and EIGRP. The 10.4.0.0/24 and 10.4.1.0/24 subnets
should have a seed metric of 100 and an OSPF tag of 10 while the 10.4.2.0/24 and 10.4.3.0/24 subnets should have a
seed metric of 200 and an OSPF tag of 20. All other subnets redistributed into OSPF should have a seed metric of 300
and an OSPF tag of 30. OSPF routes redistributed into EIGRP should have a seed metric of BW: 400 DLY: 20 REL: 255
LD: 1 MTU: 1500 and a tag of 40. Finally, external OSPF routes should not increment their metric as they pass
through the OSPF domain.
We
will try to make the proper configuration on the routers, the serial
interface, networks, routing protocols etc. so you will understand
the whole process..
This is going to be our procedure:
R1>enable
R1#conf t
R1(config)#h
ostname R1
R1(config)#int lo11
R1(config-if)#
R1(config-if)#no shut
R1(config-if)#int lo11
R1(config-if)#ip address 10.1.0.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#int s0/0
R1(config-if)#ip address 10.1.12.1 255.255.255.0
R1(config-if)#int s0/1
R1(config-if)#ip address 10.1.13.1 255.255.255.0
R1(config-if)#no shut
R2#hostname R2
Int s0/0
Ip address 10.1.12.2 255.255.255.0
no shut
Int s0/1
Ip address 10.1.23.2 255.255.255.0
no shut
Int s0/2
Ip address 10.1.24.2 255.255.255.0
No shut
R3#hostname R3
Int s0/0
Ip address 10.1.13.3 255.255.255.0
no shut
Int s0/1
Ip address 10.1.23.3 255.255.255.0
No shut
R4#hostname R4
Int s0/0
Ip address 10.1.24.4 255.255.255.0
no shut
Int lo0
Ip address 10.4.0.1 255.255.255.0
no shut
Int lo1
Ip address 10.4.1.1 255.255.255.0
no shut
Int lo2
Ip address 10.4.2.1 255.255.255.0
no shut
Int lo3
Ip address 10.4.3.1 255.255.255.0
no shut
Int lo4
Ip address 10.4.4.1 255.255.255.0
No shut
Here we can see more details of the serial interfaces ,and loopback address , be careful asigning ip addres to each interface in this redistribution exercise.
Now we will continue with the network configuration
Router Network configuration
R1#router ospf 1
#network 10.0.0.0 0.255.255.255 area 0
R4#router eigrp 100
#network 10.0.0.0
#No auto
R2#router ospf 1
Network 10.1.12.0 0.0.0.255 area 0
Router eigrp 100
Network 10.1.23.0 0.0.0.255 ( no area 0 because it’s eigrp)
Network 10.1.24.0 0.0.0.255
No auto
Ctrl z
R3#conf t
Router ospf 1
Network 10.1.13.0 0.0.0.255 area 0
Router eigrp 100
Network 10.1.23.0 0.0.0.255
No auto
Access list configuration
R2# access-list 1 permit
10.4.0.0 0.0.0.255
R2# access-list 1 permit
10.4.1.0 0.0.0.255
R2# access-list 2 permit
10.4.2.0 0.0.0.255
R2# access-list 2 permit
10.4.3.0 0.0.0.255
R2# access-list 3 permit
10.4.4.0 0.0.0.255
R2# do show access-list
Route map configuration
route-map EIGRP-TO-OSPF
do show route map (
to see the 10’s sequence)
match ip address 1 (
first access list)
set ? (
to see the attributes)
set metric 100
set metric
show route-map ( to confirm it)
show run | s route-map (for
copy and paste in notepad and have flexibility)
*notepad notes: we don’t put match ip address , so it
will match everything.
Route match eigrp-to-ospf
permit 40
Set metric 300
Set metric 30
We skiped the permit
30 because we want to follow paragrapg 4 directions: 10.4.4.0 shouldn’t reach ospf domain
R2#show access-list ( to see the access list #3 that match 10.4.4.0)
*Notepad notes: we will use a “deny-permit sequence”
:
route-map EIGRP-TO-OSPF deny 30
match ip address 3
copy and paste from notebook to R2 and them to check everything :
R2#show run | s route-map
Redistribution configuration
R2 configuration
R2#conf t
R2#router ospf 1
R2#redistribute eigrp 100 subnets route-map EIGRP-TO-OSPF
R1#sh ip route (The
place to see the redistribution)
R1#sh ip route 10.4.0.0 (
this and ANY network ,to see the
tag, check 10.1.
23/4.0, 10.4.4.0
)
R3 configuration
R2#sh run | s access-list
*Notebook note:copy first
accest list , 2
nd route map, ctrl z, 3
rd redistr. Config.
,etc.
R1# show ip route (To
see the routes coming from R2 and R3, and having equal load balance because
they have the same metric)
We can see here the metric are symmetrical ( 100, 200 , 300) so, so far we're doing good
Redistribution configuration EIGRP to OSPF
R2#conf t
R2#router ospf 1
R2#redistribute eigrp 100 subnets route-map EIGRP-TO-OSPF
R1#sh ip route (The
place to see the redistribution)
R1#sh ip route 10.4.0.0 (
this and ANY network ,to see the
tag, check 10.1.
23/4.0, 10.4.4.0
)
R3 configuration
R2#sh run | s access-list
*Notebook note:copy first
accest list , 2
nd route map, ctrl z, 3
rd redistr. Config.
,etc.
R1# show ip route (To
see the routes coming from R2 and R3, and having equal lodad balance because
they have the same metric)
Redistribution Configuration OSPF to EIGRP
R2#Route-map OSPF-TO-EIGRP
Set ? (to
see the values)
Set metric 400 20 255 1 1500
Set tag 40
Exit
R2#router eigrp 100
Redistribute ospf 1 route-map OSPF-TO-EIGRP
R4#show ip route (To see if the
changes took effect)
R4#show ip route 10.1.0.0 (To
see the Tag)
*Note: Do the same
with R3
R2#show run | s route-map (
copy and paste)
R3#router eigrp 100
R3#redistribute OSPF 1 route-map OSPF-TO-EIGRP
Enable filtering to avoid looping issues
We will need to
prevent tag 40 for going back EIGRP to OSPF and tag 10,20, 30 to go back to
EIGRP in both routers
R2#show route-map
Route-map EIGRP-TO-OSPF deny 5 ( 10 is the sequence before)
Match tag 40
Ctrl z
Show route-map ( to check the application)
Now in the other direction:
R2#route-map OSPF-TO-EIGRP deny 5
Match tag 10 20 30
Ctrl z
Show route-map
Note: copy and paste in R3#
Paragraph 5: Making R3 the preferred
R4#traceroute 10.1.0.1 (
2 hops away)
-We see the routes
coming from R2 to R1. If we go to R3# show ip route
we see that 10.1.o.o ( 110/65)
have an adm. Dist . (ad) of 110 and a metric of 65 from OSPF
-If we go to to R#4
show ip route we see (170/6917120) from
EIGRP
R2#show ip route
R2#router eigrp 100
R2#distance EIGRP 90 105
( eigrp with an internal AD of 90, and will turn in 105 (5 below ospf)
R2#show ip route (to
confirm)
R4#show ip route (
you wont see anything differenet)
R4#traceroute 10.1.0.1 (to
confirm ,3 hops away)
Email
Any questions: ohhhvictor@gmail.com
Do you have any questions? Let me know at ohhhvictor@gmail.com
ohhhvictor@gmail.com
No comments: