From owner-freebsd-net@freebsd.org Thu Nov 16 18:01:57 2017 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 EF9DEDE48D6 for ; Thu, 16 Nov 2017 18:01:57 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 82608636C3 for ; Thu, 16 Nov 2017 18:01:56 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id vAGI1ggi051727 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 Nov 2017 19:01:43 +0100 (CET) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: ml@netfence.it Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id vAGI1Zk8029394 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 17 Nov 2017 01:01:35 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: bridge0 not working when cable disconnected To: Andrea Venturoli , freebsd-net@freebsd.org References: <59452bf1-25fb-970d-1d8d-5ca1463da4fd@netfence.it> From: Eugene Grosbein Message-ID: <5A0DD27A.3010304@grosbein.net> Date: Fri, 17 Nov 2017 01:01:30 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <59452bf1-25fb-970d-1d8d-5ca1463da4fd@netfence.it> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS * 2.6 LOCAL_FROM From my domains X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 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, 16 Nov 2017 18:01:58 -0000 17.11.2017 0:51, Andrea Venturoli wrote: > Hello. > > I've got the following setup: > re0: 192.168.x.1 (main IP) > 192.168.x.2 (jail) > 192.168.x.3 (jail) > 192.168.x.4 (jail) > tap0: VM-bhyve VM (using 192.168.x.9) > bridge0: connecting re0 and tap0. > > The VM used to work properly. > Now, however, I've got the network cable temporarily disconnected from re0 and the VM seems to be isolated: it can't reach 192.168.x.1 or any jail or anything else (192.168.x.1 is its gateway). > tcpdump on tap0 or bridge0 show packets coming out of the VM, but no answer going in. > Pinging 192.168.x.9 from the host yields "no route to host". > Can the network cable disconnection be the reason? > I'm asking here since the box is physically in another place and I cannot try this now, but would like to do some work before I go there. > > Any other hint, otherwise? If you add an interface to a bridge, you should remove all IP addresses from it and assign them to the bridge itself instead. And you will be fine.