Parse error with OSPF area stmt?

James A. Crippen james at UnLambda.COM
Thu Jan 4 20:43:22 CET 2001


On Thu, 4 Jan 2001, Ondrej Feela Filip wrote:

> On Wed, 3 Jan 2001, James A. Crippen wrote:
> 
> > I'm getting consistent parse errors from bird while trying to configure
> > ospf.  I say something akin to the following:
> >
> >   protocol ospf {
> >     ...
> >     area 0.0.0.0 {
> >       ...
> >     };
> >   }
> >
> > And I've tried variations like "area 0 {" and "area {", but no luck with
> > anything.  I always get a parse error from bird on that particular
> > line.  I took a halfhearted look at the source and couldn't find anything
> > in particular.  Help!
> 
> Please send me complete bird.conf, I hope I'll help you then.

Okay, here it is.

---8<--- cut here ---8<---

log syslog all;

# Turn on global debugging of all protocols
debug protocols all;

protocol direct {
  interface "*";
}

protocol kernel {
  learn yes;
  persist no;
  scan time 20;
  import all;
  export all;
}

protocol device {
  scan time 20;
}

protocol static {
  debug all;
}

#protocol rip {
#  debug all;
#  honor always;
#  authentication none;
#  interface "*" { mode broadcast; };
#  import all;
#  export all;
#}  

protocol ospf {
# old OSPFv2 compat
  rfc1583compat no;

  import all;
  export all;

  area 0.0.0.0 {
    tick 10;
  
    interface "eth0" {
      cost 10;
      stub no;
      hello 10;
      poll 20;
      retransmit 5;
      priority 1;
      wait 40;
      dead count 6;
      type broadcast;
      strict nonbroadcast no;
      authentication none;
      password "foobar";
#      neighbors { ... };
    };

    interface "eth1" {
      cost 10;
      stub no;
      hello 10;
      poll 20;
      retransmit 5;
      priority 1;
      wait 40;
      dead count 6;
      type broadcast;
      strict nonbroadcast no;
      authentication none;
      password "foobar";
#      neighbors { ... };
    };

    interface "eth2" {
      cost 10;
      stub no;
      hello 10;
      poll 20;
      retransmit 5;
      priority 1;
      wait 40;
      dead count 6;
      type broadcast;
      strict nonbroadcast no;
      authentication none;
      password "foobar";
#      neighbors { ... };
    };
  };
}

---8<--- cut here ---8<---

'james

-- 
James A. Crippen <james at unlambda.com> ,-./-.  Anchorage, Alaska,
Lambda Unlimited: Recursion 'R' Us   |  |/  | USA, 61.2069 N, 149.766 W,
Y = \f.(\x.f(xx)) (\x.f(xx))         |  |\  | Earth, Sol System,
Y(F) = F(Y(F))                        \_,-_/  Milky Way.




More information about the Bird-users mailing list