From owner-freebsd-virtualization@freebsd.org Tue Feb 14 13:41:55 2017 Return-Path: Delivered-To: freebsd-virtualization@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 906ABCDE53F for ; Tue, 14 Feb 2017 13:41:55 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 33CA91F47 for ; Tue, 14 Feb 2017 13:41:55 +0000 (UTC) (envelope-from carlopmart@gmail.com) Received: by mail-wm0-x234.google.com with SMTP id c85so18058054wmi.1 for ; Tue, 14 Feb 2017 05:41:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=4rgz2qK7HFV8ImoDSJUBXkPXAaPvgDnzCpwHrLHYKqY=; b=CBnIzhAyC5SIbIW3h5Fvd/8Bvked4f+yddSgibgc9tXbs0lmeFpy5LqhPm1vtC5jh5 +wGcxfmzt+8+c+/raKvJFj8/Jv7ZiOEFwGMgPjuUs+pdqRz3ciB8L1/ydFBXNTD+TzBi 4FJxvarRnH0Kh8SG80ny+E46Crn2DlOIwCB/dGjCnY+bKN1Hl+IkdenhFznTloeai59l ZdgDKT/To6yJFpDzcUd4l2M+M8M3eAIq5ApL5KbB27Su0Ga/VB/FECKJ61zmd7n60rXv V1h9zTzqYfT/1pc+LOxicUWz7/xboRA6w+Psmltag56tj8Csp0MBmeaSmY0ga8uurLwF KqNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=4rgz2qK7HFV8ImoDSJUBXkPXAaPvgDnzCpwHrLHYKqY=; b=PWAOlPOoqqaWnxlawA7OJMthK/rMU+2UxJ9s+5KeDkEgVU9DavKbW3LAu46+2cGqQO dfe0nB/NQ9YV4et9OLG3khmfAauiNYUtsMkgUern/k/DvZAvt2838sRa0eJ/eg0N6+Sx p3kx0KWR6SE8MbHPTlUTR99gtqUbhibI2zIYMZhI/la2tHmwVh76FGbROKZNqKzM7pgP gFmz8AQAG2iXvZryJBYwxCb7VjqQZuC96yJvNB3jb43/++xJK1q8Q3VHj9LBkMBhMig2 kwhUp7+voKGIoR9FqGD5XGktAeIpAjyHbvWIyTdoeGaxaWPmF1VD12lDhGaMRZOOgKyb VwTQ== X-Gm-Message-State: AMke39mshuB5nz9VefP49MhrI7BauuxyNFOBDxtkT8O6unewL/ubORun9aUUhfG26VEXUA== X-Received: by 10.28.16.70 with SMTP id 67mr3556835wmq.142.1487079713444; Tue, 14 Feb 2017 05:41:53 -0800 (PST) Received: from localhost (231.red-79-150-68.dynamicip.rima-tde.net. [79.150.68.231]) by smtp.gmail.com with ESMTPSA id w126sm3127300wmw.0.2017.02.14.05.41.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Feb 2017 05:41:53 -0800 (PST) Date: Tue, 14 Feb 2017 13:41:58 +0000 From: "C. L. Martinez" To: freebsd-virtualization@freebsd.org Subject: Re: tap interfaces disappears after bhyve guests shutdowns Message-ID: <20170214134158.vmczv6pramkscxhd@scotland.uxdom.org> References: <20170213120938.hr3zu7flnm33v3zn@scotland.uxdom.org> <58A1A8A3.3030603@quip.cz> <8700dd14-cf15-20b9-38a6-e4181e4928ee@dann.ro> <20170214115708.pcw2poookycue3kk@scotland.uxdom.org> <58A2F845.5090603@quip.cz> <20170214132649.h3xwbcfrtjxk74si@scotland.uxdom.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170214132649.h3xwbcfrtjxk74si@scotland.uxdom.org> User-Agent: NeoMutt/20170113 (1.7.2) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2017 13:41:55 -0000 On Tue, Feb 14, 2017 at 01:26:49PM +0000, C. L. Martinez wrote: > On Tue, Feb 14, 2017 at 01:29:57PM +0100, Miroslav Lachman wrote: > > C. L. Martinez wrote on 2017/02/14 12:57: > > > On Mon, Feb 13, 2017 at 02:02:48PM +0100, Daniel Niculescu wrote: > > > > > > > > Thanks Daniel. I have tried what you say, but ping doesn't works between host and guest. If I put an ip to the bridge works ok, but not when I assign an ip to tap interface. > > > > > > Any idea why?? > > > > Are you using IPs from the same subnet on host and in a guests? What IP did > > you assign to tap / bridge? > > > > Miroslav Lachman > > Yes. For host: 172.22.55.1/24 and for guest 172.22.55.29/24. When I assign IP 172.22.55.1 to the bridge on host side, host and guest can communicate. But when I assign 172.22.55.1 to a tap interface on the host and create a bridge with host's tap interface and guest's tap interface, there is no comms between them ... And I don't understand why ... > > > -- > Greetings, > C. L. Martinez Ok, I think I have found the problem (but not the solution :( ) ... prodif: flags=8843 metric 0 mtu 1500 ether 02:bc:f9:66:98:01 nd6 options=9 groups: bridge id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: tap11 flags=143 ifmaxaddr 0 port 7 priority 128 path cost 2000000 member: tap10 flags=143 ifmaxaddr 0 port 6 priority 128 path cost 2000000 pubif: flags=8843 metric 0 mtu 1500 ether 02:bc:f9:66:98:02 nd6 options=9 groups: bridge id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: tap21 flags=143 ifmaxaddr 0 port 9 priority 128 path cost 2000000 member: tap20 flags=143 ifmaxaddr 0 port 8 priority 128 path cost 2000000 tap10: flags=8943 metric 0 mtu 1500 options=80000 ether 00:bd:1d:15:f7:0a nd6 options=29 media: Ethernet autoselect status: active groups: tap Opened by PID 79946 tap11: flags=8943 metric 0 mtu 1500 options=80000 ether 00:bd:24:15:f7:0b inet 172.22.55.1 netmask 0xffffffe0 broadcast 172.22.55.31 nd6 options=29 media: Ethernet autoselect status: no carrier groups: tap tap20: flags=8943 metric 0 mtu 1500 options=80000 ether 00:bd:2b:15:f7:14 nd6 options=29 media: Ethernet autoselect status: active groups: tap Opened by PID 79946 tap21: flags=8943 metric 0 mtu 1500 options=80000 ether 00:bd:31:15:f7:15 inet 172.30.77.1 netmask 0xfffffff8 broadcast 172.30.77.7 nd6 options=29 media: Ethernet autoselect status: no carrier groups: tap .. As you can see with tap21 and tap11 (tap interfaces assigned to host) status is: no carrier ... ¿¿¿¿¿???? Why?? Both are assigned to bridges ... -- Greetings, C. L. Martinez