Problem with redistribute static routes from venet (openvz pseudointerface)
Ondrej Filip
feela at network.cz
Sun Mar 20 23:47:07 CET 2011
On 20.3.2011 22:33, Łukasz Chrustek wrote:
> Hello,
>
> I would like to import routes (ips exactly, with netmask /32) added by
> openvz virtualization to main ruting kernel table, when the
> virtualization system starts. I don't want to be misunderstand, but in
> quagga it works :), and I would like to test (and switch to) bird.
> Unfortunetly in bird I can't see the routes(ips) from venet0, see
> below. My configuration (most important parts, if You think You will
> need more, please let me now):
Hi!
Can you send us:
show interfaces
show protocols all direct1
show route protocol direct1
?
Ondrej
>
> protocol direct {
> interface "-eth*", "venet*"; # Restrict network interfaces it works with
> }
> protocol kernel {
> learn; # Learn all alien routes from the kernel
> persist; # Don't remove routes on bird shutdown
> scan time 20; # Scan kernel routing table every 20 seconds
> # import none; # Default is import all
> import all;
> export all; # Default is export none
> # kernel table 5; # Kernel table to synchronize with (default: main)
> kernel table 254;
> }
> protocol static {
> import all;
> #route X.Y.10.61/32 via "venet0";
> #route X.Y.10.60/32 via "venet0";
> #route 192.168.1.51/32 via "venet0";
> #route 192.168.1.140/32 via "venet0";
> #route X.Y.10.64/32 via "venet0";
> #route X.Y.10.65/32 via "venet0";
> }
>
> Above configuration (with route) doesn't work either, so I commented
> this out.
>
> protocol ospf MyOSPF {
> tick 2;
> import all;
> export all;
> # export filter {
> # ospf_metric1 = 1000;
> # if source = RTS_STATIC then accept; else reject;
> # };
>
> # rfc1583compat yes;
> area 0.0.0.0 {
> #networks {
> # X.Y.10.65/32;
> #};
> };
>
> As You can see, I tried some configuration, none worked. The main
> table looks like this:
>
> # ip route ls t 254
> X.Y.10.61 dev venet0 scope link
> X.Y.10.60 dev venet0 scope link
> 192.168.1.51 dev venet0 scope link
> 192.168.1.140 dev venet0 scope link
> X.Y.10.64 dev venet0 scope link
> X.Y.10.65 dev venet0 scope link
> X.Y.11.0/29 dev eth0 proto kernel scope link src X.Y.11.3
> 10.1.1.0/24 dev eth1 proto kernel scope link src 10.1.1.0
> default via X.Y.11.1 dev eth0 onlink
>
> and in birdc:
>
> bird> show route
> 0.0.0.0/0 via X.Y.11.1 on eth0 [kernel1 22:10] * (10)
> 10.1.1.0/24 dev eth1 [MyOSPF 22:10] * I (150/10) [X.Y.11.3]
> X.Y.11.0/29 dev eth0 [MyOSPF 22:10] * I (150/10) [X.Y.11.3]
>
> # ip a l
>
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc sfq state UP qlen 1000
> link/ether 00:21:85:3c:f5:76 brd ff:ff:ff:ff:ff:ff
> inet X.Y.11.3/29 brd X.Y.11.7 scope global eth0
> inet6 fe80::221:85ff:fe3c:f576/64 scope link
> valid_lft forever preferred_lft forever
> 3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
> link/ether 00:21:85:3c:f5:77 brd ff:ff:ff:ff:ff:ff
> inet 10.1.1.0/24 scope global eth1
> 5: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
> link/void
> inet6 fe80::1/128 scope link
> valid_lft forever preferred_lft forever
>
>
More information about the Bird-users
mailing list