problems with simple configuration

David Rohleder davro at ics.muni.cz
Mon Apr 9 22:17:01 CEST 2001


Ondrej Filip <feela at ipex.cz> writes:

> On 9 Apr 2001, David Rohleder wrote:
> 
> >
> > Hello,
> >
> > i have got a simple config, which behaves badly:
> >
> >  Internet           P-t-P netw.    local network
> > ------------| VNR |----------| R |-------------
> >
> >
> > ---[/etc/bird.conf
> >
> > debug protocols all;
> >
> > protocol direct {
> > #       interface "-eth*", "*"; # 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
> >         export all;             # Default is export none
> > #       kernel table 5;         # Kernel table to synchronize with (default: mai
> > n)
> > }
> >
> > protocol static {
> > }
> >
> > protocol rip MyRIP {    # You can also use an explicit name
> >         port 520;
> >         interface "eth2" { mode broadcast; };
> >         authentication none;
> >         import none;
> >         export all;
> > }
> >
> > protocol ospf MyOSPF {
> >         # rfc1583compat yes;
> >         area 0.0.0.2 {
> >         #       stub no;
> >         #       tick 1;
> >                 interface "eth0" {
> >                         cost 500;
> >                         dead count 4;
> >                         type broadcast;
> >                 };
> >                 interface "eth1" {
> >                         cost 500;
> >                         dead count 4;
> >                         type broadcast;
> >                 };
> >                 interface "eth2" {
> >                         stub yes;
> >                         cost 10;
> >                 };
> >                 interface "eth3" {
> >                         stub yes;
> >                         cost 10;
> >                 };
> >         };
> > }
> >
> > ------[/etc/bird.conf
> >
> > eth1 and eth3 are up, but there are not any machines. eth3 doesn't
> > have IP address.
> >
> >
> > After start, VNR (Bay Networks) doesn't see internal network. But they
> > are in full state!
> >
> > And even more strange thing: VNR learns LSA after some action in
> > birdc. For example, when i run debug MyOSPF all, or even just start birdc!
> >
> > May be some timing problems. It is PIII/600, 128MB RAM.
> >
> > some strange messages:
> >
> > MyOSPF: LS ack sent to 147.251.61.1 (delayed)
> >
> > shows every max. 20 sec.
> 
> Hmm it's very strange. :-( Please could you tell me what says 'show ospf'
> and other 'show ospf *'?

After power-on:

BIRD 1.0.4 ready.  
bird> show ospf
MyOSPF:
Number of areas: 1
        Area: 0.0.0.2 (2)
                Stub:   No
                RT scheduler tick:      7
                Number of interfaces:   3
                Number of LSAs in DB:   308
                Number of neighbors:    1
                Number of adjacent neighbors:   1
bird> show ospf nei
MyOSPF:
Router ID       Pri          State      DTime   Router IP       Interface
147.251.240.166   1         full/dr     00:38   147.251.61.1    eth0
bird> show ospf int
MyOSPF:
Interface "eth0":
        Area: 0.0.0.2 (2)
        Type: broadcast
        State: backup
        Priority: 1
        Cost: 500
        Hello timer: 10
        Wait timer: 40
        Dead timer: 40
        Retransmit timer: 5
        Designed router (ID): 147.251.240.166
        Designed router (IP): 147.251.61.1
        Backup designed router (ID): 147.251.5.1
        Backup designed router (IP): 147.251.61.2
Interface "eth1":
        Area: 0.0.0.2 (2)
        Type: broadcast
        State: dr
        Priority: 1
        Cost: 500
        Hello timer: 10
        Wait timer: 40
        Dead timer: 40
        Retransmit timer: 5
        Designed router (ID): 147.251.5.1
        Designed router (IP): 147.251.61.6
        Backup designed router (ID): 0.0.0.0
        Backup designed router (IP): 0.0.0.0
Interface "eth2":
        Area: 0.0.0.2 (2)
        Type: broadcast
        State: dr (stub)
        Priority: 1
        Cost: 10
        Hello timer: 10
        Wait timer: 40
        Dead timer: 40
        Retransmit timer: 5
        Designed router (ID): 147.251.5.1
        Designed router (IP): 147.251.5.1
        Backup designed router (ID): 0.0.0.0
        Backup designed router (IP): 0.0.0.0


After some time (~1 min, without any other actions), bird begins to work:

bird> show ospf
MyOSPF:
Number of areas: 1
        Area: 0.0.0.2 (2)
                Stub:   No
                RT scheduler tick:      7
                Number of interfaces:   3
                Number of LSAs in DB:   308
                Number of neighbors:    1
                Number of adjacent neighbors:   1
bird> show ospf nei
MyOSPF:
Router ID       Pri          State      DTime   Router IP       Interface
147.251.240.166   1         full/dr     00:34   147.251.61.1    eth0
bird> show ospf int
MyOSPF:
Interface "eth0":
        Area: 0.0.0.2 (2)
        Type: broadcast
        State: backup
        Priority: 1
        Cost: 500
        Hello timer: 10
        Wait timer: 40
        Dead timer: 40
        Retransmit timer: 5
        Designed router (ID): 147.251.240.166
        Designed router (IP): 147.251.61.1
        Backup designed router (ID): 147.251.5.1
        Backup designed router (IP): 147.251.61.2
Interface "eth1":
        Area: 0.0.0.2 (2)
        Type: broadcast
        State: dr
        Priority: 1
        Cost: 500
        Hello timer: 10
        Wait timer: 40
        Dead timer: 40
        Retransmit timer: 5
        Designed router (ID): 147.251.5.1
        Designed router (IP): 147.251.61.6
        Backup designed router (ID): 0.0.0.0
        Backup designed router (IP): 0.0.0.0
Interface "eth2":
        Area: 0.0.0.2 (2)
        Type: broadcast
        State: dr (stub)
        Priority: 1
        Cost: 10
        Hello timer: 10
        Wait timer: 40
        Dead timer: 40
        Retransmit timer: 5
        Designed router (ID): 147.251.5.1
        Designed router (IP): 147.251.5.1
        Backup designed router (ID): 0.0.0.0
        Backup designed router (IP): 0.0.0.0

----------------

I could not see any coincidence with any event :-(

I have got HP Internet Advisor, so i can debug ospf well, but this
internal network is production network and I can not play with it.

----------------

Another problem:

I accidentally run two bird daemons. When I killed the second one, I
could not connect to /var/bird.ctl. 

Even without looking to source, i guess, that bird doesn't check
existence of other bird daemon and after on exit unlinks
/var/bird.ctl. :-( 

I know, running two same daemons is stupid idea, but it was a typo, i
wanted to type birdc :-(


-- 
-------------------------------------------------------------------------
David Rohleder						davro at ics.muni.cz
Institute of Computer Science, Masaryk University
Brno, Czech Republic
-------------------------------------------------------------------------



More information about the Bird-users mailing list