+ Reply to Thread
Results 1 to 8 of 8
  1. Member
    Join Date
    Dec 2015
    Posts
    45
    #1

    Default Question about IP Routes - Longest match rule

    im quite confused on this question even though i can subnet. Which interface will a packet with a destination address of 10.10.10.14 be forwarded from?
    10.10.10.16/28
    10.10.10.4/30
    10.10.10.8/29

    So when i did the math out. /28 = 255.255.255.240. 256-240 = 16. block size 0,16,32,64. The broadcast for 0 subnet would be 15 which is minus 1 from the next subnet, and last valid host would be 14.

    /30 = 255.255.255.252. 265-252 = 4. block size 0,4,8,12,16,20. The broadcast for 12 subnet is 15. Last valid host is 14.

    /29 = 255.255.255.248. 256-248 = 8. block size 0,8,16. The broadcast for 8 subnet is 15. Last valid host is 14.
    The book says the answer is 10.10.10.8/29. They all have the valid host as 14 so wouldnt they all be able to work?

    My best guess is that 10.10.10.14 falls in between the range for 10.10.10.8/29 which is 10.10.10.9-10.10.10.14.
    Last edited by alu408; 04-23-2016 at 05:02 AM.
    Reply With Quote Quote  

  2. SS -->
  3. Guest
    Join Date
    Oct 2010
    Posts
    954

    Certifications
    A+, Network+, CCNA
    #2
    They all don't have a valid host as .14.
    10.10.10.16/28 = .16 - .31
    10.10.10.4/30 = .4 - 7
    10.10.10.8/29 = .8 - .15

    10.10.10.4/30 is not the same as 10.10.10.12/30
    10.10.10.16/28 is not the same as 10.10.10.0/28
    Last edited by Priston; 04-23-2016 at 05:56 PM.
    A.A.S. in Networking Technologies
    A+, Network+, CCNA
    Reply With Quote Quote  

  4. Member
    Join Date
    Dec 2015
    Posts
    45
    #3
    Quote Originally Posted by Priston View Post
    They all don't have a valid host as .14.
    10.10.10.16/28 = .16 - .31
    10.10.10.4/30 = .4 - 7
    10.10.10.8/29 = .8 - .15

    10.10.10.4/30 is not the same as 10.10.10.12/30
    10.10.10.16/28 is not the same as 10.10.10.0/28

    I guess what im trying to say for /28 - in the 0 subnet the range is from .1-.15 so the .14 does fall in the 0 subnet which is valid.
    and /30 = in the 12 subnet. which is .13 - .14 range, the .14 falls in the 12 subnet.
    The last one which is =29 in the 8th subnet is .9-.14 which has .14. So all 3 has a valid host. Why are you focusing on one subnet and not all subnets is which im confused on.. The correct answer in the book is the last one as well.
    Reply With Quote Quote  

  5. Guest
    Join Date
    Oct 2010
    Posts
    954

    Certifications
    A+, Network+, CCNA
    #4
    I'm only focused on the subnets that are listed as answers.

    10.10.10.12/30 is NOT listed as a choice when your answering the question.
    10.10.10.4/30 and 10.10.10.12/30 are two completely separate subnets.
    A.A.S. in Networking Technologies
    A+, Network+, CCNA
    Reply With Quote Quote  

  6. Member Sy Kosys's Avatar
    Join Date
    Mar 2012
    Location
    DFW
    Posts
    94

    Certifications
    A+, CCENT, CCNA R&S, CCSA, BCCS, CCNP Switch
    #5
    Quote Originally Posted by alu408 View Post
    Why are you focusing on one subnet and not all subnets is which im confused on.. The correct answer in the book is the last one as well.
    Because of the given possibilities:
    10.10.10.16/28
    10.10.10.4/30
    10.10.10.8/29

    To quote the greatness of Highlander, there can be only one network where a .14 IP is valid. Nowhere in the initial question are we concerned about subnet X for network Y, if that is also a condition of the question then it will alter the answer for all 3 subnets.

    You basically found the correct answer already, just need to disregard subnet 0,1,2, etc from any possible answers as that is not a condition to be concerned about.
    Reply With Quote Quote  

  7. Member
    Join Date
    Dec 2015
    Posts
    45
    #6
    Quote Originally Posted by Sy Kosys View Post
    Because of the given possibilities:
    10.10.10.16/28
    10.10.10.4/30
    10.10.10.8/29

    To quote the greatness of Highlander, there can be only one network where a .14 IP is valid. Nowhere in the initial question are we concerned about subnet X for network Y, if that is also a condition of the question then it will alter the answer for all 3 subnets.

    You basically found the correct answer already, just need to disregard subnet 0,1,2, etc from any possible answers as that is not a condition to be concerned about.
    I get it now, thank you very much!
    Reply With Quote Quote  

  8. Junior Member Registered Member
    Join Date
    Sep 2017
    Posts
    2
    #7
    hello. I an stuck in the same problem. /29 & /30 both got .14 as valid host. But in case of /29 its the second subnet and in case of /30 its the 4th subnet. So why only /29 and not /30 as well? Please help.
    Reply With Quote Quote  

  9. Junior Member Registered Member
    Join Date
    Sep 2017
    Posts
    2
    #8
    Fortunately i got an answer for this.
    /29 and /30 both are correct but when we specifically talk about longest match rule then its /29. As per this rule the subnet with maximum number of network bits is the best path. For /29 network bits=21 and for /30 network bits=18 and hence /29 is the answer. Please refer this link for more: https://www.juniper.net/documentatio...g-options.html
    Reply With Quote Quote  

+ Reply to Thread

Social Networking & Bookmarks