Route selection issue

samuel.lao85samuel.lao85 Member Posts: 19 ■□□□□□□□□□
I everybody,

I have the following issue about route selection. This is an extract from our router...
I have the following table:
172.16.0.0 /16 is variable subnetted, 5 subnets, 4 masks
R 172.16.1.1 /32 (120/1) via 172.16.25.2 serial 0/1/1
R 172.16.1.0 /24 (120/2) via 172.16.25.129 serial 0/1/0
R 172.16.0.0 /22 (120/1) via 172.16.25.2 serial 0/1/1
R 172.16.0.0 /17 (120/2) via 172.16.25.129 serial 0/1/0
R 0.0.0.0 /0 (120/3) via 172.16.25.2 serial 0/1/1

When I write show ip route x.x.x.x command for the IPs, it responses with routes that are confused to me....
For ip 172.16.10.1 it says that matches route 172.16.0.0 /17, but the theory says that it must match the route with the longest prefix lenght and I think it has to be 172.16.0.0 /22.
For ip 172.16.130.1 it says that matches route 0.0.0.0, what about route 172.16.0.0 /22, can it fit there ? I think so.
For ip 172.16.125.1 it says that matches the route 172.16.0.0 /17, the same think, what about 172.16.0.0 /22 ?

Please a little help because i´m confusing..

Comments

  • Forsaken_GAForsaken_GA Member Posts: 4,024
    I everybody,

    I have the following issue about route selection. This is an extract from our router...
    I have the following table:
    172.16.0.0 /16 is variable subnetted, 5 subnets, 4 masks
    R 172.16.1.1 /32 (120/1) via 172.16.25.2 serial 0/1/1
    R 172.16.1.0 /24 (120/2) via 172.16.25.129 serial 0/1/0
    R 172.16.0.0 /22 (120/1) via 172.16.25.2 serial 0/1/1
    R 172.16.0.0 /17 (120/2) via 172.16.25.129 serial 0/1/0
    R 0.0.0.0 /0 (120/3) via 172.16.25.2 serial 0/1/1

    When I write show ip route x.x.x.x command for the IPs, it responses with routes that are confused to me....
    For ip 172.16.10.1 it says that matches route 172.16.0.0 /17, but the theory says that it must match the route with the longest prefix lenght and I think it has to be 172.16.0.0 /22.
    For ip 172.16.130.1 it says that matches route 0.0.0.0, what about route 172.16.0.0 /22, can it fit there ? I think so.
    For ip 172.16.125.1 it says that matches the route 172.16.0.0 /17, the same think, what about 172.16.0.0 /22 ?

    Please a little help because i´m confusing..

    Newp.

    172.16.0.0/22 = 172.16.0.0 through 172.16.3.255. So 172.16.10.1 isn't going to match on that, 172.16.0.0/17 is correct

    Same for the second route, it doesn't fit within the range, and since there's no more specific route, it matches the default

    for the third, 172.16.0.0/17 = 172.16.0.0 through 172.16.127.255, so it does fit within the /17

    You need to do a little more studying on subnetting
  • badboyeeebadboyeee Member Posts: 348
    wrong forum, try the CCNA one :D
    2011 Certification Plans so far:
    [Cisco: CCENT (ICND1)-> CCNA (ICND2)]
    [MS: MCP-> MCDST-> MCTS / MCITP:ESDT7-> MCITP:EDA7]

    Class taking:
    [Cisco NetAcademy - Network Fundamentals (35%)]

    Video currently watching:

    [CBT Nuggets - CCENT w/ Jeremy (50%)]
    [CBT Nuggets - 20-721 (40%)
Sign In or Register to comment.