Skip to content

Zebra on FRR 10.4 not working #3251

@DerDennisOP

Description

@DerDennisOP

When starting GoBGP with Zebra integration FRR logs show the following:

Nov 23 19:03:19 c systemd[1]: Started FRRouting.
Nov 23 19:03:20 c zebra[875]: [PE6Y7-KR1RK] Zebra received unknown command 18
Nov 23 19:03:20 c zebra[875]: [KMSKA-RYR7X][EC 4043309147] zebra_redistribute_default_delete: Specified afi 0 does not exist
Nov 23 19:03:20 c zebra[875]: [KMSKA-RYR7X][EC 4043309147] zebra_redistribute_default_delete: Specified afi 0 does not exist
Nov 23 19:03:20 c zebra[875]: [PE6Y7-KR1RK] Zebra received unknown command 11
Nov 23 19:03:20 c zebra[875]: [PE6Y7-KR1RK] Zebra received unknown command 11
Nov 23 19:03:20 c zebra[875]: [PE6Y7-KR1RK] Zebra received unknown command 11
Nov 23 19:03:20 c zebra[875]: [PE6Y7-KR1RK] Zebra received unknown command 11
Nov 23 19:03:20 c zebra[875]: [PE6Y7-KR1RK] Zebra received unknown command 20
Nov 23 19:03:20 c zebra[875]: [HSMCT-F8EZK] Cannot set protodown off for interface 150994944; does not exist
Nov 23 19:03:20 c zebra[875]: [PE6Y7-KR1RK] Zebra received unknown command 20
Nov 23 19:03:21 c zebra[875]: [PE6Y7-KR1RK] Zebra received unknown command 20
Nov 23 19:03:21 c zebra[875]: [HSMCT-F8EZK] Cannot set protodown off for interface 150994944; does not exist
Nov 23 19:03:21 c zebra[875]: [PE6Y7-KR1RK] Zebra received unknown command 20
Nov 23 19:03:21 c zebra[875]: [PE6Y7-KR1RK] Zebra received unknown command 20
Nov 23 19:03:21 c zebra[875]: [HSMCT-F8EZK] Cannot set protodown off for interface 150994944; does not exist
Nov 23 19:03:21 c zebra[875]: [PE6Y7-KR1RK] Zebra received unknown command 20
Nov 23 19:03:21 c zebra[875]: [PE6Y7-KR1RK] Zebra received unknown command 20
Nov 23 19:03:21 c zebra[875]: [HSMCT-F8EZK] Cannot set protodown off for interface 150994944; does not exist
Nov 23 19:03:21 c zebra[875]: [PE6Y7-KR1RK] Zebra received unknown command 20
Nov 23 19:03:23 c zebra[875]: [PE6Y7-KR1RK] Zebra received unknown command 20
Nov 23 19:03:23 c zebra[875]: [HSMCT-F8EZK] Cannot set protodown off for interface 150994944; does not exist
Nov 23 19:03:23 c zebra[875]: [PE6Y7-KR1RK] Zebra received unknown command 20
Nov 23 19:03:23 c zebra[875]: [PE6Y7-KR1RK] Zebra received unknown command 20
Nov 23 19:03:23 c zebra[875]: [PE6Y7-KR1RK] Zebra received unknown command 20
Nov 23 19:03:23 c zebra[875]: [HSMCT-F8EZK] Cannot set protodown off for interface 150994944; does not exist
Nov 23 19:03:23 c zebra[875]: [PE6Y7-KR1RK] Zebra received unknown command 20
Nov 23 19:03:23 c zebra[875]: [PE6Y7-KR1RK] Zebra received unknown command 20

My current FRR version:

$> vtysh
Hello, this is FRRouting (version 10.3).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

Also GoBGP throws some errors:

