My mistake. Here what I have in my config:

protocol static static_v4 {
        ipv4 {
                preference 1100;
        };
        # default route for clients
        route 0.0.0.0/0 drop;
}

-- 
NETassist

On Thu, Nov 20, 2025 at 12:12:07PM +0100, Nico Schottelius wrote:
> 
> I believe static does not support preference:
> 
> /etc/bird/bird.conf:1047:5 syntax error, unexpected PREFERENCE
> 
> from:
> 
> protocol static defroutev4 {
>     ipv4;
>     preference 5;
> 
>     route 0.0.0.0/0 unreachable;
> }
> 
> 
> Yakimus // Netassist NOC <[email protected]> writes:
> 
> > just add the preference for static:
> >
> > protocol static defroutev4 {
> >     ipv4;
> >         route 0.0.0.0/0 unreachable;
> >     preference 5;
> >     }
> 
> --
> Sustainable and modern Infrastructures by ungleich.ch

Reply via email to