From owner-freebsd-net@freebsd.org Fri Apr 10 11:34:09 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 B0B5B2BB173 for ; Fri, 10 Apr 2020 11:34:09 +0000 (UTC) (envelope-from reshadpatuck1@gmail.com) Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) 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 48zGB84Spxz3wb0 for ; Fri, 10 Apr 2020 11:34:08 +0000 (UTC) (envelope-from reshadpatuck1@gmail.com) Received: by mail-wm1-x32a.google.com with SMTP id y24so2446152wma.4 for ; Fri, 10 Apr 2020 04:34:08 -0700 (PDT) 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; bh=KgcCmLQIlwuZy6fUZXDcEQiL1wWLgYZTok56sx25+Lc=; b=JrE6gpCHAGFmsMFaM4tQDk515hWjMHy0joIB1PVlf/HwOYT0IEd/e/geN+R6pTCFsL lHdgAFmeVJOctHfe6tu/vuCpxmVt02GcBMTOK/jHRwAbSUJ70xR+X/jfNku/sylDzxZF SkdTr7spMx4wjnYMF64i4abkY9xuancve3/1hC4qZFnU4OlOWJxbePQbmm0qRFmueQ6O fh2tFIf2LxPLVS/VWzisCNofHXg84aPyDV1FYOdx+4pKTZRIv5ZrnY5SahzHkVs2LyWE ufHDl0bAWWqqG7PGbtyLWfses/kzXKvgTckxc/F7Y3abaa0d+XdAEADe9O2Skc8VIBrG 0jmw== 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; bh=KgcCmLQIlwuZy6fUZXDcEQiL1wWLgYZTok56sx25+Lc=; b=gKS+Pj9q53QK6zTyYCyt/pjaLNaKgsrN1dYFBE7ebj5cm21BStApworXP31bhLVpl+ mYcKA9wvKf3NdB5nJMjc/vHAfkZlZXhdBhO7aPKRK3TgHJRmdZowUfeFhsDQJHq6h8Up Bqu82fpPy6M8BSNkE7GT0xZTQfUid/cYRkcy4Yv+lxNKveFe1s+Apm7sJHeaCUJF4wEQ Tqhmr+A5APgfB+G7lY5SIxz+JXtM+n+U3SZfszIyuSt8aHJ4pAE+rHswwOqL9nmljRJG bLiq9uCguoejbB/7IWP+Qkfgz9so2UnLesg9Npv+1RR13Bcm45PjOivt/A1K7WF+afe3 9oaQ== X-Gm-Message-State: AGi0PubQClY687LKwHCoXztCVbN9GRQICWNfKtbHXQvN5v/kwrvYeNzp 746tKKlNiNFXv9Abpikkn570EXue3FU0XZMSjMs= X-Google-Smtp-Source: APiQypL8f01wh14JECbCNqrkFdn2tEw1mzmiJ/QcHs2rAyybNwTzm33F9FR56Y7ia3cFNNp4DMCxqoYcpxlJp6UJ3RI= X-Received: by 2002:a1c:1f96:: with SMTP id f144mr4568767wmf.114.1586518446256; Fri, 10 Apr 2020 04:34:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Reshad Patuck Date: Fri, 10 Apr 2020 17:03:53 +0530 Message-ID: Subject: Re: Netgraph VLANs on Hyper-V To: Sami Halabi Cc: freebsd-net@freebsd.org X-Rspamd-Queue-Id: 48zGB84Spxz3wb0 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=JrE6gpCH; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of reshadpatuck1@gmail.com designates 2a00:1450:4864:20::32a as permitted sender) smtp.mailfrom=reshadpatuck1@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; URI_COUNT_ODD(1.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-9.41), ipnet: 2a00:1450::/32(-2.36), asn: 15169(-0.43), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[a.2.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Fri, 10 Apr 2020 11:34:09 -0000 Hi Sami, I the interfaces in the VNET jails are both epair interfaces with auto-generated mac addresses in the 02:xx:xx:xx:xx:xx range. When I use if_vlan I can connect to the IP address in the jail. For ng_vlan I can not connect to the IP address in the jail. I will test again using a mac address statically set to: - mac address of hn1 interface - mac address of hn1 + 1 I will drop my results here in a bit. Thanks for your help. Reshad On Fri, 10 Apr, 2020, 16:40 Sami Halabi, wrote: > Hi, > If I recall correctly it has something to do with Mac addresses netgraph > expose not recognized by Hyper-v and maybe other Hypetvisors. > > Myabe someone can shed more light on it. > > Sami > > =D7=91=D7=AA=D7=90=D7=A8=D7=99=D7=9A =D7=99=D7=95=D7=9D =D7=95=D7=B3, 10 = =D7=91=D7=90=D7=A4=D7=A8=D7=B3 2020, 10:07, =D7=9E=D7=90=D7=AA Reshad Patuc= k =E2=80=8F< > reshadpatuck1@gmail.com>: > >> Hi, >> >> I am trying to use ng_vlan on Hyper-V to deploy vnet jails. >> The "Enable MAC address Spoofing" setting on the Hyper-V host is enabled= . >> However when I try to use ng_vlan I am not able to reach the jail. >> If I change this to if_vlan instead everything works fine. >> >> Is there something that creating a VLAN using ifconfig does that ng_vlan >> does not. >> The same setup works well on VMware ESXi, Xen and KVM. >> >> I am not sure if this is relevant to my issue but the hn1 devices sysrc'= s >> changes when I use different vlan methods: >> >> no vlan: >> dev.hn.1.rxfilter: 9 >> dev.hn.1.hwassist: 17 >> >> if_vlan: >> dev.hn.1.rxfilter: 20 >> dev.hn.1.hwassist: 17 >> >> ng_vlan: >> dev.hn.1.rxfilter: 9 >> dev.hn.1.hwassist: 0 >> >> All the other sysrc's either stay the same or seem to be counters. >> I can provide you with scripts to setup vlans and jails with both if_vla= n >> and ng_vlan if that helps. >> >> Any help understanding what these sysrc's do, or on how I could get >> ng_vlan >> to work would be very appreciated. >> >> Best, >> >> Reshad >> _______________________________________________ >> 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" >> >