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.3 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 6B0F0C3A59E for ; Fri, 16 Aug 2019 21:28:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4034A2077C for ; Fri, 16 Aug 2019 21:28:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=candelatech.com header.i=@candelatech.com header.b="SumZZtLR" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727787AbfHPV2n (ORCPT ); Fri, 16 Aug 2019 17:28:43 -0400 Received: from mail2.candelatech.com ([208.74.158.173]:36076 "EHLO mail3.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727660AbfHPV2m (ORCPT ); Fri, 16 Aug 2019 17:28:42 -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 396C765936; Fri, 16 Aug 2019 14:28:42 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 396C765936 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1565990922; bh=Ed09baKTwKNkTf5ewjvCt6ywTtqZO1AhFTpVRjClhYo=; h=Subject:To:References:From:Date:In-Reply-To:From; b=SumZZtLRvtJycIAQ6UEcaSuAsBq5FZqZc9H9BI35bNPOS71vELxdaV4NgGZxX9fE/ L00PaZDcYoBq86LQ8X9rQRGjuOfZ37QFWu6VfL2qn5obhJIt6Y2dglh8peMq9xzspx v94r5svW2kqmjaT6kRmOFu6Ep9LraSl3mAtvnqJw= 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: Date: Fri, 16 Aug 2019 14:28:41 -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: <2a53ff58-9d5d-ac22-dd23-b4225682c944@gmail.com> 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 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. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com