[FROG] nexthop_set failed

Donald Sharp sharpd at cumulusnetworks.com
Fri Oct 6 18:37:17 EDT 2017


If you don't want bgp to verify nexthops, then do not compile with
--enable-cumulus=yes.

donald

On Fri, Oct 6, 2017 at 6:28 PM, Xinwei Hong <xhong at skytap.com> wrote:
> One follow-up question. If I run bgpd without zebra, I would still see that
> error in error log and bgp does not work properly. Is it true that we cannot
> run bgpd as standalone and we must run zebra in order for bgpd to work
> correctly. I'm asking this because I only want to publish my BGP route to
> its neighbor and don't want zebra to update routing table for me.
>
> Thanks,
> Xinwei
>
>
>
> On Fri, Oct 6, 2017 at 11:31 AM, Xinwei Hong <xhong at skytap.com> wrote:
>>
>> Thank you Donald.
>> After I run zebra and fix a few issue in my ip address/route table, things
>> look good.
>>
>> Thanks a lot!
>> Xinwei
>>
>> On Fri, Oct 6, 2017 at 4:28 AM, Donald Sharp <sharpd at cumulusnetworks.com>
>> wrote:
>>>
>>> Xinwei -
>>>
>>> Those commands are for zebra.  Are you running it?  I would run zebra
>>> and then run bgp and retry.
>>>
>>> donald
>>>
>>> On Thu, Oct 5, 2017 at 11:38 PM, Xinwei Hong <xhong at skytap.com> wrote:
>>> > Thank you Donald.
>>> > I'm new to FRR. Sorry if my question is dumb. Where do I run the
>>> > commands?
>>> > I can telnet to bgpd (port 2605), when I run the commands, it gives me:
>>> >
>>> > bgpd> show ip route
>>> >
>>> > % [BGP] Unknown command: show ip route
>>> >
>>> > bgpd> show int
>>> >
>>> > % [BGP] Unknown command: show int
>>> >
>>> > Note that I only have bgpd running at this moment, zebra is not setup
>>> > yet.
>>> >
>>> >
>>> > Thanks,
>>> > Xinwei
>>> >
>>> >
>>> > On Thu, Oct 5, 2017 at 2:45 PM, Donald Sharp
>>> > <sharpd at cumulusnetworks.com>
>>> > wrote:
>>> >>
>>> >> Xinwei -
>>> >>
>>> >> BGP is attempting to validate the nextop given to use and it is
>>> >> failing.  What does 'show ip route' and 'show int' give us?
>>> >>
>>> >> thanks!
>>> >>
>>> >> donald
>>> >>
>>> >> On Wed, Oct 4, 2017 at 1:28 PM, Xinwei Hong <xhong at skytap.com> wrote:
>>> >> > Hi
>>> >> >
>>> >> > I have a two bgp router setting between 192.168.3.2 and 192.168.3.3.
>>> >> > On
>>> >> > 192.168.3.2, I have to following config. similar config as on
>>> >> > 192.168.3.3
>>> >> >
>>> >> > ----bgpd.conf
>>> >> >
>>> >> > ! -*- bgp -*-
>>> >> >
>>> >> > !
>>> >> >
>>> >> > hostname bgpd
>>> >> >
>>> >> > password zebra
>>> >> >
>>> >> > !
>>> >> >
>>> >> > router bgp 7632
>>> >> >
>>> >> >  neighbor 192.168.3.3 remote-as 7633
>>> >> >
>>> >> >  bgp router-id 192.168.3.2
>>> >> >
>>> >> >  network 10.200.0.0/16
>>> >> >
>>> >> > !
>>> >> >
>>> >> >  address-family ipv4 unicast
>>> >> >
>>> >> >   network 10.201.142.0/24
>>> >> >
>>> >> >   neighbor 192.168.3.3 activate
>>> >> >
>>> >> >   neighbor 192.168.3.3 next-hop-self
>>> >> >
>>> >> >  exit-address-family
>>> >> >
>>> >> > !
>>> >> >
>>> >> > access-list all permit any
>>> >> >
>>> >> > !
>>> >> >
>>> >> > route-map set-nexthop permit 10
>>> >> >
>>> >> >  match ip address all
>>> >> >
>>> >> >  set ip next-hop 192.168.3.3
>>> >> >
>>> >> > !
>>> >> >
>>> >> > log file /var/log/frr/bgpd.log
>>> >> >
>>> >> > log stdout
>>> >> >
>>> >> > log syslog
>>> >> >
>>> >> > ------------------
>>> >> >
>>> >> >
>>> >> > In log, I find the following errors.
>>> >> >
>>> >> > 2017/10/03 23:29:40 BGP: 192.168.3.3: nexthop_set failed, resetting
>>> >> > connection - intf (nil)
>>> >> >
>>> >> > 2017/10/03 23:29:40 BGP: bgp_connect_success: bgp_getsockname():
>>> >> > failed
>>> >> > for
>>> >> > peer 192.168.3.3, fd 9
>>> >> >
>>> >> > 2017/10/03 23:29:40 BGP: 192.168.3.3 [FSM] Failure handling event
>>> >> > TCP_connection_open in state Connect, prior events BGP_Start,
>>> >> > BGP_Start,
>>> >> > fd
>>> >> > 9
>>> >> >
>>> >> >
>>> >> > Is there anything wrong with my config?
>>> >> >
>>> >> > Thanks,
>>> >> >
>>> >> > Xinwei
>>> >> >
>>> >> >
>>> >> > _______________________________________________
>>> >> > frog mailing list
>>> >> > frog at lists.frrouting.org
>>> >> > https://lists.frrouting.org/listinfo/frog
>>> >> >
>>> >
>>> >
>>
>>
>



More information about the frog mailing list