From owner-freebsd-net@freebsd.org Fri Oct 11 23:14:53 2019 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6184B134E37 for ; Fri, 11 Oct 2019 23:14:53 +0000 (UTC) (envelope-from crapsh@monkeybrains.net) Received: from mail.monkeybrains.net (mail.monkeybrains.net [208.69.40.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.monkeybrains.net", Issuer "AlphaSSL CA - SHA256 - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46qkLh1tQ9z47TZ for ; Fri, 11 Oct 2019 23:14:51 +0000 (UTC) (envelope-from crapsh@monkeybrains.net) Received: from [10.2.86.115] (public.monkeybrains.net [208.69.41.107] (may be forged)) (authenticated bits=0) by mail.monkeybrains.net (8.15.2/8.15.2) with ESMTPSA id x9BNEnnP045598 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Fri, 11 Oct 2019 16:14:49 -0700 (PDT) (envelope-from crapsh@monkeybrains.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=monkeybrains.net; s=dkim; t=1570835689; bh=6kMgwsIzM4BiWnarMfSV6UGFIuvd04yKMkn/jD8ePmw=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=TKMbnPnqnGRFvktsy8OEPHb9sXYywNJ0QapBGqaM/VqUwuHldv/4hkB36F1qCiSAx G7EnlpSfavaExMeB/k0mx3SF6+SU3qeEAbXtnpjB4WK0NN9RYXE/9RrJaAdkQ7Xqgu mPq2pm7CXI1d8BjIHozu6c6CtS1eznk+Tv8ThrUE= X-Authentication-Warning: mail.monkeybrains.net: Host public.monkeybrains.net [208.69.41.107] (may be forged) claimed to be [10.2.86.115] Subject: Re: FRR on FreeBSD 12 - problems with OSPFv3 To: "Rodney W. Grimes" Cc: freebsd-net@freebsd.org References: <201910112112.x9BLCHJ7092447@gndrsh.dnsmgr.net> From: BulkMailForRudy Message-ID: Date: Fri, 11 Oct 2019 16:14:49 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <201910112112.x9BLCHJ7092447@gndrsh.dnsmgr.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Virus-Scanned: clamav-milter 0.100.2 at mail.monkeybrains.net X-Virus-Status: Clean X-Rspamd-Queue-Id: 46qkLh1tQ9z47TZ X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=monkeybrains.net header.s=dkim header.b=TKMbnPnq; dmarc=pass (policy=none) header.from=monkeybrains.net; spf=pass (mx1.freebsd.org: domain of crapsh@monkeybrains.net designates 208.69.40.19 as permitted sender) smtp.mailfrom=crapsh@monkeybrains.net X-Spamd-Result: default: False [-7.83 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[monkeybrains.net:s=dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; DWL_DNSWL_LOW(-1.00)[monkeybrains.net.dwl.dnswl.org : 127.0.5.1]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[monkeybrains.net:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[monkeybrains.net,none]; IP_SCORE(-3.73)[ip: (-9.78), ipnet: 208.69.40.0/22(-4.90), asn: 32329(-3.92), country: US(-0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[19.40.69.208.list.dnswl.org : 127.0.5.1]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:32329, ipnet:208.69.40.0/22, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Oct 2019 23:14:53 -0000 Thanks for the questions, good for me to think about it some more.  Short response:  I don't think it is the FRR config, but the routes received that are crashing it or ospf6d has some other issue. On 10/11/19 2:12 PM, Rodney W. Grimes wrote: >> I just upgraded from FreeBSD 11 to 12 and upgrade from quagga to FRR at >> the same time. I've tried frr6 and frr7 and get the same errors. >> >> bgpd and ospfd work fine, but ospf6 doesn't work.? Not sure what I'm >> going wrong. >> >> If I commend out all the interfaces EXCEPT lo0, ospf6d does not crash. > What if you comment out just lo0? Running OSPF on a loopback > interface makes no since, your not going to be able to establish > a DR/BDR pair so OSPF can never really come up on that interface, > and if it did injecting any route from 127/8 into the OSPF lsdb > would be very bad! > > Though I doubt this is the source of the illegal instuction trap > it is none the less a configuration issue. Personally, I always put a 172.17.x.x IP on my lo0 and then advertise that into my network.  I don't make it part of the router config, but I wanted a 'test device' to boot ospf6d and see it crash.  Also, the docs on FRR have an lo0. I do advertise my 172.17.x.x IP on the loobpback:  This is how I verify OSPF is up -- the IPwill ping from other devices on the network when OSPF is up.  For IPv6, I put a whole /64 on the lo0. So many IPs in v6.  :) >> *** LOGS *** >> >> 2019/10/10 23:19:31 OSPF6: Scheduling cxl1 for sso >> 2019/10/10 23:19:31 OSPF6: SPF: Scheduled in 0 msec >> 2019/10/10 23:19:31 OSPF6: SPF processing: # Areas: 1, SPF runtime: 0 >> sec 5 usec, Reason: L+ >> >> 2019/10/10 23:19:31 OSPF6: Scheduling cxl2 for sso >> 2019/10/10 23:19:31 OSPF6: SPF: Scheduled in 50 msec >> 2019/10/10 23:19:31 OSPF6: Scheduling cxl3 for sso >> 2019/10/10 23:19:31 OSPF6: Neighbor state change 172.17.24.25%cxl3: >> [Down]->[Init] (HelloReceived) >> 2019/10/10 23:19:31 OSPF6: Neighbor state change 172.17.24.25%cxl3: >> [Init]->[ExStart] (2-WayReceived) >> 2019/10/10 23:19:31 OSPF6: Neighbor state change 172.17.24.25%cxl3: >> [ExStart]->[ExChange] (NegotiationDone) >> 2019/10/10 23:19:31 OSPF6: Neighbor state change 172.17.24.25%cxl3: >> [ExChange]->[Loading] (ExchangeDone) >> 2019/10/10 23:19:31 OSPF6: SPF processing: # Areas: 1, SPF runtime: 0 >> sec 109 usec, Reason: R+, R-, L+ >> >> 2019/10/10 23:19:31 OSPF6: SPF: Scheduled in 83 msec >> 2019/10/10 23:19:31 OSPF6: SPF processing: # Areas: 1, SPF runtime: 0 >> sec 116 usec, Reason: R+, N+, L+ >> >> 2019/10/10 23:19:33 OSPF6: Neighbor state change 10.8.254.122%cxl1: >> [Down]->[Init] (HelloReceived) >> 2019/10/10 23:19:33 OSPF6: Neighbor state change 10.8.254.122%cxl1: >> [Init]->[ExStart] (2-WayReceived) >> 2019/10/10 23:19:33 OSPF6: Neighbor state change 10.8.254.122%cxl1: >> [ExStart]->[ExChange] (NegotiationDone) >> 2019/10/10 23:19:33 OSPF6: Neighbor state change 10.8.254.122%cxl1: >> [ExChange]->[Loading] (ExchangeDone) >> 2019/10/10 23:19:33 OSPF6: SPF: Scheduled in 0 msec >> 2019/10/10 23:19:33 OSPF6: SPF processing: # Areas: 1, SPF runtime: 0 >> sec 99 usec, Reason: R+, R- >> >> 2019/10/10 23:19:36 OSPF6: Neighbor state change 172.17.24.25%cxl3: >> [Loading]->[Full] (LoadingDone) >> 2019/10/10 23:19:36 OSPF6: SPF: Scheduled in 0 msec >> 2019/10/10 23:19:31 ZEBRA: client 32 says hello and bids fair to >> announce only ospf6 routes vrf=0 >> 2019/10/10 23:19:38 ZEBRA: [EC 4043309117] Client 'ospf6' encountered an >> error and is shutting down. >> 2019/10/10 23:19:38 ZEBRA: release_daemon_table_chunks: Released 0 table >> chunks >> 2019/10/10 23:19:38 ZEBRA: release_daemon_label_chunks: Released 0 label >> chunks >> 2019/10/10 23:19:39 ZEBRA: client 32 disconnected. 100 ospf6 routes >> removed from the rib >> >> *** CRASH *** > Zebra process crashes after the ospf6 process has encountered some error > and shut down or are you indicatong that the OSPF6D process has crashed? OSPF6d crashes, zebra just notes the client #32, the ospf6 process, saying hello and goodbye. > >> If I run on the command line and don't background, it bombs after 7 >> seconds: >> # ospf6d >> Illegal instruction ... >> What happens if you remove this lo0 section? Still crashes, usually don't have lo0 in an a > Does ospf6 come up and run if you remove all the > route-map stuff your trying to do? Sure, I can try a minimal setup.  This config crashes in the same way: ! Zebra configuration saved from vty !   2019/10/10 23:58:21 ! frr version 7.1 ! hostname orange-ospf6 password sluggo service advanced-vty ! ! ! interface cxl1  ipv6 ospf6 cost 1  ipv6 ospf6 network point-to-point ! router ospf6  ospf6 router-id 208.69.43.198  interface cxl1 area 0.0.0.0  auto-cost reference-bandwidth 10000 ! line vty  exec-timeout 0 0