Skip to content

BGP ZEBRA routes not recovering after interface reappearing #6327

@lucize

Description

@lucize

Describe the bug
A clear and concise description of what the bug is.

restarting a wireguard interface will not recover the routes from bgp

(put "x" in "[ ]" if you already tried following)
[x] Did you check if this is a duplicate issue?
[x] Did you test it on the latest FRRouting/frr master branch?

To Reproduce
Steps to reproduce the behavior:

  1. ip link set wg0 down && sleep 4 && ip link set wg0 up
  2. error
netifd: Network device 'wg0' link is down
netifd: Network device 'wg0' link is up

zebra[14667]: Extended Error: Nexthop has invalid gateway
zebra[14667]: [EC 4043309093] netlink-dp (NS 0) error: Network unreachable, type=RTM_NEWNEXTHOP(104), seq=1734, pid=3243977578
zebra[14667]: Extended Error: Invalid nexthop id
zebra[14667]: [EC 4043309093] netlink-dp (NS 0) error: Invalid argument, type=RTM_NEWNEXTHOP(104), seq=1735, pid=3243977578
[...]
zebra[14667]: Extended Error: Nexthop id does not exist
zebra[14667]: [EC 4043309093] netlink-dp (NS 0) error: Invalid argument, type=RTM_NEWROUTE(24), seq=1793, pid=3243977578
zebra[14667]: [EC 4043309074] Failed to install Nexthop ID (105) into the kernel
zebra[14667]: [EC 4043309074] Failed to install Nexthop ID (104) into the kernel
zebra[14667]: default(0):10.160.13.0/24: Route install failed
zebra[14667]: default(0):10.160.23.0/24: Route install failed
zebra[14667]: default(0):10.162.22.0/24: Route install failed
zebra[14667]: default(0):10.164.17.0/24: Route install failed
zebra[14667]: default(0):10.164.27.0/24: Route install failed
zebra[14667]: default(0):10.249.119.8/30: Route install failed
[...]
zebra[14667]: default(0):10.100.10.0/24: Route install failed

Expected behavior
A clear and concise description of what you expected to happen.

routes reinstalled
bgpd[14822]: bgp_update_receive: rcvd End-of-RIB for IPv4 Unicast from 172.16.223.5 in vrf default

Versions

  • OS Kernel: [Linux] [5.4.35]
  • FRR Version [04/28/2020]

Additional context

frr.conf

router bgp 666
 bgp router-id 10.160.20.1
 bgp log-neighbor-changes
 timers bgp 8 25
 neighbor 172.16.223.5 remote-as 666
 !
 address-family ipv4 unicast
  network 10.160.20.0/24
  network 172.16.223.4/30
 exit-address-family
!

router-id 10.160.20.1 is the ip of the eth0
ip link set wg0 down && ip link set wg0 up will not show the error but will not work also

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageNeeds further investigation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions