From owner-freebsd-net@freebsd.org Fri Apr 10 11:10:17 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 386C52BA8E2 for ; Fri, 10 Apr 2020 11:10:17 +0000 (UTC) (envelope-from sodynet1@gmail.com) Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) (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 48zFfc1YXrz3QBF for ; Fri, 10 Apr 2020 11:10:15 +0000 (UTC) (envelope-from sodynet1@gmail.com) Received: by mail-qk1-x729.google.com with SMTP id h14so1744014qke.5 for ; Fri, 10 Apr 2020 04:10:15 -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=NsCz8K39ApaUL/ZeON60DQeK2o3wQMe/rXnyVwVYSJE=; b=nCr6BB5FVb7fX2uuiBJ1k0m5ByFEKgqmvuthlAe8FlxnHuXHjtSGWB8vlxHnbJsAgR +muLqYDFnB1EGqW17lq4XIcST1lYEk6h5CJ/VD/Y1qATjtr5PxeAuzH4WANK7mHlTuXT L4h5yrmBycpZ7bRbZhVXclT0hz8t8i+Gm+OjeHIxS0yj5TfJvUQpzT9ku71Hgzq/ih8p SBZFUlZQT8b6eQNmQAp3e/JX331JzGqtU/+Ifnd4BcCai395S1FWeMx70+iB+vQ337XY jV5h1oCPNI2r+xffO4BjuLmx4qibtnAn77OIJ1VyBCRNWN6ovN0TCYiDb8J+3cwnvwJT 3wbQ== 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=NsCz8K39ApaUL/ZeON60DQeK2o3wQMe/rXnyVwVYSJE=; b=qnut6BNrH9M9DiqEMbFve44zriIHPXao6Nbf6eOWKrBj5IfdjjlD7lNI3YbhPw66SS abFom2lA+SWWGz1EXDphcbTLRwmGefHp1HjNZGtSjuHgwxTfVonfCruSdp6VKBPiiyyz zR2UwvNK3J2GA8lBdGOKczZP38JydPFHP6MKfyQfEBViNG2G/tTWac2DexucPwVoTkXC wtJF7rklj6aqp5aN7/wjsz5HAhSHGPLe9wNmi8xkdaHuLFC5vQfq2eJqH34OrQdQ2bsY emaSZ6zdNUcxcw3j5EAyWZnxxf03BcOf/FjE9RTvoSknA2xunrWKeVlDT9kV8fSHK2Ip 6pKA== X-Gm-Message-State: AGi0PuY9Je6yZw0wEv0aFWEjOJDWAeRTd+zAYiG+DMBEadLG6QrDkQGH BQrR15hbyyZuVcp0qOobNEDODDYBlVjEdUbkzB7jYw== X-Google-Smtp-Source: APiQypJ2jAib2y1m25kPpEHGUijoq6Nw5UEatIHLZ2dHRsbtTyQUcGBsZUqCcva9hx0mj/yql4+pFGsE/aBLmIvXYZE= X-Received: by 2002:ae9:ee18:: with SMTP id i24mr3475707qkg.325.1586517014914; Fri, 10 Apr 2020 04:10:14 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sami Halabi Date: Fri, 10 Apr 2020 14:10:02 +0300 Message-ID: Subject: Re: Netgraph VLANs on Hyper-V To: Reshad Patuck Cc: freebsd-net@freebsd.org X-Rspamd-Queue-Id: 48zFfc1YXrz3QBF X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=nCr6BB5F; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sodynet1@gmail.com designates 2607:f8b0:4864:20::729 as permitted sender) smtp.mailfrom=sodynet1@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; 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.03), ipnet: 2607:f8b0::/32(-0.33), 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:2607:f8b0::/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)[9.2.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.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:10:17 -0000 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_vlan > and ng_vlan if that helps. > > Any help understanding what these sysrc's do, or on how I could get ng_vl= an > 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" >