Netgraph VLANs on Hyper-V

Sami Halabi sodynet1 at gmail.com
Fri Apr 10 11:10:17 UTC 2020


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

בתאריך יום ו׳, 10 באפר׳ 2020, 10:07, מאת Reshad Patuck ‏<
reshadpatuck1 at 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_vlan
> 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 at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
>


More information about the freebsd-net mailing list