Support Center > Search Results > SecureKnowledge Details
Routing issues when adding two overlapping routes on Gaia OS, and then removing one of them Technical Level
Symptoms
  • When adding two overlapping routes on Gaia OS, and then removing one of them, there are leftovers in Gaia Database ('/config/db/initial' file), which lead to routing issues.

    Example:

    1. Add these routes:
      1.1.1.0/24 --> 10.50.50.50 
      1.1.1.0/25 --> 10.50.50.50
      
    2. In Gaia Database, the following lines will be added:
      routed:instance:50:static:network:1.1.1.0 t 
      routed:instance:50:static:network:1.1.1.0:masklen:25 t 
      routed:instance:50:static:network:1.1.1.0:masklen:25:gateway t 
      routed:instance:50:static:network:1.1.1.0:masklen:25:gateway:address:10.50.50.50 t 
      routed:instance:50:static:network:1.1.1.0:masklen:24 t 
      routed:instance:50:static:network:1.1.1.0:masklen:24:gateway t 
      routed:instance:50:static:network:1.1.1.0:masklen:24:gateway:address:10.50.50.50 t
      
    3. Delete the '1.1.1.0/25' route.

    4. The following is left in the Gaia Database:
      routed:instance:50:static:network:1.1.1.0:masklen:24 t 
      routed:instance:50:static:network:1.1.1.0:masklen:24:gateway t 
      routed:instance:50:static:network:1.1.1.0:masklen:24:gateway:address:10.50.50.50 t
      
      The common line for both routes was deleted:
      routed:instance:50:static:network:1.1.1.0 t

    5. The real issue occurs when changing the next hop of the '1.1.1.0/24' route to '10.50.50.51':
      routed:instance:50:static:network:1.1.1.0 t 
      routed:instance:50:static:network:1.1.1.0:masklen:24 t 
      routed:instance:50:static:network:1.1.1.0:masklen:24:gateway t 
      routed:instance:50:static:network:1.1.1.0:masklen:24:gateway:address:10.50.50.51 t 
      routed:instance:50:static:network:1.1.1.0:masklen:24:gateway:address:10.50.50.50 t
      
          
Solution
Note: To view this solution you need to Sign In .