if_bridge as if_vlan parent

Josh Paetzel josh at tcbug.org
Sat Nov 21 23:15:36 UTC 2009


On Nov 21, 2009, at 11:39 AM, Tom Judge wrote:

> Hi,
> 
> I was why I get the following error when trying to create a vlan on top of if_bridge:
> 
> # ifconfig bridge0 create
> # ifconfig vlan2 vlan 2 vlandev bridge0
> ifconfig: SIOCSETVLAN: Protocol not supported
> 
> 
> And if there was/is any reason for this to not be supported.
> 
> Thanks
> 


You can create a bridge from a pair of vlan devices....

# ifconfig vlan1 create
# ifcconfig vlan2 create
# ifconfig bridge0 create
# ifconfig vlan1 vlan 1 vlandev em0
# ifconfig vlan2 vlan 2 vlandev em0
# ifconfig bridge0 addm vlan1 addm vlan2

Is that more in line with what you want to do?

I'm a little curious what problem set using a bridge as the parent of a vlan solves though.

Thanks,

Josh Paetzel






More information about the freebsd-net mailing list