From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12943C47404 for ; Fri, 11 Oct 2019 13:57:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D32A0206A1 for ; Fri, 11 Oct 2019 13:57:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=candelatech.com header.i=@candelatech.com header.b="o/BOx6io" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728360AbfJKN5L (ORCPT ); Fri, 11 Oct 2019 09:57:11 -0400 Received: from mail2.candelatech.com ([208.74.158.173]:49584 "EHLO mail3.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728068AbfJKN5K (ORCPT ); Fri, 11 Oct 2019 09:57:10 -0400 Received: from [192.168.100.195] (50-251-239-81-static.hfc.comcastbusiness.net [50.251.239.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail3.candelatech.com (Postfix) with ESMTPSA id 07F5E13C340; Fri, 11 Oct 2019 06:57:10 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 07F5E13C340 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1570802230; bh=D53uYXs3aE0juT/zjbU0lTYElCrHfrRmv3cuayLXR8Q=; h=Subject:To:References:From:Date:In-Reply-To:From; b=o/BOx6iosvfqrw/3LMJYQJmH9RC3kJCqu8EhN7u6RFjfjz34kQO7ej/reGpPSu41D WrQENnBcCJtC0ckgWk7aoT1VEcs+0zyG/WyLu5vb8l606oP/CS2vFVMhaSglbBJZ6C shTBmP4I1F7O7/caBAZcLNBRyJe5G6aRMQSAVWrg= Subject: Re: IPv6 addr and route is gone after adding port to vrf (5.2.0+) To: David Ahern , netdev References: <2a53ff58-9d5d-ac22-dd23-b4225682c944@gmail.com> From: Ben Greear Organization: Candela Technologies Message-ID: <3cd9b1a7-bf87-8bd2-84f4-503f300e847b@candelatech.com> Date: Fri, 11 Oct 2019 06:57:09 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 8/16/19 2:48 PM, David Ahern wrote: > On 8/16/19 3:28 PM, Ben Greear wrote: >> On 8/16/19 12:15 PM, David Ahern wrote: >>> On 8/16/19 1:13 PM, Ben Greear wrote: >>>> I have a problem with a VETH port when setting up a somewhat complicated >>>> VRF setup. I am loosing the global IPv6 addr, and also the route, >>>> apparently >>>> when I add the veth device to a vrf.  From my script's output: >>> >>> Either enslave the device before adding the address or enable the >>> retention of addresses: >>> >>> sysctl -q -w net.ipv6.conf.all.keep_addr_on_down=1 >>> >> >> Thanks, I added it to the vrf first just in case some other logic was >> expecting the routes to go away on network down. >> >> That part now seems to be working. >> > > The down-up cycling is done on purpose - to clear out neigh entries and > routes associated with the device under the old VRF. All entries must be > created with the device in the new VRF. I believe I found another thing to be aware of relating to this. My logic has been to do supplicant, then do DHCP, and only when DHCP responds do I set up the networking for the wifi station. It is at this time that I would be creating a VRF (or using routing rules if not using VRF). But, when I add the station to the newly created vrf, then it bounces it, and that causes supplicant to have to re-associate (I think, lots of moving pieces, so I could be missing something). Any chance you could just clear the neighbor entries and routes w/out bouncing the interface? Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com