From owner-freebsd-net@freebsd.org Tue Nov 10 09:27:52 2020 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 8D36B2E8560 for ; Tue, 10 Nov 2020 09:27:52 +0000 (UTC) (envelope-from SRS0=bDbJ=EQ=perdition.city=julien@bebif.be) Received: from orval.bbpf.belspo.be (orval.bbpf.belspo.be [193.191.208.90]) by mx1.freebsd.org (Postfix) with ESMTP id 4CVjFg4PJHz3MvS for ; Tue, 10 Nov 2020 09:27:51 +0000 (UTC) (envelope-from SRS0=bDbJ=EQ=perdition.city=julien@bebif.be) Received: from x1 (unknown [77.109.105.242]) by orval.bbpf.belspo.be (Postfix) with ESMTPSA id D85411D4FC1D for ; Tue, 10 Nov 2020 10:27:49 +0100 (CET) Date: Tue, 10 Nov 2020 10:27:46 +0100 From: Julien Cigar To: freebsd-net@freebsd.org Subject: Re: CARP with epair Message-ID: <20201110092746.ojxmew7d2hontcir@x1> Mail-Followup-To: freebsd-net@freebsd.org References: <20201109143357.yrbqrdpaghzbbljm@x1> <20201110015505.GI31099@funkthat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201110015505.GI31099@funkthat.com> X-Rspamd-Queue-Id: 4CVjFg4PJHz3MvS X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of SRS0=bDbJ=EQ=perdition.city=julien@bebif.be designates 193.191.208.90 as permitted sender) smtp.mailfrom=SRS0=bDbJ=EQ=perdition.city=julien@bebif.be X-Spamd-Result: default: False [-0.40 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[193.191.208.90:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; TO_DN_NONE(0.00)[]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[193.191.208.90:from:127.0.2.255]; MID_RHS_NOT_FQDN(0.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_NA(0.00)[perdition.city]; FORGED_SENDER(0.30)[julien@perdition.city,SRS0=bDbJ=EQ=perdition.city=julien@bebif.be]; RCVD_NO_TLS_LAST(0.10)[]; RECEIVED_SPAMHAUS_PBL(0.00)[77.109.105.242:received]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:2611, ipnet:193.191.192.0/19, country:BE]; FROM_NEQ_ENVFROM(0.00)[julien@perdition.city,SRS0=bDbJ=EQ=perdition.city=julien@bebif.be]; MAILMAN_DEST(0.00)[freebsd-net]; RCVD_COUNT_TWO(0.00)[2] 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: Tue, 10 Nov 2020 09:27:52 -0000 On Mon, Nov 09, 2020 at 05:55:05PM -0800, John-Mark Gurney wrote: > Julien Cigar wrote this message on Mon, Nov 09, 2020 at 15:33 +0100: > > Hello, > > > > I've setup a VNET jail (with epair and bridge) with a floating ip (vhid) > > on the "b" side of the epair interface. It works well, as soon as I > > restart the jail: the carp status stays in BACKUP and never return to > > MASTER. Any idea what I'm missing? Is CARP supposed to work with epair? > > Did you set net.inet.carp.preempt=1? Or do you not yet have another > peer and that is why you expect that it'd come back as MASTER? Yes, I've set net.inet.carp.preempt=1 in the VNET jail /etc/sysctl.conf, and I have another peer (running on the HOST currently). I found the problem: for some reasons I had to issue a service pf reload after a restart of the jail. I guess probably some race condition with the epair/vlan/... interfaces and/or the carp demotion counter and the pflogd/pfsync interfaces .. I've to investigate this is my config: https://gist.github.com/silenius/5f556a036330f1595e2e6fcdd5e5e18e Thank you, Julien > > -- > John-Mark Gurney Voice: +1 415 225 5579 > > "All that I will do, has been done, All that I have, has not." > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" -- Julien Cigar Belgian Biodiversity Platform (http://www.biodiversity.be) PGP fingerprint: EEF9 F697 4B68 D275 7B11 6A25 B2BB 3710 A204 23C0 No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced.