OSPF dont import routes from LSAdb

曾小小 flyinsky2018 at gmail.com
Sun Jan 26 11:39:12 CET 2014


hi, everybody I have encountered similar problems.

My bird version is 1.3.10

I have three devices R0-2, R0 and R1 establish OSPF connections for
instance 1, area 20, R0 and R2 establish OSPF connections for instance 2,
area 30.

I have the same configuration of R1 and R2, just ip address, route-id
different:
# About R2 ospf configuration

filter export_OSPF {

if (net = 0.0.0.0 / 0) then {
    print "net rejected:", net;
    ospf_metric2 = 20;
    reject;
    }

if (net = a.b.c.0/24) then {
    print "net accepted:", net;
    ospf_metric2 = 20;
    accept;
    }

    reject;
}

filter import_OSPF {

if (net = 0.0.0.0 / 0) then {
    print "net accepted:", net;
    ospf_metric2 = 20;
    accept;
    }

    reject;
}

protocol ospf ospf_business {
        router id e.f.g.h;
        debug all;
        export filter export_OSPF;
        import filter import_OSPF;
        area 0.0.0.30 {
                interface "vlanx" {
                        hello 10;
                        retransmit 5;
                        cost 10;
                        transmit delay 1;
                        dead count 4;
                        wait 40;
                        # Type pointopoint;
                        type broadcast;
                        # Type pointomultipoint;
                        # Priority 0;
                        authentication cryptographic;
                        password "pass";
                };
        };
}

On R0 distribute the default route, you can receive from R0 default route
on R1:

R1:
bird> show ospf lsadb ospf_business
1017-Global

      Type LS ID Router Age Sequence Checksum
      0005 0.0.0.0 x.y.z.1 774 80000533 bf32

     Area 0.0.0.20

      Type LS ID Router Age Sequence Checksum
      0001 x.y.z.1 x.y.z.1 855 80000554 f760
      0001 x.y.z.3 x.y.z.3 837 80000552 9ab0

bird> show route protocol ospf_business
1007-0.0.0.0 / 0 via x.y.z.1 on vlan43 [ospf_business 11:24] * E2
(150/10/20) [1] [x.y.z.1]

#
I can receive from R0 about default route lsadb in R2's lsadb.

bird> show ospf lsadb ospf_business
1017 -
     Global

      Type LS ID Router Age Sequence Checksum
      0005 0.0.0.0 x.y.z.11 481 8000000d ba52

     Area 0.0.0.30

      Type LS ID Router Age Sequence Checksum
      0001 x.y.z.11 x.y.z.11 481 8000054f 829a
      0001 x.y.z.12 x.y.z.12 118 8000054a 25ef

However, in the routing table, I can not see the default route. Why?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20140126/bb1e6fbd/attachment.html>


More information about the Bird-users mailing list