From owner-freebsd-net@freebsd.org Sun Nov 13 06:24:11 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 00561C3FECF for ; Sun, 13 Nov 2016 06:24:11 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: from mail-yw0-x22f.google.com (mail-yw0-x22f.google.com [IPv6:2607:f8b0:4002:c05::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B4A28C04 for ; Sun, 13 Nov 2016 06:24:10 +0000 (UTC) (envelope-from zbeeble@gmail.com) Received: by mail-yw0-x22f.google.com with SMTP id a10so39924513ywa.3 for ; Sat, 12 Nov 2016 22:24:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=Aw1r3i7I83TeMTgkGxab1BcSaWTPRYIUt1RBs0OCGpA=; b=PgaxJyuRpeHjMvtbOqUfC7HH5xVfilbV/Z/KUlgGoW8xblpvsis+FyD4+CfVPSdgsL hqoQLsHA+P/diabifq4dPbU9vONonC44cfkg1koWxWd2SlyBRl3A3VnWppn3C8Jh/hiM RgUYEMvsjLNi+LDVRVF2+zYPevDPjWdnUzC05sKuBNhJlUCDk+M8akdegOxph0iZ8lqC d6GxO8affbPoKjZKZQLnnJ3I4BezuMqaDU8MojgneUTtmv7u0KWg6khkVvWXio8Uhykh By7slLyO2zzKnAXikczNJNPUMnAsrRY+7Z26Vb+9lMw9KQsEo0IUov+vaK+qlzvVyoCw OIMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=Aw1r3i7I83TeMTgkGxab1BcSaWTPRYIUt1RBs0OCGpA=; b=DnXoFwiWzBrYIE9ECdr+9I2OrisMiFjWkcFaghY9/N1swwk8LO7Btof+mCtBX9glEs G70mJbiM/OlCIuU5bfZc4GuIui4ekfVedFKDtdPseL/isr2wB/jB8x7KjOJjvReYm7xY r94QrNF46gb87odjVYAa/Ug3+gwHcgOvtcyRw7nKnsKV4SbjBpBHsvEH0XTbKlhpUEyD t+g1SrOGX7GI4iwSWxowEQKFxRwJRfw9x4NQ/i36ny5rl2PZJ9LemBo8MM6WLV9i9rHC I9iuHXU8AseowVyQxXmrgpLQXwpFfWJo3+NeTVtOH2fjA4JalzztGs7mesL92RnxMmcr YI6g== X-Gm-Message-State: ABUngvcNjHH8H14xDXpSRHUbKS0AvyB+E9lnNEBoy+2WlXPXsWoUNffWIqeJEZVVO4akEmyRqRkVO5eVB8pJQQ== X-Received: by 10.13.231.70 with SMTP id q67mr9571962ywe.174.1479018249775; Sat, 12 Nov 2016 22:24:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.171.239 with HTTP; Sat, 12 Nov 2016 22:24:09 -0800 (PST) In-Reply-To: References: From: Zaphod Beeblebrox Date: Sun, 13 Nov 2016 01:24:09 -0500 Message-ID: Subject: Re: quagga misinterpreting route. To: FreeBSD Net Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Nov 2016 06:24:11 -0000 After upgrading to 10.3p12 and messing about a bit, I found something else strange. On another mpd router, the ipv6 route was showing up as being on an unused port (bce1, in this case). I have the port connected to the switch (so it's up) but I'm not using it. So... I ifconfig'd down bce0. Then, quagga claims: my.other.router.ca# sh ipv6 route 1001:abcd:1::1 Routing entry for 1001:abcd:1::/64 Known via "kernel", distance 0, metric 0, tag 0, vrf 0, best, fib >* fe80::212:3fff:fe41:72fd, via lo0 ... which is somewhat ridiculous. On Sun, Nov 13, 2016 at 12:51 AM, Zaphod Beeblebrox wrote: > I have an if-up mpd5 rule that says: > > route -n6 add $route -iface $interface > > where $route is something like 1001:abcd:1::/64 and $interface is > something like ng2. > > When I go into quagga, I see: > > my.router.ca# sh ipv6 route 1001:abcd:1::1 > Routing entry for 1001:abcd:1::/64 > Known via "kernel", distance 0, metric 0, tag 0, vrf 0, best, fib > >* fe80::212:3fff:fe41:72fd, via bge0 > > ... now there's two things wrong with this. It's not a kernel route and > it's not via bge0. This leads the ospf6 advertisement of this route to be: > > my.router.ca# sh ipv6 ospf6 route 1001:abcd:1::1 > Destination: ::/0 > Destination type: Network > Installed Time: 00:13:29 ago > Changed Time: 00:13:29 ago > Lock: 2 Flags: BA-- > Memory: prev: 0x0 this: 0x7026f0 next: 0x704dd0 > Associated Area: 0.0.0.0 > Path Type: External-1 > LS Origin: AS-External Id: 0.0.0.0 Adv: 1.2.3.4 > Options: --|-|-|--|-|-- > Router Bits: -------- > Prefix Options: xxx > Metric Type: 1 > Metric: 20 (0) > Nexthop: > fe80::21a:64ff:fe79:3348 bge0.401 > > ... which leads other ospf6 routers on the network to not see the route at > all (invalid?) > >