回复: How to config a ospf stub area?

Ondrej Zajicek santiago at crfreenet.org
Wed Apr 10 14:45:04 CEST 2024


On Wed, Apr 10, 2024 at 02:48:11AM +0000, chan alfie wrote:
> rt3
> ```
> rt3# bird -c /etc/bird/lab/rt3.conf -p
> bird: /etc/bird/lab/rt3.conf:173:1 ASBR must be in non-stub area
> ```
> does it mean this router is an ASBR? but this router only connect to rt4. and does not contain static route, here is the complete bird.conf

Yes. In BIRD, router is considered ASBR if the export filter of the OSPF
protocol is set to something different than 'none' (so it could export
external routes, regardless of whether it actually exported them).

That is also a reason why it does not allow it the area 172.16.34.0 to be
set as stub area (as ASBRs cannot be in stub areas).

Just do not set export filter in OSPF if you do not want to export external routes.

> protocol ospf v2 {
>     ipv4 {
>         import all;
>         export all;
>     };
>     area 172.16.34.0 {
>         stub;
>         summary yes;
>         interface "veth34" {
>             type bcast;
>             cost 10;
>             hello 10;
>         };
>         interface "lo3" {
>             stub yes;
>         };
>     };
> }

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
"To err is human -- to blame it on a computer is even more so."


More information about the Bird-users mailing list