Date: Fri, 10 Apr 2020 17:03:53 +0530 From: Reshad Patuck <reshadpatuck1@gmail.com> To: Sami Halabi <sodynet1@gmail.com> Cc: freebsd-net@freebsd.org Subject: Re: Netgraph VLANs on Hyper-V Message-ID: <CADaJeD20dtfTZe0MW1NfS1M861bxrfBKJtaVtqT-9Uhh9aMOzA@mail.gmail.com> In-Reply-To: <CAEW%2Bogb4_Bntaf9AH%2B96ECJphw7PAK2PqCJ18gs3VWMss=ZNxQ@mail.gmail.com> References: <CADaJeD2%2BXmTyBdtj9=K29QcdxHgmwJ34KBWFkSh09dNFwP6shA@mail.gmail.com> <CAEW%2Bogb4_Bntaf9AH%2B96ECJphw7PAK2PqCJ18gs3VWMss=ZNxQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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, <sodynet1@gmail.com> 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<DIRECT,BROADCAST> >> dev.hn.1.hwassist: 17<CSUM_IP,CSUM_IP_UDP,CSUM_IP_TCP,CSUM_IP_TSO> >> >> if_vlan: >> dev.hn.1.rxfilter: 20<PROMISC> >> dev.hn.1.hwassist: 17<CSUM_IP,CSUM_IP_UDP,CSUM_IP_TCP,CSUM_IP_TSO> >> >> ng_vlan: >> dev.hn.1.rxfilter: 9<DIRECT,BROADCAST> >> 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" >> >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADaJeD20dtfTZe0MW1NfS1M861bxrfBKJtaVtqT-9Uhh9aMOzA>