Hi guys, long time no see. I hope you're doing fine.
I recently setup my network to use vlan, it seems to work properly but I am not confident I understand enough to be sure it's actualy working as expected.
- The router's lan interface (igc1) is connected directly to my machine (bge0), no switch is involved
- Both have matching vlan configuration (using vlan 20 - 10.9.20.0/24 network for the example)
- igc1 address is: 192.168.0.9
- My machine address is 192.168.0.1 with 192.168.0.9 as default gateway
-
- The bridge used for the VMs connection contains the vlan 20 interface bge0.20
- VMs are configured with a default route of 10.9.20.9 - which is associated with the igc1.20 interface on the router.
1. The major thing I don't understand here is: how are the packet from the 10.9.20.0/24 network correctly routed without address translation or my machine acting as a gateway? I did not configure bge0 and igc1 at first but it didn't work until I did. I am missing something here.
2.
It's been a long journey since then, but I do need some more help - any pointer is welcome. Thank you.
I recently setup my network to use vlan, it seems to work properly but I am not confident I understand enough to be sure it's actualy working as expected.
- The router's lan interface (igc1) is connected directly to my machine (bge0), no switch is involved
- Both have matching vlan configuration (using vlan 20 - 10.9.20.0/24 network for the example)
- igc1 address is: 192.168.0.9
- My machine address is 192.168.0.1 with 192.168.0.9 as default gateway
-
net.inet.ip.forwarding=0
- The bridge used for the VMs connection contains the vlan 20 interface bge0.20
- VMs are configured with a default route of 10.9.20.9 - which is associated with the igc1.20 interface on the router.
1. The major thing I don't understand here is: how are the packet from the 10.9.20.0/24 network correctly routed without address translation or my machine acting as a gateway? I did not configure bge0 and igc1 at first but it didn't work until I did. I am missing something here.
2.
tcpdump ... vlan 20
shows traffic on both bge0 and igc1, but not on the vlan interfaces themselves, I didn't expect that. I suppose this is the expected behavior. The packet is only tagged when leaving the interface and the tag is removed when the packet is red back on the receiving interface.It's been a long journey since then, but I do need some more help - any pointer is welcome. Thank you.