From owner-freebsd-net@freebsd.org Thu Feb 11 19:35:14 2021 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 84D86532C5C for ; Thu, 11 Feb 2021 19:35:14 +0000 (UTC) (envelope-from cristian.cardoso11@gmail.com) Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dc6KY5jprz4j0w for ; Thu, 11 Feb 2021 19:35:13 +0000 (UTC) (envelope-from cristian.cardoso11@gmail.com) Received: by mail-ed1-x531.google.com with SMTP id t5so8146655eds.12 for ; Thu, 11 Feb 2021 11:35:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=xeIFmLulFDNvY7UMnKlFOIpPcSEiuTysT3RC16w+Vr0=; b=jfaNJfpKGA/Mo67SIWVUj+icL2zMZS4Fx3BI3P8R8E7t0QciH1F7mS9UkKmecxufjx gD9/4oHZl6kjO6IzIIWYsUqpU33fGgFkhwAQvKfsEA7DApsT2mVi8MlHUuOlWYEww7Z6 o7DQI0siA7HygBWS0Rq/CfkWolCwo350WTzWA7+zxq9oQNszEGmr+0AetgosmODjSgJN oM/OxyaiT8LSjmVw5dPWlWgacYSZrpXpIcQhTjmzwxpffhoKghK1HmEMIonnhTu68YLw m5+Sx06ME2/veLQ5Jn+XnuZ/gcmUSGVXFLP4hLofNMqNLjD2xg7bRAmWYGJcyGrmAG0d XrCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=xeIFmLulFDNvY7UMnKlFOIpPcSEiuTysT3RC16w+Vr0=; b=dikiqblz2oHlvNqBEeyxuCgjuV8Gz4VfuY5Kh6xZ43mKVbRSXTvkHU7EeRtjoAxaUH Q4uSgjGaeuZjih7ArULRxfMkd8NwteiOMp+4mC7MpVAT8cOjsR2+qKzDnNWkJ9nYglor QdyIeo+rsJK7ITiRDO+R7o+o0sprOYeiqOKCXDBuqcHd5vZlfOKuod2ZQUzC3RP/zyH7 Z58+BqsxP0E5lgyA4G1P8C5N3ov8zE5Dxvvb3OYSEeXT8yTVmWz/DQz9DYnetpy6oZEA 6a+aQsZ+FRc1QI6oqVWG2O18I7I8WxxBJQ5LgbDvHkU71rhOLRykMKjnIQB4Mnl8WAqR KgDA== X-Gm-Message-State: AOAM532L9ph+Y85QC00GX/AfGtRwlLhkLPJ8T+fxSdZjETgoClFppshK OpBLrG6jJohgGEafP263fPrJdh3WP5YzDScOnmnAIFboG6h+ X-Google-Smtp-Source: ABdhPJy3oK0FW/TvYQOqajmfaoWtSnkHr7ZXhjeZ4aBTU3pq6XpkYOzjCshQvxl6By/gQS45Prl/Ue9kiqeaXQiNFQg= X-Received: by 2002:a05:6402:ce:: with SMTP id i14mr9883089edu.42.1613072112314; Thu, 11 Feb 2021 11:35:12 -0800 (PST) MIME-Version: 1.0 References: <20210211163642.GA20545@belenus.iks-jena.de> In-Reply-To: <20210211163642.GA20545@belenus.iks-jena.de> From: Cristian Cardoso Date: Thu, 11 Feb 2021 16:35:01 -0300 Message-ID: Subject: Re: CARP interface To: Lutz Donnerhacke Cc: freebsd-net@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4Dc6KY5jprz4j0w X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=jfaNJfpK; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of cristiancardoso11@gmail.com designates 2a00:1450:4864:20::531 as permitted sender) smtp.mailfrom=cristiancardoso11@gmail.com X-Spamd-Result: default: False [-2.48 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::531:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.52)[0.519]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::531:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::531:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-net] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Feb 2021 19:35:14 -0000 At that moment I already deactivated the server. The configuration of rc.conf was the same as yours, the only difference was that I was using a static route for my internal network instead of the bird. The version of FreeBSD I used for testing is 12.2-RELEASE FreeBSD 12.2-RELEASE r366954 GENERIC amd64 Em qui., 11 de fev. de 2021 =C3=A0s 13:36, Lutz Donnerhacke escreveu: > > On Thu, Feb 11, 2021 at 10:27:44AM -0300, Cristian Cardoso wrote: > > I would like to clarify a doubt, if someone has this scenario in the > > use of CARP for the use of virtual ips in interfaces in FreeBSD. > > I have an interface where I have the 10.19.254.2/24 network and I am > > placing the virtual IP 10.19.254.3/32 in the CARP, this interface does > > not have a default gateway, but a static route "10.0.0.0/8 gw > > 10.19.254.1". > > When I activate CARP, the interface stops communicating with IP > > 10.19.254.1 and with that I have no external access on the machine. > > Could anyone tell me if this is the normal behavior of CARP or is it > > not even for scenarios where the interface has static routes? > > I checked the handbook and several manuals over the internet, I didn't > > find anything related to validate my scenario. > > That's quite unusal and should not happen. Can you please send me the > relevant rc.conf lines? > > Working example here: > > cloned_interfaces=3D"${cloned_interfaces} vlan100" > create_args_vlan100=3D"vlan 100 vlandev ixl1" > ifconfig_vlan100=3D"up" > ifconfig_vlan100_aliases=3D"inet 100.115.0.26/17" > ifconfig_vlan100_aliases=3D"${ifconfig_vlan100_aliases} inet vhid 103 adv= skew 10 pass **** 100.115.0.60/32" > ifconfig_vlan100_aliases=3D"${ifconfig_vlan100_aliases} inet vhid 104 adv= skew 20 pass **** 100.115.0.61/32" > ifconfig_vlan100_aliases=3D"${ifconfig_vlan100_aliases} inet vhid 105 adv= skew 30 pass **** 100.115.0.62/32" > ifconfig_vlan100_aliases=3D"${ifconfig_vlan100_aliases} inet vhid 106 adv= skew 30 pass **** 100.115.0.63/32" > ifconfig_vlan100_aliases=3D"${ifconfig_vlan100_aliases} inet vhid 107 adv= skew 30 pass **** 100.115.0.64/32" > ifconfig_vlan100_aliases=3D"${ifconfig_vlan100_aliases} inet vhid 108 adv= skew 30 pass **** 100.115.0.65/32" > > resulting in: > > vlan100: flags=3D8943 met= ric 0 mtu 1500 > options=3D600703 > ether d4:f5:ef:26:2f:58 > inet 100.115.0.26 netmask 0xffff8000 broadcast 100.115.127.255 > inet 100.115.0.60 netmask 0xffffffff broadcast 100.115.0.60 vhid = 103 > inet 100.115.0.61 netmask 0xffffffff broadcast 100.115.0.61 vhid = 104 > inet 100.115.0.62 netmask 0xffffffff broadcast 100.115.0.62 vhid = 105 > inet 100.115.0.63 netmask 0xffffffff broadcast 100.115.0.63 vhid = 106 > inet 100.115.0.64 netmask 0xffffffff broadcast 100.115.0.64 vhid = 107 > inet 100.115.0.65 netmask 0xffffffff broadcast 100.115.0.65 vhid = 108 > groups: vlan > carp: MASTER vhid 103 advbase 1 advskew 10 > carp: BACKUP vhid 104 advbase 1 advskew 20 > carp: BACKUP vhid 105 advbase 1 advskew 30 > carp: BACKUP vhid 106 advbase 1 advskew 30 > carp: BACKUP vhid 107 advbase 1 advskew 30 > carp: BACKUP vhid 108 advbase 1 advskew 30 > vlan: 100 vlanpcp: 0 parent interface: ixl1 > media: Ethernet autoselect (10Gbase-LR ) > status: active > nd6 options=3D29 > > Routing is done via bird. > > Which version of FreeBSD are you using? > FreeBSD ... 12.2-STABLE FreeBSD 12.2-STABLE stable/12-c243266-gd970a8218e= 1 GENERIC amd64 > > I had a similar problem like you with 13-STABLE but was not able to > investigate further. I suspect, that the new routing code is causing this= .