From owner-freebsd-net@freebsd.org Wed Oct 9 19:41:18 2019 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 38FA812D14A for ; Wed, 9 Oct 2019 19:41:18 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 46pPj96T1Cz3QN0 for ; Wed, 9 Oct 2019 19:41:17 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (c-73-225-95-104.hsd1.wa.comcast.net [73.225.95.104]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id x99Jf9o4006294 (version=TLSv1.2 cipher=AES128-SHA bits=128 verify=NO); Wed, 9 Oct 2019 12:41:10 -0700 (PDT) (envelope-from julian@freebsd.org) Subject: Re: VLAN+bridge problem [was: no network between jails and host with VNET on same interface] To: Alexander Lunev , freebsd-net@freebsd.org References: <213f9284-5ddd-4dbc-6631-f8592efa2995@zato.ru> <4A3381ED-7C78-48E2-BD1F-45B7A4A930CE@lists.zabbadoz.net> <23b104ca-8e37-7ccc-1af5-a15f68930100@zato.ru> From: Julian Elischer Message-ID: Date: Wed, 9 Oct 2019 12:41:04 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <23b104ca-8e37-7ccc-1af5-a15f68930100@zato.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 46pPj96T1Cz3QN0 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.93 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.93)[-0.933,0]; ASN(0.00)[asn:36236, ipnet:204.109.60.0/22, country:US]; NEURAL_HAM_LONG(-1.00)[-0.999,0] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Oct 2019 19:41:18 -0000 try use netgraph bridge and interfaces On 10/9/19 11:38 AM, Alexander Lunev via freebsd-net wrote: > 07.10.2019 8:21, Alexander N. Lunev via freebsd-net пишет: >> I've tested with tcpdump, and here's what i found: > > > Host interfaces: > > em0 up > > vlan22 10.15.15.1/24 vlandev em0 vlan22 > > epair0a - part of epair for jail foo > > bridge0 addm epair0 addm em0 > > > Jail foo interfaces: > > epair0b up (vnet interface) > > vlan22 10.15.15.2/24 vlandev epair0b vlan22 > > I found that there's already reported a bug 240106. > > Just to spread the word - I've added comment about my situation with > some more test with tcpdump: > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240106#c3 > > To make it short here: if I add static ARP entries for IPs on host's > and jail's vlan interfaces, then ICMP requests reach host's vlan > interface, but replies doesn't return to jail. All tcpdump output is > in my comment in PR, see link. >