02-11-2023 06:56 AM - modifié 02-11-2023 09:11 AM
Hi guys,
I'm currently reviewing the longest prefix match routing lesson, but I'm hitting a snag. Let me explain.
I know the following thing: The entry that has the longest number of network bits that match the ip destination address is always the best match.
1/ First exercise
Easy.
*********************************************************************************************************************************
2/ Second exercise
Even easier, ExSim-Max kind of help you here with additional information in the multiple answers.
*********************************************************************************************************************************
3/ Third exercise
Wait.. what? It's /24 and not 28/? I don't really get it.. Is there any formula to find out the right answer? Am I supposed to perform subnetting?
I welcome any comment, please.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
EDIT.
Here what I might have missed:
1/ First exercise
Destination -> 192.168.1.1
.1=.00000001
/24=.00000000 X
/30=.00000000 V
2/ Second exercise
Destination -> 10.20.0.14
.14=.00001110
/26=.00000000 X
/28=.00000000 V
3/ Third exercise
Destination -> 10.20.0.17
.17=.00010001
/24=.00000000 V
/28=.00000000 X
Would you agree on my demonstration above?
Résolu ! Accéder à la solution.
le 02-11-2023 10:18 AM
Hello @LetMePass,
ip host = 10.20.0.17.
If /28 as mask, the subnet of that host should be 10.20.0.16. The ip host 10.20.0.17 is not part of the subnet 10.20.0.0/28 ; with this subnet you have host from .1 to .14 (.15 as broadcast).
Since on the RIB you have route towards 10.20.0.0, answer C is the good answer.
le 02-11-2023 10:18 AM
Hello @LetMePass,
ip host = 10.20.0.17.
If /28 as mask, the subnet of that host should be 10.20.0.16. The ip host 10.20.0.17 is not part of the subnet 10.20.0.0/28 ; with this subnet you have host from .1 to .14 (.15 as broadcast).
Since on the RIB you have route towards 10.20.0.0, answer C is the good answer.
le 06-11-2023 03:28 AM
Hello,
Yes, you are correct, but I remains unsure about the right formula to use. Boson gives a similar explanation with real way to find out right answer. What would be the fastest way of calculating that?
I would say:
ip host = 10.20.0.17.
/24=255.255.255.0 | 255-0=255
/28=255.255.255.240 | 255-240=15
/24 last broadcast=10.20.0.255
/28 last broadcast=10.20.0.15
06-11-2023 09:34 AM - modifié 06-11-2023 09:37 AM
Hello @LetMePass,
Yes!
That's also explain the third exercice...host 10.20.0.17 is not part of 10.20.0.0/28 ! It is part of 10.20.0.16/28.
le 06-11-2023 03:59 AM
Destination -> 192.168.1.1
the bits formal is
Destination IP bit >= the route mask
Thanks A Lot
MHM
Découvrez et enregistrez vos notes préférées. Revenez pour trouver les réponses d'experts, des guides étape par étape, des sujets récents et bien plus encore.
Êtes-vous nouveau ici? Commencez par ces conseils. Comment utiliser la communauté Guide pour les nouveaux membres
Parcourez les liens directs de la Communauté et profitez de contenus personnalisés en français