Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
22.1 Legacy Series
»
BGP can't see a kernel static route
« previous
next »
Print
Pages: [
1
]
Author
Topic: BGP can't see a kernel static route (Read 1357 times)
fmeppo
Newbie
Posts: 3
Karma: 0
BGP can't see a kernel static route
«
on:
June 03, 2022, 03:48:00 am »
I'm trying to set up BGP across a Wireguard tunnel to accept routes for the dn42 project. The tunnel's up and the other end builds a BGP connection, and I've got a static route defined as part of the endpoint setup in my kernel routing table. However, vtysh indicates the next hop isn't valid:
vtysh# show bgp nexthop
Current BGP nexthop cache:
172.20.16.139 invalid, #paths 0, peer 172.20.16.139
Last update: Thu Jun 2 18:42:29 2022
vtysh's show ip route omits the static route from its list, so that's probably why. Other kernel routes do appear - just not the static one that carries my endpoint host.
If I manually start staticd and add a static route over the wg0 interface (duplicating what was in the kernel table) the BGP nexthop becomes valid and frr immediately sees and propagates my BGP routes.
Any advice here? Is there some option I'm missing to get frr to pick up static routes, or a way to configure staticd+a route in OPNsense?
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: BGP can't see a kernel static route
«
Reply #1 on:
June 03, 2022, 06:16:57 am »
You Se2t to disable route in Wireguard?
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
fmeppo
Newbie
Posts: 3
Karma: 0
Re: BGP can't see a kernel static route
«
Reply #2 on:
June 04, 2022, 04:25:30 am »
Actually I enabled the route creation in wireguard - that creates a host route in the kernel table. But I get the same effect if I disable wire guard’s route creation and manually add the host route (no recognition in vtysh either way).
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
22.1 Legacy Series
»
BGP can't see a kernel static route