Nov 23 19:39:44 c systemd[1]: Starting GoBGP Routing Daemon...
Nov 23 19:39:45 c gobgpd[928]: {"Topic":"Config","level":"info","msg":"Finished reading the config file","time":"2025-11-23T19:39:45Z"}
Nov 23 19:39:45 c gobgpd[951]: {"level":"info","msg":"gobgpd started","time":"2025-11-23T19:39:45Z"}
Nov 23 19:39:45 c systemd[1]: Started GoBGP Routing Daemon.
Nov 23 19:39:45 c gobgpd[951]: {"Topic":"Config","level":"info","msg":"Finished reading the config file","time":"2025-11-23T19:39:45Z"}
Nov 23 19:39:45 c gobgpd[951]: {"Topic":"Zebra","Version":6,"level":"info","msg":"success to connect to Zebra","time":"2025-11-23T19:39:45Z"}
Nov 23 19:39:45 c gobgpd[951]: {"Data":"AAAAAgA=","Error":"message length invalid","Header":{"Len":15,"Marker":254,"Version":6,"VrfID":0,"Command":41},"Topic":"Zebra","level":"warning","msg":"failed to decode body","time":"2025-11-23T19:39:45Z"}
Nov 23 19:39:45 c gobgpd[951]: {"Data":"AAAAAwA=","Error":"message length invalid","Header":{"Len":15,"Marker":254,"Version":6,"VrfID":0,"Command":41},"Topic":"Zebra","level":"warning","msg":"failed to decode body","time":"2025-11-23T19:39:45Z"}
Nov 23 19:39:45 c gobgpd[951]: {"Data":"bG8AAAAAAAAAAAAAAAAAAAAAAAEFAAAAAAABAEkAAgAAAAAAAAAAAAAD6AABAAAAAQAAAAAAAAAAAAAAAAAeAAAAAAA=","Error":"lack of bytes in remain data. need 34 but 9","Header":{"Len":78,"Marker":254,"Version":6,"VrfID":0,"Command":0},"Topic":"Zebra","level":"warning","msg":"failed to decode body","time":"2025-11-23T19:39:45Z"}
Nov 23 19:39:45 c gobgpd[951]: {"Data":"AAAAAQA=","Error":"message length invalid","Header":{"Len":15,"Marker":254,"Version":6,"VrfID":0,"Command":41},"Topic":"Zebra","level":"warning","msg":"failed to decode body","time":"2025-11-23T19:39:45Z"}
Nov 23 19:39:45 c gobgpd[951]: {"Key":"2001:db8::1","Topic":"Peer","level":"info","msg":"Can't find configuration for a new passive connection","time":"2025-11-23T19:39:45Z"}
Nov 23 19:39:45 c gobgpd[951]: {"Key":"192.0.2.1","Topic":"Peer","level":"info","msg":"Can't find configuration for a new passive connection","time":"2025-11-23T19:39:45Z"}
Nov 23 19:39:45 c gobgpd[951]: {"Key":"192.0.2.1","Topic":"config","level":"info","msg":"Add Peer","time":"2025-11-23T19:39:45Z"}
Nov 23 19:39:45 c gobgpd[951]: {"Key":"192.0.2.1","Topic":"Peer","level":"info","msg":"Add a peer configuration","time":"2025-11-23T19:39:45Z"}
Nov 23 19:39:45 c gobgpd[951]: {"Key":"192.0.2.2","Topic":"config","level":"info","msg":"Add Peer","time":"2025-11-23T19:39:45Z"}
Nov 23 19:39:45 c gobgpd[951]: {"Key":"192.0.2.2","Topic":"Peer","level":"info","msg":"Add a peer configuration","time":"2025-11-23T19:39:45Z"}
Nov 23 19:39:45 c gobgpd[951]: {"Key":"2001:db8::1","Topic":"config","level":"info","msg":"Add Peer","time":"2025-11-23T19:39:45Z"}
Nov 23 19:39:45 c gobgpd[951]: {"Key":"2001:db8::1","Topic":"Peer","level":"info","msg":"Add a peer configuration","time":"2025-11-23T19:39:45Z"}
Nov 23 19:39:45 c gobgpd[951]: {"Key":"2001:db8::2","Topic":"config","level":"info","msg":"Add Peer","time":"2025-11-23T19:39:45Z"}
Nov 23 19:39:45 c gobgpd[951]: {"Key":"2001:db8::2","Topic":"Peer","level":"info","msg":"Add a peer configuration","time":"2025-11-23T19:39:45Z"}
Nov 23 19:39:46 c gobgpd[951]: {"Key":"192.0.2.2","State":"BGP_FSM_OPENCONFIRM","Topic":"Peer","level":"info","msg":"Peer Up","time":"2025-11-23T19:39:46Z"}
Nov 23 19:39:47 c gobgpd[951]: {"Key":"192.0.2.1","State":"BGP_FSM_OPENCONFIRM","Topic":"Peer","level":"info","msg":"Peer Up","time":"2025-11-23T19:39:47Z"}
Nov 23 19:39:47 c gobgpd[951]: {"Key":"2001:db8::2","State":"BGP_FSM_OPENCONFIRM","Topic":"Peer","level":"info","msg":"Peer Up","time":"2025-11-23T19:39:47Z"}
Nov 23 19:39:47 c gobgpd[951]: {"Key":"2001:db8::1","State":"BGP_FSM_OPENCONFIRM","Topic":"Peer","level":"info","msg":"Peer Up","time":"2025-11-23T19:39:47Z"}

GoBGP is configured with zebra on version 6 and software-name to frr10.3 with redistribute-route-type-list to [ "kernel" "directly-connected" "static" ]. default-import-policy and default-export-policy is set to accept-route.
Full configuration: https://github.com/secshellnet/nixos-tests/blob/4afd2dc3bc4f793ea884060623363866bb35a7d5/tests/bgp-simple/default.nix#L213

Expected Behavior:
All routes that are showing in vtysh and have the correct route-type should be advertised.
Zebra should be able to install routes based on received routes.
Integration Test should succeed: secshellnet/nixos-tests#16

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions