Problem with redistribute static routes from venet (openvz pseudointerface)

Łukasz Chrustek lukasz at chrustek.net
Tue Mar 22 00:31:18 CET 2011


Witam,

> Hello,

>>> venet0 DOWN (index=5)
>>>         PtP Multicast AdminUp LinkUp MTU=1500

>> This is probably the reason why static protocol did not add the routes.
>> I think BIRD ignore ifaces that do not have any IP address. Could you
>> try to add some IP address to venet0? Then it should turn UP here and
>> the static protocol should work.

> I added ip to the venet0 and route from venet0 (static) showed up in
> ruting tables, but none of the others routes via venet0. I tried to
> add static routes (comented out earlier) and they also showed up in
> bird's routing table:

bird>> show interfaces
> [....]
> venet0 up (index=5)
>         PtP Multicast AdminUp LinkUp MTU=1500
>         10.2.1.1/32 (Primary, broadcast 10.2.1.1, scope site)


bird>> show route
> 0.0.0.0/0          via 91.207.11.1 on eth0 [kernel1 22:45] * (10)
> 10.2.1.1/32        dev venet0 [direct1 22:45] * (240)
>                    dev venet0 [MyOSPF 22:45] I (150/10) [91.207.11.3]
> 10.1.1.0/24        dev eth1 [MyOSPF 22:45] * I (150/10) [91.207.11.3]
> 91.207.11.0/29     dev eth0 [MyOSPF 22:45] * I (150/10) [91.207.11.3]
> 91.207.10.61/32    dev venet0 [static1 22:45] * (200)
> 91.207.10.60/32    dev venet0 [static1 22:45] * (200)
> 192.168.1.51/32    dev venet0 [static1 22:45] * (200)

> but I can't see them in ospf on other routers (It looks like they are
> not imported to ospf - it may be my wrong configuration, see bellow)

I'm sorry, my mistake. Redistribution static routes into ospf works, I
can see them on other routers. Still is problem with vanished routes
'via venet0' after ip add. I can see routes via venet0 in
/proc/net/route:

# cat /proc/net/route
Iface   Destination     Gateway         Flags   RefCnt  Use     Metric  Mask            MTU     Window  IRTT                                                       
eth0    140BCF5B        010BCF5B        0007    0       0       0       FFFFFFFF        0       0       0                                                                               
venet0  3D0ACF5B        00000000        0005    0       0       0       FFFFFFFF        0       0       0                                                                             
venet0  3C0ACF5B        00000000        0005    0       0       0       FFFFFFFF        0       0       0                                                                             
eth0    3201A8C0        010BCF5B        0007    0       0       0       FFFFFFFF        0       0       0

but there is no routes, which are deleted after adding ip to venet0.


-- 
Pozdrawiam,
 Łukasz Chrustek




More information about the Bird-users mailing list