[Xorp-hackers] Problems when adding a static route

Rafael Paoliello Guimaraes rafael.guimaraes@ac.upc.edu
Tue, 18 Jan 2005 21:16:47 +0100


Hello,

Here I am again with more problems... I am starting to think that I am 
being very boring... Well, let's go to the problem:

Whenever I try to add a static route where the nexthop is an IP address 
for which there is more than one route, I get an error message telling 
that the route could not be added because the nexthop is not directly 
connected to the host.

Well, in my case the route I was trying to add was:

   10.0.1.1/32 nexthop 10.0.0.4

and I had the following pre-existing routes:

   10.0.0.0/24 nexthop 10.0.0.1 (connected)
   10.0.0.4/32 nexthop 0.0.0.0 (test)

It seemed to me that the RIB was searching for a route to the nexthop 
not only in the connected routes, and than it had a match with the 
second route (which comes from the test protocol) and it though that the 
desired nexthop was not directly connected. In order to solve this, I 
changed my test protocol to add every 1-hop route as if it were the 
connected protocol (just by changing the protocol name parameter in the 
XRL call). Well, with this changes I had the following routing table:

   10.0.0.0/24 nexthop 10.0.0.1 (connected)
   10.0.0.4/32 nexthop 0.0.0.0 (connected)

But I still get the same error (nexthop is not directly connected). When 
I don't have the second route in the table, everything goes fine... Does 
anybody know how to solve this? Am I doing something wrong?

Cheers,

-- 

===========================================
  Rafael Paoliello Guimaraes
  PhD Student - Computer Networking Group
  Department of Computer Architecture (DAC)
  Polytechnic University of Catalonia (UPC)
  Phone: +34-934017187   Fax: +34-934017055
  URL: http://people.ac.upc.es/rpaoliel
===========================================