Hello everyone.
I am trying to understand how does the FreeBSD handle VLANs. The documentation for this process is scarce and not clear enough. Man pages are also kind of brief and are not providing enough information. Here's the topo:
CISCO router is a C2900 router, configured as follows:
Now, what I want to achieve is to be able to send both traffic tagged with vlanid=3 and with vlanid=8 through the trunk (bce2) on FBSDr.
I would be grateful if you could tell me what am I doing wrong.
I'm starting off with creating vlan devices, the bridge, and binding them together.
Also, similar configuration is done at M1 for re0.
My understanding is, that at this point, it should work as intended, but it is not. When I ping 192.168.7.1 from 192.168.7.2, ARP request is being generated, which can be seen on bce1. However, it is never passed further for bce2 (nor can be seen on any of vlan# interfaces). What am I getting wrong here ? Interestingly, those arps are not visible when sniffing on bridge0 either (and after *brief* peek at the code, I believe it should be).
It would help me greatly (and save me a tons of time that I will have to spend on looking at the code) if anyone would be so nice and help me out with this!
Thank you in advance.
I am trying to understand how does the FreeBSD handle VLANs. The documentation for this process is scarce and not clear enough. Man pages are also kind of brief and are not providing enough information. Here's the topo:
M1: re0 (192.168.7.1)<-----------------[trunk carrying vlans 3 and 7]----------------->bce2: FBSDr :bce1 <----------[carries vlan 7]----------> ge0/1 (192.168.7.2):CISCO router
CISCO router is a C2900 router, configured as follows:
(...)
!
interface GigabitEthernet0/1
ip address 192.168.7.2 255.255.255.0
duplex auto
speed auto
vlan-id dot1q 7
description vlan7
exit-vlan-config
!
!
(...)
Now, what I want to achieve is to be able to send both traffic tagged with vlanid=3 and with vlanid=8 through the trunk (bce2) on FBSDr.
I would be grateful if you could tell me what am I doing wrong.
I'm starting off with creating vlan devices, the bridge, and binding them together.
root@hp-fbsd-11:/home/zbr # ifconfig vlan3 create
root@hp-fbsd-11:/home/zbr # ifconfig vlan7 create
root@hp-fbsd-11:/home/zbr # ifconfig vlan37 create
root@hp-fbsd-11:/home/zbr # ifconfig bridge0 create
root@hp-fbsd-11:/home/zbr # ifconfig vlan3 vlan 3 vlandev bce2 up
root@hp-fbsd-11:/home/zbr # ifconfig vlan7 vlan 7 vlandev bce1 up
root@hp-fbsd-11:/home/zbr # ifconfig vlan37 vlan 7 vlandev bce2 up
root@hp-fbsd-11:/home/zbr # ifconfig bridge0 addm vlan3 addm vlan37 addm vlan7 up
Also, similar configuration is done at M1 for re0.
My understanding is, that at this point, it should work as intended, but it is not. When I ping 192.168.7.1 from 192.168.7.2, ARP request is being generated, which can be seen on bce1. However, it is never passed further for bce2 (nor can be seen on any of vlan# interfaces). What am I getting wrong here ? Interestingly, those arps are not visible when sniffing on bridge0 either (and after *brief* peek at the code, I believe it should be).
It would help me greatly (and save me a tons of time that I will have to spend on looking at the code) if anyone would be so nice and help me out with this!
Thank you in advance.