How to redistribute the different protocols route in each other.
#OSPF #EIGRP #LAB #video #tutorial
go to below link for configurations.
https://bit.ly/3cbxrLL
R4 s1/1 and f0/0 are
in OSPF 11 area 0
R2 s1/0 in OSPF 11 area
0
s1/1 & F0/0 in EIGRP 10
R3
s1/1, s1/2, and f0/0 in
EIGRP 10. for R3 if you see there is no device attached at fast ethernet interface.
so how can we keep this interface active and
make sure it doesn't need any hello packets?
because we already know that there is no device
connected but how to tell this to computer/Router/Network?
we will later check this during configuration, meanwhile, you can share
your answer in the comments.
now let's go to configurations and first we will see the description of commands to check then we will start configurations.
these are R1 configurations with their description.
steps:
1. configure IP on interfaces and use no shutdown or no shut command to enable the interface.
2. create your OSPF process with your own process ID, I am using 11.
3. then advertise the networks in OSPF till line 16.
so how do we choose the networks to advertise which belong to OSPF?
for those who don't know
check the topology and R1 all 3 interfaces R4 2 interfaces R2 1 interface is in OSPF 11 area 0, we have chosen by our self for each router the protocol we can change it as well. but for this lab, we have chosen as it is shown.
so the first network if you see 1.0.0.0 is in b/w R1 and R2 on interfaces
S1/0 on both sides.
and then 4.0.0.0 b/w R1 and R4 on interfaces S1/1 on both sides in OSPF 11 area 0.
and then there are 2 more networks on ethernet of R1 and R4 200.100.50.0/24, 200.100.200.0/24
similarly networks for EIGRP are advertised based on the actual connection
R1 have 3 directly connected networks and 1 via OSPF we will
verify this as well after configuration if we check from topology network 200.100.200.0/24 will be displayed in routing table as
connected via OSPF.
if you have any confusion do let me know in the comments box.
ok, let's start the configurations.
if you give the router command with? you can see the options of protocol configuration
so here if you check for advertising network I have used the wild card
mask instead of subnet mask wild card mask is opposite of the subnet mask.
for detail reading and concept building you can search about it on google.
here I have one question we have a wildcard mask while networking advertisement and as well in ACL access control list.
so please share your answer in the comment box for
difference between wildcard of ACL and OSPF?? share the answer in the comments
it is showing only 1 route why??
.
.
.
.
.
because we have not configured other connected interfaces.
let's do and then we will come back and check.
now check the routing table O means via OSPF and C means directly connected.
R1 has 3 directly connected and 1 via OSPF.
D means EIGRP.
ok, let's check other routers' tables.
R2 has 3 OSPF 1 EIGRP and 3 directly connected keep this in mind and we will verify from the topology as well as from the table
O 200.100.200.0/24
C 1.0.0.0/8 is directly connected
C 2.0.0.0/8 is directly
D 3.0.0.0/8 [90/2681856] via 2.1.1.2,
O 4.0.0.0/8 [110/128] via 1.1.1.1,
O 200.100.50.0/24 [110/65] via 1.1.1.1,
C 200.100.100.0/24 is directly connected,
now let's redistribute the ospf and EIGRP.
when redistributing OSPF in eigrp check the metrics it's asking for
so configuration is done let us check if R1 is showing us EIGRP routes or not? before it was not showing because its all connectivity is based on OSPF now after protocol redistribution it must show us EIGRP routes
the terms we get O: via OSPF route
C: directly connected
O E2: OSPF external type 2 means it is originally eigrp route but after we redistributed eigrp into OSPF it is showing as external OSPF type 2.
we have OSPF type 1 and type 2 for external routes. by default, it chooses type 2
The difference between OSPF external type 1 and 2 is as below
type 2:
it does not show the exact distance from source to destination
and
Type 1:
it shows the exact distance from source to destination.
what I am saying is let me show you in the routing table.
if you check the R1 table for OSPF external type 2, it has taken 20 as the default value
we can change the metric type from 2 to 1...
by using this command
redistribution eigrp 11 subnets metric-type 1
let me show you.
now after setting type 1 on all routers our routing table is showing and now the metric is changed from 20 to 84
if we check R3 we got
D EX: it shows external EIGRP means OSPF routes that were
redistributed in EIGRP.
Thanks for watching.