Hello all, wondering if someone more experienced can lend me a hand to figure out why my VMs don't have access to a vlan network when the tagging is being done by the guest OS instead of router (ingress/egress).
I have a somewhat simple setup
router ---- igb0 ---- pub-br0 ---- vm100
router = self explanatory, (interface is configured to accept only tagged packets)
igb0 = Hardware interface on bhyve host (promiscuous mode enabled and autosrc disbaled)
pub-br0 = ng_bridge connected to igb0:lower via pub-br0:link0 (ngctl mkpeer igb0: bridge lower link0)
vm100 = ng_socket (created automatically by bhyve when using netgraph backend)
With this configuration I have only one-way communication... if I set the vm interface to dhcp then I can see the router getting the dhcp request and sending out the dhcp offer via the correct interface and with the correct vlan tag, but the vm doesn't get the packet and hence keep sending the request. If I set the vm interface to manual and configure the corresponding vlan, I can't not ping the router because the vm doesn't get the arp reply packet from the router even though is being sent (same issue with the dhcp reply)
I have tried capturing via nghook on both upper and orphans hooks of igb0 but nothing shows there... I even tried to add an static arp entry pointing to the router on the vm but no luck either.
No idea why the arp reply offer are not being recieved by the bhyve host (router and host are directly connected)
Any help would be appreciated
Note: If I configure the router to handle the tag/untag then the vm work normally.
I have a somewhat simple setup
router ---- igb0 ---- pub-br0 ---- vm100
router = self explanatory, (interface is configured to accept only tagged packets)
igb0 = Hardware interface on bhyve host (promiscuous mode enabled and autosrc disbaled)
pub-br0 = ng_bridge connected to igb0:lower via pub-br0:link0 (ngctl mkpeer igb0: bridge lower link0)
vm100 = ng_socket (created automatically by bhyve when using netgraph backend)
With this configuration I have only one-way communication... if I set the vm interface to dhcp then I can see the router getting the dhcp request and sending out the dhcp offer via the correct interface and with the correct vlan tag, but the vm doesn't get the packet and hence keep sending the request. If I set the vm interface to manual and configure the corresponding vlan, I can't not ping the router because the vm doesn't get the arp reply packet from the router even though is being sent (same issue with the dhcp reply)
I have tried capturing via nghook on both upper and orphans hooks of igb0 but nothing shows there... I even tried to add an static arp entry pointing to the router on the vm but no luck either.
No idea why the arp reply offer are not being recieved by the bhyve host (router and host are directly connected)
Any help would be appreciated
Note: If I configure the router to handle the tag/untag then the vm work normally.