Hi,
I'm fighting for a couple of days with networking of FreeBSD. I try to create a VLAN on my Bhyve host for some VMs. Everything works fine as long as I don't use VLAN tags. I changed already the physical switch already and double-checked my VLAN setup but to me it seems like it's a FreeBSD problem. Also I see the MAC addresses of the router and the VM in the MAC address table of my switch.
My setup looks like this:
If I ping from inside the VM I see the packages arriving on my router, which is than also sending an response:
On the other hand I don't see the response packages arriving on my host on the lagg0.104 interface:
I created everything with the neat vm tool:
Did I miss something here?
I'm fighting for a couple of days with networking of FreeBSD. I try to create a VLAN on my Bhyve host for some VMs. Everything works fine as long as I don't use VLAN tags. I changed already the physical switch already and double-checked my VLAN setup but to me it seems like it's a FreeBSD problem. Also I see the MAC addresses of the router and the VM in the MAC address table of my switch.
My setup looks like this:
Code:
┌──────────────────────────────────┐ ┌───────┐ ┌───────┐ ┌──────┐
│ ┌─────┐ ┌───────┐ ┌┬───┬┤ │ │ │ │ │Vl1 │
│ │VM1 │ │bridge1│ ││em0│├──┤ │ │ │ │Vl101 │
│ │Vl104├─────────┤ │ │└───┘│ │ │ │ │ │Vl102 │
│ └─────┘ │Vl104 ├──┤┌───┐│ │ ├───│ ├──┤Vl104 │
│ │ │ ││em1│├──┤ │ │ │ │ │
│ │ │ │└───┘│ │ │ │ │ │ │
│ │ │ │lagg0│ │ │ │ │ │ │
│ └───────┘ └─────┤ │switch1│ │switch2│ │router│
└──────────────────────────────────┘ └───────┘ └───────┘ └──────┘
If I ping from inside the VM I see the packages arriving on my router, which is than also sending an response:
Code:
[#] sudo tcpdump -i eth0.104
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0.104, link-type EN10MB (Ethernet), capture size 262144 bytes
13:21:42.426419 ARP, Request who-has 10.192.168.1 tell 10.192.168.50, length 46
13:21:42.426490 ARP, Reply 10.192.168.1 is-at 04:18:d6:83:27:df (oui Unknown), length 28
13:21:43.460105 ARP, Request who-has 10.192.168.1 tell 10.192.168.50, length 46
13:21:43.460169 ARP, Reply 10.192.168.1 is-at 04:18:d6:83:27:df (oui Unknown), length 28
On the other hand I don't see the response packages arriving on my host on the lagg0.104 interface:
Code:
[#] sudo tcpdump -nni lagg0.104
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lagg0.104, link-type EN10MB (Ethernet), capture size 262144 bytes
00:18:23.237551 ARP, Request who-has 10.192.168.1 tell 10.192.168.50, length 46
00:18:24.257961 ARP, Request who-has 10.192.168.1 tell 10.192.168.50, length 46
00:18:25.277020 ARP, Request who-has 10.192.168.1 tell 10.192.168.50, length 46
I created everything with the neat vm tool:
Code:
[#] sudo vm switch list
NAME TYPE IFACE ADDRESS PRIVATE MTU VLAN PORTS
Zuheim standard vm-Zuheim - no - - lagg0
ChocolateCoding standard bridge1 - no - 104 lagg0
Did I miss something here?