Longest match routing

Hi,

 

I was wondering why in this lab they only use the interface (and not the destination IP address) for the static routes over the Ethernet link.

 

LAB solution:

<span class="code-bold">R4:</span>
ip route 150.1.5.5 255.255.255.255 GigabitEthernet1.45
<br />
<br />
I am getting the same results if I use 
ip route 150.1.5.5 255.255.255.255 155.1.45.5
<br />
if I shutdown GigabitEthernet1.45 , the traffic will go over the DMVPN cloud as well.

Am I missing something? Or are both solutions equivalent?

thanks a lot
Giordano

Comments

  • "is your static route removed from RIB after interface goes down?"

     

    yes, I get the same results as the lab verification when shutting down the interface.

     

  • JoeMJoeM ✭✭✭

    ip route 150.1.5.5 255.255.255.255 GigabitEthernet1.45

    I am getting the same results if I use

    ip route 150.1.5.5 255.255.255.255 155.1.45.5

    if I shutdown GigabitEthernet1.45 , the traffic will go over the DMVPN cloud as well.

    Am I missing something? Or are both solutions equivalent?

     


    For the purpose of this specific task, it does not matter. We only care about the longest existing match. This trumps everything including routing protocols. 




            ip route 150.1.5.0 255.255.255.0
            ip route 150.1.0.0 255.255.0.0


     

    The two methods (interface vs
    next-hop) only affect the manner for finding the egress port for the
    statement. But that is not part of this lesson.

    EDIT: I can see how the workbook solution might be confusing.  A note should probably be placed in the solution mentioning that this does not matter for the task.   Maybe give feedback to the editors (feedback button in workbook).

  • what's your lab build on? iou, gns3, csr1000, or real gear?

    CSR1000v on ESXi 5.5

Sign In or Register to comment.