[Xorp-users] Routing problem, ERROR xorp_rib:4211 RIB +138

Manuel J Romero birkov at gmail.com
Tue Nov 6 09:04:09 PST 2007


Hello!

Thanks a  lot for your interesting.  I have configured my routers as
simple as possible to reproduce the problem. Here is my configuration:

---------------------------------------------------------------------------
show configuration

    protocols {
        static {
            route 10.100.153.0/24 {
                next-hop: 10.100.153.101
                qualified-next-hop 10.100.240.3 {
                    metric: 2
                }
            }
            route 0.0.0.0/0 {
                next-hop: 10.100.153.1
            }
        }
    }
    policy {
    }
    interfaces {
        loopback lo {
        }
        ethernet eth0 {
            hw-id: 00:13:46:3b:d0:30
            address 10.100.250.1 {
                prefix-length: 24
            }
        }
        ethernet eth1 {
            hw-id: 00:50:ba:de:b9:1a
            address 10.100.240.1 {
                prefix-length: 24
            }
        }
        ethernet eth2 {
            hw-id: 00:50:8d:e7:19:4b
            address 10.100.153.101 {
                prefix-length: 24
            }
        }
        ethernet eth3 {
            hw-id: 00:08:54:42:b0:b5
            address 10.100.120.1 {
                prefix-length: 24
            }
        }
    }
    service {
        nat {
            rule 1 {
                type: "masquerade"
                inbound-interface: "eth3"
                outbound-interface: "eth2"
                protocols: "all"
            }
            rule 2 {
                type: "masquerade"
                inbound-interface: "eth0"
                outbound-interface: "eth2"
                protocols: "all"
            }
        }
    }
    firewall {
    }


(I skip user configuration)
-------------------------------------------------------



Situation:


Now I've got two xorp routers, they are connected to a internet router
which is connected to internet. Something like this:


|Xorp Router 1|       |Xorp Router 2|
         |                            |
         | 10.100.153.101     | 10.100.153.103
         |                            |
         |                            |
         ----|Internet router|----     10.100.153.1
                        |
                        |
                   Internet


Each Xorp router are connected to 3 lans: 10.100.120.0/24,
10.100.240.0/24 and 10.100.250.0/24 (the idea is to use VRRP in the
future), so I want that one interface (for example 10.100.153.101 from
R1 fails) the traffics goes to the R2 through an internal lan and from
it go to internet using 10.100.153.103.

Something like:

-Normal situation Server  -> 10.100.153.101 -> 10.100.153.1 -> Internet

-R1 without connection -> 10.100.240.1 -> 10.100.240.3 ->
10.100.153.103 -> 10.100.153.1 -> Internet

To make it I use "qualified-next-hop". But the problem is this when I
unplug the 10.100.153.101 connection:



*****************************Normal
situation***************************************

>>>>Xorp Routes

0.0.0.0/0               [static(1)]     > to 10.100.153.1       via eth2
10.100.120.0/24         [connected(0)]  > to 10.100.120.2       via eth3
10.100.153.0/24         [connected(0)]  > to 10.100.153.101     via eth2
10.100.240.0/24         [connected(0)]  > to 10.100.240.2       via eth1
10.100.250.0/24         [connected(0)]  > to 10.100.250.2       via eth0
127.0.0.0/8             [connected(0)]  > to 127.0.0.1          via lo


>>>>Kernel's routes:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.100.153.0    *               255.255.255.0   U     0      0        0 eth2
10.100.250.0    *               255.255.255.0   U     0      0        0 eth0
10.100.120.0    *               255.255.255.0   U     0      0        0 eth3
10.100.240.0    *               255.255.255.0   U     0      0        0 eth1
default         10.100.153.1    0.0.0.0         UG    1      0        0 eth2


>>>>Ping to 10.100.153.1 from master:

PING 10.100.153.1 (10.100.153.1) 56(84) bytes of data.
64 bytes from 10.100.153.1: icmp_seq=1 ttl=64 time=0.73 ms
64 bytes from 10.100.153.1: icmp_seq=2 ttl=64 time=0.66 ms


**********************************************


********* R1 WAN unplugged ***************

>>>>Routes

Routes: 5/5, Paths: 5/5
10.100.120.0/24         [connected(0)]  > to 10.100.120.2       via eth3
10.100.153.0/24         [static(2)]     > to 10.100.240.3       via
eth1    <- New route!
10.100.240.0/24         [connected(0)]  > to 10.100.240.2       via eth1
10.100.250.0/24         [connected(0)]  > to 10.100.250.2       via eth0
127.0.0.0/8

(Note: static route to 0.0.0.0/0 has disappeared but this problem I
will solve later)


>>>>Kernel's Routes

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.100.153.0    *               255.255.255.0   U     0      0
0 eth2            <- This one already exists the best metric
10.100.153.0    10.100.240.3    255.255.255.0   UG    2      0
0 eth1    <- new route!
10.100.250.0    *               255.255.255.0   U     0      0        0 eth0
10.100.120.0    *               255.255.255.0   U     0      0        0 eth3
10.100.240.0    *               255.255.255.0   U     0      0        0 eth1



>>>>Ping to 10.100.153.1 from R1:

PING 10.100.153.1 (10.100.153.1) 56(84) bytes of data.
>From 10.100.153.101 icmp_seq=1 Destination Host Unreachable
>From 10.100.153.101 icmp_seq=2 Destination Host Unreachable




>>>> /var/log/messages of master:


Oct 31 09:26:20 localhost xorp_fea: [ 2007/10/31 09:26:20 WARNING
xorp_fea FEA ] Got update for interface not in libfeaclient tree: eth2
Oct 31 09:26:20 localhost xorp_rib: [ 2007/10/31 09:26:20  ERROR
xorp_rib:4211 RIB +138
/home/autobuild/builds/master/2007-10-24-0001/ofr/xorp/xorp/rib/rt_tab_origin.cc
delete_route ] OT: attempt to delete a route that doesn't exist:
10.100.153.0/24



>>>> When I delete the 10.100.153.0/24 with metric 0, like "xorp_rib"
wanted to do:

route del -net 10.100.153.0/24

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.100.153.0    10.100.240.3    255.255.255.0   UG    2      0        0 eth1
10.100.250.0    *               255.255.255.0   U     0      0        0 eth0
10.100.120.0    *               255.255.255.0   U     0      0        0 eth3
10.100.240.0    *               255.255.255.0   U     0      0        0 eth1


PING 10.100.153.1 (10.100.153.1) 56(84) bytes of data.
64 bytes from 10.100.153.1: icmp_seq=1 ttl=64 time=0.554 ms
64 bytes from 10.100.153.1: icmp_seq=2 ttl=64 time=0.178 ms


All works fine!!!!

***************************************************

(Another problem is that when I plug again the cable I've to create
again the route that I had deleted manually)



Thanks a lots and please help me!



More information about the Xorp-users mailing list